7baefc879e68f66cce18c7fb638c5ddf45176614
[gnulib.git] / ChangeLog
1 2012-02-26  Bruno Haible  <bruno@clisp.org>
2
3         roundl-ieee tests: More tests.
4         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
5         (main): Add tests for [MX] shaded specification in POSIX.
6         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7         (Depends-on): Add isnanl-nolibm.
8
9         round-ieee tests: More tests.
10         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
11         (main): Add tests for [MX] shaded specification in POSIX.
12         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
13         (Depends-on): Add isnand-nolibm.
14
15         roundf-ieee tests: More tests.
16         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
17         (main): Add tests for [MX] shaded specification in POSIX.
18         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
19         (Depends-on): Add isnanf-nolibm.
20
21         truncl-ieee tests: More tests.
22         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
23         (main): Add tests for [MX] shaded specification in POSIX.
24         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
25         (Depends-on): Add isnanl-nolibm.
26
27         trunc-ieee tests: More tests.
28         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
29         (main): Add tests for [MX] shaded specification in POSIX.
30         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
31         (Depends-on): Add isnand-nolibm.
32
33         truncf-ieee tests: More tests.
34         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
35         (main): Add tests for [MX] shaded specification in POSIX.
36         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
37         (Depends-on): Add isnanf-nolibm.
38
39         ceill-ieee tests: More tests.
40         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
41         (main): Add tests for [MX] shaded specification in POSIX.
42         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
43         (Depends-on): Add isnanl-nolibm.
44
45         ceil-ieee tests: More tests.
46         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
47         (main): Add tests for [MX] shaded specification in POSIX.
48         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
49         (Depends-on): Add isnand-nolibm.
50
51         ceilf-ieee tests: More tests.
52         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
53         (main): Add tests for [MX] shaded specification in POSIX.
54         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
55         (Depends-on): Add isnanf-nolibm.
56
57         floorl-ieee tests: More tests.
58         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
59         (main): Add tests for [MX] shaded specification in POSIX.
60         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
61         (Depends-on): Add isnanl-nolibm.
62
63         floor-ieee tests: More tests.
64         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
65         (main): Add tests for [MX] shaded specification in POSIX.
66         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
67         (Depends-on): Add isnand-nolibm.
68
69         floorf-ieee tests: More tests.
70         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
71         (main): Add tests for [MX] shaded specification in POSIX.
72         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
73         (Depends-on): Add isnanf-nolibm.
74
75 2012-02-26  Bruno Haible  <bruno@clisp.org>
76
77         fpieee: More comments.
78         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
79
80 2012-02-25  Bruno Haible  <bruno@clisp.org>
81
82         Tests for module 'log10l'.
83         * modules/log10l-tests: New file.
84         * tests/test-log10l.c: New file.
85         * tests/test-math-c++.cc: Check the declaration of log10l.
86
87         New module 'log10l'.
88         * lib/math.in.h (log10l): New declaration.
89         * lib/log10l.c: New file.
90         * m4/log10l.m4: New file.
91         * modules/log10l: New file.
92         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
93         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
94         HAVE_DECL_LOG10L.
95         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
96         HAVE_DECL_LOG10L.
97         * doc/posix-functions/log10l.texi: Mention the new module.
98
99 2012-02-25  Bruno Haible  <bruno@clisp.org>
100
101         fmodl, remainder*: Avoid wrong results due to rounding errors.
102         * lib/fmodl.c (fmodl): Correct the result if it is not within the
103         expected bounds.
104         * lib/remainderf.c (remainderf): Likewise.
105         * lib/remainder.c (remainder): Likewise.
106         * lib/remainderl.c (remainderl): Likewise.
107
108 2012-02-25  Bruno Haible  <bruno@clisp.org>
109
110         Tests for module 'remainderl'.
111         * modules/remainderl-tests: New file.
112         * tests/test-remainderl.c: New file.
113         * tests/test-math-c++.cc: Check the declaration of remainderl.
114
115         New module 'remainderl'.
116         * lib/math.in.h (remainderl): New declaration.
117         * lib/remainderl.c: New file.
118         * m4/remainderl.m4: New file.
119         * modules/remainderl: New file.
120         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
121         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
122         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
123         HAVE_REMAINDERL.
124         * doc/posix-functions/remainderl.texi: Mention the new module.
125
126 2012-02-25  Bruno Haible  <bruno@clisp.org>
127
128         Tests for module 'remainderf'.
129         * modules/remainderf-tests: New file.
130         * tests/test-remainderf.c: New file.
131         * tests/test-math-c++.cc: Check the declaration of remainderf.
132
133         New module 'remainderf'.
134         * lib/math.in.h (remainderf): New declaration.
135         * lib/remainderf.c: New file.
136         * m4/remainderf.m4: New file.
137         * modules/remainderf: New file.
138         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
139         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
140         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
141         HAVE_REMAINDERF.
142         * doc/posix-functions/remainderf.texi: Mention the new module.
143
144 2012-02-25  Bruno Haible  <bruno@clisp.org>
145
146         remainder: Support for MSVC.
147         * lib/math.in.h (remainder): New declaration.
148         * lib/remainder.c: New file.
149         * m4/remainder.m4: New file.
150         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
151         (Depends-on): Add math, round, fma.
152         (configure.ac): Use results of gl_FUNC_REMAINDER.
153         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
154         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
155         HAVE_DECL_REMAINDER.
156         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
157         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
158         * tests/test-math-c++.cc: Check the declaration of remainder.
159         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
160         problems are fixed.
161
162 2012-02-25  Bruno Haible  <bruno@clisp.org>
163
164         Tests for module 'fmodl'.
165         * modules/fmodl-tests: New file.
166         * tests/test-fmodl.c: New file.
167         * tests/test-math-c++.cc: Check the declaration of fmodl.
168
169         New module 'fmodl'.
170         * lib/math.in.h (fmodl): New declaration.
171         * lib/fmodl.c: New file.
172         * m4/fmodl.m4: New file.
173         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
174         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
175         REPLACE_FMODL.
176         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
177         REPLACE_FMODL.
178         * modules/fmodl: New file.
179         * doc/posix-functions/fmodl.texi: Mention the new module.
180
181 2012-02-25  Bruno Haible  <bruno@clisp.org>
182
183         Tests for module 'modfl'.
184         * modules/modfl-tests: New file.
185         * tests/test-modfl.c: New file.
186         * tests/test-math-c++.cc: Check the declaration of modfl.
187
188         New module 'modfl'.
189         * lib/math.in.h (modfl): New declaration.
190         * lib/modfl.c: New file.
191         * m4/modfl.m4: New file.
192         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
193         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
194         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
195         * modules/modfl: New file.
196         * doc/posix-functions/modfl.texi: Mention the new module.
197
198 2012-02-25  Bruno Haible  <bruno@clisp.org>
199
200         Tests for module 'fabsl'.
201         * modules/fabsl-tests: New file.
202         * tests/test-fabsl.c: New file.
203         * tests/test-math-c++.cc: Check the declaration of fabsl.
204
205         New module 'fabsl'.
206         * lib/math.in.h (fabsl): New declaration.
207         * lib/fabsl.c: New file.
208         * m4/fabsl.m4: New file.
209         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
210         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
211         REPLACE_FABSL.
212         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
213         REPLACE_FABSL.
214         * modules/fabsl: New file.
215         * doc/posix-functions/fabsl.texi: Mention the new module.
216
217 2012-02-25  Bruno Haible  <bruno@clisp.org>
218
219         fabs tests: More tests.
220         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
221         (zero): New variable.
222         (main): Add tests for signed zero.
223         * modules/fabs-tests (Files): Add tests/minus-zero.h.
224
225         fabsf tests: More tests.
226         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
227         (zero): New variable.
228         (main): Add tests for signed zero.
229         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
230
231 2012-02-24  Bruno Haible  <bruno@clisp.org>
232
233         atanl: Provide function definition on MSVC.
234         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
235         function pointer.
236         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
237
238 2012-02-24  Bruno Haible  <bruno@clisp.org>
239
240         acosl: Provide function definition on MSVC.
241         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
242         function pointer.
243         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
244
245 2012-02-24  Bruno Haible  <bruno@clisp.org>
246
247         asinl: Provide function definition on MSVC.
248         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
249         function pointer.
250         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
251
252 2012-02-24  Bruno Haible  <bruno@clisp.org>
253
254         tanl: Provide function definition on MSVC.
255         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
256         function pointer.
257         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
258
259 2012-02-24  Bruno Haible  <bruno@clisp.org>
260
261         cosl: Provide function definition on MSVC.
262         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
263         function pointer.
264         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
265
266 2012-02-24  Bruno Haible  <bruno@clisp.org>
267
268         sinl: Provide function definition on MSVC.
269         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
270         function pointer.
271         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
272
273 2012-02-24  Bruno Haible  <bruno@clisp.org>
274
275         logl: Provide function definition on MSVC.
276         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
277         function pointer.
278         * lib/math.in.h (logl): Undefine if it does not exist as a function.
279
280 2012-02-24  Bruno Haible  <bruno@clisp.org>
281
282         expl: Provide function definition on MSVC.
283         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
284         function pointer.
285         * lib/math.in.h (expl): Undefine if it does not exist as a function.
286
287 2012-02-24  Bruno Haible  <bruno@clisp.org>
288
289         sqrtl: Provide function definition on MSVC.
290         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
291         a function pointer.
292         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
293
294 2012-02-24  Bruno Haible  <bruno@clisp.org>
295
296         ceill: Provide function definition on MSVC.
297         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
298         used as a function pointer.
299         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
300
301 2012-02-24  Bruno Haible  <bruno@clisp.org>
302
303         floorl: Provide function definition on MSVC.
304         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
305         used as a function pointer.
306         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
307
308 2012-02-24  Bruno Haible  <bruno@clisp.org>
309
310         ceilf: Provide function definition on MSVC.
311         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
312         used as a function pointer.
313         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
314
315 2012-02-24  Bruno Haible  <bruno@clisp.org>
316
317         floorf: Provide function definition on MSVC.
318         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
319         used as a function pointer.
320         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
321
322 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
323
324         stdnoreturn: new module
325         This implements a replacement for C11's <stdnoreturn.h>.
326         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
327         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
328         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
329         * tests/test-stdnoreturn.c: New files.
330
331 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
332
333         regex: fix false multibyte matches in some regular expressions
334         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
335         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
336         * lib/regex_internal.c (re_string_skip_chars):
337         Fix miscomputation of remain_len that may cause incomplete
338         multi-byte character and false match.
339
340 2012-02-24  Jim Meyering  <meyering@redhat.com>
341
342         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
343         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
344         uses with "==" *before* the call, e.g., 0 == strcmp (...)
345         Remove now-unnecessary str''cmp obfuscation.
346         Suggested by Akim Demaille.
347
348 2012-02-24  Bruno Haible  <bruno@clisp.org>
349
350         streq: Rename macro.
351         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
352         * NEWS: Mention the change.
353         * lib/mbrtowc.c (mbrtowc): Update.
354         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
355         * lib/wcwidth.c (wcwidth): Update.
356         Suggested by Akim Demaille and Jim Meyering.
357
358 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
359
360         regex: fix typo in definition of MIN
361         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
362         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
363
364 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
365             Bruno Haible  <bruno@clisp.org>
366
367         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
368         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
369         entries into a stack-allocated buffer directly.
370         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
371
372 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
373             Bruno Haible  <bruno@clisp.org>
374
375         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
376
377          - There were several instances of this pattern:
378
379              for (;;) {
380                n = acl (f, GETACLCNT, 0, NULL);
381                [ allocate an array A of size N ]
382                if (acl (f, GETACL, n, a) == n)
383                  break;
384              }
385
386            This loop might never terminate if some other process is constantly
387            manipulating the file's ACL.  The loop should be rewritten to
388            terminate.
389
390          - The acl (... GETACLNT ...) call is merely an optimization; its value
391            is merely a hint as to how big to make the array.  A better
392            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
393            and just guess a reasonably-big size, growing the size and trying
394            again if it's not large enough.  This guarantees termination, and
395            saves a system call.
396
397         * lib/acl-internal.h: Include <limits.h>.
398         (MIN, SIZE_MAX): New macros.
399         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
400         a stack-allocated buffer, and use malloc if it does not fit. Don't
401         use GETACLCNT.
402         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
403
404 2012-02-19  Bruno Haible  <bruno@clisp.org>
405
406         acl: Fix endless loop on Solaris with vxfs.
407         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
408         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
409         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
410         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
411         * tests/test-sameacls.c (main)[Solaris]: Likewise.
412         Reported by Bill Jones in
413         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
414
415 2012-02-19  Bruno Haible  <bruno@clisp.org>
416
417         acl: Fix copy-acl test failure on Solaris 11 2011-11.
418         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
419         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
420         that this function returns 0 in some more cases.
421
422 2012-02-19  Bruno Haible  <bruno@clisp.org>
423
424         acl: Update doc references.
425         * doc/acl-resources.txt: Update links to Solaris documentation.
426
427 2012-02-19  Bruno Haible  <bruno@clisp.org>
428
429         Fix test failure in many locales on Solaris 11.
430         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
431         'tr' arguments.
432         * tests/test-pipe-filter-ii1.c (main): Likewise.
433         * build-aux/bootstrap (check_versions): Run 'tr' command with range
434         expressions in the C locale.
435         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
436         * m4/host-os.m4 (gl_HOST_OS): Likewise.
437
438 2012-02-19  Bruno Haible  <bruno@clisp.org>
439
440         gnulib-tool: Improve usage message.
441         * gnulib-tool (func_usage): Move doc of --help and --version to the
442         section "Operation modes".
443
444 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
445
446         README-release: make it easier to execute commands
447         * top/README-release: break commands out on to separate lines.
448
449 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
450
451         GNUmakefile: simplify detection of unconfigured trees
452         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
453         whether the tree make is being run from is already configured or
454         not.  Related simplifications.
455
456 2012-02-13  Simon Josefsson  <simon@josefsson.org>
457
458         * gnulib-tool (func_usage): Document --help and --version.
459
460 2012-02-11  Jim Meyering  <meyering@redhat.com>
461
462         bootstrap: don't exit 0 upon gnulib-tool failure
463         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
464         its exit status, not 0.
465
466 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
467
468         README-release: various improvements
469         * top/README-release: Give a command to push changes for the
470         release.  Add "distcheck" to list of other pre-release checks.
471         Fix instance of "make stable" which should be "make TYPE".
472
473 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
474
475         maint: replace FSF snail-mail addresses with URLs
476         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
477         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
478         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
479         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
480         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
481         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
482         * lib/check-version.c, lib/check-version.h, lib/config.charset:
483         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
484         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
485         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
486         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
487         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
488         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
489         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
490         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
491         * lib/glthread/thread.c, lib/glthread/thread.h:
492         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
493         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
494         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
495         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
496         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
497         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
498         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
499         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
500         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
501         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
502         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
503         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
504         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
505         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
506         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
507         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
508         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
509         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
510         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
511         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
512         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
513         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
514         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
515         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
516         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
517         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
518         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
519         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
520         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
521         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
522         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
523         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
524         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
525         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
526         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
527         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
528         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
529         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
530         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
531         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
532         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
533         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
534         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
535         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
536         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
537         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
538         * tests/test-poll.c, tests/test-quotearg-simple.c:
539         * tests/test-quotearg.c, tests/test-quotearg.h:
540         * tests/test-round-ieee.c, tests/test-round1.c:
541         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
542         * tests/test-roundl-ieee.c, tests/test-roundl.c:
543         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
544         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
545         * tests/test-strerror.c, tests/test-strerror_r.c:
546         * tests/test-strsignal.c, tests/test-strverscmp.c:
547         * tests/test-xmemdup0.c:
548         Replace FSF snail mail addresses with URLs, as per GNU coding
549         standards.  See glibc bug
550         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
551
552 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
553
554         README-release: capitalize a word and split a line
555         * top/README-release: Fix punctuation and spacing.
556
557 2012-02-08  Akim Demaille  <demaille@gostai.com>
558
559         fatal-signal: use C prototypes (with explicit void).
560         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
561         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
562
563 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
564
565         regex: spelling fix
566         * lib/regexec.c: spelling fix
567
568         regex: rely on stdint.h for SIZE_MAX
569         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
570
571 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
572
573         regex: merge glibc changes
574
575         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
576         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
577         (init_word_char): Work even if bitset words are not exactly 32 or
578         64 bits wide.  Don't assume there are no padding bits.
579         * lib/regex.c [_LIBC]: Do not include <config.h>.
580         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
581         and -Wtype-limits.
582         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
583         needless disagreement with glibc.  All uses changed.  Define it to
584         1 only if _GNU_SOURCE, to match glibc.
585         (_REG_RM_NAME): Remove; no longer needed, since the names in
586         question are now all protected by __USE_GNU.
587         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
588         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
589         * lib/regex_internal.h (MIN): New macro.
590
591         2012-01-03 Ulrich Drepper <drepper@gmail.com>
592         * lib/regcomp.c (init_word_char): Optimize regex a bit.
593
594         2011-12-30 Jakub Jelinek <jakub@redhat.com>
595         * lib/regex_internal.c (re_string_fetch_byte_case):
596         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
597         is miscompiled, and it turns out it is because of an incorrect
598         attribute on re_string_fetch_byte_case.  Unlike
599         re_string_peek_byte_case, this one is really not pure, it modifies
600         memory (increments pstr->cur_idx), and with the pure attribute GCC
601         assumed it doesn't and it cached the presumed value of
602         regexp->cur_idx in a variable across the
603          for (;; ++i)
604            {
605              if (i >= BRACKET_NAME_BUF_SIZE)
606                return REG_EBRACK;
607              if (token->type == OP_OPEN_CHAR_CLASS)
608                ch = re_string_fetch_byte_case (regexp);
609              else
610                ch = re_string_fetch_byte (regexp);
611              if (re_string_eoi(regexp))
612                return REG_EBRACK;
613              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
614                break;
615              elem->opr.name[i] = ch;
616            }
617
618         2011-11-29 Andreas Schwab <schwab@redhat.com>
619         * lib/regcomp.c (build_equiv_class):
620         Fix access after end of search string in regex matcher.
621
622         2011-11-12 Ulrich Drepper <drepper@redhat.com>
623         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
624
625         2011-10-12 Ulrich Drepper <drepper@redhat.com>
626         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
627
628         2011-10-11 Ulrich Drepper <drepper@redhat.com>
629         * lib/regcomp.c (parse_branch, parse_sub_exp):
630         More regex memory leak fixes and tests.
631         (parse_sub_exp, parse_bracket_exp):
632         Fix memory leak for some invalid regular expressions.
633
634         2011-05-28 Ulrich Drepper <drepper@gmail.com>
635         * lib/regex_internal.c, lib/regexec.c:
636         Fix unnecessary overallocation due to incomplete character.  When
637         incomplete characters are found at the end of a string the code
638         ran amok and allocated lots of memory.  Stricter limits are now in
639         place.
640
641         2011-05-20 Reuben Thomas <rrt@sc3d.org>
642         * lib/regex.h: Update documentation.
643
644         2011-05-16 Aharon Robbins <arnold@skeeve.com>
645         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
646
647         2010-05-05 Andreas Schwab <schwab@redhat.com>
648         * lib/regexec.c (find_collation_sequence_value):
649         Fix lookup of collation sequence value during regexp matching.
650
651         2010-01-22 Ulrich Drepper <drepper@redhat.com>
652         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
653
654         2008-01-16 Ulrich Drepper <drepper@redhat.com>
655         * lib/regex.h: Cleanup namespace.
656
657         2007-11-26 Ulrich Drepper <drepper@redhat.com>
658         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
659
660         2007-08-26 Ulrich Drepper <drepper@redhat.com>
661         * lib/regex_internal.h: Prevent some declarations and definitions
662         to be seen when used in tests.
663
664         2005-05-06 Ulrich Drepper <drepper@redhat.com>
665         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
666         __libc_lock_* macros if not _LIBC.
667         (struct re_dfa_t): Add lock.
668
669 2012-02-07  Eric Blake  <eblake@redhat.com>
670
671         maint.mk: also prohibit lower-case @var@
672         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
673         lower case, like @top_srcdir@.
674
675 2012-02-04  Eric Blake  <eblake@redhat.com>
676
677         canonicalize: avoid uninitialized memory use
678         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
679         random '/' left in dest.
680         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
681
682 2012-02-04  Bruno Haible  <bruno@clisp.org>
683
684         isatty: Fix test failure of ptsname_r on native Windows.
685         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
686         and don't set errno.
687         (isatty): Test first whether fd is valid. Set errno when returning 0.
688
689 2012-02-04  Bruno Haible  <bruno@clisp.org>
690
691         spawn-pipe tests: Fix a NULL program name in a diagnostic.
692         * tests/test-spawn-pipe-main.c: Include progname.h.
693         (main): Invoke set_program_name.
694         * modules/spawn-pipe-tests (Depends-on): Add progname.
695
696         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
697         * tests/test-nonblocking-socket-main.c: Include progname.h.
698         (main): Invoke set_program_name.
699         * modules/nonblocking-socket-tests (Depends-on): Add progname.
700
701         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
702         * tests/test-nonblocking-pipe-main.c: Include progname.h.
703         (main): Invoke set_program_name.
704         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
705
706 2012-02-04  Eric Blake  <eblake@redhat.com>
707
708         canonicalize-lgpl: fix // handling
709         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
710
711         canonicalize: fix // handling
712         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
713         /// to //, since only // is special.
714
715 2012-02-04  Bruno Haible  <bruno@clisp.org>
716
717         ioctl: Fix test failure on native Windows.
718         * lib/ioctl.c: Include msvc-nothrow.h.
719         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
720
721 2012-02-04  Bruno Haible  <bruno@clisp.org>
722
723         fsync: Avoid test failure on native Windows.
724         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
725         read-only.
726
727 2012-02-04  Bruno Haible  <bruno@clisp.org>
728
729         sys_select: Avoid syntax error on OpenBSD 5.0.
730         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
731         currently being included, just include the system's <sys/select.h>.
732
733 2012-02-04  Bruno Haible  <bruno@clisp.org>
734
735         sys_select: Avoid syntax error on OpenBSD 5.0.
736         * lib/sys_select.in.h: Include <signal.h> only after the include_next
737         <sys/select.h>, not before.
738         Reported by Jiri B <jirib@devio.us>.
739
740 2012-02-04  Bruno Haible  <bruno@clisp.org>
741
742         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
743         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
744         global variables.
745         * tests/test-get-rusage-data.c (main): Likewise.
746         Reported by Jim Meyering.
747
748 2012-02-04  Bruno Haible  <bruno@clisp.org>
749
750         stdioext: Fix last commit.
751         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
752
753 2012-02-03  Bruno Haible  <bruno@clisp.org>
754
755         stdioext: Add tentative support for Plan9.
756         * lib/stdio-impl.h: Include <errno.h>.
757         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
758         * lib/freadable.c (freadable): Likewise.
759         * lib/fwritable.c (fwritable): Likewise.
760         * lib/fbufmode.c (fbufmode): Likewise.
761         * lib/freading.c (freading): Likewise.
762         * lib/fwriting.c (fwriting): Likewise.
763         * lib/freadptr.c (freadptr): Likewise.
764         * lib/freadseek.c (freadptrinc): Likewise.
765         * lib/freadahead.c (freadahead): Likewise.
766         * lib/fpurge.c (fpurge): Likewise.
767         * lib/fseeko.c (rpl_fseeko): Likewise.
768         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
769         Reported by Jens Staal <staal1978@gmail.com>.
770
771 2012-02-02  Jim Meyering  <meyering@redhat.com>
772
773         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
774         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
775         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
776         not even to try to add the attribute.  Instead, add a pragma to suppress
777         the suggestion/warning.
778
779 2012-01-31  Karl Berry  <karl@gnu.org>
780
781         setstate doc: typo.
782         * doc/posix-functions/setstate.texi (setstate): { not (.
783
784 2012-01-31  Bruno Haible  <bruno@clisp.org>
785
786         popen: Make more robust on Windows.
787         * lib/popen.c: On native Windows, use the _popen based code even if
788         HAVE_POPEN is set.
789         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
790         environment variable on native Windows.
791
792 2012-01-30  Bruno Haible  <bruno@clisp.org>
793
794         pclose: Fix typo.
795         * lib/stdio.in.h (pclose): Fix typo in warning message.
796
797 2012-01-30  Bruno Haible  <bruno@clisp.org>
798
799         doc about getlogin_r, setstate.
800         * doc/posix-functions/getlogin_r.texi: List the incompatible
801         declaration problem under "not fixed by gnulib".
802         * doc/posix-functions/setstate.texi: Mention incompatible declaration
803         problem on Solaris 11 and other platforms.
804
805 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
806             Bruno Haible  <bruno@clisp.org>
807
808         poll tests: Make test more robust.
809         * tests/test-poll.c: Include macros.h.
810         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
811         return value of various I/O operations.
812         * modules/poll-tests (Files): Add tests/macros.h.
813
814 2012-01-30  Bruno Haible  <bruno@clisp.org>
815
816         sys_stat: Fix support for mingw64 and MSVC.
817         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
818         header files already do it.
819         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
820         stat itself.
821         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
822
823 2012-01-30  Bruno Haible  <bruno@clisp.org>
824
825         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
826         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
827         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
828
829 2012-01-29  Bruno Haible  <bruno@clisp.org>
830
831         quotearg: Fix test failure on MacOS X 10.5.
832         * tests/test-quotearg-simple.c: Include localcharset.h.
833         (main): If the locale encoding is not ASCII, bypass the tests of
834         locale_quoting_style and clocale_quoting_style.
835         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
836
837 2012-01-29  Jim Meyering  <meyering@redhat.com>
838
839         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
840         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
841         detect uses of canonicalize_file_name.
842
843 2012-01-28  Bruno Haible  <bruno@clisp.org>
844
845         test-framework-sh: Fix test failure with AIX 7.1 diff.
846         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
847         in column 1, like 'diff -c' does.
848         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
849         whether 'diff -u' is used. Instead, test whether the output contains
850         some '@' character.
851
852 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
853
854         strtoimax: eliminate need for stdint.h, inttypes.h checks
855         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
856         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
857         the prerequisites for a recently-introduced strtoimax test.
858         I guess this might cause strtoimax to be replaced when not
859         strictly necessary on older hosts, but this shouldn't introduce
860         any bugs and it should make Emacs 'configure' faster on typical
861         modern hosts.  Problem discovered when importing the latest gnulib
862         to an Emacs test version.
863         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
864
865 2012-01-28  Bruno Haible  <bruno@clisp.org>
866
867         sys_time: Override 'struct timeval' on some native Windows platforms.
868         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
869         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
870         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
871         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
872         needs to be overridden.
873         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
874         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
875         * tests/test-sys_select.c: Check that the tv_sec member has the same
876         size as a 'time_t'.
877         * tests/test-sys_time.c: Likewise.
878         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
879         is set, set also REPLACE_GETTIMEOFDAY.
880         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
881         convert the resulting 'struct timeval' before returning.
882         * lib/select.c: Include <sys/time.h>.
883         (select, timeval): Undefine at the right place.
884         * modules/select (Depends-on): Add sys_time.
885         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
886         some Windows platforms.
887         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
888
889 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
890
891         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
892         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
893         an integer.
894         * lib/fcntl.c (dupfd): Likewise.
895         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
896
897 2012-01-28  Bruno Haible  <bruno@clisp.org>
898
899         fcntl: Avoid compilation error on native Windows.
900         * modules/fcntl (Depends-on): Add 'close'.
901
902 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
903
904         select, poll, isatty: Avoid warnings on x86_64 mingw64.
905         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
906         pointer to an integer.
907         * lib/poll.c (IsConsoleHandle): Likewise.
908         * lib/isatty.c (IsConsoleHandle): Likewise.
909
910 2012-01-28  Jim Meyering  <meyering@redhat.com>
911
912         doc: clarify README-release
913         * top/README-release: Clarify: you should make a point to have
914         the latest stable versions of build tools in your PATH, and the
915         reference to buildreq is solely for its list of tool names, not
916         for its minimal-functional version numbers.
917         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
918
919         maint.mk: use more readable (yet functionally equivalent) quoting
920         It is common to quote a single quote in a single quoted string like
921         this:  '...'\''...'.  Unless you know the idiom, that looks like
922         gibberish, so prefer to double-quote the string when possible.
923         Then you can use a more readable, lone single quote: "...'..."
924         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
925         "don't" is more readable than the equivalent 'don'\''t'.
926         (sc_cast_of_x_alloc_return_value): Likewise.
927         (sc_cast_of_alloca_return_value): Likewise.
928         (sc_makefile_path_separator_check): Similar: use ":" in '...',
929         rather than '\'':'\''.
930
931 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
932
933         stdalign: relax _Alignof and tighten _Alignas test
934         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
935         as it was too strict: alignof must divide offsetof, but it need
936         not equal offsetof.  Inspired by Joseph S. Myers's comment
937         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
938         Conversely, tighten the _Alignas test a bit, as the resulting
939         alignment must be exactly 8.
940
941 2012-01-27  Bruno Haible  <bruno@clisp.org>
942
943         stdalign: Document the last change.
944         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
945
946 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
947
948         stdalign: check that alignof and offsetof are consistent
949         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
950         Problem reported for gnulib by Richard W.M. Jones in
951         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
952
953 2012-01-27  Jim Meyering  <meyering@redhat.com>
954
955         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
956         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
957         convert a sequence with gaps to the minimal containing range.
958         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
959         * tests/test-update-copyright.sh: Test for this.
960         The FSF confirmed it is ok to do this, assuming there is at
961         least one significant change per year in the affected range:
962         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
963
964 2012-01-26  Bruno Haible  <bruno@clisp.org>
965
966         pipe2: refine doc about thread-safety
967         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
968         multithread-safety problem.
969         * doc/glibc-functions/accept4.texi: Likewise.
970
971 2012-01-26  Bruno Haible  <bruno@clisp.org>
972
973         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
974         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
975         In the test program, include <fcntl.h>, for O_RDONLY.
976
977 2012-01-26  Eric Blake  <eblake@redhat.com>
978
979         pipe2: document lack of thread-safety in replacement
980         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
981         issue in replacement.
982         * doc/glibc-functions/accept4.texi (accept4): Likewise.
983         Based on a report by Eric Wong.
984
985 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
986             Bruno Haible  <bruno@clisp.org>
987
988         malloca: Avoid warnings on x86_64 mingw64.
989         * lib/malloca.c: Include <stdint.h>.
990         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
991         * modules/malloca (Depends-on): Add stdint.
992         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
993
994 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
995
996         obstack: remove __STDC__ conditionals
997         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
998         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
999         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
1000         m4/include_next.m4 as the only gnulib-maintained places that still
1001         refer to __STDC__.
1002
1003 2012-01-24  Bruno Haible  <bruno@clisp.org>
1004
1005         havelib: Modern quoting.
1006         * build-aux/config.rpath: Quote 'like this', not `like this', as per
1007         the recent change to the GNU coding standards.
1008
1009 2012-01-24  Bruno Haible  <bruno@clisp.org>
1010
1011         stdint: Improve support for Android.
1012         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
1013         Reported by Simon Josefsson <simon@josefsson.org>.
1014
1015 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
1016
1017         doc: omit trailing empty lines from INSTALL etc.
1018         * doc/Makefile (INSTALL): Omit trailing empty lines.
1019         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
1020         omit trailing empty lines.  This simplifies the build procedure.
1021
1022 2012-01-23  Jim Meyering  <meyering@redhat.com>
1023
1024         tests: avoid spurious warnings about gl_sockets_startup
1025         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
1026         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
1027         reporting a "statement with no effect".
1028         * tests/test-accept.c (main): Mark as "(void)".
1029         * tests/test-accept4.c (main): Likewise.
1030         * tests/test-bind.c (main): Likewise.
1031         * tests/test-connect.c (main): Likewise.
1032         * tests/test-getpeername.c (main): Likewise.
1033         * tests/test-getsockname.c (main): Likewise.
1034         * tests/test-getsockopt.c (main): Likewise.
1035         * tests/test-listen.c (main): Likewise.
1036         * tests/test-recv.c (main): Likewise.
1037         * tests/test-recvfrom.c (main): Likewise.
1038         * tests/test-send.c (main): Likewise.
1039         * tests/test-sendto.c (main): Likewise.
1040         * tests/test-setsockopt.c (main): Likewise.
1041         * tests/test-shutdown.c (main): Likewise.
1042
1043 2012-01-21  Bruno Haible  <bruno@clisp.org>
1044
1045         locale-fr.m4: Fix for Android.
1046         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
1047         failure of the test program on Bionic libc.
1048
1049 2012-01-21  Jim Meyering  <meyering@redhat.com>
1050
1051         bootstrap: fail when bootstrap_post_import_hook fails
1052         Otherwise, it's far too easy to miss diagnostics emitted
1053         between gnulib-tool's output and that of running configure.
1054         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
1055
1056 2012-01-17  Jim Meyering  <meyering@redhat.com>
1057
1058         maint: enable sc_trailing_blank
1059         * build-aux/pmccabe.css: Remove trailing blanks.
1060         * doc/acl-cygwin.txt: Likewise.
1061         * doc/gnu-oids.texi: Likewise
1062         * cfg.mk: Enable sc_trailing_blank.
1063         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
1064
1065 2012-01-17  Jim Meyering  <meyering@redhat.com>
1066
1067         maint: enable sc_prohibit_openat_without_use
1068         * cfg.mk: Enable sc_prohibit_openat_without_use.
1069         Exempt lib/selinux-at.c.
1070
1071 2012-01-17  Jim Meyering  <meyering@redhat.com>
1072
1073         maint: enable sc_prohibit_cloexec_without_use
1074         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
1075         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
1076
1077 2012-01-17  Jim Meyering  <meyering@redhat.com>
1078
1079         maint: enable sc_prohibit_intprops_without_use
1080         * cfg.mk: Enable sc_prohibit_intprops_without_use
1081         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
1082
1083 2012-01-17  Jim Meyering  <meyering@redhat.com>
1084
1085         maint: enable sc_prohibit_hash_pjw_without_use
1086         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
1087         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
1088         to match any use of \<hash_pjw\>, i.e., not necessarily with a
1089         following " (".
1090
1091 2012-01-17  Jim Meyering  <meyering@redhat.com>
1092
1093         maint: enable double-word-prohibiting rule
1094         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
1095         Exempt three files.
1096
1097 2012-01-17  Jim Meyering  <meyering@redhat.com>
1098
1099         maint: remove empty lines at EOF, but excluding modules/*
1100         Apply syntax rules at home as well as abroad.  Most changes
1101         were induced by running this:
1102           make srcdir=. _build-aux=build-aux -f top/maint.mk \
1103             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
1104             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
1105         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
1106         Exempt modules/* and two binary files.
1107         Also exempt doc/INSTALL*, per request from Bruno Haible.
1108         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
1109         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
1110         * doc/Copyright/request-assign.future: Likewise.
1111         * doc/Copyright/request-disclaim.changes: Likewise.
1112         * doc/INSTALL: Likewise.
1113         * doc/INSTALL.ISO: Likewise.
1114         * doc/INSTALL.UTF-8: Likewise.
1115         * doc/acl-cygwin.txt: Likewise.
1116         * doc/acl-resources.txt: Likewise.
1117         * doc/fdl-1.2.texi: Likewise.
1118         * doc/fdl-1.3.texi: Likewise.
1119         * doc/fdl.texi: Likewise.
1120         * lib/argp-pin.c: Likewise.
1121         * lib/round.c: Likewise.
1122         * lib/unicase/u16-totitle.c: Likewise.
1123         * lib/unictype/block_test.c: Likewise.
1124         * lib/uninorm/canonical-decomposition.c: Likewise.
1125         * m4/README: Likewise.
1126         * m4/relocatable-lib.m4: Likewise.
1127         * tests/test-isnand-nolibm.c: Likewise.
1128         * tests/test-isnand.c: Likewise.
1129         * tests/uninorm/NormalizationTest.txt: Likewise.
1130
1131 2012-01-17  Jim Meyering  <meyering@redhat.com>
1132
1133         maint: add framework to run syntax-check rules against gnulib sources
1134         * cfg.mk: New file, to disable all currently-failing tests.
1135         We'll enable them one by one, as they are made to pass.
1136         * Makefile (sc_maint): New rule.
1137
1138 2012-01-21  Bruno Haible  <bruno@clisp.org>
1139
1140         stdint: Add support for Android.
1141         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
1142         include the system's <stdint.h>.
1143         Reported by Simon Josefsson <simon@josefsson.org>.
1144
1145 2012-01-19  Jim Meyering  <meyering@redhat.com>
1146
1147         bootstrap: add bootstrap_post_import_hook
1148         Bison does still need something like the gnulib_mk_hook whose
1149         invocation I had to remove along with slurp in commit 767ccd40.
1150         Technically, we could get along without it, but doing so would
1151         have required living with a warning and a mandatory post-bootstrap
1152         automake rerun.
1153         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
1154         (bootstrap_post_import_hook): New function.
1155         Invoke it after gnulib-tool --import and before autoreconf.
1156
1157 2012-01-18  Jim Meyering  <meyering@redhat.com>
1158
1159         gitlog-to-changelog: don't use "no_"-prefixed variable name
1160         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
1161         to enable both --cluster and --no-cluster.  Change variable name,
1162         s/\$no_cluster/$cluster/, and reverse usage to match.
1163
1164         gitlog-to-changelog: use "||", not "or" in expressions
1165         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
1166         expressions.
1167
1168 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
1169
1170         gitlog-to-changelog: new option --no-cluster
1171         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
1172         clustering of adjacent commit messages.
1173
1174 2012-01-17  Jim Meyering  <meyering@redhat.com>
1175
1176         maint: spell file systems with two words, not one
1177         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
1178         two words, not one.
1179
1180 2012-01-16  Jim Meyering  <meyering@redhat.com>
1181
1182         bootstrap: add a FIXME comment to ensure we eventually remove the hack
1183         * build-aux/bootstrap (gnulib_tool_options): Add comment.
1184
1185 2012-01-16  Eric Blake  <eblake@redhat.com>
1186
1187         bootstrap: cater to autoconf 2.59
1188         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
1189         is not available.
1190
1191         bootstrap: properly check for libtool
1192         * build-aux/bootstrap (libtoolize): Also run libtool when older
1193         usage is detected.
1194
1195 2012-01-15  Bruno Haible  <bruno@clisp.org>
1196
1197         Improve support for MSVC 9.
1198         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
1199         clashes on MSVC.
1200         * lib/fcntl.in.h: Likewise.
1201         * lib/stdlib.in.h: Likewise.
1202         * lib/sys_stat.in.h: Likewise.
1203
1204 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
1205
1206         gnupload: we hold the master copy of this script now
1207         For motivation and more information, see:
1208         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
1209         * build-aux/gnupload: Make it clear in the heading comments that the
1210         master copy of this file is maintained by gnulib.  Since we are at
1211         it, bump its copyright year and ...
1212         ($scriptversion): ... the date in its version.
1213         ($usage): Patches and bug reports should be sent to the gnulib list,
1214         not the automake one.
1215         * config/srclist.txt: Don't try to sync 'gnupload' from automake
1216         anymore.
1217
1218 2012-01-15  Bruno Haible  <bruno@clisp.org>
1219
1220         Fix module 'random'.
1221         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
1222         initstate, setstate are declared.
1223
1224 2012-01-14  Bruno Haible  <bruno@clisp.org>
1225
1226         Tests for module 'random'.
1227         * modules/random-tests: New file.
1228         * tests/test-random.c: New file, based on tests/test-random_r.c.
1229
1230         New module 'random'.
1231         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
1232         declarations.
1233         * lib/random.c: New file, based on glibc/stdlib/random.c.
1234         * m4/random.m4: New file.
1235         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
1236         HAVE_RANDOM.
1237         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
1238         * modules/random: New file.
1239         * config/srclist.txt: Add an entry for random.c.
1240         * doc/posix-functions/random.texi: Mention the 'random' module.
1241         * doc/posix-functions/initstate.texi: Likewise.
1242         * doc/posix-functions/setstate.texi: Likewise.
1243         * doc/posix-functions/srandom.texi: Likewise.
1244
1245 2012-01-12  Bruno Haible  <bruno@clisp.org>
1246
1247         random_r: Use common idioms.
1248         * lib/random_r.c: Include <stdlib.h> first.
1249
1250         random_r: Override incompatible API on AIX, OSF/1.
1251         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
1252         Override the system function if REPLACE_RANDOM_R is 1.
1253         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
1254         and OSF/1, set REPLACE_RANDOM_R.
1255         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
1256         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
1257         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
1258         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
1259         * doc/glibc-functions/random_r.texi: Likewise.
1260         * doc/glibc-functions/setstate_r.texi: Likewise.
1261
1262         random_r: Support for MSVC 9.
1263         * lib/random_r.c: Include stdint.h, not inttypes.h.
1264
1265 2012-01-12  Eric Blake  <eblake@redhat.com>
1266
1267         inet_ntop: guard extra work by IF_LINT
1268         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
1269         better code generation when not checking for warnings.
1270         Suggested by Paul Eggert and Jim Meyering.
1271
1272         strptime: fix regression on mingw
1273         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
1274         Fix regression.  Reported by Bruno Haible.
1275
1276 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
1277             Bruno Haible  <bruno@clisp.org>
1278
1279         copy-file: add error-code-returning variant.
1280         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
1281         (qcopy_file_preserving): New declaration.
1282         * lib/copy-file.c (qcopy_file_preserving): Renamed from
1283         copy_file_preserving. Change return type to 'int'. Don't emit an error
1284         message here.
1285         (copy_file_preserving): New function.
1286         * tests/test-copy-file.c: Include <stdlib.h>.
1287         (main): Test qcopy_file_preserving if the environment variable
1288         NO_STDERR_OUTPUT is set.
1289         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
1290         with NO_STDERR_OUTPUT
1291         * tests/test-copy-file-2.sh: Likewise.
1292
1293 2012-01-10  Bruno Haible  <bruno@clisp.org>
1294
1295         copy-file: Use 'quote' module consistently.
1296         * lib/copy-file.c (copy_file_preserving): Use quote().
1297
1298         copy-file: Refactor.
1299         * lib/copy-file.c: Include quote.h.
1300         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
1301         message here.
1302         * modules/copy-file (Depends-on): Add quote.
1303
1304         acl: Export qcopy_acl.
1305         * lib/acl.h (qcopy_acl): New declaration.
1306         * lib/copy-acl.c (qcopy_acl): Make non-static.
1307
1308         acl: Rename a local variable.
1309         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
1310
1311         acl: Align return values of copy_acl and qcopy_acl.
1312         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
1313         maybe < -1.
1314
1315 2012-01-11  Eric Blake  <eblake@redhat.com>
1316
1317         strptime: silence gcc warnings
1318         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
1319         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
1320         Reported by Daniel P. Berrange.
1321
1322         inet_ntop: silence gcc warning
1323         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
1324         Reported by Daniel P. Berrange.
1325
1326 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
1327
1328         getloadavg test: skip the test on GNU/Linux without /proc mounted
1329         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
1330         file.  When /proc is not mounted, it always fails with ENOENT.
1331         * tests/test-getloadavg.c (main): Treat ENOENT return code from
1332         getloadavg(3) the same way as ENOSYS and ENOTSUP.
1333
1334 2012-01-10  Bruno Haible  <bruno@clisp.org>
1335
1336         regex: Avoid link error on MSVC 9.
1337         * modules/regex (Depends-on): Add wctype.
1338
1339 2012-01-10  Bruno Haible  <bruno@clisp.org>
1340
1341         doc: Mention --with-tests option.
1342         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
1343         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
1344         --with-tests.
1345         Reported by Reuben Thomas.
1346
1347 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
1348
1349         users.txt: order package names lexicographically.
1350         * users.txt: Order package names lexicographically.
1351
1352 2012-01-10  Jim Meyering  <meyering@redhat.com>
1353
1354         maint.mk: fix description in comment
1355         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
1356
1357         ignore-value: remove deprecated ignore_ptr function
1358         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
1359         * NEWS: Note this.
1360
1361 2012-01-09  Jim Meyering  <meyering@redhat.com>
1362
1363         test-init.sh: avoid a subshell
1364         * tests/test-init.sh: Remove protective subshell.
1365         Suggested by Bernhard Voelker.  While a subshell is normally
1366         required to protect against older shells (Solaris, FreeBSD) that
1367         warn about a missing program before performing redirection, the
1368         shell-selection tests performed by init.sh probably exclude any
1369         offending shell.
1370
1371 2012-01-08  Bruno Haible  <bruno@clisp.org>
1372
1373         setlocale tests: Avoid test failure on Solaris 11 2011-11.
1374         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
1375         variable.
1376
1377 2012-01-08  Bruno Haible  <bruno@clisp.org>
1378
1379         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
1380         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
1381         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
1382         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
1383         macro.
1384         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
1385         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
1386         * lib/spawn_faction_addopen.c: Add workaround implementation if
1387         HAVE_WORKING_POSIX_SPAWN.
1388         * modules/spawn (Makefile): Substitute
1389         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
1390         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
1391         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
1392         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
1393         (Depends-on): Update conditions.
1394         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
1395         the Solaris 11 bug.
1396
1397 2012-01-08  Bruno Haible  <bruno@clisp.org>
1398
1399         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
1400         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
1401         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
1402         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
1403         macro.
1404         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
1405         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
1406         * lib/spawn_faction_adddup2.c: Add workaround implementation if
1407         HAVE_WORKING_POSIX_SPAWN.
1408         * modules/spawn (Makefile): Substitute
1409         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
1410         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
1411         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
1412         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
1413         (Depends-on): Update conditions.
1414         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
1415         the Solaris 11 bug.
1416
1417 2012-01-08  Bruno Haible  <bruno@clisp.org>
1418
1419         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
1420         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
1421         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
1422         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
1423         HAVE_WORKING_POSIX_SPAWN.
1424         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
1425         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
1426         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
1427         * lib/spawn_faction_addclose.c: Add workaround implementation if
1428         HAVE_WORKING_POSIX_SPAWN.
1429         * modules/spawn (Makefile): Substitute
1430         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
1431         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
1432         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
1433         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
1434         (Depends-on): Update conditions.
1435         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
1436         the Solaris 11 bug.
1437
1438 2012-01-08  Bruno Haible  <bruno@clisp.org>
1439
1440         doc: Update for Solaris 11 2011-11.
1441         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
1442         * m4/printf.m4: Update comments.
1443
1444 2012-01-08  Bruno Haible  <bruno@clisp.org>
1445
1446         mktime: Avoid compilation error on Solaris 11.
1447         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
1448
1449 2012-01-08  Bruno Haible  <bruno@clisp.org>
1450
1451         doc: Small fix.
1452         * doc/posix-headers/nl_types.texi: Correct platforms list.
1453
1454 2012-01-08  Simon Josefsson  <simon@josefsson.org>
1455
1456         Add lgpl-3.0 module.
1457         * MODULES.html.sh (Support for building documentation): Add
1458         lgpl-3.0.
1459         * modules/lgpl-3.0: New file.
1460
1461 2012-01-08  Jim Meyering  <meyering@redhat.com>
1462
1463         select.c: indent with spaces, not TABs
1464         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
1465
1466 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
1467
1468         quotearg: do not use grave accent for left quote
1469         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
1470         locale_quoting_style.
1471         (quotearg_buffer_restyled): Fix example.
1472         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
1473
1474 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
1475
1476         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
1477         Most programs do not have translation catalogs for English and much
1478         less separate catalogs for British and American English.  Drop the
1479         suggestion to translators about these two, and provide it
1480         automatically for Unicode locales.  Like most programs, even those
1481         using American English, we use single quotation marks.  This conflicts
1482         with the American typographic convention, but works better when you
1483         cite the entire error message within double quotes.  It also tries not
1484         to clash with established practice and with what non-gnulib programs
1485         will usually do.
1486         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
1487         using an UTF-8 or GB-18030 locale.  The list of other locales with
1488         quotes was provided by Bruno Haible.
1489         (quotearg_buffer_restyled): Adjust instructions to translators.
1490         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
1491         text, since this would be wrong when using Unicode.
1492         * modules/quotearg: Depend on c-strcaseeq.
1493
1494 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
1495
1496         quotearg: fix Wikipedia link
1497         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
1498
1499 2012-01-07  Simon Josefsson  <simon@josefsson.org>
1500
1501         Fix for mingw with MSVC9.
1502         * m4/ld-version-script.m4: Check that compiler rejects version
1503         scripts with syntax errors.  Reported by Bruno Haible
1504         <bruno@clisp.org>.
1505
1506 2012-01-06  Bruno Haible  <bruno@clisp.org>
1507
1508         Talk about "native Windows API", not "Woe32".
1509         * lib/accept4.c: Update comments to mention native Windows.
1510         * lib/execute.c: Likewise.
1511         * lib/fatal-signal.c: Likewise.
1512         * lib/localcharset.c: Likewise.
1513         * lib/nanosleep.c: Likewise.
1514         * lib/nl_langinfo.c: Likewise.
1515         * lib/pclose.c: Likewise.
1516         * lib/pipe-filter-gi.c: Likewise.
1517         * lib/pipe-filter-ii.c: Likewise.
1518         * lib/pipe.c: Likewise.
1519         * lib/pipe2.c: Likewise.
1520         * lib/popen.c: Likewise.
1521         * lib/progreloc.c: Likewise.
1522         * lib/relocatable.c: Likewise.
1523         * lib/sigaction.c: Likewise.
1524         * lib/sigprocmask.c: Likewise.
1525         * lib/spawn-pipe.h: Likewise.
1526         * lib/spawn-pipe.c: Likewise.
1527         * lib/spawni.c: Likewise.
1528         * lib/stat-time.h: Likewise.
1529         * lib/w32spawn.h: Likewise.
1530         * tests/test-isatty.c: Likewise.
1531         * lib/config.charset: More comments.
1532         * doc/gnulib-intro.texi: Mention native Windows.
1533         * doc/posix-functions/_Exit_C99.texi: Likewise.
1534         * doc/posix-headers/fcntl.texi: Likewise.
1535
1536 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
1537
1538         argp: Avoid crash if translator uses % characters in a translation.
1539         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
1540         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
1541
1542 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
1543
1544         doc: C11 and C++11 are now official
1545         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
1546         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
1547         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
1548         * modules/stdalign:
1549         Replace references to draft C1X to C11, and to draft C++0X to C++11.
1550
1551 2012-01-06  Bruno Haible  <bruno@clisp.org>
1552
1553         uc-is-grapheme-break tests: Tweak.
1554         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
1555         message.
1556
1557 2012-01-06  Bruno Haible  <bruno@clisp.org>
1558
1559         test-init.sh: correct the test for diff -u
1560         * tests/test-init.sh: Also redirect stdout to /dev/null.
1561
1562 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
1563
1564         Use ', not `, for quoting output.
1565         * build-aux/announce-gen (usage, sizes, print_news_deltas)
1566         (print_changelog_deltas, get_tool_versions, main program):
1567         * build-aux/git-version-gen:
1568         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
1569         * build-aux/move-if-change (help):
1570         * build-aux/useless-if-before-free (usage, main program):
1571         * check-module (parse_module_file, usage)
1572         (find_included_lib_files, check_module):
1573         * lib/argmatch.c (main) [TEST]:
1574         * lib/argp-help.c (_help):
1575         * lib/getopt1.c (main) [TEST]:
1576         * lib/git-merge-changelog.c (usage):
1577         * lib/xstrtol-error.c (xstrtol_error):
1578         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
1579         * m4/argz.m4 (gl_FUNC_ARGZ):
1580         * m4/bison.m4 (gl_BISON):
1581         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
1582         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
1583         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
1584         * m4/fpending.m4 (gl_PREREQ_FPENDING):
1585         * m4/gc-random.m4 (gl_GC_RANDOM):
1586         * m4/intl.m4 (gt_CHECK_DECL):
1587         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
1588         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
1589         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
1590         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
1591         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
1592         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
1593         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
1594         * tests/test-dirname.c (main):
1595         * tests/test-getpass.c (main):
1596         * tests/test-iconvme.c (main):
1597         * tests/test-parse-datetime.c (LOG):
1598         * tests/test-xstrtoimax.sh:
1599         * tests/test-xstrtol.sh:
1600         * tests/test-xstrtoll.sh:
1601         * tests/test-xstrtoumax.sh:
1602         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
1603         * top/GNUmakefile (abort-due-to-no-makefile):
1604         Quote 'like this', not `like this', as per the recent change to
1605         the GNU coding standards.
1606
1607 2012-01-05  Bruno Haible  <bruno@clisp.org>
1608
1609         strtoimax: Don't force a replacement on systems where intmax_t is int.
1610         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
1611         'intmax_t' is not larger than 'int'.
1612         Reported by Pádraig Brady <P@draigBrady.com>.
1613
1614 2012-01-05  Bruno Haible  <bruno@clisp.org>
1615
1616         doc: Mention NetBSD bugs.
1617         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
1618         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
1619
1620 2012-01-05  Bruno Haible  <bruno@clisp.org>
1621
1622         strtoumax tests: Enhance tests.
1623         * tests/test-strtoumax.c (main): Add tests for large values.
1624
1625 2012-01-05  Bruno Haible  <bruno@clisp.org>
1626
1627         strtoimax: Work around AIX 5.1 bug.
1628         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
1629         definition.
1630         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
1631         Set HAVE_STRTOIMAX.
1632         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
1633         REPLACE_STRTOIMAX.
1634         * modules/inttypes-incomplete (Makefile.am): Substitute
1635         REPLACE_STRTOIMAX.
1636         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
1637         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
1638         (Depends-on): Update conditions.
1639         * tests/test-strtoimax.c (main): Add tests for large values.
1640         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
1641
1642 2012-01-05  Bruno Haible  <bruno@clisp.org>
1643
1644         inttypes: Modernize.
1645         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
1646         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
1647         (Makefile.am): Update inttypes.h rule.
1648
1649 2012-01-05  Jim Meyering  <meyering@redhat.com>
1650
1651         init.sh: don't waste a subshell just to redirect stderr
1652         * tests/init.sh: In testing for diff -u and diff -c, use a
1653         stderr-redirecting exec inside `...` rather than a subshell.
1654
1655         test-init.sh: avoid failure on HP-UX 11.00
1656         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
1657         resolves to diff -c or cmp.  Reported by Bruno Haible.
1658
1659 2012-01-05  Bruno Haible  <bruno@clisp.org>
1660
1661         Tests for module 'strtoull'.
1662         * modules/strtoull-tests: New file.
1663         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
1664
1665 2012-01-05  Bruno Haible  <bruno@clisp.org>
1666
1667         Tests for module 'strtoll'.
1668         * modules/strtoll-tests: New file.
1669         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
1670
1671 2012-01-05  Bruno Haible  <bruno@clisp.org>
1672
1673         Tests for module 'strtoul'.
1674         * modules/strtoul-tests: New file.
1675         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
1676
1677 2012-01-05  Bruno Haible  <bruno@clisp.org>
1678
1679         Tests for module 'strtol'.
1680         * modules/strtol-tests: New file.
1681         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
1682
1683 2012-01-04  Jim Meyering  <meyering@redhat.com>
1684
1685         test-init.sh: accommodate Solaris 5.10's different diff -u output
1686         * tests/test-init.sh: Also exempt @@ lines from the comparison
1687         of diff output, since Solaris 5.10 and GNU diff formats differ.
1688         Reported by Stefano Lattarini.
1689
1690 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
1691
1692         test-posixtm: don't assume signed integer wraparound
1693         * tests/test-posixtm.c (main): Don't assume wraparound semantics
1694         after signed integer overflow.  Inspired by (though it may not
1695         fix) Bruno Haible's bug report in
1696         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
1697
1698         Spell out "Windows 9x" and "Windows XP".
1699         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
1700         "Windows 9x" and "WinXP" with "Windows XP".
1701
1702 2012-01-04  Jim Meyering  <meyering@redhat.com>
1703
1704         test-vc-list-files-cvs.sh: remove obsolete comment
1705         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
1706         double exit.  Now that's all encapsulated via skip_ and Exit.
1707
1708 2012-01-04  Bruno Haible  <bruno@clisp.org>
1709
1710         Talk about "native Windows API", not "Win32".
1711         * lib/classpath.c: Update comments to mention native Windows.
1712         * lib/csharpexec.c: Likewise.
1713         * lib/dup2.c: Likewise.
1714         * lib/error.c: Likewise.
1715         * lib/fcntl.c: Likewise.
1716         * lib/filename.h: Likewise.
1717         * lib/findprog.c: Likewise.
1718         * lib/get-rusage-as.c: Likewise.
1719         * lib/get-rusage-data.c: Likewise.
1720         * lib/getpagesize.c: Likewise.
1721         * lib/javaexec.c: Likewise.
1722         * lib/msvc-inval.c: Likewise.
1723         * lib/msvc-nothrow.c: Likewise.
1724         * lib/nanosleep.c: Likewise.
1725         * lib/nonblocking.c: Likewise.
1726         * lib/printf-parse.c: Likewise.
1727         * lib/setlocale.c: Likewise.
1728         * lib/sigaction.c: Likewise.
1729         * lib/strerror_r.c: Likewise.
1730         * lib/tmpdir.c: Likewise.
1731         * lib/vasnprintf.c: Likewise.
1732         * lib/w32spawn.h: Likewise.
1733         * lib/waitpid.c: Likewise.
1734         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
1735         * m4/locale-ar.m4: Likewise.
1736         * m4/locale-fr.m4: Likewise.
1737         * m4/locale-ja.m4: Likewise.
1738         * m4/locale-tr.m4: Likewise.
1739         * m4/locale-zh.m4: Likewise.
1740         * m4/printf.m4: Likewise.
1741         * tests/test-cloexec.c: Likewise.
1742         * tests/test-copy-acl.sh: Likewise.
1743         * tests/test-copy-file.sh: Likewise.
1744         * tests/test-file-has-acl.sh: Likewise.
1745         * tests/test-set-mode-acl.sh: Likewise.
1746         * tests/test-dup-safer.c: Likewise.
1747         * tests/test-dup2.c: Likewise.
1748         * tests/test-dup3.c: Likewise.
1749         * tests/test-fcntl.c: Likewise.
1750         * tests/test-nonblocking-pipe.h: Likewise.
1751         * tests/test-nonblocking-socket.h: Likewise.
1752         * tests/test-pipe.c: Likewise.
1753         * tests/test-pipe2.c: Likewise.
1754         * tests/test-spawn-pipe-child.c: Likewise.
1755         * doc/acl-resources.txt: Likewise.
1756         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
1757         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
1758         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
1759         * lib/localcharset.c: Update comments to mention native Windows.
1760         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
1761         * lib/localename.c: Likewise.
1762         * lib/progreloc.c: Likewise.
1763         * lib/relocatable.c: Likewise.
1764         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
1765         (windows_compute_revents): Renamed from win32_compute_revents.
1766         (windows_compute_revents_socket): Renamed from
1767         win32_compute_revents_socket.
1768         * lib/select.c: Update comments to mention native Windows.
1769         (windows_poll_handle): Renamed from win32_poll_handle.
1770         * m4/threadlib.m4: Update comments to mention native Windows.
1771         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
1772         --enable-threads=windows instead of --enable-threads=win32. Set
1773         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
1774         * lib/glthread/lock.h: Update comments to mention native Windows.
1775         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
1776         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
1777         USE_WIN32_THREADS.
1778         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
1779         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
1780         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
1781         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
1782         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
1783         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
1784         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
1785         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
1786         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
1787         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
1788         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
1789         * tests/test-tls.c: Likewise.
1790         Rationale:
1791         Microsoft renamed the "Win32 API" to "Windows API", as it is available
1792         on both 32-bit and 64-bit Windows systems.
1793         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
1794         line of distinction is between "native Windows" on one side and Unix/
1795         POSIX systems on the other side. More details in
1796         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
1797         Suggested by Paul Eggert.
1798
1799 2012-01-03  Bruno Haible  <bruno@clisp.org>
1800
1801         isatty: Support for MSVC 9.
1802         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
1803         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
1804         (_isatty_nothrow): New function.
1805         (isatty): Use it instead of _isatty.
1806         (IsConsoleHandle): Add comment, from Paolo Bonzini.
1807         * lib/poll.c (IsConsoleHandle): Likewise.
1808         * lib/select.c (IsConsoleHandle): Likewise.
1809         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
1810         (gl_PREREQ_ISATTY): New macro.
1811         * modules/isatty (Depends-on): Add msvc-inval.
1812         (configure.ac): Invoke gl_PREREQ_ISATTY.
1813
1814 2012-01-03  Jim Meyering  <meyering@redhat.com>
1815
1816         maint.mk: remove temporary transition aid from over 1.5 years ago
1817         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
1818         purpose was to aid in the transition (avoiding silent malfunction)
1819         from that old name to the new _sc_search_regexp.  This shim was
1820         added by commit 219c504b.
1821
1822         init.sh: do not try to accommodate compare arguments starting with "-"
1823         * tests/init.sh (compare_dev_null_): Do not try to accommodate
1824         compare arguments that start with "-".  Besides, we do not worry
1825         about this when invoking diff or cmp; why start now with sed?
1826         Using "--" to separate options from argument would trigger sed
1827         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
1828         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
1829
1830 2012-01-02  Bruno Haible  <bruno@clisp.org>
1831
1832         Enhance tests for module 'isatty'.
1833         * modules/isatty-tests (Depends-on): Add pipe-posix.
1834         * tests/test-isatty.c: Include <fcntl.h>.
1835         (DEV_NULL): New macro.
1836         (main): Test the resut of isatty() also on regular files, pipes, and
1837         /dev/null.
1838
1839         New module 'isatty'.
1840         * lib/unistd.in.h (isatty): New declaration.
1841         * lib/isatty.c: New file, based on an idea of
1842         Bastien Roucariès <roucaries.bastien@gmail.com>.
1843         * m4/isatty.m4: New file.
1844         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
1845         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
1846         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
1847         REPLACE_ISATTY.
1848         * modules/isatty: New file.
1849         * doc/posix-functions/isatty.texi: Mention the new module.
1850         Suggested by Paolo Bonzini.
1851
1852 2012-01-02  Bruno Haible  <bruno@clisp.org>
1853
1854         canonicalize: Tweak 2011-12-29 commit.
1855         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
1856         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
1857
1858 2012-01-02  Jim Meyering  <meyering@redhat.com>
1859
1860         gitlog-to-changelog: describe input syntax in --help output
1861         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
1862
1863         gitlog-to-changelog: fix typo in --help: show backslash before email @
1864         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
1865         in sources, but not in actual output.
1866
1867 2011-12-30  Jim Meyering  <meyering@redhat.com>
1868
1869         gitlog-to-changelog: don't malfunction when name contains %-directive
1870         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
1871         in a name string cause trouble.  E.g., with a user name of "%s",
1872         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
1873
1874 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
1875
1876         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
1877         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
1878         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
1879         the "  (tiny change)" notation that is appended to the standard
1880         ChangeLog "date  name  email" header line.
1881
1882 2012-01-01  Jim Meyering  <meyering@redhat.com>
1883
1884         test-framework-sh: init.sh: fix "make dist" failure
1885         When using gnulib-tool's --with-tests option and any module that
1886         depends on test-framework-sh, "make dist" would fail due to the
1887         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
1888         in the gltests directory, and not in the gllib/ directory.
1889         One way to work around that is to move the EXTRA_DIST += init.sh
1890         from the primary module to the -tests one:
1891         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
1892         * modules/test-framework-sh (Makefile.am): ...not here.
1893         Reported by Tom G. Christensen in
1894         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
1895
1896         version-etc: update copyright year reported by --version
1897         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
1898
1899 2011-12-31  Pádraig Brady  <P@draigBrady.com>
1900
1901         canonicalize: only stat() if required
1902         * lib/canonicalize.c (canonicalize_filename_mode):
1903         Avoid calling l?stat() when both CAN_MISSING,
1904         and CAN_NOLINKS are set, as we neither need
1905         to resolve symlinks or test component existence.
1906
1907 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
1908
1909         doc: cover st_ino issues once; add OpenVMS etc.
1910         * doc/posix-functions/stat.texi (stat):
1911         * doc/posix-functions/lstat.texi (lstat):
1912         * doc/posix-functions/fstatat.texi (fstatat):
1913         * doc/posix-functions/fstat.texi (fstat):
1914         Move general 'struct stat' stuff to sys_stat.texi,
1915         leaving behind a pointer.
1916         * doc/posix-headers/sys_stat.texi (sys/stat.h):
1917         Merge duplicate info about 'struct stat' problems into here.
1918         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
1919         and suggest partial workarounds.
1920
1921         same-inode: port to OpenVMS
1922         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
1923         three st_ino values.
1924
1925 2011-12-30  Pádraig Brady  <P@draigBrady.com>
1926
1927         canonicalize: fix references to stat() and lstat()
1928         * lib/canonicalize.c (canonicalize_filename_mode):
1929         Ensure references always resolve to a replacement
1930         function if required (even via a macro).
1931
1932 2011-12-30  Jim Meyering  <meyering@redhat.com>
1933
1934         gitlog-to-changelog: remove a little duplication
1935         * build-aux/gitlog-to-changelog (main): Grep @lines once,
1936         rather than twice.
1937
1938 2011-12-29  Pádraig Brady  <P@draigBrady.com>
1939
1940         canonicalize: add support for not resolving symlinks
1941         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
1942         indicate we don't want to follow symlinks.  Also
1943         provide CAN_MODE_MASK to aid setting these existing
1944         mutually exclusive values.
1945         * lib/canonicalize.c (canonicalize_filename_mode):
1946         Extract the flags from can_mode parameter, which
1947         are currently just used to select between stat()
1948         and lstat().  Also ensure that mutually exclusive
1949         values are flagged immediately as invalid.
1950         * tests/test-canonicalize.c: Verify symlinks are
1951         not followed, and that invalid flag combinations
1952         are diagnosed.
1953
1954 2011-12-25  Jim Meyering  <meyering@redhat.com>
1955
1956         gitlog-to-changelog: do not clump multi-paragraph entries
1957         Identical header lines (date,name,email+coauthors) are suppressed,
1958         thus putting all entries with those same characteristics under
1959         a single header.  However, when a log entry consists of two or
1960         more paragraphs, it may not be clear where it starts and ends.
1961         This change makes it so that such an entry is always separated
1962         from others by a header line, even when that header would
1963         otherwise be suppressed.
1964         * build-aux/gitlog-to-changelog: Implement the above.
1965         Inspired by a related request from Stefano Lattarini in
1966         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
1967
1968 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
1969
1970         announce-gen: fix `cmd' typo in diagnostic
1971         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
1972         diagnostic: a missing '$' meant that the command was not output.
1973
1974 2011-12-23  Jim Meyering  <meyering@redhat.com>
1975
1976         test-framework-sh: distribute init.sh
1977         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
1978         Otherwise, "make -C gnulib-tests check" (at least in grep) would
1979         fail due to the lack of init.sh.
1980
1981         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
1982         * modules/atexit-tests: Rather than listing tests/init.sh,
1983         now that there's a module for it, simply depend on that new module.
1984         * modules/closein-tests: Likewise.
1985         * modules/exclude-tests: Likewise.
1986         * modules/getcwd-tests: Likewise.
1987         * modules/perror-tests: Likewise.
1988         * modules/pread-tests: Likewise.
1989         * modules/pwrite-tests: Likewise.
1990         * modules/vc-list-files-tests: Likewise.
1991         * modules/verify-tests: Likewise.
1992         * modules/xalloc-die-tests: Likewise.
1993         * modules/xstrtoimax-tests: Likewise.
1994         * modules/xstrtol-tests: Likewise.
1995         * modules/xstrtoll-tests: Likewise.
1996         * modules/xstrtoumax-tests: Likewise.
1997         * modules/yesno-tests: Likewise.
1998
1999 2011-12-22  Jim Meyering  <meyering@redhat.com>
2000
2001         test-framework-sh: add minimal tests of init.sh's compare function
2002         * modules/test-framework-sh-tests: New file.
2003         * tests/test-init.sh: New file.
2004
2005         test-framework-sh: new module
2006         * modules/test-framework-sh: New file.
2007         * MODULES.html.sh (Support for maintaining and releasing projects):
2008         List it.
2009
2010         init.sh: do not emit simulated diff output to stderr
2011         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
2012
2013 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
2014
2015         .gitignore: ignore gnulib.dvi and regex.info
2016         * doc/.gitignore:add gnulib.dvi and regex.info
2017
2018 2011-12-22  Jim Meyering  <meyering@redhat.com>
2019
2020         init.sh: correct previous change
2021         * tests/init.sh (compare): My previous change was wrong.
2022         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
2023
2024         init.sh: avoid unwarranted test failure when using "set -e"
2025         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
2026         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
2027         a use like "compare exp out" would get evoke an unconditional failure.
2028
2029 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
2030
2031         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
2032         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
2033         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
2034         autoreconf that did not.
2035         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
2036         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
2037
2038 2011-12-17  Jim Meyering  <meyering@redhat.com>
2039
2040         bootstrap: remove some now-unneeded code
2041         This script arose back when gnulib-tool was young.
2042         Since then, it has seen improvements that render much of this
2043         script unnecessary.  In particular, it can now make symlinks
2044         to the files it uses.  Also, I no longer see as much value in
2045         marking files as read-only via comments.
2046         If you relied on the symlink-creation feature of the preceding
2047         version of this script, you can get most of that functionality
2048         by adding the --symlink option to the definition of
2049         gnulib_tool_option_extras in your bootstrap.conf file.
2050         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
2051         Run autopoint and libtoolize *before* gnulib-tool.
2052         After it, run an abbreviated autoreconf, rather than a loop around
2053         all tools.
2054         (slirp, bt_mark_as_generated): Remove functions.
2055
2056 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
2057
2058         ftoastr: fix typo
2059         * lib/ftoastr.h: Fix misspelling in comment.
2060
2061 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
2062
2063         * top/README-release: fix punctuation.
2064
2065 2011-12-17  Jim Meyering  <meyering@redhat.com>
2066
2067         bootstrap: correct the recent buildreq change
2068         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
2069         had no effect.
2070         * build-aux/bootstrap (buildreq): Bracket each search term with
2071         "*...*", so that the shell "case" statement works as intended.
2072         Add comments.
2073
2074 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
2075
2076         build: let bootstrap resort to wget when downloading .po files
2077         * build-aux/bootstrap (download_po_files): Fallback to wget when
2078         downloading the .po files via rsync fails.  This is necessary to
2079         bootstrap from behind a strict firewall.
2080
2081 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
2082
2083         stdint: don't assume C++11 when compiling with g++
2084         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
2085         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
2086         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
2087         work also in C++ before C++11, as that improperly inhibits
2088         generating a substitute stdint.h for that case.
2089
2090 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
2091
2092         alloca: protect comment from gnulib-tool
2093         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
2094         that gnulib-tool doesn't think it's a license, and munge it to
2095         say "GCC version 3".
2096
2097 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
2098
2099         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
2100         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
2101         $(abs_top_builddir) instead of $(top_builddir).
2102
2103 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
2104
2105         strftime-tests: also test nanoseconds
2106         * tests/test-strftime.c (T): Add a test of %N.
2107
2108 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
2109
2110         inttypes, stdint: add C++11 support
2111         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
2112         when including inttypes.h and stdint.h.  Support this change to
2113         the standard.
2114         * doc/posix-headers/inttypes.texi (inttypes.h):
2115         * doc/posix-headers/stdint.texi (stdint.h): Document this.
2116         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
2117         Define if not defined already, for the benefit of pre-C++11 hosts.
2118         Define the standard format macros (e.g., PRId8) always.
2119         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
2120         Likewise, if __cpluspus.  Define the standard constant and limit
2121         macros (e.g., INT8_C, INT8_MAX) always.
2122         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
2123         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
2124         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
2125         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
2126         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
2127         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
2128         Likewise.
2129
2130 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
2131
2132         nonblocking tests: Fix test failure on Linux/PPC.
2133         Suggested by Prerna Saxena in
2134         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
2135         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
2136         Set to 1100000.
2137
2138 2011-12-12  Jim Meyering  <meyering@redhat.com>
2139
2140         argmatch: don't hard-code `' when listing valid option arguments
2141         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
2142         use the quote function to add quotes.  Use fputs rather than
2143         fprintf for the format string with no format directive.
2144
2145 2011-12-07  Eric Blake  <eblake@redhat.com>
2146
2147         bootstrap: detect tools required by gnulib-tool
2148         * build-aux/bootstrap (buildreq): Provide minimum implicit
2149         dependencies.
2150         * DEPENDENCIES: Mention patch as a prereq.
2151
2152 2011-12-04  Bruno Haible  <bruno@clisp.org>
2153
2154         sethostname: Port to Windows platforms.
2155         * lib/sethostname.c: Provide an alternate implementation for Windows
2156         platforms.
2157         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
2158         (main): Skip the test if sethostname() fails with EPERM. On Windows
2159         platforms, don't check the result of gethostname().
2160
2161 2011-12-04  Bruno Haible  <bruno@clisp.org>
2162             Jim Meyering  <meyering@redhat.com>
2163
2164         tests: Avoid spurious error message on platforms without mktemp program.
2165         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
2166
2167 2011-12-04  Bruno Haible  <bruno@clisp.org>
2168
2169         sethostname: Fix documentation.
2170         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
2171         "not fixed" section.
2172
2173 2011-12-03  Bruno Haible  <bruno@clisp.org>
2174
2175         gnulib-tool: Verify that the License field is present and non-empty.
2176         * gnulib-tool (func_get_license_raw): New function, extracted from
2177         func_get_license.
2178         (func_get_license): Use it. Warn if the module is not a test module and
2179         has no license.
2180         Suggested by Jim Meyering.
2181
2182 2011-12-03  Bruno Haible  <bruno@clisp.org>
2183
2184         sethostname tests: Fix link error on mingw.
2185         * tests/test-sethostname1.c: New file, extracted from
2186         tests/test-sethostname.c.
2187         * tests/test-sethostname2.c: New file, extracted from
2188         tests/test-sethostname.c.
2189         * tests/test-sethostname.c: Remove file.
2190         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
2191         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
2192         (Depends-on): Add gethostname.
2193         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
2194         Link the latter with $(GETHOSTNAME_LIB).
2195
2196         sethostname tests: Fix compilation error on mingw.
2197         * tests/test-sethostname.c: Don't include <sys/types.h>.
2198         (geteuid): Use a dummy value without uid_t.
2199         * modules/sethostname-tests (Depends-on): Remove sys_types.
2200
2201         sethostname tests: Avoid a gcc warning.
2202         * tests/test-sethostname.c (main): Remove an unused variable.
2203
2204         Tweak last commit.
2205         * modules/sethostname-tests (Files): Sort by decreasing importance.
2206         (configure.ac): Check for geteuid.
2207         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
2208         the test when there's nothing to test. Drop an unnecessary cast.
2209         Improve an error message. Verify that the final sethostname() call
2210         succeeds.
2211
2212 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
2213
2214         Add a test suite for the sethostname module.
2215         * modules/sethostname-tests: New file.  A test program
2216         for the sethostname module.
2217         * tests/test-sethostname.c: Likewise.
2218
2219 2011-12-03  Bruno Haible  <bruno@clisp.org>
2220
2221         Tweak last commit.
2222         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
2223         Fix preprocessor directives indentation. Fix typos.
2224         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
2225         * modules/unistd (Makefile): Likewise.
2226
2227 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
2228
2229         Integrate the sethostname module into unistd.
2230         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
2231         into the unistd.h header.
2232         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
2233         preprocessor directives.
2234         * modules/unistd: Setup the Makefile substitutions of the
2235         SETHOSTNAME preprocessor directives.
2236
2237 2011-12-03  Bruno Haible  <bruno@clisp.org>
2238
2239         Tweak last commit.
2240         * lib/sethostname.c: Don't include <string.h>.
2241         (sethostname): No need to copy the argument string to the stack. Don't
2242         call clearerr. Preserve errno when fprintf failed.
2243         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
2244         Don't invoke AC_REPLACE_FUNCS.
2245         * modules/sethostname (Link): Remove empty section.
2246         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
2247         failure problem.
2248
2249 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
2250
2251         New module 'sethostname'.
2252         * lib/sethostname.c (sethostname): New file.  Provide sethostname
2253         for systems that lack it.
2254         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
2255         sethostname declaration and function.
2256         * modules/sethostname: New file.  Define the sethostname module.
2257
2258 2011-12-03  Bruno Haible  <bruno@clisp.org>
2259
2260         Tweak last commit.
2261         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
2262
2263 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
2264
2265         Split the HOST_NAME_MAX detection into a separate m4 macro.
2266         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
2267         macro so it can be used by the pending sethostname module.
2268
2269 2011-12-03  Bruno Haible  <bruno@clisp.org>
2270
2271         Fix module descriptions syntax.
2272         * modules/argv-iter (License): Fix syntax.
2273         * modules/di-set (License): Likewise.
2274         * modules/ino-map (License): Likewise.
2275         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
2276
2277 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
2278
2279         stdalign: port to Clang 3.0
2280         Problem reported by Simon Josefsson in
2281         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
2282         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
2283         which has <stdalign.h> but which does not define alignof.
2284         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
2285
2286 2011-12-01  Eric Blake  <eblake@redhat.com>
2287
2288         mktempd: silence dd usage
2289         * build-aux/mktempd (rand_bytes): Silence dd.
2290
2291 2011-11-30  Simon Josefsson  <simon@josefsson.org>
2292
2293         manywarnings: Don't mention gcc version in docstring.
2294         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
2295         Jim Meyering <meyering@redhat.com>.
2296
2297 2011-11-30  Jim Meyering  <meyering@redhat.com>
2298
2299         hash: mark a few floating point constants with "f" suffix
2300         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
2301         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
2302         floating point constants with "f", since they're destined to be
2303         saved/used as "float"s.
2304
2305 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
2306
2307         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
2308         * tests/test-float.c (test_long_double): Correct and re-enable the
2309         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
2310
2311 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
2312
2313         Avoid subtracting two pointers that don't point into the same block.
2314         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
2315         only pointers into the same memory block are subtracted. We cannot
2316         assume that sizeof (ptrdiff_t) == sizeof (void *).
2317
2318 2011-11-29  Eric Blake  <eblake@redhat.com>
2319
2320         maint.mk: add syntax check for use of compare from init.sh
2321         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
2322         moved here from coreutils.
2323
2324         manywarnings: drop -Wunsuffixed-float-constants
2325         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
2326         '1.0D', which is the only way to silence this warning for 'double'.
2327
2328 2011-11-29  Jim Meyering  <meyering@redhat.com>
2329
2330         hash: mark compute_bucket_size with the pure attribute
2331         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
2332
2333         quotearg, propername: correct pragma guard expression
2334         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
2335         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
2336
2337 2011-11-28  Jim Meyering  <meyering@redhat.com>
2338
2339         propername: do not mark proper_name with the const attribute
2340         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
2341         since it examines data pointed to by its parameter.
2342         * lib/propername.c (proper_name): Instead, add a pragma to suppress
2343         the suggestion from -Wsuggest-attribute=const.
2344
2345         propername: mark one more function as const
2346         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
2347
2348 2011-11-27  Jim Meyering  <meyering@redhat.com>
2349
2350         mark functions with const and pure attributes
2351
2352         Mark functions per suggestions from gcc-4.6 when using these options:
2353         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
2354         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
2355         Follow these guidelines: when possible, apply the attribute to
2356         an extern declaration, not to its definition.  Apply it to the
2357         definition only when the definition is static.
2358         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
2359         * lib/argv-iter.h (argv_iter_n_args): Likewise.
2360         * lib/base64.h (isbase64): Likewise.
2361         * lib/basename-lgpl.c (last_component, base_len): Likewise.
2362         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
2363         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
2364         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
2365         (c_tolower, c_toupper): Likewise.
2366         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
2367         * lib/chdir-long.c (find_non_slash): Likewise.
2368         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
2369         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
2370         * lib/file-type.h (file_type): Likewise.
2371         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
2372         * lib/filevercmp.c (verrevcmp): Likewise.
2373         * lib/freadahead.h (freadahead): Likewise.
2374         * lib/fts.c (fts_maxarglen): Likewise.
2375         * lib/hash-pjw.h (hash_pjw): Likewise.
2376         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
2377         * lib/hash.c (is_prime, next_prime): Likewise.
2378         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
2379         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
2380         (hash_table_ok, hash_get_first, hash_string): Likewise.
2381         (compute_bucket_size): Likewise.
2382         * lib/i-ring.h (i_ring_empty): Likewise.
2383         * lib/isnan.c (isnanl): Likewise.
2384         * lib/math.h (isnanl, rpl_isnanl): Likewise.
2385         * lib/memcasecmp.h (memcasecmp): Likewise.
2386         * lib/memchr2.h (memchr2): Likewise.
2387         * lib/memcmp2.h (memcmp2): Likewise.
2388         * lib/parse-datetime.y (lookup_zone): Likewise.
2389         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
2390         [!WINDOWS_SOCKETS]: Likewise.
2391         * lib/strnlen1.h (strnlen1): Likewise.
2392         * lib/uniwidth.in.h (uc_width): Likewise.
2393         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
2394         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
2395         (quoting_options_from_style): Add a comment.
2396         * lib/propername.h (proper_name): Add a comment.
2397
2398 2011-11-27  Bruno Haible  <bruno@clisp.org>
2399
2400         Remove unused macros from !_LIBC code in glibc-borrowed files.
2401         * lib/fnmatch.c (STRCOLL): Remove macro.
2402         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
2403         * lib/glob.c (__stat, __readdir64): Remove macros.
2404         * lib/tempname.c (__open64, __xstat64): Remove macros.
2405         Suggested by Paul Eggert.
2406
2407 2011-11-27  Bruno Haible  <bruno@clisp.org>
2408
2409         getcwd: Fix link error on MSVC 9.
2410         * modules/getcwd (Depends-on): Add readdir, rewinddir.
2411
2412 2011-11-27  Bruno Haible  <bruno@clisp.org>
2413
2414         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
2415         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
2416         HAVE_OPENDIR is 0.
2417         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
2418         HAVE_CLOSEDIR is 0.
2419         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
2420         is 0.
2421         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
2422
2423 2011-11-27  Bruno Haible  <bruno@clisp.org>
2424
2425         getcwd: Fix bug from 2011-08-17.
2426         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
2427         platforms that need it.
2428         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
2429         code of 4 to be a failure, not a success. This ensures that
2430         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
2431
2432 2011-11-27  Bruno Haible  <bruno@clisp.org>
2433
2434         binary-io tests: Avoid test failure on mingw when libtool is used.
2435         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
2436         Don't verify the size of t-bin-out1.tmp here.
2437         * tests/test-binary-io.sh: Verify it here.
2438         Reported by Simon Josefsson.
2439
2440 2011-11-26  Bruno Haible  <bruno@clisp.org>
2441
2442         Fix conflict between two instantiations of module 'unistd'.
2443         * gnulib-tool (func_emit_autoconf_snippet): Substitute
2444         ${include_guard_prefix} also in the autoconf snippet.
2445         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
2446         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
2447         GNULIB_UNISTD_H_GETOPT.
2448         * modules/getopt-posix (configure.ac): Set the
2449         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
2450         * modules/getopt-gnu (configure.ac): Likewise.
2451         * modules/unistd (Makefile.am): Change the substitution value of
2452         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
2453         Reported by Simon Josefsson.
2454
2455 2011-11-25  Bruno Haible  <bruno@clisp.org>
2456
2457         pagealign_alloc: Doc and comments.
2458         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
2459         module.
2460         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
2461
2462 2011-11-25  Jim Meyering  <meyering@redhat.com>
2463
2464         test-update-copyright.sh: avoid false-positive failure
2465         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
2466         around false positive failure on Cygwin/Windows.  The latter was
2467         matching erroneously-created files with names like
2468         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
2469
2470 2011-11-25  Simon Josefsson  <simon@josefsson.org>
2471
2472         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
2473         * m4/valgrind-tests.m4: Check that the parameters that will be
2474         used works, not just a subset of them.  Reported by Bruno Haible
2475         <bruno@clisp.org>.
2476
2477 2011-11-24  Jim Meyering  <meyering@redhat.com>
2478
2479         test-stdalign.c: comment out long double tests
2480         * tests/test-stdalign.c: Don't try to reduce alignment of long double
2481         variables.  That provokes errors like this from gcc-4.7.0 20111124:
2482         error: '_Alignas' specifiers cannot reduce alignment of \
2483         'static_longdouble_alignas'.
2484
2485 2011-11-22  Jim Meyering  <meyering@redhat.com>
2486
2487         init.sh: make "compare /dev/null FILE" output more readable
2488         * tests/init.sh (compare_): Document the preferred order of arguments.
2489         (emit_diff_u_header_): New function.
2490         (compare_dev_null_): Emit a simulated diff, rather than just the
2491         contents of the unexpected file.  Suggestion from Bruno Haible.
2492
2493 2011-11-21  Jim Meyering  <meyering@redhat.com>
2494             Eric Blake  <eblake@redhat.com>
2495
2496         init.sh: work around OSF/1 5.1's mishandling of /dev/null
2497         * tests/init.sh: Make our compare function slightly more portable.
2498         Reported by Bruno Haible in
2499         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
2500
2501 2011-11-21  Simon Josefsson  <simon@josefsson.org>
2502
2503         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
2504         before using it, in code that ends up in config.h.
2505
2506 2011-11-20  Bruno Haible  <bruno@clisp.org>
2507
2508         getcwd: Work around getcwd bug on AIX 5..7.
2509         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
2510         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
2511         Use a different value for gl_cv_func_getcwd_path_max. Move the
2512         definition of HAVE_PARTLY_WORKING_GETCWD from here...
2513         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
2514         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
2515         Define HAVE_MINIMALLY_WORKING_GETCWD.
2516         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
2517         where it is not even minimally working, that is, on AIX.
2518         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
2519         m4/getcwd-path-max.m4.
2520         (main): Update exit code computation.
2521         * doc/posix-functions/getcwd.texi: Mention list of platforms where
2522         getcwd does not handle long file names.
2523
2524 2011-11-20  Bruno Haible  <bruno@clisp.org>
2525
2526         getcwd: Fix bug from 2009-09-10.
2527         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
2528         like "no".
2529
2530 2011-11-20  Simon Josefsson  <simon@josefsson.org>
2531
2532         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
2533
2534 2011-11-20  Bruno Haible  <bruno@clisp.org>
2535
2536         fma tests: Avoid shadowing local variables.
2537         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
2538         expected.
2539
2540 2011-11-20  Bruno Haible  <bruno@clisp.org>
2541
2542         copysignf tests: Fix.
2543         * tests/test-copysignf.c: Fix signature check.
2544
2545 2011-11-20  Bruno Haible  <bruno@clisp.org>
2546
2547         fma: Remove unused code.
2548         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
2549         unused macros.
2550
2551 2011-11-20  Bruno Haible  <bruno@clisp.org>
2552
2553         sethostname: Fix doc about AIX.
2554         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
2555         sethostname; it has it.
2556
2557         sethostname: Mention more portability problems.
2558         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
2559         problem.
2560         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
2561
2562 2011-11-19  Bruno Haible  <bruno@clisp.org>
2563
2564         Depend on module fcntl-h when AT_FDCWD is used.
2565         * modules/utimens (Depends-on): Add fcntl-h.
2566         * modules/areadlinkat (Depends-on): Likewise.
2567         * modules/areadlinkat-with-size (Depends-on): Likewise.
2568         * modules/faccessat (Depends-on): Likewise.
2569         * modules/fchmodat (Depends-on): Likewise.
2570         * modules/fchownat (Depends-on): Likewise.
2571         * modules/getcwd (Depends-on): Likewise.
2572         * modules/mkdirat (Depends-on): Likewise.
2573         * modules/mkfifoat (Depends-on): Likewise.
2574         * modules/readlinkat (Depends-on): Likewise.
2575         * modules/symlinkat (Depends-on): Likewise.
2576         * modules/dup2-tests (Depends-on): Likewise.
2577         * modules/fdutimensat-tests (Depends-on): Likewise.
2578         * modules/futimens-tests (Depends-on): Likewise.
2579
2580 2011-11-19  Bruno Haible  <bruno@clisp.org>
2581
2582         euidaccess: Update a comment.
2583         * lib/euidaccess.c: Update comment about platforms with faccessat.
2584
2585 2011-11-19  Bruno Haible  <bruno@clisp.org>
2586
2587         openat: Fix file list.
2588         * modules/openat (Files): Remove lib/at-func.c.
2589
2590 2011-11-19  Bruno Haible  <bruno@clisp.org>
2591
2592         fstatat: Simplify.
2593         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
2594         gnulib should define rpl_fstatat, there is a
2595         "#define fstatat rpl_fstatat" in <sys/stat.h>.
2596
2597 2011-11-19  Bruno Haible  <bruno@clisp.org>
2598
2599         Ensure 'inline' can be used in tests/test-utimens-common.h.
2600         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
2601         * modules/futimens-tests (configure.ac): Likewise.
2602         * modules/utimens-tests (configure.ac): Likewise.
2603         * modules/utimensat-tests (configure.ac): Likewise.
2604
2605 2011-11-19  Simon Josefsson  <simon@josefsson.org>
2606
2607         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
2608         not hash_insert0.
2609         (hash_insert_if_absent): Doc fix.
2610
2611 2011-11-19  Simon Josefsson  <simon@josefsson.org>
2612
2613         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
2614
2615 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
2616
2617         test-getcwd: disambiguate exit status
2618         * tests/test-getcwd.c (test_long_name): Return 0..7.
2619         (main): Exit with an unambiguous exit status.  The old
2620         code yielded a mysterious mixture of two failure codes.
2621
2622         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
2623         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
2624         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
2625         rpl_fstatat or fstatat.  This should fix the other problem
2626         reported by Kai Habel in
2627         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
2628         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
2629         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
2630         and I reproduced it on a Solaris 8 host we still have in production.
2631
2632 2011-11-18  Jim Meyering  <meyering@redhat.com>
2633
2634         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
2635         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
2636         Add a sentence to the comment.
2637         (hash_insert0): New function that simply calls hash_insert_if_absent.
2638         * lib/hash.h (hash_insert_if_absent): Declare it.
2639         (hash_insert0): Add deprecation attribute.
2640         (_GL_ATTRIBUTE_DEPRECATED): Define.
2641         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
2642         not hash_insert0.
2643         * NEWS: Mention it, even though it's not really an incompatible change.
2644
2645 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
2646
2647         openat: avoid compilation failure due to lack of <errno.h> inclusion
2648         * lib/openat.c: Include <errno.h>.
2649
2650 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
2651
2652         * modules/getcwd (Depends-on): Add fdopendir.
2653         This fixes one of the two problems reported by Kai Habel in
2654         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
2655
2656         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
2657         stdalign problem reported by Ian Beckwith in
2658         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
2659         * modules/crypto/gc-arcfour (Depends-on):
2660         Depend conditionally on crypto/arcfour.
2661         * modules/crypto/gc-arctwo (Depends-on):
2662         Depend conditionally on crypto/arctwo.
2663         * modules/crypto/gc-des (Depends-on):
2664         Depend conditionally on crypto/des.
2665         * modules/crypto/gc-hmac-md5 (Depends-on):
2666         Depend conditionally on crypto/hmac-md5.
2667         * modules/crypto/gc-hmac-sha1 (Depends-on):
2668         Depend conditionally on crypto/hmac-sha1.
2669         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
2670         * modules/crypto/gc-md4 (Depends-on):
2671         Depend conditionally on crypto/md4.
2672         * modules/crypto/gc-md5 (Depends-on):
2673         Depend conditionally on crypto/md5.
2674         * modules/crypto/gc-rijndael (Depends-on):
2675         Depend conditionally on crypto/rijndael.
2676         * modules/crypto/gc-sha1 (Depends-on):
2677         Depend conditionally on crypto/sha1.
2678         * modules/crypto/gc-arcfour:
2679         * modules/crypto/gc-arctwo:
2680         * modules/crypto/gc-des:
2681         * modules/crypto/gc-hmac-md5:
2682         * modules/crypto/gc-hmac-sha1:
2683         * modules/crypto/gc-md2:
2684         * modules/crypto/gc-md4:
2685         * modules/crypto/gc-md5:
2686         * modules/crypto/gc-rijndael:
2687         * modules/crypto/gc-sha1:
2688         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
2689         now that the conditional dependencies do the work for us.
2690
2691 2011-11-17  Jim Meyering  <meyering@redhat.com>
2692
2693         tests: factor st_ctime-comparison out of two headers
2694         * tests/test-utimens-common.h (ctime_compare): Define.
2695         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
2696         * tests/test-lutimens.h (test_lutimens): Likewise.
2697         * tests/test-utimens.h (test_utimens): Likewise.
2698
2699         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
2700         Invoke the test program via an init.sh-using wrapper.
2701         * tests/test-getcwd.sh: New file.
2702         * modules/getcwd-tests (Files): Add it.
2703         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
2704
2705 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
2706
2707         gitlog-to-changelog: support multi-author commits.
2708         The FSF cares about keeping track of all authors of patches to its
2709         projects, but Git doesn't provide obvious support for multi-author
2710         changesets. Consensus seems to be forming around the use of extra
2711         Signed-off-by inspired lines in the log message formatted as
2712         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
2713         multi-author commits between version control systems.
2714         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
2715         log message and output in standard ChangeLog multi-author format.
2716         Reported by Peter Rosin <peda@lysator.liu.se>
2717
2718 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
2719             Bruno Haible  <bruno@clisp.org>
2720
2721         Fix some modules' file list.
2722         * modules/fstatat (Files): Add m4/lstat.m4.
2723         * modules/openat (Files): Likewise.
2724         * modules/unlinkat (Files): Likewise.
2725
2726 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
2727
2728         maint.mk: fix tight-scope.mk generation in VPATH builds.
2729         * top/maint.mk (tight-scope.mk): Make sure to prefix file
2730         reference with $(srcdir) so that the file is found correctly even
2731         when running `make syntax-check' in a VPATH build.
2732
2733 2011-11-13  Bruno Haible  <bruno@clisp.org>
2734             Jim Meyering  <meyering@redhat.com>
2735
2736         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
2737         * tests/init.sh (compare): Remove "No differences encountered" or
2738         synonymous output from the 'diff' program.
2739
2740 2011-11-13  Bruno Haible  <bruno@clisp.org>
2741
2742         Makefile: Tweak indentation.
2743         * Makefile: Use tab as first character in every line that contains rule
2744         commands.
2745
2746 2011-11-13  Bruno Haible  <bruno@clisp.org>
2747
2748         Syntax check for copyright statements.
2749         * check-copyright: New file.
2750         * Makefile (sc_check_copyright): New rule.
2751
2752 2011-11-13  Simon Josefsson  <simon@josefsson.org>
2753
2754         * build-aux/git-version-gen: Add --prefix to configure the tag
2755         match string.
2756
2757 2011-11-13  Simon Josefsson  <simon@josefsson.org>
2758
2759         * build-aux/git-version-gen: Add --help and --version.
2760
2761 2011-11-12  Jim Meyering  <meyering@redhat.com>
2762
2763         revamp the other test-exclude?.sh scripts to use init.sh, too
2764         * tests/test-exclude1.sh: Use init.sh.
2765         * tests/test-exclude2.sh: Likewise.
2766         * tests/test-exclude3.sh: Likewise.
2767         * tests/test-exclude4.sh: Likewise.
2768         * tests/test-exclude5.sh: Likewise.
2769         * tests/test-exclude6.sh: Likewise.
2770         * tests/test-exclude7.sh: Likewise.
2771         * tests/test-exclude8.sh: Likewise.
2772         * modules/exclude-tests (Files): List init.sh.
2773
2774         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
2775         These shell scripts ignored failure of the binary test-exclude,
2776         so making the latter return 77 didn't cause them to be skipped.
2777         * tests/test-exclude5.sh: Exit with test-exclude's error status
2778         when that program fails.  Revamp to use init.sh.
2779         * tests/test-exclude2.sh: Likewise.
2780
2781         test-exclude: fix a typo
2782         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
2783
2784 2011-11-11  Bruno Haible  <bruno@clisp.org>
2785
2786         obstack: Fix compilation error on MSVC 9.
2787         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
2788
2789 2011-11-11  Jim Meyering  <meyering@redhat.com>
2790
2791         test-exclude: skip tests rather than failing on deficient systems
2792         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
2793         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
2794         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
2795         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
2796
2797 2011-11-10  Bruno Haible  <bruno@clisp.org>
2798
2799         ptsname_r test: Avoid gcc warning on glibc systems.
2800         * tests/test-ptsname_r.c (null_ptr): New function.
2801         (test_errors): Use it.
2802
2803 2011-11-10  Bruno Haible  <bruno@clisp.org>
2804
2805         ptsname_r: Avoid compilation error on OSF/1 5.1.
2806         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
2807         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
2808         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
2809         function is not declared or incompatibly declared.
2810         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
2811         * modules/ptsname_r (Depends-on, configure.ac): Update.
2812         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
2813
2814 2011-11-10  Bruno Haible  <bruno@clisp.org>
2815
2816         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
2817         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
2818         When cross-compiling, guess yes on all platforms except AIX.
2819         Reported by Ludovic Courtès <ludo@gnu.org>.
2820
2821 2011-11-09  Bruno Haible  <bruno@clisp.org>
2822
2823         ptsname_r tests: Fix bugs.
2824         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
2825         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
2826
2827 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
2828
2829         fstatat: work with cross-compilation
2830         Problem reported by Ludovic Courtès in
2831         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
2832         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
2833         "cross-compiling" and assume the bug is present.  Replace
2834         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
2835         an inverted sense, to be more conservative about our assumptions.
2836         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
2837
2838 2011-11-09  Bruno Haible  <bruno@clisp.org>
2839
2840         Improve MODULES.html output.
2841         * modules/mkfifoat (Description): Use the word "function".
2842         * modules/readlinkat (Description): Likewise.
2843         * modules/symlinkat (Description): Likewise.
2844
2845 2011-11-09  Eric Blake  <eblake@redhat.com>
2846
2847         ptsname_r-tests: new test module
2848         * modules/ptsname_r-tests: New module.
2849         * tests/test-ptsname_r.c: New file.
2850
2851         ptsname_r: new module
2852         * modules/ptsname_r: New module.
2853         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
2854         * lib/ptsname.c (__ptsname_r): Split...
2855         * lib/ptsname_r.c: ...into new file.
2856         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
2857         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
2858         * modules/stdlib (Makefile.am): Substitute witnesses.
2859         * lib/stdlib.in.h (ptsname_r): Declare it.
2860         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
2861         * MODULES.html.sh (Misc): Likewise.
2862         * modules/ptsname (Depends-on): Alter dependency.
2863         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
2864
2865 2011-11-09  Jim Meyering  <meyering@redhat.com>
2866
2867         announce-gen: be more concise when there's only one URL+tarball
2868         * build-aux/announce-gen (get_tool_versions): When you distribute
2869         only one type of tarball, combine the first two "Here are..."
2870         sections and make the key-checking grammar independent of
2871         how many tarballs there are.
2872
2873 2011-11-09  Eric Blake  <eblake@redhat.com>
2874
2875         openpty: provide a stub on mingw
2876         * lib/pty.in.h (includes): Provide forward declarations.
2877         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
2878
2879         raise: fix mingw handling of SIGPIPE
2880         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
2881
2882 2011-11-08  Bruno Haible  <bruno@clisp.org>
2883
2884         More conditional dependencies.
2885         * modules/faccessat (Depends-on): Add conditions.
2886         * modules/fchmodat (Depends-on): Likewise.
2887         * modules/fchownat (Depends-on): Likewise.
2888         * modules/fstatat (Depends-on): Likewise.
2889         * modules/mkfifoat (Depends-on): Likewise.
2890         * modules/readlinkat (Depends-on): Likewise.
2891         * modules/symlinkat (Depends-on): Likewise.
2892         * modules/unlinkat (Depends-on): Likewise.
2893         * modules/utimensat (Depends-on): Likewise.
2894         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
2895         * modules/linkat (Depends-on): Refine the conditions.
2896         * modules/renameat (Depends-on): Likewise.
2897
2898 2011-11-08  Bruno Haible  <bruno@clisp.org>
2899
2900         faccessat: Move AC_LIBOBJ invocation to module description.
2901         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
2902         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
2903         invocation from here...
2904         * modules/faccessat (configure.ac): ... to here. Invoke
2905         gl_PREREQ_FACCESSAT.
2906
2907 2011-11-08  Bruno Haible  <bruno@clisp.org>
2908
2909         faccessat: Simplify autoconf macro.
2910         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
2911         gl_FUNC_EUIDACCESS.
2912
2913 2011-11-08  Bruno Haible  <bruno@clisp.org>
2914
2915         renameat: Fix dependencies.
2916         * modules/renameat (Depends-on): Add stdbool.
2917
2918 2011-11-08  Bruno Haible  <bruno@clisp.org>
2919
2920         mkfifoat: Fix module description.
2921         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
2922         not gl_UNISTD_MODULE_INDICATOR.
2923
2924 2011-11-08  Bruno Haible  <bruno@clisp.org>
2925
2926         fstatat: Remove unused dependency.
2927         * modules/fstatat (Depends-on): Remove fstat.
2928
2929 2011-11-08  Simon Josefsson  <simon@josefsson.org>
2930
2931         GNUmakefile: behave when Makefile is missing.
2932         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
2933
2934 2011-11-08  Bruno Haible  <bruno@clisp.org>
2935
2936         openat: Conditionalize dependencies.
2937         * lib/openat.c: Reduce the scope of some #includes.
2938         * modules/openat (Depends-on): Add conditions.
2939
2940 2011-11-07  Jim Meyering  <meyering@redhat.com>
2941
2942         maint.mk: extract GPG key ID without using a temporary file
2943         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
2944         without using a temporary file.  Based on a suggestion from Werner Koch
2945         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
2946
2947 2011-11-07  Eric Blake  <eblake@redhat.com>
2948
2949         grantpt: fix typo
2950         * lib/stdlib.in.h (grantpt): Check correct function.
2951
2952         maint.mk: silence new syntax check
2953         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
2954
2955 2011-11-06  Bruno Haible  <bruno@clisp.org>
2956
2957         Doc about floating-point and math API.
2958         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
2959         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
2960
2961 2011-11-06  Bruno Haible  <bruno@clisp.org>
2962
2963         stdalign tests: Skip the test when compiled by Sun C.
2964         * tests/test-stdalign.c (main): Skip the test on Sun C.
2965
2966 2011-11-06  Bruno Haible  <bruno@clisp.org>
2967
2968         ansi-c++-opt: Complete the 2011-06-05 change.
2969         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
2970         does not support namespaces, set the variable to "no", not to ":".
2971
2972 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
2973
2974         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
2975
2976 2011-11-06  Bruno Haible  <bruno@clisp.org>
2977
2978         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
2979         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
2980         (minus_zerol) [HP-UX]: New macro.
2981         (unary_minus) [HP-UX]: New function.
2982         (copysignl) [HP-UX]: Use unary_minus function.
2983
2984 2011-11-06  Bruno Haible  <bruno@clisp.org>
2985
2986         ldexp, ldexpf, ldexpl: Enhance tests.
2987         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
2988         and tests/test-ldexpl.c.
2989         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
2990         LDEXP, MIN_EXP, MAX_EXP): New macros.
2991         Include test-ldexp.h.
2992         (main): Just call test_function.
2993         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
2994         infinity.h, nan.h.
2995         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
2996         MAX_EXP): New macros.
2997         Include test-ldexp.h.
2998         (x, y): Remove variables.
2999         (main): Just call test_function.
3000         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
3001         infinity.h, nan.h.
3002         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
3003         MAX_EXP): New macros.
3004         Include test-ldexp.h.
3005         (x, y): Remove variables.
3006         (main): Just call test_function.
3007         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
3008         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
3009         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
3010         (Depends-on): Add isnand-nolibm, signbit, float.
3011         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
3012         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
3013         (Depends-on): Add isnanf-nolibm, signbit, float.
3014
3015 2011-11-06  Bruno Haible  <bruno@clisp.org>
3016
3017         math tests: Cosmetics.
3018         * tests/test-math-c++.cc: Reorder declarations.
3019
3020 2011-11-05  Bruno Haible  <bruno@clisp.org>
3021
3022         fma*: Simplify test.
3023         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
3024         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
3025
3026         Tests for module 'fmal'.
3027         * modules/fmal-tests: New file.
3028         * tests/test-fmal1.c: New file.
3029         * tests/test-fmal2.c: New file.
3030
3031         New module 'fmal'.
3032         * lib/math.in.h (fmal): New declaration.
3033         * lib/fmal.c: New file.
3034         * m4/fmal.m4: New file.
3035         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
3036         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
3037         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
3038         REPLACE_FMAL.
3039         * modules/fmal: New file.
3040         * doc/posix-functions/fmal.texi: Mention the new module and the various
3041         bugs.
3042
3043         Tests for module 'fmaf'.
3044         * modules/fmaf-tests: New file.
3045         * tests/test-fmaf1.c: New file.
3046         * tests/test-fmaf2.c: New file.
3047
3048         New module 'fmaf'.
3049         * lib/math.in.h (fmaf): New declaration.
3050         * lib/fmaf.c: New file.
3051         * m4/fmaf.m4: New file.
3052         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
3053         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
3054         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
3055         REPLACE_FMAF.
3056         * modules/fmaf: New file.
3057         * doc/posix-functions/fmaf.texi: Mention the new module and the various
3058         bugs.
3059
3060         Tests for module 'fma'.
3061         * modules/fma-tests: New file.
3062         * tests/test-fma1.c: New file.
3063         * tests/test-fma1.h: New file.
3064         * tests/test-fma2.c: New file.
3065         * tests/test-fma2.h: New file.
3066
3067         New module 'fma'.
3068         * lib/math.in.h (fma): New declaration.
3069         * lib/fma.c: New file.
3070         * m4/fma.m4: New file.
3071         * m4/fegetround.m4: New file.
3072         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
3073         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
3074         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
3075         REPLACE_FMA.
3076         * modules/fma: New file.
3077         * doc/posix-functions/fma.texi: Mention the new module and the various
3078         bugs.
3079
3080         Extend gl_MATHFUNC.
3081         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
3082         Support 'void' as argument type.
3083         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
3084
3085 2011-11-05  Jim Meyering  <meyering@redhat.com>
3086
3087         maint.mk: also prohibit inclusion of dirent.h without use
3088         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
3089
3090 2011-11-05  Bruno Haible  <bruno@clisp.org>
3091
3092         ldexpl tests: Avoid test failure on MSVC 9.
3093         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
3094         value. Needed in order to enforce the conversion from a value greater
3095         than LDBL_MAX to Infinity.
3096
3097 2011-11-05  Bruno Haible  <bruno@clisp.org>
3098
3099         New modules 'at-internal', 'openat-h', split off from module 'openat'.
3100         * modules/at-internal: New file, extracted from modules/openat.
3101         * modules/openat-h: New file.
3102         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
3103         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
3104         * modules/openat (Description): Add reference to POSIX function.
3105         (Files): Remove lib/openat.h, lib/openat-proc.c.
3106         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
3107         intprops, unistd.
3108         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
3109         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
3110         gl_FCNTL_MODULE_INDICATOR.
3111         (Include): Remove unistd.h, openat.h.
3112         * modules/areadlinkat (Files): Add lib/at-func.c.
3113         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
3114         openat-die, openat-h, save-cwd.
3115         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
3116         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
3117         openat-die, openat-h, save-cwd, unistd.
3118         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
3119         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
3120         openat-h, save-cwd. Remove fcntl-h, openat.
3121         * modules/fchmodat (Files): Remove lib/openat.h.
3122         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
3123         openat, stdbool, unistd.
3124         * modules/fchownat (Files): Remove lib/openat.h.
3125         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
3126         openat, stdbool, sys_stat.
3127         * modules/fdopendir (Files): Remove lib/openat-priv.h,
3128         lib/openat-proc.c.
3129         (Depends-on): Add at-internal.
3130         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
3131         * modules/fstatat (Files): Remove lib/openat.h.
3132         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
3133         stdbool, unistd.
3134         * modules/fts (Depends-on): Add openat-h.
3135         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
3136         openat.
3137         * modules/mkdirat (Files): Remove lib/openat.h.
3138         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
3139         openat, stdbool, sys_stat.
3140         * modules/mkfifoat (Files): Add lib/at-func.c.
3141         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
3142         openat-h, save-cwd. Remove fcntl-h, openat.
3143         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
3144         * modules/readlinkat (Files): Add lib/at-func.c.
3145         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
3146         openat-h, save-cwd. Remove fcntl-h, openat.
3147         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
3148         openat.
3149         * modules/selinux-at (Files): Add lib/at-func.c.
3150         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
3151         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
3152         * modules/symlinkat (Files): Add lib/at-func.c.
3153         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
3154         openat-h, save-cwd. Remove fcntl-h, openat.
3155         * modules/unlinkat (Files): Remove lib/openat.h.
3156         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
3157         stdbool.
3158         * modules/utimensat (Files): Add lib/at-func.c.
3159         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
3160         openat-die, openat-h, save-cwd.
3161         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
3162         * modules/fdutimensat-tests (Depends-on): Add openat.
3163         * modules/fstatat-tests (Depends-on): Add openat-h.
3164         * modules/readlinkat-tests (Depends-on): Add openat.
3165         * modules/symlinkat-tests (Depends-on): Add openat.
3166
3167 2011-11-05  Bruno Haible  <bruno@clisp.org>
3168
3169         openat: Include <stdbool.h>.
3170         * lib/openat.c: Include <stdbool.h>.
3171
3172 2011-11-04  Bruno Haible  <bruno@clisp.org>
3173
3174         fchownat, renameat, unlinkat: Fix dependencies.
3175         * modules/fchownat (Depends-on): Add fstatat.
3176         * modules/renameat (Depends-on): Likewise.
3177         * modules/unlinkat (Depends-on): Likewise.
3178
3179 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
3180
3181         openat: remove direct dependency on dirent
3182         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
3183         and hasn't been needed ever since fdopendir was split into its own
3184         module on 2009-08-31.
3185         * modules/openat (Depends-on): Remove dirent.
3186
3187 2011-11-04  Bruno Haible  <bruno@clisp.org>
3188
3189         renameat: Optimize code size.
3190         * modules/renameat (configure.ac): Don't compile at-func2.c if
3191         REPLACE_RENAMEAT is 1.
3192
3193 2011-11-04  Bruno Haible  <bruno@clisp.org>
3194
3195         openat tests: Fix file list.
3196         * modules/openat-tests (Files): Add tests/test-open.h.
3197
3198 2011-11-04  Bruno Haible  <bruno@clisp.org>
3199
3200         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
3201         * modules/fchmodat (Depends-on): Add openat-die.
3202         * modules/fchownat (Depends-on): Likewise.
3203         * modules/linkat (Depends-on): Likewise.
3204         * modules/renameat (Depends-on): Likewise.
3205         * modules/openat (Depends-on): Add dirent.
3206
3207 2011-11-04  Jim Meyering  <meyering@redhat.com>
3208
3209         at-func*.c: fix comments
3210         * lib/at-func2.c: Correct/improve first-line comment.
3211         * lib/at-func.c: Correct grammar in first-line comment.
3212
3213 2011-11-04  Bruno Haible  <bruno@clisp.org>
3214
3215         New module 'mkdirat', split off from module 'openat'.
3216         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
3217         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
3218         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
3219         * modules/mkdirat: New file, extracted from modules/openat.
3220         * modules/openat (Files): Remove lib/mkdirat.c.
3221         (Depends-on): Remove mkdir.
3222         (configure.ac): Remove AC_LIBOBJ of mkdirat.
3223         (Include): Remove <sys/stat.h>.
3224         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
3225         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
3226         tests/test-mkdir.h.
3227         (Depends-on): Remove ignore-value.
3228         (Makefile.am): Remove rules for test-mkdirat.
3229         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
3230         of module 'openat'.
3231         * NEWS: Mention the change.
3232
3233 2011-11-04  Bruno Haible  <bruno@clisp.org>
3234
3235         closedir: Avoid warning on mingw.
3236         * lib/closedir.c: Include <unistd.h>.
3237
3238 2011-11-04  Bruno Haible  <bruno@clisp.org>
3239
3240         New module 'fstatat', split off from module 'openat'.
3241         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
3242         defined.
3243         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
3244         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
3245         gl_FUNC_FSTATAT.
3246         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
3247         * modules/fstatat: New file, extracted from modules/openat.
3248         * modules/openat (Files): Remove lib/fstatat.c.
3249         (Depends-on): Remove lstat.
3250         (configure.ac): Remove AC_LIBOBJ of fstatat.
3251         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
3252         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
3253         tests/test-lstat.h, tests/test-stat.h.
3254         (Depends-on): Remove getcwd-lgpl.
3255         (Makefile.am): Remove rules for test-fstatat.
3256         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
3257         of module 'openat'.
3258         * NEWS: Mention the change.
3259         * modules/getcwd (Depends-on): Add fstatat.
3260         * modules/linkat (Depends-on): Likewise.
3261         * modules/mkfifoat-tests (Depends-on): Likewise.
3262         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
3263
3264 2011-11-03  Bruno Haible  <bruno@clisp.org>
3265
3266         New module 'unlinkat', split off from module 'openat'.
3267         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
3268         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
3269         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
3270         * modules/unlinkat: New file, extracted from modules/openat. Correct
3271         the dependency conditions.
3272         * modules/openat (Files): Remove lib/unlinkat.c.
3273         (Depends-on): Remove rmdir, unlink.
3274         (configure.ac): Remove AC_LIBOBJ of unlinkat.
3275         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
3276         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
3277         tests/test-rmdir.h, tests/test-unlink.h.
3278         (Depends-on): Remove unlinkdir.
3279         (Makefile.am): Remove rules for test-unlinkat.
3280         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
3281         of module 'openat'.
3282         * NEWS: Mention the change.
3283         * modules/linkat-tests (Depends-on): Add unlinkat.
3284         * modules/mkfifoat-tests (Depends-on): Likewise.
3285         * modules/readlinkat-tests (Depends-on): Likewise.
3286
3287 2011-11-02  Bruno Haible  <bruno@clisp.org>
3288
3289         New module 'fchmodat', split off from module 'openat'.
3290         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
3291         defined.
3292         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
3293         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
3294         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
3295         * modules/fchmodat: New file, extracted from modules/openat.
3296         * modules/openat (Files): Remove lib/fchmodat.c.
3297         (configure.ac): Remove AC_LIBOBJ of fchmodat.
3298         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
3299         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
3300         (Makefile.am): Remove rules for test-fchmodat.
3301         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
3302         of module 'openat'.
3303         * NEWS: Mention the change.
3304
3305 2011-11-02  Jim Meyering  <meyering@redhat.com>
3306
3307         putenv: indent #definition of "environ" to placate cppi
3308         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
3309
3310         gitlog-to-changelog: provide a ChangeLog-repair mechanism
3311         Git logs are often treated as immutable, because editing them
3312         changes the SHA1 checksums of all descendants.  Thus, errors in
3313         git logs tend to stay there forever.  However, when we generate
3314         a ChangeLog file -- typically for distribution -- from that git log,
3315         we can actually make corrections in the generated file.  The key
3316         lies in recording in machine-readable/applicable form the desired
3317         corrections.  See --help for description and an example.
3318         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
3319         (usage): Describe it; alphabetize option descriptions.
3320         (main): Honor the new option, carefully.
3321
3322 2011-11-01  Jim Meyering  <meyering@redhat.com>
3323
3324         gitlog-to-changelog: avoid an infloop
3325         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
3326         that ends up being empty.
3327
3328 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
3329
3330         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
3331         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
3332         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
3333         contains (possibly-quoted) backslashes.  This should avoid
3334         all-too-common shell bugs if COMPLICATED contains backslashes in
3335         the "wrong" places.  Reported by David Evans in
3336         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
3337         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
3338         because we want ASCII ranges.  Is there some reason we don't use
3339         the C locale everywhere in this script?
3340         (func_module, top level): Avoid unwanted pathname expansion when
3341         $repo_url_prefix or $repo_url_suffix_repl contain shell
3342         metacharacters like '?' and '*'.
3343
3344 2011-11-01  Bruno Haible  <bruno@clisp.org>
3345
3346         fchownat: Improve description.
3347         * modules/fchownat (Description): Add link to function.
3348
3349 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
3350
3351         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
3352         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
3353         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
3354         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
3355
3356 2011-11-01  Bruno Haible  <bruno@clisp.org>
3357
3358         alignof: Avoid collision with stdalign module.
3359         * lib/alignof.h (alignof): Remove macro.
3360         * NEWS: Mention the change.
3361         Reported by Paul Eggert.
3362
3363 2011-11-01  Bruno Haible  <bruno@clisp.org>
3364
3365         New module 'fchownat', split off from module 'openat'.
3366         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
3367         defined.
3368         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
3369         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
3370         invoke gl_FUNC_FCHOWNAT.
3371         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
3372         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
3373         * modules/fchownat: New file, extracted from modules/openat.
3374         * modules/openat (Files): Remove lib/fchownat.c.
3375         (Depends-on): Remove lchown.
3376         (configure.ac): Remove AC_LIBOBJ of fchownat.
3377         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
3378         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
3379         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
3380         (Depends-on): Remove mgetgroups, usleep, stat-time.
3381         (configure.ac): Remove test for getegid.
3382         (Makefile.am): Remove rules for test-fchownat.
3383         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
3384         of module 'openat'.
3385         * NEWS: Mention the change.
3386
3387 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
3388
3389         stdalign: port better to MSVC and to Sun C 5.11
3390         This fixes some of the problems reported by Bruno Haible in
3391         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
3392         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
3393         shortcomings of MSVC and of Sun C 5.11.
3394         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
3395         around __declspec arg.
3396         * modules/stdalign-tests (Files): Add tests/macros.h.
3397         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
3398         Include macros.h, for ASSERT.
3399         (DECLARE_ALIGNED): Remove.
3400         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
3401         to catch bug), and to 1 if not (simplifies the rest of the code).
3402         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
3403         (CHECK_AUTO): Remove.
3404         (CHECK_ALIGNED): Check only the alignment of the static vars,
3405         since auto var alignment isn't supported by Sun C 5.11.
3406         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
3407         ASSERT failures are easier to diagnose.
3408
3409 2011-10-31  Bruno Haible  <bruno@clisp.org>
3410
3411         doc about some IRIX 5.3 problems.
3412         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
3413         on IRIX 5.3.
3414         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
3415         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
3416         5.3.
3417         * doc/posix-functions/grantpt.texi: Likewise.
3418         * doc/posix-functions/unlockpt.texi: Likewise.
3419         * doc/posix-functions/lgamma.texi: Likewise.
3420         * doc/posix-functions/nextafter.texi: Likewise.
3421         * doc/posix-functions/remainder.texi: Likewise.
3422         * doc/posix-functions/select.texi: Mention misplaced declaration on
3423         IRIX 5.3.
3424         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3425
3426 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
3427
3428         gitlog-to-changelog: fix git-log invocation.
3429         git-log mishandles date strings before 1970-01-01 UTC, and there is
3430         no use to specify --since=1970-01-01 by default anyway.
3431         * build-aux/gitlog-to-changelog: By default, when no --since option
3432         was given, do not specify explicit --since option to git-log.
3433
3434 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
3435
3436         gitlog-to-changelog: new option --append-dot.
3437         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
3438         first non-blank line of each commit message terminated with a dot.
3439
3440 2011-10-30  Bruno Haible  <bruno@clisp.org>
3441
3442         ffsl, ffsll: Avoid compilation error due to 'restrict'.
3443         * lib/ffsl.h: Include <config.h>.
3444         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
3445
3446 2011-10-30  Jim Meyering  <meyering@redhat.com>
3447
3448         GNUmakefile: reenable "make syntax-check" for most projects
3449         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
3450         build-aux variable", "syntax-check" would do nothing but succeed with
3451         the "No version control files detected..." diagnostic (unless you
3452         happened to override _build-aux via cfg.mk).
3453         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
3454         to precede inclusion of maint.mk.  Otherwise, these variables would
3455         be used undefined in any project that does not override the default.
3456
3457 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
3458
3459         gitlog-to-changelog: treat a message with only blank lines as empty.
3460         * build-aux/gitlog-to-changelog: Move the code that removes leading and
3461         trailing blank lines before the code that issues a warning about an
3462         empty commit message.
3463
3464 2011-10-30  Jim Meyering  <meyering@redhat.com>
3465
3466         test-parse-datetime.c: avoid new DST-related false positive test failure
3467         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
3468         based on the time/date we'll convert, not the current time.
3469         Otherwise, the moment we cross a DST boundary like today's in
3470         Europe, (CEST to CET), that offset ends up being one hour off.
3471
3472 2011-10-27  Bruno Haible  <bruno@clisp.org>
3473
3474         fstat: Tweak documentation.
3475         * modules/fstat (Description): More precise description.
3476
3477 2011-10-27  Bruno Haible  <bruno@clisp.org>
3478
3479         Update documentation regarding 'largefile' module.
3480         * doc/posix-functions/fstat.texi: Tweak wording.
3481         * doc/posix-functions/opendir.texi: Mention that the module fixes the
3482         problems with huge directories and/or small ino_t types.
3483         * doc/posix-functions/readdir.texi: Likewise.
3484         * doc/posix-functions/rewinddir.texi: Likewise.
3485
3486 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
3487
3488         maint.mk: don't maintain a second build-aux variable.
3489         * maint.mk (build_aux): Removed.  The maintainer-makefile module
3490         depends on GNUmakefile, which already maintains a cfg.mk
3491         overridable $(_build-aux) for projects with a non-standard
3492         build-aux directory location, although without the $(srcdir)
3493         prefix.  Use that variable consistently instead of introducing a
3494         second one.  Adjust all call sites.
3495
3496 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
3497
3498         Add stdalign module and use it in other modules.
3499         This is based on a previous proposal by Bruno Haible
3500         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
3501
3502         stdalign: new module
3503         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
3504         * modules/stdalign: New files.
3505         * MODULES.html.sh (c1x_core_properties): Add stdalign.
3506         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
3507
3508         stdalign-tests: new module
3509         * modules/stdalign-tests, tests/test-stdalign.c: New files.
3510
3511         argp: use stdalign
3512         * lib/argp-parse.c: Include <stdalign.h>.
3513         (alignof): Remove.
3514         * modules/argp (Depends-on): Add stdalign.
3515
3516         crypto libraries: use stdalign
3517         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
3518         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
3519         Do not include <stdlib.h> twice, in md4.c.
3520         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
3521         because we are accessing a pointer's bit-pattern, not a size.
3522         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
3523         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
3524         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
3525         * modules/crypto/sha512: Likewise.
3526
3527         sys_socket: use stdalign, not alignof
3528         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
3529         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
3530
3531 2011-10-27  Bruno Haible  <bruno@clisp.org>
3532
3533         raise test: Avoid a test failure on Linux/MIPS.
3534         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
3535         because 99 is a valid signal on Linux/MIPS.
3536
3537 2011-10-27  Bruno Haible  <bruno@clisp.org>
3538
3539         nonblocking tests: Fix test failure on Linux/MIPS.
3540         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
3541         Set to 270000.
3542
3543 2011-10-27  Bruno Haible  <bruno@clisp.org>
3544
3545         utimensat: Work around problem on Linux/hppa.
3546         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
3547         values.
3548         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
3549
3550 2011-10-25  Jim Meyering  <meyering@redhat.com>
3551
3552         maint.mk: fix a bug in sc_prohibit_stddef_without_use
3553         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
3554         after symbols like NULL, size_t, etc.
3555         Reported by Alfred M. Szmidt.
3556
3557         maint.mk: exempt ENODATA from a syntax-check rule
3558         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
3559         from the sc_prohibit_always-defined_macros syntax-check rule.
3560         Add a comment.  See this for more details:
3561         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
3562
3563 2011-10-23  Jim Meyering  <meyering@redhat.com>
3564
3565         fts: close parent dir FD before returning from post-traversal fts_read
3566         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
3567         unlink A, even though an FD open on A remained.  This is suboptimal
3568         (holding a file descriptor open longer than needed), but otherwise not
3569         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
3570         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
3571         that represents a real problem: it causes the removal of A to fail
3572         with e.g., "rm: cannot remove `A': Device or resource busy"
3573
3574         fts visits each directory twice and keeps a cache (fts_fd_ring) of
3575         directory file descriptors.  After completing the final, FTS_DP,
3576         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
3577         cache, but then proceeded to add a new FD to it via the subsequent
3578         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
3579         final file descriptor would be closed only via fts_close's call to
3580         fd_ring_clear.  Now, it is usually closed earlier, via the final
3581         FTS_DP-returning fts_read call.
3582         * lib/fts.c (restore_initial_cwd): New function, converted from
3583         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
3584         Update callers.
3585         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
3586         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
3587
3588 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
3589             Bruno Haible  <bruno@clisp.org>
3590             Jim Meyering  <jim@meyering.net>
3591
3592         readme-release: improve safety of release prep instructions.
3593         * README-release: Don't git pull all branches when only master
3594         is needed for the release process.
3595         Run make maintainer-clean before changing trees and merging.
3596         Don't try to run ./configure right after git pull in case files
3597         that influence the bootstrap process have changed, move the
3598         ./configure step to after running ./bootstrap.
3599         Don't bootstrap "one last time"... it's the first time!
3600
3601 2011-10-22  Bruno Haible  <bruno@clisp.org>
3602
3603         errno, strerror-override: Support for MSVC 10.
3604         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
3605         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
3606         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
3607         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
3608         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
3609         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
3610         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
3611         Assign values compatible with MSVC 10.
3612         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
3613         New macros.
3614         (GNULIB_defined_EWINSOCK): New macro.
3615         * lib/strerror-override.c (strerror_override): Update accordingly.
3616         * lib/strerror-override.h: Likewise.
3617         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
3618         longer equal to the corresponding errno value.
3619         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
3620
3621 2011-10-22  Bruno Haible  <bruno@clisp.org>
3622
3623         perror: Recognize when test program crashes.
3624         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
3625         strerror, set gl_cv_func_perror_works to no.
3626         Reported by Daniel Richard G. <skunk@iskunk.org>.
3627
3628         perror: Fix indentation.
3629         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
3630
3631 2011-10-22  Bruno Haible  <bruno@clisp.org>
3632
3633         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
3634         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
3635         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
3636         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
3637         functions, not as a macro.
3638         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
3639         macros.
3640         (isfinite, isinf, isnan, signbit): Check overloaded functions and
3641         absence of macro.
3642         Suggested by Eric Blake.
3643         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
3644
3645 2011-10-21  Bruno Haible  <bruno@clisp.org>
3646
3647         relocatable-prog-wrapper: Don't leave object files behind.
3648         * build-aux/install-reloc: Re-synchronize list of .o files to be
3649         removed with list of compilation units.
3650
3651 2011-10-20  Bruno Haible  <bruno@clisp.org>
3652
3653         openpty, posix_openpt: Remove code duplication.
3654         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
3655         * lib/openpty.c: Include <stdlib.h>.
3656         (openpty): Use posix_openpt on all platforms except IRIX.
3657         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
3658
3659 2011-10-20  Bruno Haible  <bruno@clisp.org>
3660
3661         unlockpt: Detect invalid argument.
3662         * lib/unlockpt.c: Include <fcntl.h>.
3663         (unlockpt): Check whether fd is valid, using fcntl().
3664         * modules/unlockpt (Depends-on): Add fcntl-h.
3665
3666 2011-10-20  Bruno Haible  <bruno@clisp.org>
3667
3668         openpty: Avoid compilation error on AIX 6.1.
3669         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
3670
3671 2011-10-20  Bruno Haible  <bruno@clisp.org>
3672
3673         posix_openpt: Support for OpenBSD.
3674         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
3675         (posix_openpt) [OpenBSD]: New code.
3676         * lib/grantpt.c: Include <fcntl.h>.
3677         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
3678         * modules/grantpt (Depends-on): Add fcntl-h.
3679
3680 2011-10-20  Bruno Haible  <bruno@clisp.org>
3681
3682         posix_openpt test: Coding style.
3683         * tests/test-posix_openpt.c: Use GNU coding style.
3684
3685 2011-10-20  Bruno Haible  <bruno@clisp.org>
3686
3687         grantpt: Support --avoid=pt_chown.
3688         * modules/grantpt (Files): Add lib/pty-private.h.
3689
3690 2011-10-20  Bruno Haible  <bruno@clisp.org>
3691
3692         posix_openpt: Fix autoconf macro.
3693         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
3694         unneeded check for _getpty.
3695
3696 2011-10-20  Bruno Haible  <bruno@clisp.org>
3697
3698         openpty: Update comments.
3699         * lib/openpty.c: Add comments about Minix.
3700
3701 2011-10-19  Eric Blake  <eblake@redhat.com>
3702
3703         openpty: relax license
3704         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
3705
3706         pt_chown: use configmake to simplify build
3707         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
3708
3709         ptsname and others: relax license
3710         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
3711         * modules/unlockpt (License): Likewise.
3712         * modules/pt_chown (License): Likewise.
3713         * modules/ptsname (License): Likewise.
3714         * modules/ttyname_r (License): Likewise.
3715
3716 2011-10-19  Jim Meyering  <meyering@redhat.com>
3717
3718         posix_openpt: remove spurious #endif
3719         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
3720
3721 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
3722
3723         maint.mk: Respect $(build_aux) in web-manual rule.
3724         * top/maint.mk (web-manual): Find gen-announce script in user's
3725         $(build_aux) directory instead of hard-coding 'build-aux'.
3726
3727 2011-10-19  Bruno Haible  <bruno@clisp.org>
3728
3729         posix_openpt: Fix compilation error.
3730         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
3731         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
3732         Mention the openpty module as an alternative.
3733
3734 2011-10-19  Bruno Haible  <bruno@clisp.org>
3735
3736         Support for old NeXTstep 3.3 frexp().
3737         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
3738         execution time of the test to 5 seconds.
3739         Reported by Daniel Richard G. <skunk@iskunk.org>.
3740
3741 2011-10-19  Bruno Haible  <bruno@clisp.org>
3742
3743         Support for old NeXTstep 3.3 sed.
3744         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
3745         part, use /.../, not \|...|. Escape periods in the header file name.
3746         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
3747         Reported by Daniel Richard G. <skunk@iskunk.org>.
3748
3749 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
3750
3751         Support for old NeXTstep 3.3 gcc.
3752         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
3753         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
3754         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
3755         * lib/spawn.in.h (_Restrict_arr_): Likewise.
3756         * lib/regex.h (_Restrict_arr_): Likewise.
3757         * lib/regex_internal.h (re_token_t): Likewise.
3758         * lib/regexec.c (check_node_accept_bytes): Likewise.
3759         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
3760
3761 2011-10-18  Eric Blake  <eblake@redhat.com>
3762
3763         posix_openpt: new module
3764         * modules/posix_openpt: New module.
3765         * m4/posix_openpt.m4: New file.
3766         * lib/posix_openpt.c: Likewise.
3767         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
3768         (gl_STDLIB_H_DEFAULTS): Set defaults.
3769         * modules/stdlib (Makefile.am): Substitute macros.
3770         * lib/stdlib.in.h (posix_openpt): Declare.
3771         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
3772         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
3773         * modules/posix_openpt-tests: New test module.
3774         * tests/test-posix_openpt.c: New test.
3775
3776 2011-10-15  Bruno Haible  <bruno@clisp.org>
3777
3778         xstrtoll: Fix compilation failure.
3779         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
3780         from lib/strtol.c.
3781         * doc/posix-headers/limits.texi: Mention missing numerical limits on
3782         some platforms.
3783         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3784
3785 2011-10-15  Bruno Haible  <bruno@clisp.org>
3786
3787         vasnprintf: Optimize bit search operation.
3788         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
3789         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
3790         gl_DOUBLE_EXPONENT_LOCATION.
3791         * modules/vasnprintf (Files): Add m4/exponentd.m4.
3792         * modules/unistdio/u8-vasnprintf (Files): Likewise.
3793         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
3794         * modules/unistdio/u16-vasnprintf (Files): Likewise.
3795         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
3796         * modules/unistdio/u32-vasnprintf (Files): Likewise.
3797         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
3798         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
3799         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
3800
3801 2011-10-15  Bruno Haible  <bruno@clisp.org>
3802
3803         vasnprintf: Fix comments.
3804         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
3805
3806 2011-10-14  Bruno Haible  <bruno@clisp.org>
3807
3808         Tests for module 'integer_length_ll'.
3809         * modules/integer_length_ll-tests: New file.
3810         * tests/test-integer_length_ll.c: New file.
3811
3812         New module 'integer_length_ll'.
3813         * lib/integer_length_ll.c: New file.
3814         * modules/integer_length_ll: New file.
3815
3816 2011-10-14  Bruno Haible  <bruno@clisp.org>
3817
3818         Tests for module 'integer_length_l'.
3819         * modules/integer_length_l-tests: New file.
3820         * tests/test-integer_length_l.c: New file.
3821
3822         New module 'integer_length_l'.
3823         * lib/integer_length_l.c: New file.
3824         * modules/integer_length_l: New file.
3825
3826 2011-10-14  Bruno Haible  <bruno@clisp.org>
3827
3828         Tests for module 'integer_length'.
3829         * modules/integer_length-tests: New file.
3830         * tests/test-integer_length.c: New file.
3831
3832         New module 'integer_length'.
3833         * lib/integer_length.h: New file.
3834         * lib/integer_length.c: New file.
3835         * modules/integer_length: New file.
3836
3837 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
3838
3839         popen: Fix dependency conditions.
3840         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
3841
3842 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
3843
3844         perror: Fix autoconf test.
3845         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
3846         <stdlib.h> and <string.h>.
3847
3848 2011-10-14  Bruno Haible  <bruno@clisp.org>
3849
3850         ffsl: Optimize on 64-bit platforms.
3851         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
3852         unrolling.
3853
3854 2011-10-13  Bruno Haible  <bruno@clisp.org>
3855
3856         ffsl: Optimize on 32-bit platforms.
3857         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
3858         use ffs() without a loop.
3859
3860         ffsl, ffsll: Optimize for GCC.
3861         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
3862         * lib/ffsl.c (GCC_BUILTIN): New macro.
3863         * lib/ffsll.c (GCC_BUILTIN): Likewise.
3864
3865 2011-10-13  Bruno Haible  <bruno@clisp.org>
3866
3867         ffs, bcopy, memset: Support symbol renaming via config.h.
3868         * lib/ffs.c: Include <config.h>.
3869         * lib/bcopy.c: Likewise.
3870         * lib/memset.c: Likewise.
3871
3872 2011-10-10  Bruno Haible  <bruno@clisp.org>
3873
3874         atanl: Simplify for platforms where 'long double' == 'double'.
3875         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3876         alternative implementation.
3877         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3878         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3879         * modules/atanl (Depends-on): Add atan. Update conditions.
3880
3881 2011-10-10  Bruno Haible  <bruno@clisp.org>
3882
3883         acosl: Simplify for platforms where 'long double' == 'double'.
3884         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3885         alternative implementation.
3886         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3887         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3888         * modules/acosl (Depends-on): Add acos. Update conditions.
3889
3890 2011-10-10  Bruno Haible  <bruno@clisp.org>
3891
3892         asinl: Simplify for platforms where 'long double' == 'double'.
3893         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3894         alternative implementation.
3895         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3896         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3897         * modules/asinl (Depends-on): Add asin. Update conditions.
3898
3899 2011-10-10  Bruno Haible  <bruno@clisp.org>
3900
3901         tanl: Simplify for platforms where 'long double' == 'double'.
3902         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
3903         implementation.
3904         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3905         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3906         * modules/tanl (Depends-on): Add tan. Update conditions.
3907         (configure.ac): Don't compile trigl.c if
3908         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3909
3910 2011-10-10  Bruno Haible  <bruno@clisp.org>
3911
3912         cosl: Simplify for platforms where 'long double' == 'double'.
3913         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
3914         implementation.
3915         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3916         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3917         * modules/cosl (Depends-on): Add cos. Update conditions.
3918         (configure.ac): Don't compile sincosl.c and trigl.c if
3919         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3920
3921 2011-10-10  Bruno Haible  <bruno@clisp.org>
3922
3923         sinl: Simplify for platforms where 'long double' == 'double'.
3924         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
3925         implementation.
3926         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3927         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3928         * modules/sinl (Depends-on): Add sin. Update conditions.
3929         (configure.ac): Don't compile sincosl.c and trigl.c if
3930         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3931
3932 2011-10-10  Bruno Haible  <bruno@clisp.org>
3933
3934         logl: Simplify for platforms where 'long double' == 'double'.
3935         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
3936         implementation.
3937         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3938         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3939         * modules/logl (Depends-on): Add log. Update conditions.
3940
3941 2011-10-10  Bruno Haible  <bruno@clisp.org>
3942
3943         expl: Simplify for platforms where 'long double' == 'double'.
3944         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
3945         implementation.
3946         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3947         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3948         * modules/expl (Depends-on): Add exp. Update conditions.
3949
3950 2011-10-10  Bruno Haible  <bruno@clisp.org>
3951
3952         sqrtl: Simplify for platforms where 'long double' == 'double'.
3953         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3954         alternative implementation.
3955         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3956         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3957         * modules/sqrtl (Depends-on): Update conditions.
3958
3959 2011-10-10  Bruno Haible  <bruno@clisp.org>
3960
3961         ldexpl: Simplify for platforms where 'long double' == 'double'.
3962         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3963         alternative implementation.
3964         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3965         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3966         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
3967
3968 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
3969
3970         ffsll: set correct witness
3971         * modules/ffsll (configure.ac): Fix typo.
3972
3973 2011-10-10  Bruno Haible  <bruno@clisp.org>
3974
3975         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
3976         * lib/printf-frexpl.c: Include <config.h>.
3977         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3978         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
3979         second time.
3980         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
3981         gl_LONG_DOUBLE_VS_DOUBLE.
3982         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
3983         conditions.
3984
3985 2011-10-10  Bruno Haible  <bruno@clisp.org>
3986
3987         frexpl: Simplify for platforms where 'long double' == 'double'.
3988         * lib/frexpl.c: Include <config.h>.
3989         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3990         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
3991         time.
3992         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3993         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3994         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
3995         * modules/frexpl (Depends-on): Add frexp. Update conditions.
3996         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
3997         conditions.
3998
3999 2011-10-10  Jim Meyering  <meyering@redhat.com>
4000
4001         test-renameat: don't leave behind a temporary file
4002         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
4003           ERROR: files left in build directory after distclean:
4004           ./gltests/test-renameat.too
4005           make[1]: *** [distcleancheck] Error 1
4006         Reported by Tom G. Christensen.
4007
4008 2011-10-09  Bruno Haible  <bruno@clisp.org>
4009
4010         rint: Determine RINT_LIBM correctly on AIX 7.
4011         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
4012         directly, not only through a function pointer. Also accept an optional
4013         4th argument with extra code.
4014         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
4015         rintf() call by gcc when optimizing.
4016
4017         mathfunc.m4: Refactor.
4018         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
4019         m4 variable.
4020
4021 2011-10-09  Bruno Haible  <bruno@clisp.org>
4022
4023         rintl: Simplify for platforms where 'long double' == 'double'.
4024         * lib/rintl.c: Include <config.h>.
4025         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4026         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
4027         time.
4028         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4029         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4030         * modules/rintl (Depends-on): Add rint. Update conditions.
4031
4032 2011-10-09  Bruno Haible  <bruno@clisp.org>
4033
4034         roundl: Simplify for platforms where 'long double' == 'double'.
4035         * lib/roundl.c: Include <config.h>.
4036         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4037         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
4038         time.
4039         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4040         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4041         * modules/roundl (Depends-on): Add round. Update conditions.
4042
4043 2011-10-09  Bruno Haible  <bruno@clisp.org>
4044
4045         truncl: Simplify for platforms where 'long double' == 'double'.
4046         * lib/truncl.c: Include <config.h>.
4047         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4048         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
4049         time.
4050         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4051         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4052         * modules/truncl (Depends-on): Add trunc. Update conditions.
4053
4054 2011-10-09  Bruno Haible  <bruno@clisp.org>
4055
4056         ceill: Simplify for platforms where 'long double' == 'double'.
4057         * lib/ceill.c: Include <config.h>.
4058         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4059         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
4060         time.
4061         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4062         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4063         * modules/ceill (Depends-on): Add ceil. Update conditions.
4064
4065 2011-10-09  Bruno Haible  <bruno@clisp.org>
4066
4067         floorl: Simplify for platforms where 'long double' == 'double'.
4068         * lib/floorl.c: Include <config.h>.
4069         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4070         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
4071         time.
4072         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4073         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4074         * modules/floorl (Depends-on): Add floor. Update conditions.
4075
4076 2011-10-09  Bruno Haible  <bruno@clisp.org>
4077
4078         rint: Fix ordering constraints.
4079         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
4080         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
4081         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
4082
4083 2011-10-09  Bruno Haible  <bruno@clisp.org>
4084
4085         copysignl: Simplify for platforms where 'long double' == 'double'.
4086         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
4087         alternative.
4088         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4089         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4090         * modules/copysignl (Depends-on): Add copysign. Update conditions.
4091
4092 2011-10-09  Bruno Haible  <bruno@clisp.org>
4093
4094         Tests for module 'rintl'.
4095         * modules/rintl-tests: New file.
4096         * tests/test-rintl.c: New file.
4097
4098         New module 'rintl'.
4099         * lib/math.in.h (rintl): New declaration.
4100         * lib/rintl.c: New file.
4101         * m4/rintl.m4: New file.
4102         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
4103         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
4104         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
4105         * modules/rintl: New file.
4106         * tests/test-math-c++.cc: Check the declaration of rintl.
4107         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
4108         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
4109         * doc/posix-functions/rintl.texi: Mention the new module.
4110
4111 2011-10-09  Bruno Haible  <bruno@clisp.org>
4112
4113         Tests for module 'rintf'.
4114         * modules/rintf-tests: New file.
4115         * tests/test-rintf.c: New file.
4116
4117         New module 'rintf'.
4118         * lib/math.in.h (rintf): New declaration.
4119         * lib/rintf.c: New file.
4120         * m4/rintf.m4: New file.
4121         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
4122         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
4123         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
4124         * modules/rintf: New file.
4125         * tests/test-math-c++.cc: Check the declaration of rintf.
4126         * doc/posix-functions/rintf.texi: Mention the new module.
4127
4128 2011-10-09  Bruno Haible  <bruno@clisp.org>
4129
4130         rint: Support for MSVC.
4131         * lib/math.in.h (rint): New declaration.
4132         * lib/rint.c: New file.
4133         * m4/rint.m4: New file.
4134         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
4135         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
4136         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
4137         * modules/rint (Description): Fix.
4138         (Files): Add lib/rint.c, m4/rint.m4.
4139         (Depends-on): Add math.
4140         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
4141         gl_MATH_MODULE_INDICATOR.
4142         * tests/test-math-c++.cc: Check the declaration of rint.
4143         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
4144         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
4145         * doc/posix-functions/rint.texi: Mention the replacement provided by
4146         the module.
4147
4148         rint tests: More tests.
4149         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
4150         minus-zero.h, infinity.h, nan.h.
4151         (main): Skip the test if the current rounding mode is not standard. Add
4152         tests for negative numbers, minus zero, infinity, NaN.
4153         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
4154         tests/nan.h.
4155         (Depends-on): Add isnand-nolibm.
4156
4157 2011-10-09  Bruno Haible  <bruno@clisp.org>
4158
4159         Tests for module 'copysignl'.
4160         * modules/copysignl-tests: New file.
4161         * tests/test-copysignl.c: New file.
4162
4163         New module 'copysignl'.
4164         * lib/math.in.h (copysignl): New declaration.
4165         * lib/copysignl.c: New file.
4166         * m4/copysignl.m4: New file.
4167         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
4168         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
4169         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
4170         HAVE_COPYSIGNL.
4171         * modules/copysignl: New file.
4172         * tests/test-math-c++.cc: Check the declaration of copysignl.
4173         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
4174         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
4175         * doc/posix-functions/copysignl.texi: Mention the new module.
4176
4177 2011-10-09  Bruno Haible  <bruno@clisp.org>
4178
4179         Tests for module 'copysignf'.
4180         * modules/copysignf-tests: New file.
4181         * tests/test-copysignf.c: New file.
4182
4183         New module 'copysignf'.
4184         * lib/math.in.h (copysignf): New declaration.
4185         * lib/copysignf.c: New file.
4186         * m4/copysignf.m4: New file.
4187         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
4188         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
4189         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
4190         HAVE_COPYSIGNF.
4191         * modules/copysignf: New file.
4192         * tests/test-math-c++.cc: Check the declaration of copysignf.
4193         * doc/posix-functions/copysignf.texi: Mention the new module.
4194
4195 2011-10-09  Bruno Haible  <bruno@clisp.org>
4196
4197         Ensure that HAVE_* variables are set to 1 before they are set to 0.
4198         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
4199         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
4200         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
4201         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
4202         gl_SIGNAL_H_DEFAULTS.
4203
4204 2011-10-09  Bruno Haible  <bruno@clisp.org>
4205
4206         poll: Make macro safer.
4207         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
4208         ac_cv_header_poll_h is not set.
4209
4210 2011-10-09  Bruno Haible  <bruno@clisp.org>
4211
4212         copysign: Provide replacement.
4213         * lib/math.in.h (copysign): New declaration.
4214         * lib/copysign.c: New file.
4215         * m4/copysign.m4: New file.
4216         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
4217         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
4218         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
4219         HAVE_COPYSIGN.
4220         * modules/copysign (Description): Clarify.
4221         (Files): Add lib/copysign.c, m4/copysign.m4.
4222         (Depends-on): Add math, signbit.
4223         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
4224         gl_MATH_MODULE_INDICATOR.
4225         * tests/test-math-c++.cc: Check the declaration of copysign.
4226         * doc/posix-functions/copysign.texi: Mention the effects of the module
4227         on Minix and MSVC.
4228
4229 2011-10-09  Bruno Haible  <bruno@clisp.org>
4230
4231         isinf: Ensure macro on AIX 5.1.
4232         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
4233         macro.
4234         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
4235
4236 2011-10-09  Bruno Haible  <bruno@clisp.org>
4237
4238         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
4239         * modules/snprintf-posix-tests (configure.ac): Require
4240         gl_LONG_DOUBLE_VS_DOUBLE.
4241         * modules/sprintf-posix-tests (configure.ac): Likewise.
4242         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
4243         * modules/vasprintf-posix-tests (configure.ac): Likewise.
4244         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
4245         * modules/vsprintf-posix-tests (configure.ac): Likewise.
4246         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
4247         tests on platforms where 'long double' is the same as 'double'.
4248         * tests/test-sprintf-posix.h (test_function): Likewise.
4249         * tests/test-vasnprintf-posix.c (test_function): Likewise.
4250         * tests/test-vasprintf-posix.c (test_function): Likewise.
4251
4252         *printf: Fix for platforms where 'long double' == 'double'.
4253         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
4254         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
4255         * modules/dprintf-posix (Files): Add m4/math_h.m4.
4256         * modules/fprintf-posix (Files): Likewise.
4257         * modules/obstack-printf-posix (Files): Likewise.
4258         * modules/snprintf-posix (Files): Likewise.
4259         * modules/sprintf-posix (Files): Likewise.
4260         * modules/vasnprintf (Files): Likewise.
4261         * modules/vasnprintf-posix (Files): Likewise.
4262         * modules/vasprintf-posix (Files): Likewise.
4263         * modules/vdprintf-posix (Files): Likewise.
4264         * modules/vfprintf-posix (Files): Likewise.
4265         * modules/vsnprintf-posix (Files): Likewise.
4266         * modules/vsprintf-posix (Files): Likewise.
4267         * modules/unistdio/u8-vasnprintf (Files): Likewise.
4268         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
4269         * modules/unistdio/u16-vasnprintf (Files): Likewise.
4270         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
4271         * modules/unistdio/u32-vasnprintf (Files): Likewise.
4272         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
4273         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
4274
4275         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
4276         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
4277         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4278         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
4279         'long double'.
4280         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
4281
4282         isinf: Fix for platforms where 'long double' == 'double'.
4283         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
4284         Don't blindly assume 80-bit 'long double'.
4285
4286         isfinite: Fix for platforms where 'long double' == 'double'.
4287         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
4288         Don't blindly assume 80-bit 'long double'.
4289
4290         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
4291         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
4292         * modules/isfinite-tests (configure.ac): Require
4293         gl_LONG_DOUBLE_VS_DOUBLE.
4294         * modules/isinf-tests (configure.ac): Likewise.
4295         * modules/isnan-tests (configure.ac): Likewise.
4296         * modules/isnanl-tests (configure.ac): Likewise.
4297         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
4298         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
4299         tests on platforms where 'long double' is the same as 'double'.
4300         * tests/test-isinf.c (test_isinfl): Likewise.
4301         * tests/test-isnan.c (test_long_double): Likewise.
4302         * tests/test-isnanl.h (main): Likewise.
4303
4304 2011-10-08  Bruno Haible  <bruno@clisp.org>
4305
4306         Tests for module 'tanhf'.
4307         * modules/tanhf-tests: New file.
4308         * tests/test-tanhf.c: New file.
4309
4310         New module 'tanhf'.
4311         * lib/math.in.h (tanhf): New declaration.
4312         * lib/tanhf.c: New file.
4313         * m4/tanhf.m4: New file.
4314         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
4315         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
4316         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
4317         * modules/tanhf: New file.
4318         * tests/test-math-c++.cc: Check the declaration of tanhf.
4319         * doc/posix-functions/tanhf.texi: Mention the new module.
4320
4321         tanh: Use a .m4 file.
4322         * m4/tanh.m4: New file.
4323         * modules/tanh (Files): Add it.
4324         (configure.ac): Just invoke gl_FUNC_TANH.
4325
4326 2011-10-08  Bruno Haible  <bruno@clisp.org>
4327
4328         Tests for module 'coshf'.
4329         * modules/coshf-tests: New file.
4330         * tests/test-coshf.c: New file.
4331
4332         New module 'coshf'.
4333         * lib/math.in.h (coshf): New declaration.
4334         * lib/coshf.c: New file.
4335         * m4/coshf.m4: New file.
4336         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
4337         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
4338         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
4339         * modules/coshf: New file.
4340         * tests/test-math-c++.cc: Check the declaration of coshf.
4341         * doc/posix-functions/coshf.texi: Mention the new module.
4342
4343         cosh: Use a .m4 file.
4344         * m4/cosh.m4: New file.
4345         * modules/cosh (Files): Add it.
4346         (configure.ac): Just invoke gl_FUNC_COSH.
4347
4348 2011-10-08  Bruno Haible  <bruno@clisp.org>
4349
4350         Tests for module 'sinhf'.
4351         * modules/sinhf-tests: New file.
4352         * tests/test-sinhf.c: New file.
4353
4354         New module 'sinhf'.
4355         * lib/math.in.h (sinhf): New declaration.
4356         * lib/sinhf.c: New file.
4357         * m4/sinhf.m4: New file.
4358         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
4359         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
4360         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
4361         * modules/sinhf: New file.
4362         * tests/test-math-c++.cc: Check the declaration of sinhf.
4363         * doc/posix-functions/sinhf.texi: Mention the new module.
4364
4365         sinh: Use a .m4 file.
4366         * m4/sinh.m4: New file.
4367         * modules/sinh (Files): Add it.
4368         (configure.ac): Just invoke gl_FUNC_SINH.
4369
4370 2011-10-08  Bruno Haible  <bruno@clisp.org>
4371
4372         Tests for module 'atan2f'.
4373         * modules/atan2f-tests: New file.
4374         * tests/test-atan2f.c: New file.
4375
4376         New module 'atan2f'.
4377         * lib/math.in.h (atan2f): New declaration.
4378         * lib/atan2f.c: New file.
4379         * m4/atan2f.m4: New file.
4380         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
4381         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
4382         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
4383         * modules/atan2f: New file.
4384         * tests/test-math-c++.cc: Check the declaration of atan2f.
4385         * doc/posix-functions/atan2f.texi: Mention the new module.
4386
4387         atan2: Use a .m4 file.
4388         * m4/atan2.m4: New file.
4389         * modules/atan2 (Files): Add it.
4390         (configure.ac): Just invoke gl_FUNC_ATAN2.
4391
4392 2011-10-08  Bruno Haible  <bruno@clisp.org>
4393
4394         Tests for module 'atanf'.
4395         * modules/atanf-tests: New file.
4396         * tests/test-atanf.c: New file.
4397
4398         New module 'atanf'.
4399         * lib/math.in.h (atanf): New declaration.
4400         * lib/atanf.c: New file.
4401         * m4/atanf.m4: New file.
4402         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
4403         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
4404         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
4405         * modules/atanf: New file.
4406         * tests/test-math-c++.cc: Check the declaration of atanf.
4407         * doc/posix-functions/atanf.texi: Mention the new module.
4408
4409         atan: Use a .m4 file.
4410         * m4/atan.m4: New file.
4411         * modules/atan (Files): Add it.
4412         (configure.ac): Just invoke gl_FUNC_ATAN.
4413
4414 2011-10-08  Bruno Haible  <bruno@clisp.org>
4415
4416         Tests for module 'acosf'.
4417         * modules/acosf-tests: New file.
4418         * tests/test-acosf.c: New file.
4419
4420         New module 'acosf'.
4421         * lib/math.in.h (acosf): New declaration.
4422         * lib/acosf.c: New file.
4423         * m4/acosf.m4: New file.
4424         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
4425         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
4426         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
4427         * modules/acosf: New file.
4428         * tests/test-math-c++.cc: Check the declaration of acosf.
4429         * doc/posix-functions/acosf.texi: Mention the new module.
4430
4431         acos: Use a .m4 file.
4432         * m4/acos.m4: New file.
4433         * modules/acos (Files): Add it.
4434         (configure.ac): Just invoke gl_FUNC_ACOS.
4435
4436 2011-10-08  Bruno Haible  <bruno@clisp.org>
4437
4438         Tests for module 'asinf'.
4439         * modules/asinf-tests: New file.
4440         * tests/test-asinf.c: New file.
4441
4442         New module 'asinf'.
4443         * lib/math.in.h (asinf): New declaration.
4444         * lib/asinf.c: New file.
4445         * m4/asinf.m4: New file.
4446         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
4447         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
4448         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
4449         * modules/asinf: New file.
4450         * tests/test-math-c++.cc: Check the declaration of asinf.
4451         * doc/posix-functions/asinf.texi: Mention the new module.
4452
4453         asin: Use a .m4 file.
4454         * m4/asin.m4: New file.
4455         * modules/asin (Files): Add it.
4456         (configure.ac): Just invoke gl_FUNC_ASIN.
4457
4458 2011-10-08  Bruno Haible  <bruno@clisp.org>
4459
4460         Tests for module 'tanf'.
4461         * modules/tanf-tests: New file.
4462         * tests/test-tanf.c: New file.
4463
4464         New module 'tanf'.
4465         * lib/math.in.h (tanf): New declaration.
4466         * lib/tanf.c: New file.
4467         * m4/tanf.m4: New file.
4468         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
4469         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
4470         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
4471         * modules/tanf: New file.
4472         * tests/test-math-c++.cc: Check the declaration of tanf.
4473         * doc/posix-functions/tanf.texi: Mention the new module.
4474
4475         tan: Use a .m4 file.
4476         * m4/tan.m4: New file.
4477         * modules/tan (Files): Add it.
4478         (configure.ac): Just invoke gl_FUNC_TAN.
4479
4480 2011-10-08  Bruno Haible  <bruno@clisp.org>
4481
4482         Tests for module 'cosf'.
4483         * modules/cosf-tests: New file.
4484         * tests/test-cosf.c: New file.
4485
4486         New module 'cosf'.
4487         * lib/math.in.h (cosf): New declaration.
4488         * lib/cosf.c: New file.
4489         * m4/cosf.m4: New file.
4490         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
4491         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
4492         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
4493         * modules/cosf: New file.
4494         * tests/test-math-c++.cc: Check the declaration of cosf.
4495         * doc/posix-functions/cosf.texi: Mention the new module.
4496
4497         cos: Use a .m4 file.
4498         * m4/cos.m4: New file.
4499         * modules/cos (Files): Add it.
4500         (configure.ac): Just invoke gl_FUNC_COS.
4501
4502 2011-10-08  Bruno Haible  <bruno@clisp.org>
4503
4504         Tests for module 'sinf'.
4505         * modules/sinf-tests: New file.
4506         * tests/test-sinf.c: New file.
4507
4508         New module 'sinf'.
4509         * lib/math.in.h (sinf): New declaration.
4510         * lib/sinf.c: New file.
4511         * m4/sinf.m4: New file.
4512         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
4513         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
4514         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
4515         * modules/sinf: New file.
4516         * tests/test-math-c++.cc: Check the declaration of sinf.
4517         * doc/posix-functions/sinf.texi: Mention the new module.
4518
4519         sin: Use a .m4 file.
4520         * m4/sin.m4: New file.
4521         * modules/sin (Files): Add it.
4522         (configure.ac): Just invoke gl_FUNC_SIN.
4523
4524 2011-10-08  Bruno Haible  <bruno@clisp.org>
4525
4526         Tests for module 'powf'.
4527         * modules/powf-tests: New file.
4528         * tests/test-powf.c: New file.
4529
4530         New module 'powf'.
4531         * lib/math.in.h (powf): New declaration.
4532         * lib/powf.c: New file.
4533         * m4/powf.m4: New file.
4534         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
4535         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
4536         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
4537         * modules/powf: New file.
4538         * tests/test-math-c++.cc: Check the declaration of powf.
4539         * doc/posix-functions/powf.texi: Mention the new module.
4540
4541         pow: Use a .m4 file.
4542         * m4/pow.m4: New file.
4543         * modules/pow (Files): Add it.
4544         (configure.ac): Just invoke gl_FUNC_POW.
4545
4546 2011-10-08  Bruno Haible  <bruno@clisp.org>
4547
4548         Tests for module 'log10f'.
4549         * modules/log10f-tests: New file.
4550         * tests/test-log10f.c: New file.
4551
4552         New module 'log10f'.
4553         * lib/math.in.h (log10f): New declaration.
4554         * lib/log10f.c: New file.
4555         * m4/log10f.m4: New file.
4556         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
4557         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
4558         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
4559         * modules/log10f: New file.
4560         * tests/test-math-c++.cc: Check the declaration of log10f.
4561         * doc/posix-functions/log10f.texi: Mention the new module.
4562
4563         log10: Use a .m4 file.
4564         * m4/log10.m4: New file.
4565         * modules/log10 (Files): Add it.
4566         (configure.ac): Just invoke gl_FUNC_LOG10.
4567
4568 2011-10-08  Bruno Haible  <bruno@clisp.org>
4569
4570         Tests for module 'logf'.
4571         * modules/logf-tests: New file.
4572         * tests/test-logf.c: New file.
4573
4574         New module 'logf'.
4575         * lib/math.in.h (logf): New declaration.
4576         * lib/logf.c: New file.
4577         * m4/logf.m4: New file.
4578         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
4579         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
4580         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
4581         * modules/logf: New file.
4582         * tests/test-math-c++.cc: Check the declaration of logf.
4583         * doc/posix-functions/logf.texi: Mention the new module.
4584
4585         log: Use a .m4 file.
4586         * m4/log.m4: New file.
4587         * modules/log (Files): Add it.
4588         (configure.ac): Just invoke gl_FUNC_LOG.
4589
4590 2011-10-08  Bruno Haible  <bruno@clisp.org>
4591
4592         Tests for module 'expf'.
4593         * modules/expf-tests: New file.
4594         * tests/test-expf.c: New file.
4595
4596         New module 'expf'.
4597         * lib/math.in.h (expf): New declaration.
4598         * lib/expf.c: New file.
4599         * m4/expf.m4: New file.
4600         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
4601         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
4602         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
4603         * modules/expf: New file.
4604         * tests/test-math-c++.cc: Check the declaration of expf.
4605         * doc/posix-functions/expf.texi: Mention the new module.
4606
4607         exp: Use a .m4 file.
4608         * m4/exp.m4: New file.
4609         * modules/exp (Files): Add it.
4610         (configure.ac): Just invoke gl_FUNC_EXP.
4611
4612 2011-10-08  Bruno Haible  <bruno@clisp.org>
4613
4614         Tests for module 'sqrtf'.
4615         * modules/sqrtf-tests: New file.
4616         * tests/test-sqrtf.c: New file.
4617
4618         New module 'sqrtf'.
4619         * lib/math.in.h (sqrtf): New declaration.
4620         * lib/sqrtf.c: New file.
4621         * m4/sqrtf.m4: New file.
4622         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
4623         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
4624         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
4625         * modules/sqrtf: New file.
4626         * tests/test-math-c++.cc: Check the declaration of sqrtf.
4627         * doc/posix-functions/sqrtf.texi: Mention the new module.
4628
4629 2011-10-08  Bruno Haible  <bruno@clisp.org>
4630
4631         Tests: Avoid link failures w.r.t. libintl.
4632         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
4633         $(LIBINTL).
4634         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
4635         $(LIBINTL).
4636         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
4637         against $(LIBINTL).
4638         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
4639         $(LIBINTL).
4640         * modules/openat-tests (Makefile.am): Link test-fchmodat against
4641         $(LIBINTL).
4642         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
4643
4644 2011-10-08  Bruno Haible  <bruno@clisp.org>
4645
4646         pow tests: Defeat compiler optimizations.
4647         * tests/test-pow.c (main): Assign arguments to x and y before use.
4648
4649 2011-10-08  Bruno Haible  <bruno@clisp.org>
4650
4651         gnulib-tool: Improve last commit.
4652         * gnulib-tool (func_modules_transitive_closure): Simplify code.
4653         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
4654         ignore dependencies that are not among the modules list.
4655
4656 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
4657
4658         gnulib-tool: don't follow dependencies to avoided modules
4659         This fixes a bug that is related to the previous one.
4660         * gnulib-tool (func_modules_transitive_closure)
4661         (func_emit_autoconf_snippets):
4662         Check whether a dependency is acceptable before using it.
4663         (--extract-dependencies): Report an error if --avoid is also used,
4664         since this combination of options is not yet supported.
4665
4666         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
4667         Problem reported by Peter Dyballa in
4668         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
4669         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
4670         when echoing "$condition".
4671
4672 2011-10-07  Bruno Haible  <bruno@clisp.org>
4673
4674         Fix documentation about math functions on MacOS X.
4675         * doc/posix-functions/exp2.texi: Don't say the function is missing on
4676         MacOS X 10.5.
4677         * doc/posix-functions/fdim.texi: Likewise.
4678         * doc/posix-functions/feclearexcept.texi: Likewise.
4679         * doc/posix-functions/fegetenv.texi: Likewise.
4680         * doc/posix-functions/fegetround.texi: Likewise.
4681         * doc/posix-functions/feholdexcept.texi: Likewise.
4682         * doc/posix-functions/feraiseexcept.texi: Likewise.
4683         * doc/posix-functions/fesetenv.texi: Likewise.
4684         * doc/posix-functions/fesetround.texi: Likewise.
4685         * doc/posix-functions/fetestexcept.texi: Likewise.
4686         * doc/posix-functions/feupdateenv.texi: Likewise.
4687         * doc/posix-functions/fmax.texi: Likewise.
4688         * doc/posix-functions/fmin.texi: Likewise.
4689         * doc/posix-functions/log2.texi: Likewise.
4690         * doc/posix-functions/modff.texi: Likewise.
4691         * doc/posix-functions/nan.texi: Likewise.
4692         * doc/posix-functions/nanf.texi: Likewise.
4693         * doc/posix-functions/nextafterf.texi: Likewise.
4694         * doc/posix-functions/remquo.texi: Likewise.
4695
4696 2011-10-07  Bruno Haible  <bruno@clisp.org>
4697
4698         modff: Drop assumption about library that defines modff.
4699         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
4700         AC_CHECK_FUNCS.
4701         * modules/modff (Files): Add m4/mathfunc.m4.
4702
4703 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
4704
4705         raise tests: Avoid a GCC warning.
4706         * tests/test-raise.c (handler): Use _Noreturn.
4707
4708 2011-10-07  Bruno Haible  <bruno@clisp.org>
4709
4710         Tests for module 'ldexpf'.
4711         * modules/ldexpf-tests: New file.
4712         * tests/test-ldexpf.c: New file.
4713
4714         New module 'ldexpf'.
4715         * lib/math.in.h (ldexpf): New declaration.
4716         * lib/ldexpf.c: New file.
4717         * m4/ldexpf.m4: New file.
4718         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
4719         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
4720         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
4721         * modules/ldexpf: New file.
4722         * tests/test-math-c++.cc: Check the declaration of ldexpf.
4723         * doc/posix-functions/ldexpf.texi: Mention the new module.
4724
4725 2011-10-06  Bruno Haible  <bruno@clisp.org>
4726
4727         frexpf: Work around problems on IRIX and mingw.
4728         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
4729         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
4730         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
4731         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
4732         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
4733         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
4734         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
4735
4736 2011-10-06  Bruno Haible  <bruno@clisp.org>
4737
4738         fabsf: Drop assumption about library that defines fabsf.
4739         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
4740         AC_CHECK_FUNCS.
4741         * modules/fabsf (Files): Add m4/mathfunc.m4.
4742
4743 2011-10-06  Bruno Haible  <bruno@clisp.org>
4744
4745         frexpf: Drop assumption about library that defines frexpf.
4746         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
4747         'int *', 'float *', 'long double *', 'float', 'long double'.
4748         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
4749         AC_CHECK_FUNCS.
4750         * modules/frexpf (Files): Add m4/mathfunc.m4.
4751
4752         Tests for module 'frexpf'.
4753         * modules/frexpf-tests: New file.
4754         * tests/test-frexpf.c: New file.
4755
4756         New module 'frexpf'.
4757         * lib/math.in.h (frexpf): New declaration.
4758         * lib/frexpf.c: New file.
4759         * m4/frexpf.m4: New file.
4760         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
4761         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
4762         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
4763         * modules/frexpf: New file.
4764         * tests/test-math-c++.cc: Check the declaration of frexpf.
4765         * doc/posix-functions/frexpf.texi: Mention the new module.
4766
4767 2011-10-06  Bruno Haible  <bruno@clisp.org>
4768
4769         math: Sort function declarations of math.in.h.
4770         * lib/math.in.h (frexp, logb): Move declarations.
4771
4772 2011-10-05  Bruno Haible  <bruno@clisp.org>
4773
4774         Tests for module 'modff'.
4775         * modules/modff-tests: New file.
4776         * tests/test-modff.c: New file.
4777
4778         New module 'modff'.
4779         * lib/math.in.h (modff): New declaration.
4780         * lib/modff.c: New file.
4781         * m4/modff.m4: New file.
4782         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
4783         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
4784         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
4785         * modules/modff: New file.
4786         * tests/test-math-c++.cc: Check the declaration of modff.
4787         * doc/posix-functions/modff.texi: Mention the new module.
4788
4789         modf tests: Make test sharper.
4790         * tests/test-modf.c (main): Strengthen upper bound.
4791
4792         modf: Use a .m4 file.
4793         * m4/modf.m4: New file.
4794         * modules/modf (Files): Add it.
4795         (configure.ac): Just invoke gl_FUNC_MODF.
4796
4797 2011-10-05  Bruno Haible  <bruno@clisp.org>
4798
4799         Tests for module 'fmodf'.
4800         * modules/fmodf-tests: New file.
4801         * tests/test-fmodf.c: New file.
4802
4803         New module 'fmodf'.
4804         * lib/math.in.h (fmodf): New declaration.
4805         * lib/fmodf.c: New file.
4806         * m4/fmodf.m4: New file.
4807         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
4808         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
4809         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
4810         * modules/fmodf: New file.
4811         * tests/test-math-c++.cc: Check the declaration of fmodf.
4812         * doc/posix-functions/fmodf.texi: Mention the new module.
4813
4814         fmod: Use a .m4 file.
4815         * m4/fmod.m4: New file.
4816         * modules/fmod (Files): Add it.
4817         (configure.ac): Just invoke gl_FUNC_FMOD.
4818
4819 2011-10-05  Bruno Haible  <bruno@clisp.org>
4820
4821         Tests for module 'fabsf'.
4822         * modules/fabsf-tests: New file.
4823         * tests/test-fabsf.c: New file.
4824
4825         New module 'fabsf'.
4826         * lib/math.in.h (fabsf): New declaration.
4827         * lib/fabsf.c: New file.
4828         * m4/fabsf.m4: New file.
4829         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
4830         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
4831         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
4832         * modules/fabsf: New file.
4833         * tests/test-math-c++.cc: Check the declaration of fabsf.
4834         * doc/posix-functions/fabsf.texi: Mention the new module.
4835
4836         fabs: Use a .m4 file.
4837         * m4/fabs.m4: New file.
4838         * modules/fabs (Files): Add it.
4839         (configure.ac): Just invoke gl_FUNC_FABS.
4840
4841 2011-10-05  Jim Meyering  <meyering@redhat.com>
4842
4843         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
4844         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
4845         ls -lL regression introduced in coreutils-8.12, it does so at the
4846         cost of an additional stat call in the common case.  Besides, now
4847         that the kernel change that prompted commit 95f7c57f has been reverted
4848         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
4849         we have no use for commit 95f7c57f, "file-has-acl: use
4850         acl_extended_file_nofollow if available".
4851
4852 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
4853
4854         file-has-acl: revert unintended change in behavior of ls -L
4855         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
4856         derived from...
4857         (file_has_acl): ...code here.  Call it.
4858         This problem was introduced with 2011-07-22 commit 95f7c57f,
4859         "file-has-acl: use acl_extended_file_nofollow if available".
4860         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
4861
4862 2011-10-03  Bruno Haible  <bruno@clisp.org>
4863
4864         poll: Avoid link errors on MSVC.
4865         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
4866         * modules/poll (Depends-on): Add sockets.
4867         (Link): New section.
4868         * NEWS: Mention the change.
4869         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
4870         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
4871         $(LIB_POLL) instead of $(LIBSOCKET).
4872
4873 2011-10-03  Bruno Haible  <bruno@clisp.org>
4874
4875         sys_select tests: Fix link error on MSVC 9.
4876         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
4877         with $(LIB_SELECT) instead of $(LIBSOCKET).
4878
4879 2011-10-03  Bruno Haible  <bruno@clisp.org>
4880
4881         sys_select: Fix compilation error on mingw.
4882         * lib/sys_select.in.h: On native Windows, include <io.h>.
4883
4884 2011-10-03  Bruno Haible  <bruno@clisp.org>
4885
4886         wmemset: Support for MSVC.
4887         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
4888         whether wmemset() exists.
4889
4890 2011-10-03  Bruno Haible  <bruno@clisp.org>
4891
4892         wmemmove: Support for MSVC.
4893         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
4894         whether wmemmove() exists.
4895
4896 2011-10-03  Bruno Haible  <bruno@clisp.org>
4897
4898         wmemcpy: Support for MSVC.
4899         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
4900         whether wmemcpy() exists.
4901
4902 2011-10-03  Bruno Haible  <bruno@clisp.org>
4903
4904         wmemcmp: Support for MSVC.
4905         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
4906         whether wmemcmp() exists.
4907
4908 2011-10-03  Bruno Haible  <bruno@clisp.org>
4909
4910         wmemchr: Support for MSVC.
4911         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
4912         whether wmemchr() exists.
4913
4914 2011-10-03  Bruno Haible  <bruno@clisp.org>
4915
4916         glthread/*, strsignal: Support for MSVC.
4917         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
4918         including <winsock.h> on MSVC 9.
4919         * lib/glthread/lock.h: Likewise.
4920         * lib/glthread/thread.h: Likewise.
4921         * lib/glthread/tls.h: Likewise.
4922         * lib/glthread/yield.h: Likewise.
4923         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
4924         if HAVE_UNISTD_H is false.
4925         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
4926
4927 2011-10-03  Bruno Haible  <bruno@clisp.org>
4928
4929         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
4930         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
4931         Set to 100000.
4932
4933 2011-10-03  Bruno Haible  <bruno@clisp.org>
4934
4935         acl: Fix specification.
4936         * lib/file-has-acl.c (file_has_acl): Fix specification.
4937
4938 2011-10-03  Bruno Haible  <bruno@clisp.org>
4939
4940         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
4941         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
4942         (compute_curr_prefix, shared_library_fullname,
4943         find_shared_library_fullname, get_shared_library_fullname, relocate):
4944         Use it together with PIC && INSTALLDIR.
4945         Reported by <jojelino@gmail.com>
4946         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
4947
4948 2011-10-01  Jim Meyering  <meyering@redhat.com>
4949
4950         maint.mk: adjust a release-related rule not to require use of gzip
4951         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
4952         Instead, check each file in $(DIST_ARCHIVES).  This is better for
4953         projects that build only .tar.xz files.  Also fix an erroneous test.
4954
4955         test-linkat: don't leave behind a temporary file
4956         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
4957         Otherwise, coreutils' "make distcheck" would fail with this:
4958           Only in /c/cu/tests/torture/coreutils/test/\
4959             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
4960           make[2]: *** [my-distcheck] Error 1
4961
4962         float, math: add omitted file
4963         * lib/itold.c: Add file, required for yesterday's float change.
4964
4965 2011-10-01  Bruno Haible  <bruno@clisp.org>
4966
4967         isinf: Fix for OpenBSD/x86.
4968         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
4969         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
4970         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
4971
4972 2011-10-01  Bruno Haible  <bruno@clisp.org>
4973
4974         isfinite: Fix syntax error in configure test.
4975         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
4976
4977         isfinite: Fix typo.
4978         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
4979         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
4980
4981 2011-10-01  Bruno Haible  <bruno@clisp.org>
4982
4983         nonblocking tests: Fix test failure on Linux/IA-64.
4984         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
4985         Set to 270000.
4986
4987 2011-10-01  Bruno Haible  <bruno@clisp.org>
4988
4989         mkfifoat tests: Fix a test failure on mingw.
4990         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
4991         with error ENOSYS.
4992
4993 2011-09-30  Bruno Haible  <bruno@clisp.org>
4994
4995         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
4996         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
4997         'long double'. Set REPLACE_ITOLD.
4998         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
4999         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
5000         * lib/itold.c: New file.
5001         * modules/float (Files): Add lib/itold.c.
5002         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
5003         (Makefile.am): Substitute REPLACE_ITOLD.
5004         * modules/math (Depends-on): Add float.
5005         (Makefile.am): Substitute REPLACE_ITOLD.
5006         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
5007         * doc/posix-headers/math.texi: Likewise.
5008         * doc/posix-functions/logl.texi: Likewise.
5009
5010 2011-09-30  Bruno Haible  <bruno@clisp.org>
5011
5012         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
5013         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
5014         Set to 140000.
5015
5016 2011-09-30  Bruno Haible  <bruno@clisp.org>
5017
5018         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
5019         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
5020         invocation, say "right after AC_PROG_CC_STDC", not "right after
5021         AC_PROG_CC".
5022         Reported by Gary V. Vaughan <gary@gnu.org>.
5023
5024 2011-09-30  Bruno Haible  <bruno@clisp.org>
5025
5026         Centralize C99 requirement.
5027         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
5028         * modules/stdarg (configure.ac-early): Invoke it instead of
5029         AC_PROG_CC_STDC.
5030         Reported by Gary V. Vaughan and Paul Eggert.
5031
5032 2011-09-29  Bruno Haible  <bruno@clisp.org>
5033
5034         float: Fix LDBL_MAX value on Linux/PowerPC.
5035         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
5036         on Linux/PowerPC.
5037         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
5038         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
5039         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
5040         platform.
5041         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
5042
5043 2011-09-29  Bruno Haible  <bruno@clisp.org>
5044
5045         doc: Improve doc about gl_EARLY.
5046         * doc/gnulib-tool.texi (Initial import): Mention where to place an
5047         AC_PROG_CC_STDC invocation.
5048         Reported by Gary V. Vaughan <gary@gnu.org>.
5049
5050 2011-09-28  Bruno Haible  <bruno@clisp.org>
5051
5052         fgetc, fputc, fread, fwrite tests: Fix link error.
5053         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
5054         on non-MSVC platforms.
5055         * tests/test-fputc.c (main): Likewise.
5056         * tests/test-fread.c (main): Likewise.
5057         * tests/test-fwrite.c (main): Likewise.
5058         Reported by Jim Meyering.
5059
5060 2011-09-27  Bruno Haible  <bruno@clisp.org>
5061
5062         fputc, fwrite tests: Avoid test failure on MSVC.
5063         * tests/test-fgetc.c: Include msvc-inval.h.
5064         (main): Invoke gl_msvc_inval_ensure_handler.
5065         * tests/test-fputc.c: Include msvc-inval.h.
5066         (main): Invoke gl_msvc_inval_ensure_handler.
5067         * tests/test-fread.c: Include msvc-inval.h.
5068         (main): Invoke gl_msvc_inval_ensure_handler.
5069         * tests/test-fwrite.c: Include msvc-inval.h.
5070         (main): Invoke gl_msvc_inval_ensure_handler.
5071         * modules/fgetc-tests (Depends-on): Add msvc-inval.
5072         * modules/fputc-tests (Depends-on): Likewise.
5073         * modules/fread-tests (Depends-on): Likewise.
5074         * modules/fwrite-tests (Depends-on): Likewise.
5075
5076 2011-09-27  Bruno Haible  <bruno@clisp.org>
5077
5078         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
5079         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
5080         (raise): Remove older, duplicated declaration.
5081         (_gl_raise_SIGPIPE): New declaration.
5082         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
5083         (rpl_raise): Remove function.
5084         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
5085         a gnulib-defined SIGPIPE here.
5086         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
5087         'sigprocmask' has detected missing signal-blocking and the module
5088         'sigpipe' is enabled.
5089         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
5090
5091 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
5092
5093         base64-tests: avoid memory leak
5094         * tests/test-base64.c (main): Plug memory leak.
5095
5096         base32: new module
5097         * modules/base32: New module.
5098         * lib/base32.c: New file.
5099         * lib/base32.h: Likewise.
5100         * m4/base32.m4: Likewise.
5101         * modules/base32-tests: New test.
5102         * tests/test-base32.c: Likewise.
5103         * MODULES.html.sh (Misc): Mention it.
5104
5105 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
5106
5107         gnulib: use more-standard license notice wording
5108         * gnulib-tool (func_emit_copyright_notice): When emitting a
5109         license notice into a file, use the standard wording as suggested
5110         by the current information for GNU maintainers, except say "file"
5111         rather than "program".  The new wording gives a license version
5112         number, which addresses an issue raised by Glenn Morris in
5113         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
5114         * m4/onceonly.m4: Use that same wording here, too.
5115
5116         dup2: minor simplification
5117         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
5118         as lib/dup2.c no longer uses 'inline'.
5119
5120 2011-09-25  Bruno Haible  <bruno@clisp.org>
5121
5122         strings: Fix compilation error on MSVC.
5123         * lib/strings.in.h: Include <stddef.h> for size_t.
5124
5125 2011-09-25  Bruno Haible  <bruno@clisp.org>
5126
5127         fflush et al.: Document limitation on MSVC.
5128         * doc/posix-functions/fflush.texi: Document possible crash in handling
5129         mode other than DEFAULT_HANDLING.
5130         * doc/posix-functions/fgetc.texi: Likewise.
5131         * doc/posix-functions/fputc.texi: Likewise.
5132         * doc/posix-functions/fread.texi: Likewise.
5133         * doc/posix-functions/fwrite.texi: Likewise.
5134
5135 2011-09-25  Bruno Haible  <bruno@clisp.org>
5136
5137         msvc-inval: Allow three invalid parameter handling modes.
5138         * lib/msvc-inval.h: Don't include <stdlib.h> here.
5139         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
5140         macros.
5141         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
5142         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
5143         SANE_LIBRARY_HANDLING as a no-op.
5144         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
5145         <stdlib.h>.
5146         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
5147
5148 2011-09-25  Bruno Haible  <bruno@clisp.org>
5149
5150         msvc-inval: Make handler multithread-safe.
5151         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
5152         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
5153         declarations.
5154         (gl_msvc_inval_current): New declaration.
5155         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
5156         Operate on the structure returned by gl_msvc_inval_current().
5157         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
5158         Remove varaiables.
5159         (tls_index, tls_initialized): New variables.
5160         (not_per_thread): New variable.
5161         (gl_msvc_inval_current): New function.
5162         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
5163         returned by gl_msvc_inval_current().
5164
5165 2011-09-25  Bruno Haible  <bruno@clisp.org>
5166
5167         msvc-inval: Install handler globally.
5168         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
5169         !_MSC_VER.
5170         (gl_msvc_invalid_parameter_handler): Remove declaration.
5171         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
5172         declarations.
5173         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
5174         Install the handler globally, don't uninstall it.
5175         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
5176         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
5177         currently valid, call RaiseException instead.
5178         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
5179         for !_MSC_VER.
5180
5181 2011-09-25  Bruno Haible  <bruno@clisp.org>
5182
5183         strerror_r-posix: Fix for MSVC 9.
5184         * lib/strerror_r.c (local_snprintf): New function.
5185         (snprintf): Define to local_snprintf, not to _snprintf.
5186
5187 2011-09-25  Bruno Haible  <bruno@clisp.org>
5188
5189         ftruncate: Support for MSVC 9.
5190         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
5191         (chsize_nothrow): New function.
5192         (chsize): Redefine as a macro.
5193         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
5194         * modules/ftruncate (Depends-on): Add msvc-inval.
5195
5196 2011-09-25  Bruno Haible  <bruno@clisp.org>
5197
5198         New module 'fstat'.
5199         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
5200         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
5201         * lib/fchdir.c (rpl_fstat): Remove function.
5202         * m4/fstat.m4: New file.
5203         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
5204         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
5205         declared.
5206         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
5207         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
5208         * modules/fstat: New file.
5209         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
5210         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
5211         is set.
5212         * doc/posix-functions/fstat.texi: Mention the new module and the
5213         problem on MSVC.
5214         * NEWS: Mention the change.
5215         * modules/acl (Depends-on): Add fstat.
5216         * modules/chdir-safer (Depends-on): Likewise.
5217         * modules/chown (Depends-on): Likewise.
5218         * modules/copy-file (Depends-on): Likewise.
5219         * modules/fchdir (Depends-on): Likewise.
5220         * modules/fdopendir (Depends-on): Likewise.
5221         * modules/fopen (Depends-on): Likewise.
5222         * modules/fts (Depends-on): Likewise.
5223         * modules/getcwd (Depends-on): Likewise.
5224         * modules/isapipe (Depends-on): Likewise.
5225         * modules/linkat (Depends-on): Likewise.
5226         * modules/lseek (Depends-on): Likewise.
5227         * modules/mkdir-p (Depends-on): Likewise.
5228         * modules/open (Depends-on): Likewise.
5229         * modules/openat (Depends-on): Likewise.
5230         * modules/read-file (Depends-on): Likewise.
5231         * modules/renameat (Depends-on): Likewise.
5232         * modules/utimens (Depends-on): Likewise.
5233
5234 2011-09-25  Bruno Haible  <bruno@clisp.org>
5235
5236         linkat: Fix compilation on MSVC 9.
5237         * lib/linkat.c: Don't include <stdint.h>.
5238
5239 2011-09-25  Bruno Haible  <bruno@clisp.org>
5240
5241         fclose: Support for MSVC 9.
5242         * lib/fclose.c: Include msvc-inval.h.
5243         (fclose_nothrow): New function.
5244         (rpl_fclose): Use it.
5245         * modules/fclose (Depends-on): Add msvc-inval.
5246         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
5247
5248 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
5249
5250         dup2: minor simplifications
5251         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
5252         that it's a performance win.
5253         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
5254         ! defined __CYGWIN__)" to "ifdef F_GETFL".
5255
5256 2011-09-24  Jim Meyering  <meyering@redhat.com>
5257
5258         test-futimens: avoid a warning from gcc -Wshadow
5259         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
5260         to avoid a shadowing warning.
5261
5262 2011-09-24  Bruno Haible  <bruno@clisp.org>
5263
5264         fdopen: Support for MSVC 9.
5265         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
5266         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
5267         * lib/fdopen.c: Include msvc-inval.h.
5268         (fdopen_nothrow): New function.
5269         (rpl_fdopen): Use it.
5270         * modules/fdopen (Depends-on): Add msvc-inval.
5271         * modules/fclose-tests (Depends-on): Add fdopen.
5272         * modules/fflush-tests (Depends-on): Likewise.
5273         * modules/fgetc-tests (Depends-on): Likewise.
5274         * modules/fputc-tests (Depends-on): Likewise.
5275         * modules/fread-tests (Depends-on): Likewise.
5276         * modules/freopen-tests (Depends-on): Likewise.
5277         * modules/fseeko-tests (Depends-on): Likewise.
5278         * modules/ftello-tests (Depends-on): Likewise.
5279         * modules/fwrite-tests  (Depends-on): Likewise.
5280         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
5281
5282 2011-09-24  Bruno Haible  <bruno@clisp.org>
5283
5284         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
5285         * modules/fgetc-tests (Depends-on): Add unistd.
5286         * modules/fputc-tests (Depends-on): Likewise.
5287         * modules/fread-tests (Depends-on): Likewise.
5288         * modules/fwrite-tests (Depends-on): Likewise.
5289
5290 2011-09-24  Bruno Haible  <bruno@clisp.org>
5291
5292         dup: Simplify autoconf test.
5293         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
5294         on gl_MSVC_INVAL's result.
5295
5296 2011-09-24  Bruno Haible  <bruno@clisp.org>
5297
5298         Tests for function fwrite().
5299         * modules/fwrite-tests: New file.
5300         * tests/test-fwrite.c: New file.
5301         * modules/stdio-tests (Depends-on): Add fwrite-tests.
5302
5303         Tests for function fread().
5304         * modules/fread-tests: New file.
5305         * tests/test-fread.c: New file.
5306         * modules/stdio-tests (Depends-on): Add fread-tests.
5307
5308         Activate fputc tests.
5309         * modules/stdio-tests (Depends-on): Add fputc-tests.
5310
5311         Enhance fgetc, fputc tests.
5312         * tests/test-fgetc.c (main): Also test the stream's error indicator.
5313         * tests/test-fputc.c (main): Likewise.
5314
5315 2011-09-24  Bruno Haible  <bruno@clisp.org>
5316
5317         write: Support for MSVC 9.
5318         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
5319         is not 1.
5320         * lib/write.c (write_nothrow): New function.
5321         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
5322         not 1. Use write_nothrow.
5323         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
5324         invalid parameter handler.
5325         (gl_PREREQ_WRITE): New macro.
5326         * modules/write (Depends-on): Add msvc-inval.
5327         (configure.ac): Invoke gl_PREREQ_WRITE.
5328         * doc/posix-functions/write.texi: Mention the problem on MSVC.
5329
5330 2011-09-24  Bruno Haible  <bruno@clisp.org>
5331
5332         read: Fix last commit.
5333         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
5334
5335 2011-09-24  Bruno Haible  <bruno@clisp.org>
5336
5337         dup2: Fix last commit.
5338         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
5339         (rpl_dup2): Disable fcntl workaround on native Windows.
5340
5341         sigprocmask: Make code safer.
5342         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
5343         section that changes macro definitions for this compilation unit.
5344
5345 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
5346
5347         dup2: clarify by coalescing Windows-specific material
5348         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
5349         "msvc-nothrow.h"' to the Windows-specific section, so that the
5350         Emacs source need not contain these include files.
5351         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
5352         Windows-specific fixes into this function rather than just the
5353         nothrow fix, as this shortens and clarifies the code.  Always
5354         define as a function, as that's a bit cleaner than having it be
5355         sometimes a function and sometimes a macro.
5356         (rpl_dup2): Move the Windows-specific stuff out of here and into
5357         ms_windows_dup2.  Don't protect the Haiku-related fix with
5358         "#if !defined __linux__", as the same code also works around
5359         a Linux kernel bug, and it doesn't add any system calls on any
5360         platform.  Add comment about FreeBSD 6.1.
5361
5362         sigprocmask: move #include directive
5363         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
5364         Windows-specific section, so that the Emacs source need not
5365         contain msvc-inval.h.
5366
5367 2011-09-23  Bruno Haible  <bruno@clisp.org>
5368
5369         read: Support for MSVC 9.
5370         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
5371         is not 1.
5372         * lib/read.c (read_nothrow): New function.
5373         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
5374         read_nothrow.
5375         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
5376         invalid parameter handler.
5377         (gl_PREREQ_READ): New macro.
5378         * modules/read (Depends-on): Add msvc-inval.
5379         (configure.ac): Invoke gl_PREREQ_READ.
5380         * doc/posix-functions/read.texi: Mention the problem on MSVC.
5381
5382 2011-09-23  Bruno Haible  <bruno@clisp.org>
5383
5384         close: Support for MSVC 9.
5385         * lib/close.c: Include <errno.h>, msvc-inval.h.
5386         (close_nothrow): New function.
5387         (rpl_close): Use it.
5388         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
5389         invalid parameter handler.
5390         * modules/close (Depends-on): Add msvc-inval.
5391         * modules/dup2-tests (Depends-on): Add close.
5392         * modules/dup3-tests (Depends-on): Likewise.
5393         * modules/fcntl-tests (Depends-on): Likewise.
5394         * modules/spawn-pipe-tests (Depends-on): Likewise.
5395         * modules/unistd-safer-tests (Depends-on): Likewise.
5396         * doc/posix-functions/close.texi: Mention the problem on MSVC.
5397
5398 2011-09-23  Bruno Haible  <bruno@clisp.org>
5399
5400         New module 'dup'.
5401         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
5402         Allow replacement.
5403         * lib/dup.c: New file.
5404         * lib/fchdir.c (rpl_dup): Remove function.
5405         * m4/dup.m4: New file.
5406         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
5407         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
5408         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
5409         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
5410         * modules/dup: New file.
5411         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
5412         'dup' module is in use.
5413         * modules/fdopendir (Depends-on): Add dup.
5414         * modules/fdutimensat-tests (Depends-on): Likewise.
5415         * modules/fts (Depends-on): Likewise.
5416         * modules/futimens-tests (Depends-on): Likewise.
5417         * modules/posix_spawnp-tests (Depends-on): Likewise.
5418         * modules/unistd-safer-tests (Depends-on): Likewise.
5419         * modules/utimens-tests (Depends-on): Likewise.
5420         * doc/posix-functions/dup.texi: Mention the new module and the problem
5421         on MSVC.
5422
5423 2011-09-23  Bruno Haible  <bruno@clisp.org>
5424
5425         getdtablesize: Support for MSVC 9.
5426         * lib/getdtablesize.c: Include msvc-inval.h.
5427         (_setmaxstdio_nothrow): New function.
5428         (_setmaxstdio): Redefine it.
5429         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
5430         * modules/getdtablesize (Depends-on): Add msvc-inval.
5431         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
5432
5433 2011-09-23  Bruno Haible  <bruno@clisp.org>
5434
5435         signal-h: Rename from signal.
5436         * modules/signal-h: Renamed from modules/signal.
5437         * modules/pthread_sigmask (Depends-on): Update.
5438         * modules/raise (Depends-on): Likewise.
5439         * modules/sigaction (Depends-on): Likewise.
5440         * modules/sigpipe (Depends-on): Likewise.
5441         * modules/sigprocmask (Depends-on): Likewise.
5442         * modules/sys_select (Depends-on): Likewise.
5443         * modules/signal-h-tests: Renamed from modules/signal-tests.
5444         (Files, Depends-on, Makefile.am): Update.
5445         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
5446         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
5447         (Files, Makefile.am): Update.
5448         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
5449         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
5450         * modules/signal: New placeholder file.
5451         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
5452         * doc/posix-headers/signal.texi: Update.
5453         * NEWS: Mention the change.
5454
5455 2011-09-23  Bruno Haible  <bruno@clisp.org>
5456
5457         sigprocmask: Avoid crashes through signal() on MSVC 9.
5458         * lib/sigprocmask.c: Include msvc-inval.h.
5459         (signal_nothrow): New function.
5460         (signal): Redefine it.
5461         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
5462         * modules/sigprocmask (Depends-on): Add msvc-inval.
5463         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
5464
5465 2011-09-23  Bruno Haible  <bruno@clisp.org>
5466
5467         Tests for module 'raise'.
5468         * modules/raise-tests: New file.
5469         * tests/test-raise.c: New file.
5470
5471         raise: Support for MSVC.
5472         * lib/signal.in.h (raise): New declaration.
5473         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
5474         for native Windows platforms.
5475         * m4/raise.m4: New file.
5476         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
5477         HAVE_RAISE, REPLACE_RAISE.
5478         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
5479         REPLACE_RAISE.
5480         * modules/raise (Status, Notice): Remove fields.
5481         (Files): Add m4/raise.m4.
5482         (Depends-on): Add signal, msvc-inval.
5483         (configure.ac): Use the common idioms.
5484         (Maintainer): Add me.
5485         * tests/test-signal-c++.cc: Check the signature of raise.
5486         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
5487
5488 2011-09-23  Bruno Haible  <bruno@clisp.org>
5489
5490         pipe2: Fix compilation on pre-C99 compilers.
5491         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
5492
5493 2011-09-23  Bruno Haible  <bruno@clisp.org>
5494
5495         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
5496         * lib/msvc-nothrow.h: New file.
5497         * lib/msvc-nothrow.c: New file.
5498         * m4/msvc-nothrow.m4: New file.
5499         * modules/msvc-nothrow: New file.
5500         * lib/dup2.c: Include msvc-nothrow.h.
5501         (rpl_dup2): No need to protect _get_osfhandle call here.
5502         * lib/accept4.c: Include msvc-nothrow.h.
5503         * lib/error.c: Likewise.
5504         * lib/fcntl.c: Likewise.
5505         * lib/lseek.c: Likewise.
5506         * lib/nonblocking.c: Likewise.
5507         * lib/poll.c: Likewise.
5508         * lib/read.c: Likewise.
5509         * lib/select.c: Likewise.
5510         * lib/sockets.h: Likewise.
5511         * lib/sockets.c: Likewise.
5512         * lib/stdio-read.c: Likewise.
5513         * lib/stdio-write.c: Likewise.
5514         * lib/write.c: Likewise.
5515         * lib/w32sock.h: Likewise.
5516         * lib/w32spawn.h: Likewise.
5517         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
5518         * lib/fsync.c: Likewise.
5519         * lib/isapipe.c: Likewise.
5520         * modules/dup2 (Depends-on): Add msvc-nothrow.
5521         * modules/accept4 (Depends-on): Likewise.
5522         * modules/error (Depends-on): Likewise.
5523         * modules/fcntl (Depends-on): Likewise.
5524         * modules/lseek (Depends-on): Likewise.
5525         * modules/nonblocking (Depends-on): Likewise.
5526         * modules/poll (Depends-on): Likewise.
5527         * modules/read (Depends-on): Likewise.
5528         * modules/select (Depends-on): Likewise.
5529         * modules/sockets (Depends-on): Likewise.
5530         * modules/sigpipe (Depends-on): Likewise.
5531         * modules/write (Depends-on): Likewise.
5532         * modules/accept (Depends-on): Likewise.
5533         * modules/bind (Depends-on): Likewise.
5534         * modules/connect (Depends-on): Likewise.
5535         * modules/gethostname (Depends-on): Likewise.
5536         * modules/getpeername (Depends-on): Likewise.
5537         * modules/getsockname (Depends-on): Likewise.
5538         * modules/getsockopt (Depends-on): Likewise.
5539         * modules/ioctl (Depends-on): Likewise.
5540         * modules/listen (Depends-on): Likewise.
5541         * modules/recv (Depends-on): Likewise.
5542         * modules/recvfrom (Depends-on): Likewise.
5543         * modules/send (Depends-on): Likewise.
5544         * modules/sendto (Depends-on): Likewise.
5545         * modules/setsockopt (Depends-on): Likewise.
5546         * modules/shutdown (Depends-on): Likewise.
5547         * modules/socket (Depends-on): Likewise.
5548         * modules/execute (Depends-on): Likewise.
5549         * modules/spawn-pipe (Depends-on): Likewise.
5550         * modules/flock (Depends-on): Likewise.
5551         * modules/fsync (Depends-on): Likewise.
5552         * modules/isapipe (Depends-on): Likewise.
5553         * tests/test-cloexec.c: Include msvc-nothrow.h.
5554         * tests/test-dup-safer.c: Likewise.
5555         * tests/test-dup2.c: Likewise.
5556         * tests/test-dup3.c: Likewise.
5557         * tests/test-fcntl.c: Likewise.
5558         * tests/test-pipe.c: Likewise.
5559         * tests/test-pipe2.c: Likewise.
5560         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
5561         * modules/unistd-safer-tests (Depends-on): Likewise.
5562         * modules/dup2-tests (Depends-on): Likewise.
5563         * modules/dup3-tests (Depends-on): Likewise.
5564         * modules/fcntl-tests (Depends-on): Likewise.
5565         * modules/pipe-posix-tests (Depends-on): Likewise.
5566         * modules/pipe2-tests (Depends-on): Likewise.
5567
5568 2011-09-23  Bruno Haible  <bruno@clisp.org>
5569
5570         dup2: Make code more maintainable.
5571         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
5572         (rpl_dup2): Use it.
5573         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
5574         * modules/dup2 (configure.ac): Invoke it.
5575         Reported by Paul Eggert.
5576
5577 2011-09-23  Bruno Haible  <bruno@clisp.org>
5578
5579         msvc-inval: Fix compilation error.
5580         * lib/msvc-inval.h: Include <excpt.h>.
5581
5582 2011-09-23  Bruno Haible  <bruno@clisp.org>
5583
5584         mkdir: Tweak for MSVC 9.
5585         * lib/sys_stat.in.h: Update comments.
5586         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
5587
5588         Tests for module 'chdir'.
5589         * modules/chdir-tests: New file.
5590         * tests/test-chdir.c: New file.
5591
5592         New module 'chdir'.
5593         * modules/chdir: New file.
5594         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
5595         (chdir): New declaration.
5596         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
5597         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
5598         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
5599         * tests/test-unistd-c++.cc: Check signature of chdir.
5600         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
5601         * modules/chdir-long (Depends-on): Add chdir.
5602         * modules/fchdir (Depends-on): Likewise.
5603         * modules/rename (Depends-on): Likewise.
5604         * modules/savewd (Depends-on): Likewise.
5605
5606         rmdir: Support for mingw, MSVC 9.
5607         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
5608         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
5609
5610         getcwd: Tweak for MSVC 9.
5611         * lib/unistd.in.h: Update comments.
5612         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
5613
5614 2011-09-22  Bruno Haible  <bruno@clisp.org>
5615
5616         strerror_r-posix: Avoid a link error on MSVC.
5617         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
5618         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
5619
5620 2011-09-22  Bruno Haible  <bruno@clisp.org>
5621
5622         select: Avoid link errors on MSVC.
5623         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
5624         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
5625         * modules/pselect (Link): Likewise.
5626         * NEWS: Mention the change.
5627         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
5628         test-select-stdin against $(LIB_SELECT).
5629         * modules/pselect-tests (Makefile.am): Link test-pselect against
5630         $(LIB_SELECT).
5631
5632 2011-09-22  Bruno Haible  <bruno@clisp.org>
5633
5634         select: Avoid compilation error on MSVC.
5635         * lib/select.c: Don't include <stdbool.h>.
5636
5637 2011-09-21  Bruno Haible  <bruno@clisp.org>
5638
5639         Consolidate all uses of PATH_MAX in *.m4 files.
5640         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
5641         macros.
5642         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
5643         and gl_PATHMAX_SNIPPET.
5644         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
5645         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
5646         * modules/chdir-long (Files): Add m4/pathmax.m4.
5647         * modules/getcwd (Files): Likewise.
5648
5649 2011-09-21  Bruno Haible  <bruno@clisp.org>
5650
5651         ftruncate: Un-deprecate, concentrate on Win32 support.
5652         * modules/ftruncate (Status, Notice): Remove sections.
5653         (Depends-on): Add largefile.
5654         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
5655         non-mingw platforms.
5656         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
5657         include <io.h>.
5658         * modules/perror-tests (Depends-on): Add ftruncate.
5659         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
5660         'ftruncate' module.
5661
5662 2011-09-21  Bruno Haible  <bruno@clisp.org>
5663
5664         Add dependencies to new dirent related modules.
5665         * modules/opendir (Depends-on): Add closedir.
5666         * modules/getcwd (Depends-on): Add opendir, closedir.
5667         * modules/dirent-safer-tests (Depends-on): Likewise.
5668         * modules/fdopendir-tests (Depends-on): Likewise.
5669         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
5670         * modules/renameat-tests (Depends-on): Likewise.
5671
5672 2011-09-21  Bruno Haible  <bruno@clisp.org>
5673
5674         opendir: Avoid compilation error on mingw.
5675         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
5676         * modules/opendir (Depends-on): Add unistd.
5677
5678 2011-09-21  Bruno Haible  <bruno@clisp.org>
5679
5680         ftruncate tests: Avoid a test failure on mingw.
5681         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
5682
5683 2011-09-21  Bruno Haible  <bruno@clisp.org>
5684
5685         select tests: Avoid test failures on OSF/1 5.1 and mingw.
5686         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
5687         native Windows.
5688
5689 2011-09-21  Bruno Haible  <bruno@clisp.org>
5690
5691         New module 'fdopen'.
5692         * lib/stdio.in.h (fdopen): New declaration.
5693         * lib/fdopen.c: New file.
5694         * m4/fdopen.m4: New file.
5695         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
5696         REPLACE_FDOPEN.
5697         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
5698         REPLACE_FDOPEN.
5699         * modules/fdopen: New file.
5700         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
5701         * tests/test-stdio-c++.cc: Check signature of fdopen.
5702         * doc/posix-functions/fdopen.texi: Mention the new module.
5703
5704 2011-09-21  Bruno Haible  <bruno@clisp.org>
5705
5706         unlockpt tests: Avoid test failure on NetBSD 5.1.
5707         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
5708         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
5709
5710 2011-09-21  Bruno Haible  <bruno@clisp.org>
5711
5712         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
5713         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
5714         * tests/test-getlogin_r.c (main): Likewise.
5715
5716 2011-09-20  Bruno Haible  <bruno@clisp.org>
5717
5718         time tests: Don't require pid_t.
5719         * doc/posix-headers/time.texi: Revert last change.
5720         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
5721         * tests/test-time.c: Comment out the check for pid_t.
5722
5723 2011-09-20  Bruno Haible  <bruno@clisp.org>
5724
5725         fsync tests: Avoid a test failure on mingw.
5726         * tests/test-fsync.c (main): Allow a failure with EIO.
5727
5728 2011-09-20  Bruno Haible  <bruno@clisp.org>
5729
5730         euidaccess: Update comments.
5731         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
5732
5733 2011-09-20  Bruno Haible  <bruno@clisp.org>
5734
5735         Ensure EBADF returns for socket functions on mingw.
5736         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
5737         descriptor is invalid.
5738         * lib/bind.c (rpl_bind): Likewise.
5739         * lib/connect.c (rpl_connect): Likewise.
5740         * lib/getpeername.c (rpl_getpeername): Likewise.
5741         * lib/getsockname.c (rpl_getsockname): Likewise.
5742         * lib/getsockopt.c (rpl_getsockopt): Likewise.
5743         * lib/listen.c (rpl_listen): Likewise.
5744         * lib/recv.c (rpl_recv): Likewise.
5745         * lib/recvfrom.c (rpl_recvfrom): Likewise.
5746         * lib/send.c (rpl_send): Likewise.
5747         * lib/sendto.c (rpl_sendto): Likewise.
5748         * lib/setsockopt.c (rpl_setsockopt): Likewise.
5749         * lib/shutdown.c (rpl_shutdown): Likewise.
5750
5751 2011-09-20  Bruno Haible  <bruno@clisp.org>
5752
5753         select tests: EBADF tests.
5754         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
5755         test_bad_fd): New functions.
5756         (test_function): Invoke also test_bad_fd.
5757
5758 2011-09-20  Bruno Haible  <bruno@clisp.org>
5759
5760         Tests for module 'posix_spawn_file_actions_addopen.
5761         * modules/posix_spawn_file_actions_addopen-tests: New file.
5762         * tests/test-posix_spawn_file_actions_addopen.c: New file.
5763
5764         Tests for module 'posix_spawn_file_actions_adddup2'.
5765         * modules/posix_spawn_file_actions_adddup2-tests: New file.
5766         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
5767
5768         Tests for module 'posix_spawn_file_actions_addclose'.
5769         * modules/posix_spawn_file_actions_addclose-tests: New file.
5770         * tests/test-posix_spawn_file_actions_addclose.c: New file.
5771
5772 2011-09-20  Bruno Haible  <bruno@clisp.org>
5773
5774         Tests for module 'unlockpt'.
5775         * modules/unlockpt-tests: New file.
5776         * tests/test-unlockpt.c: New file.
5777         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
5778
5779         Tests for module 'grantpt'.
5780         * modules/grantpt-tests: New file.
5781         * tests/test-grantpt.c: New file.
5782         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
5783
5784 2011-09-20  Bruno Haible  <bruno@clisp.org>
5785
5786         freopen tests: EBADF tests.
5787         * tests/test-freopen.c: Include errno.h, unistd.h.
5788         (main): Add tests for EBADF, commented out for the moment.
5789
5790         fclose tests: EBADF tests.
5791         * tests/test-fclose.c (main): Add tests for EBADF.
5792
5793         fflush tests: EBADF tests.
5794         * tests/test-fflush.c: Include errno.h, macros.h.
5795         (main): Add tests for EBADF.
5796
5797         ftello tests: EBADF tests.
5798         * tests/test-ftello4.sh: New file.
5799         * tests/test-ftello4.c: New file.
5800         * modules/ftello-tests (Files): Add them.
5801         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
5802
5803         fseeko tests: EBADF tests.
5804         * tests/test-fseeko4.sh: New file.
5805         * tests/test-fseeko4.c: New file.
5806         * modules/fseeko-tests (Files): Add them.
5807         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
5808
5809         Tests for function fputc().
5810         * modules/fputc-tests: New file.
5811         * tests/test-fputc.c: New file.
5812         * modules/stdio-tests (Depends-on): Add fputc-tests.
5813
5814         Tests for function fgetc().
5815         * modules/fgetc-tests: New file.
5816         * tests/test-fgetc.c: New file.
5817         * modules/stdio-tests (Depends-on): Add fgetc-tests.
5818
5819         Tests for function fdopen().
5820         * modules/fdopen-tests: New file.
5821         * tests/test-fdopen.c: New file.
5822         * modules/stdio-tests (Depends-on): Add fdopen-tests.
5823
5824         Tests for module 'vdprintf'.
5825         * modules/vdprintf-tests: New file.
5826         * tests/test-vdprintf.c: New file.
5827
5828         Tests for module 'dprintf'.
5829         * modules/dprintf-tests: New file.
5830         * tests/test-dprintf.c: New file.
5831
5832 2011-09-20  Bruno Haible  <bruno@clisp.org>
5833
5834         Tests for module 'ioctl'.
5835         * modules/ioctl-tests: New file.
5836         * tests/test-ioctl.c: New file.
5837
5838 2011-09-20  Bruno Haible  <bruno@clisp.org>
5839
5840         fcntl tests: EBADF tests.
5841         * tests/test-fcntl.c (main): Add more tests for EBADF.
5842
5843 2011-09-20  Bruno Haible  <bruno@clisp.org>
5844
5845         utimensat tests: EBADF tests.
5846         * tests/test-utimensat.c (main): Add tests for EBADF.
5847
5848         renameat tests: EBADF tests.
5849         * tests/test-renameat.c (main): Add tests for EBADF.
5850
5851         mkfifoat tests: EBADF tests.
5852         * tests/test-mkfifoat.c (main): Add tests for EBADF.
5853
5854         readlinkat tests: EBADF tests.
5855         * tests/test-readlinkat.c (main): Add tests for EBADF.
5856
5857         symlinkat tests: EBADF tests.
5858         * tests/test-symlinkat.c (main): Add tests for EBADF.
5859
5860         linkat tests: EBADF tests.
5861         * tests/test-linkat.c (main): Add tests for EBADF.
5862
5863         Tests for module 'faccessat'.
5864         * modules/faccessat-tests: New file.
5865         * tests/test-faccessat.c: New file.
5866
5867         fdopendir tests: EBADF tests.
5868         * tests/test-fdopendir.c (main): Add more tests for EBADF.
5869
5870         openat tests: EBADF tests.
5871         * tests/test-fchownat.c (main): Add tests for EBADF.
5872         * tests/test-fstatat.c (main): Likewise.
5873         * tests/test-mkdirat.c (main): Likewise.
5874         * tests/test-openat.c (main): Likewise.
5875         * tests/test-unlinkat.c (main): Likewise.
5876         * tests/test-fchmodat.c: New file.
5877         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
5878         (Makefile.am): Also run 'test-fchmodat'.
5879
5880 2011-09-20  Bruno Haible  <bruno@clisp.org>
5881
5882         utimens, futimens, fdutimensat tests: EBADF tests.
5883         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
5884
5885         Tests for function fstat().
5886         * modules/fstat-tests: New file.
5887         * tests/test-fstat.c: New file.
5888         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
5889
5890 2011-09-20  Bruno Haible  <bruno@clisp.org>
5891
5892         test-ttyname_r tests: EBADF tests.
5893         * tests/test-ttyname_r.c (main): Add tests for EBADF.
5894
5895         Tests for module 'isatty'.
5896         * modules/isatty-tests: New file.
5897         * tests/test-isatty.c: New file.
5898
5899         Tests for module 'write'.
5900         * modules/write-tests: New file.
5901         * tests/test-write.c: New file.
5902
5903         Tests for module 'read'.
5904         * modules/read-tests: New file.
5905         * tests/test-read.c: New file.
5906
5907         pwrite tests: EBADF tests.
5908         * tests/test-pwrite.c (main): Add tests for EBADF.
5909
5910         pread tests: EBADF tests.
5911         * tests/test-pread.c (main): Add tests for EBADF.
5912
5913         lseek tests: EBADF tests.
5914         * tests/test-lseek.c (main): Add more tests for EBADF.
5915
5916         Tests for module 'ftruncate'.
5917         * modules/ftruncate-tests: New file.
5918         * tests/test-ftruncate.sh: New file.
5919         * tests/test-ftruncate.c: New file.
5920
5921         fsync tests: EBADF tests.
5922         * tests/test-fsync.c (main): Add more tests for EBADF.
5923
5924         fdatasync tests: EBADF tests.
5925         * tests/test-fdatasync.c (main): Add more tests for EBADF.
5926
5927         Tests for module 'fchown'.
5928         * modules/fchown-tests: New file.
5929         * tests/test-fchown.c: New file.
5930
5931         Tests for module 'fchmod'.
5932         * modules/fchmod-tests: New file.
5933         * tests/test-fchmod.c: New file.
5934
5935         fchdir tests: EBADF tests.
5936         * tests/test-fchdir.c (main): Add more tests for EBADF.
5937
5938         dup2 tests: EBADF tests.
5939         * tests/test-dup2.c (main): Add more tests for EBADF.
5940
5941         Tests for module 'dup'.
5942         * modules/dup-tests: New file.
5943         * tests/test-dup.c: New file.
5944
5945         Tests for module 'close'.
5946         * modules/close-tests: New file.
5947         * tests/test-close.c: New file.
5948
5949 2011-09-20  Bruno Haible  <bruno@clisp.org>
5950
5951         Tests for module 'shutdown'.
5952         * modules/shutdown-tests: New file.
5953         * tests/test-shutdown.c: New file.
5954
5955         Tests for module 'setsockopt'.
5956         * modules/setsockopt-tests: New file.
5957         * tests/test-setsockopt.c: New file.
5958
5959         Tests for module 'sendto'.
5960         * modules/sendto-tests: New file.
5961         * tests/test-sendto.c: New file.
5962
5963         Tests for module 'send'.
5964         * modules/send-tests: New file.
5965         * tests/test-send.c: New file.
5966
5967         Tests for module 'recvfrom'.
5968         * modules/recvfrom-tests: New file.
5969         * tests/test-recvfrom.c: New file.
5970
5971         Tests for module 'recv'.
5972         * modules/recv-tests: New file.
5973         * tests/test-recv.c: New file.
5974
5975         Tests for module 'listen'.
5976         * modules/listen-tests: New file.
5977         * tests/test-listen.c: New file.
5978
5979         Tests for module 'getsockopt'.
5980         * modules/getsockopt-tests: New file.
5981         * tests/test-getsockopt.c: New file.
5982
5983         Tests for module 'getsockname'.
5984         * modules/getsockname-tests: New file.
5985         * tests/test-getsockname.c: New file.
5986
5987         Tests for module 'getpeername'.
5988         * modules/getpeername-tests: New file.
5989         * tests/test-getpeername.c: New file.
5990
5991         Tests for module 'connect'.
5992         * modules/connect-tests: New file.
5993         * tests/test-connect.c: New file.
5994
5995         Tests for module 'bind'.
5996         * modules/bind-tests: New file.
5997         * tests/test-bind.c: New file.
5998
5999         accept4 tests: Fix for native Windows.
6000         * tests/test-accept4.c: Include sockets.h.
6001         (main): Invoke gl_sockets_startup.
6002         * modules/accept4-tests (Depends-on): Add sockets.
6003
6004         accept tests: Fix for native Windows.
6005         * tests/test-accept.c: Include sockets.h.
6006         (main): Invoke gl_sockets_startup.
6007         * modules/accept-tests (Depends-on): Add sockets.
6008
6009 2011-09-19  Bruno Haible  <bruno@clisp.org>
6010
6011         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
6012         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
6013         do...while(0).
6014         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
6015         Suggested by Paul Eggert.
6016
6017 2011-09-19  Bruno Haible  <bruno@clisp.org>
6018
6019         sched: Ensure pid_t is defined.
6020         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
6021         not define pid_t.
6022         * lib/sched.in.h: Include <sys/types.h>.
6023         * doc/posix-headers/sched.texi: Mention the pid_t problem.
6024         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6025
6026 2011-09-19  Bruno Haible  <bruno@clisp.org>
6027
6028         msvc-inval: Ensure the entire expansion is a single statement.
6029         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
6030         of braces.
6031
6032 2011-09-19  Jim Meyering  <meyering@redhat.com>
6033
6034         tests: use printf, not echo in init.sh's warn_ function
6035         * tests/init.sh (warn_): Use printf, not echo.  The latter would
6036         misbehave when given strings containing a backslash or starting
6037         with e.g., -n.  James Youngman suggested setting IFS.
6038
6039 2011-09-19  Eric Blake  <eblake@redhat.com>
6040
6041         futimens: enhance test
6042         * tests/test-futimens.h (test_futimens): Also check for EBADF on
6043         closed non-negative fd.
6044
6045         date: accept 'hence' as opposite of 'ago'
6046         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
6047         * tests/test-parse-datetime.c (main): Enhance test.
6048         Suggested by Jesse Wilson.
6049
6050 2011-09-19  Jim Meyering  <meyering@redhat.com>
6051
6052         getcwd: don't fail in a deep directory on a system without openat
6053         Before this change, getcwd would fail when called from a directory
6054         of depth PATH_MAX / 3 or greater.  That was due to the fact that
6055         the non-openat implementation used "..", "../..", "../../..", etc.
6056         to access ancestor directories.  With too many, that string would
6057         be longer than PATH_MAX.
6058         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
6059         using gnulib's openat replacement.
6060         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
6061         we're using the replacement function.
6062
6063 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
6064
6065         maint.mk: avoid warnings from perl about missing files
6066         * top/maint.mk (def_sym_regex): Ignore files listed in
6067         $(gl_other_headers_) that do not exist, say because a project
6068         does not use a corresponding module.
6069
6070 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
6071
6072         stat: use pathmax.h only if needed
6073         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
6074         This is better for Emacs, which does not have a mingw port and
6075         therefore can avoid the pathmax module.
6076
6077         utimens: remove dependency on dup2
6078         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
6079         to work around the Linux kernel bug.
6080         * modules/utimens (Depends-on): Remove dup2.
6081
6082 2011-09-18  Bruno Haible  <bruno@clisp.org>
6083
6084         inet_ntop, inet_pton: Look for it also in libresolv.
6085         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
6086         libnsl, search for it in libresolv.
6087         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
6088         Needed on Solaris 7.
6089
6090 2011-09-18  Bruno Haible  <bruno@clisp.org>
6091
6092         accept, accept4 tests: Avoid link error on Solaris.
6093         * modules/accept-tests (Makefile.am): Link test-accept against
6094         $(LIBSOCKET).
6095         * modules/accept4-tests (Makefile.am): Link test-accept4 against
6096         $(LIBSOCKET).
6097
6098         accept4: Avoid link error on Solaris.
6099         * modules/accept4 (Link): New section.
6100
6101         socket functions: Avoid link errors on Solaris.
6102         * modules/accept (Depends-on): Add socketlib.
6103         (Link): New section.
6104         * modules/bind (Depends-on): Add socketlib.
6105         (Link): New section.
6106         * modules/connect (Depends-on): Add socketlib.
6107         (Link): New section.
6108         * modules/getpeername (Depends-on): Add socketlib.
6109         (Link): New section.
6110         * modules/getsockname (Depends-on): Add socketlib.
6111         (Link): New section.
6112         * modules/getsockopt (Depends-on): Add socketlib.
6113         (Link): New section.
6114         * modules/listen (Depends-on): Add socketlib.
6115         (Link): New section.
6116         * modules/recv (Depends-on): Add socketlib.
6117         (Link): New section.
6118         * modules/recvfrom (Depends-on): Add socketlib.
6119         (Link): New section.
6120         * modules/send (Depends-on): Add socketlib.
6121         (Link): New section.
6122         * modules/sendto (Depends-on): Add socketlib.
6123         (Link): New section.
6124         * modules/setsockopt (Depends-on): Add socketlib.
6125         (Link): New section.
6126         * modules/shutdown (Depends-on): Add socketlib.
6127         (Link): New section.
6128         * modules/socket (Depends-on): Add socketlib.
6129         (Link): New section.
6130
6131 2011-09-18  Bruno Haible  <bruno@clisp.org>
6132
6133         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
6134         * tests/test-ptsname.c (main): Terminate the test if it takes longer
6135         than 5 seconds.
6136         * modules/ptsname-tests (configure.ac): Test for alarm.
6137
6138 2011-09-18  Bruno Haible  <bruno@clisp.org>
6139
6140         posix_spawn_file_actions_add*: Fix module dependencies.
6141         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
6142         posix_spawn_file_actions_init.
6143         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
6144         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
6145
6146 2011-09-18  Bruno Haible  <bruno@clisp.org>
6147
6148         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
6149         * tests/test-rename.h (test_rename): Allow error code EEXIST.
6150         * tests/test-renameat.c (main): Likewise.
6151
6152 2011-09-18  Bruno Haible  <bruno@clisp.org>
6153
6154         Tests for module 'accept4'.
6155         * modules/accept4-tests: New file.
6156         * tests/test-accept4.c: New file.
6157
6158 2011-09-18  Bruno Haible  <bruno@clisp.org>
6159
6160         Tests for module 'accept'.
6161         * modules/accept-tests: New file.
6162         * tests/test-accept.c: New file.
6163
6164 2011-09-18  Bruno Haible  <bruno@clisp.org>
6165
6166         dup2: Support for MSVC.
6167         * lib/dup2.c: Include msvc-inval.h.
6168         (rpl_dup2): Handle invalid parameter notifications during dup2 and
6169         _get_osfhandle calls.
6170         * modules/dup2 (Depends-on): Add msvc-inval.
6171         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
6172
6173         New module 'msvc-inval'.
6174         * lib/msvc-inval.h: New file.
6175         * lib/msvc-inval.c: New file.
6176         * m4/msvc-inval.m4: New file.
6177         * modules/msvc-inval: New file.
6178
6179 2011-09-17  Bruno Haible  <bruno@clisp.org>
6180
6181         Tests for module 'pclose'.
6182         * modules/pclose-tests: New file.
6183
6184         New module 'pclose'.
6185         * lib/stdio.in.h (pclose): New declaration.
6186         * lib/pclose.c: New file.
6187         * m4/pclose.m4: New file.
6188         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
6189         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
6190         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
6191         * modules/pclose: New file.
6192         * modules/popen-tests (Depends-on): Add pclose.
6193         * modules/popen-safer-tests (Depends-on): Likewise.
6194         * doc/posix-functions/pclose.texi: Mention the new module.
6195
6196 2011-09-17  Bruno Haible  <bruno@clisp.org>
6197
6198         popen: Support for MSVC.
6199         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
6200         * lib/popen.c (popen): Provide alternate definition for native Windows.
6201         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
6202         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
6203         * modules/popen (Depends-on, configure.ac): Update condition.
6204         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
6205         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
6206         fixed.
6207
6208 2011-09-17  Bruno Haible  <bruno@clisp.org>
6209
6210         isnanl, isnand, isnanf: Work around MSVC bug.
6211         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
6212
6213 2011-09-17  Bruno Haible  <bruno@clisp.org>
6214
6215         sys_socket tests: Fix recent mistake.
6216         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
6217
6218 2011-09-17  Bruno Haible  <bruno@clisp.org>
6219
6220         putenv: Support for MSVC.
6221         * modules/putenv (Depends-on): Add environ.
6222         * lib/putenv.c (environ): Disable declaration.
6223         * lib/unistd.in.h: Update comment.
6224
6225 2011-09-17  Bruno Haible  <bruno@clisp.org>
6226
6227         math: Avoid macro redefinition warnings on MSVC.
6228         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
6229         Undefine before redefining.
6230
6231 2011-09-17  Bruno Haible  <bruno@clisp.org>
6232
6233         doc: Mention functions which are declared as macros.
6234         * doc/posix-functions/*[fl].texi: Mention that some functions are
6235         defined as macros with arguments only.
6236
6237 2011-09-17  Bruno Haible  <bruno@clisp.org>
6238
6239         Add dependencies to new dirent related modules.
6240         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
6241         * modules/fts (Depends-on): Likewise.
6242         * modules/glob (Depends-on): Likewise.
6243         * modules/savedir (Depends-on): Likewise.
6244         * modules/scandir (Depends-on): Likewise.
6245         * modules/dirent-safer (Depends-on): Add opendir, closedir.
6246         * modules/fdopendir (Depends-on): Add opendir.
6247
6248 2011-09-17  Bruno Haible  <bruno@clisp.org>
6249
6250         inet_pton: Support for MSVC on Windows Vista or newer.
6251         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
6252         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
6253         HAVE_DECL_INET_PTON is defined.
6254         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
6255         On platforms with <winsock2.h>, test whether inet_pton is declared in
6256         <ws2tcpip.h>. If so, arrange to replace it.
6257         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
6258         REPLACE_INET_PTON.
6259         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
6260         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
6261         (Depends-on, configure.ac): Update condition.
6262         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
6263
6264 2011-09-17  Bruno Haible  <bruno@clisp.org>
6265
6266         inet_ntop: Support for MSVC on Windows Vista or newer.
6267         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
6268         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
6269         HAVE_DECL_INET_NTOP is defined.
6270         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
6271         On platforms with <winsock2.h>, test whether inet_ntop is declared in
6272         <ws2tcpip.h>. If so, arrange to replace it.
6273         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
6274         REPLACE_INET_NTOP.
6275         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
6276         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
6277         (Depends-on, configure.ac): Update condition.
6278         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
6279
6280 2011-09-16  Eric Blake  <eblake@redhat.com>
6281
6282         test-fsync: yet another enhancement
6283         * tests/test-fsync.c (main): Also test behavior on read-only text
6284         file.
6285
6286 2011-09-16  Bruno Haible  <bruno@clisp.org>
6287
6288         Enhance fsync, fdatasync tests.
6289         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
6290         * tests/test-fdatasync.c (main): Likewise.
6291
6292 2011-09-16  Bruno Haible  <bruno@clisp.org>
6293
6294         Support for MSVC compiler: Ensure mode_t gets defined.
6295         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
6296         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
6297         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
6298         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
6299         * tests/test-fcntl-h.c: Check that mode_t is defined.
6300         * tests/test-sys_stat.c: Likewise.
6301         * tests/test-sys_types.c: Likewise.
6302         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
6303         * doc/posix-headers/sys_stat.texi: Likewise.
6304         * doc/posix-headers/sys_types.texi: Likewise.
6305
6306 2011-09-16  Bruno Haible  <bruno@clisp.org>
6307
6308         sys_stat: Support for MSVC.
6309         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
6310         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
6311         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
6312         MSVC.
6313
6314 2011-09-16  Bruno Haible  <bruno@clisp.org>
6315
6316         Support for MSVC compiler: Ensure off_t gets defined.
6317         * lib/unistd.in.h: Include <sys/types.h>.
6318         * tests/test-fcntl-h.c: Check that off_t is defined.
6319         * tests/test-sys_stat.c: Likewise.
6320         * tests/test-sys_types.c: Likewise.
6321
6322 2011-09-16  Eric Blake  <eblake@redhat.com>
6323
6324         fdatasync: port to Solaris
6325         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
6326         * modules/fdatasync (Link): Document it.
6327         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
6328
6329         fdatasync: port to MacOS X 10.7
6330         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
6331         declared.
6332         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
6333         * modules/unistd (Makefile.am): Substitute it.
6334         * lib/unistd.in.h (fdatasync): Declare on MacOS.
6335         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
6336
6337         fdatasync: minor improvements
6338         * modules/fdatasync (Depends-on): Add condition for fsync.
6339         * lib/fdatasync.c (fdatasync): Add comment.
6340         * tests/test-unistd-c++.cc: Test fdatasync.
6341
6342         unistd: update refs to newer POSIX
6343         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
6344         Suggested by Bruno Haible.
6345
6346         fdatasync: new module
6347         * modules/fsync (Description): Document difference to fdatasync.
6348         * modules/fdatasync: New module.
6349         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
6350         * lib/fdatasync.c (fdatasync): Likewise.
6351         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
6352         defaults.
6353         * modules/unistd (Makefile.am): Set witnesses.
6354         * lib/unistd.in.h (fdatasync): Declare.
6355         * MODULES.html.sh: Document it.
6356         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
6357         * modules/fdatasync-tests: New test.
6358         * tests/test-fdatasync.c: Likewise.
6359
6360 2011-09-16  Eric Blake  <eblake@redhat.com>
6361
6362         test-fsync: enhance tests
6363         * modules/fsync-tests (Depends-on): Add errno, for mingw.
6364         * tests/test-fsync.c (main): Enhance test.
6365
6366 2011-09-15  Bruno Haible  <bruno@clisp.org>
6367
6368         Support for MSVC compiler: Ensure ssize_t gets defined.
6369         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
6370         * doc/posix-headers/stdio.texi: Likewise.
6371         * modules/stdio (Depends-on): Add ssize_t.
6372         * modules/sys_socket (Depends-on): Likewise.
6373         * modules/sys_types (Depends-on): Likewise.
6374         * modules/sys_uio (Depends-on): Likewise.
6375         * modules/unistd (Depends-on): Likewise.
6376         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
6377         * tests/test-sys_types.c: Check that ssize_t is defined.
6378
6379 2011-09-14  Bruno Haible  <bruno@clisp.org>
6380
6381         Avoid using #, the m4 comment starter character, near brackets.
6382         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
6383         delimiter character in sed expressions.
6384         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
6385         Suggested by Eric Blake.
6386
6387         Properly quote AC_CHECK_DECLS' 4th argument.
6388         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
6389         argument.
6390         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
6391         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
6392         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
6393         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
6394         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
6395         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
6396         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
6397         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
6398         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
6399         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
6400         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
6401         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
6402         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
6403         * m4/isinf.m4 (gl_ISINF): Likewise.
6404         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
6405         * m4/readutmp.m4 (gl_READUTMP): Likewise.
6406         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
6407         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6408         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6409         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
6410         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
6411         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
6412         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
6413         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
6414         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6415         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6416         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
6417         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
6418         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
6419         Reported by Eric Blake.
6420
6421         Properly quote AC_CHECK_DECL's 4th argument.
6422         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
6423         argument.
6424         * m4/argp.m4 (gl_ARGP): Likewise.
6425         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
6426         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
6427         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
6428         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
6429         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
6430         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
6431         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
6432         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
6433         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
6434         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
6435         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
6436         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
6437         Reported by Eric Blake.
6438
6439 2011-09-14  Eric Blake  <eblake@redhat.com>
6440
6441         opendir: avoid compile warning
6442         * lib/opendir.c (includes): Always include errno.h.
6443         Reported by Tatsuro MATSUOKA.
6444
6445 2011-09-14  Jim Meyering  <meyering@redhat.com>
6446
6447         maint.mk: sc_tight_scope: propagate failure from sub-make
6448         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
6449         Reported by Martin von Gagern.
6450
6451 2011-09-13  Bruno Haible  <bruno@clisp.org>
6452
6453         tempname: Support for MSVC.
6454         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
6455         MSVC.
6456         * modules/tempname (Depends-on): Add fcntl-h.
6457
6458 2011-09-13  Bruno Haible  <bruno@clisp.org>
6459
6460         sys_time: Support for MSVC.
6461         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
6462         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
6463         include <winsock2.h>.
6464         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
6465         function declarations that collide with POSIX.
6466         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
6467         (Makefile.am): Substitute HAVE_WINSOCK2_H.
6468
6469 2011-09-13  Bruno Haible  <bruno@clisp.org>
6470
6471         stat: Support for MSVC.
6472         * lib/stat.c: Include pathmax.h.
6473         * modules/stat (Depends-on): Add pathmax.
6474
6475         pathmax: Support for native Windows.
6476         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
6477
6478 2011-09-12  Bruno Haible  <bruno@clisp.org>
6479
6480         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
6481         * lib/dirent.in.h (struct dirent): New type.
6482         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
6483         DT_WHT): New macros.
6484         (DIR): New type.
6485         (opendir, closedir): Declare only if the module 'opendir' is enabled.
6486         (readdir, rewinddir): New declarations.
6487         * lib/dirent-private.h: New file.
6488         * lib/opendir.c: New file.
6489         * lib/readdir.c: New file.
6490         * lib/rewinddir.c: New file.
6491         * lib/closedir.c: New file.
6492         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
6493         * m4/opendir.m4: New file.
6494         * m4/readdir.m4: New file.
6495         * m4/rewinddir.m4: New file.
6496         * m4/closedir.m4: New file.
6497         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
6498         REPLACE_CLOSEDIR here.
6499         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
6500         readdir, rewinddir are declared.
6501         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
6502         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
6503         HAVE_REWINDDIR, HAVE_CLOSEDIR.
6504         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
6505         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
6506         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
6507         * modules/opendir: New file.
6508         * modules/readdir: New file.
6509         * modules/rewinddir: New file.
6510         * modules/closedir: New file.
6511         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
6512         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
6513         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
6514         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
6515         * NEWS: Mention the 'fchdir' change.
6516
6517 2011-09-11  Bruno Haible  <bruno@clisp.org>
6518
6519         asm-underscore.m4: Support for MSVC.
6520         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
6521         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
6522
6523 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
6524
6525         Doc about crypt functions.
6526         * doc/posix-functions/crypt.texi: Expand range of glibc versions
6527         needing for _GNU_SOURCE to get crypt.
6528         * doc/posix-functions/encrypt.texi: Likewise.
6529         * doc/posix-functions/setkey.texi: Likewise.
6530
6531 2011-09-11  Bruno Haible  <bruno@clisp.org>
6532
6533         doc: Update regarding MSVC 9.
6534         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
6535         tested".
6536         * doc/posix-functions/*.texi: Update with info about MSVC 9.
6537         * doc/posix-headers/*.texi: Likewise.
6538         * doc/pastposix-functions/*.texi: Likewise.
6539         * doc/glibc-functions/*.texi: Likewise.
6540         * doc/glibc-headers/*.texi: Likewise.
6541
6542 2011-09-11  Bruno Haible  <bruno@clisp.org>
6543
6544         unistd et al.: Don't assume <unistd.h> exists.
6545         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
6546         does not exist.
6547         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
6548         exist. But include <stdlib.h>.
6549         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
6550         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
6551         symlink() does not exist.
6552         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
6553         include <io.h> instead.
6554         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
6555         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
6556         include <direct.h> instead.
6557         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
6558         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
6559         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
6560         <io.h> instead.
6561         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
6562         correctly if the system does not have hard links.
6563         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
6564         <direct.h> instead.
6565         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
6566         it when looking for function declarations.
6567         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
6568         <direct.h> and <io.h> instead.
6569         * doc/posix-headers/unistd.texi: More details about MSVC problem.
6570
6571 2011-09-11  Bruno Haible  <bruno@clisp.org>
6572
6573         strcase: Support for MSVC.
6574         * modules/strcase (Status, Notice): Remove obsoletion mark.
6575         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
6576         * doc/posix-functions/strncasecmp.texi: Likewise.
6577
6578         strings: Don't assume <strings.h> exists.
6579         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
6580         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
6581         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
6582         * doc/posix-headers/strings.texi: Mention the MSVC problem.
6583
6584 2011-09-11  Bruno Haible  <bruno@clisp.org>
6585
6586         dirent: Don't assume <dirent.h> exists.
6587         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
6588         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
6589         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
6590         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
6591
6592 2011-09-11  Bruno Haible  <bruno@clisp.org>
6593
6594         Fix wint_t on MSVC.
6595         * lib/wchar.in.h (wint_t): On MSVC, override it.
6596         * lib/wctype.in.h (wint_t): Likewise.
6597         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
6598         MSVC.
6599         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
6600         * doc/posix-headers/wctype.texi: Likewise.
6601
6602 2011-09-11  Bruno Haible  <bruno@clisp.org>
6603
6604         sys_types: Fix typo.
6605         * lib/sys_types.in.h: Fix typo in comment.
6606         Reported by Paul Eggert.
6607
6608         Support for MSVC compiler: Ensure size_t gets defined.
6609         * modules/strings (Depends-on): Add 'sys_types'.
6610         * modules/sys_uio (Depends-on): Likewise.
6611         * lib/sys_uio.in.h: Update comment.
6612
6613         C++ tests for module 'sys_types'.
6614         * modules/sys_types-c++-tests: New file.
6615         * tests/test-sys_types-c++.cc: New file.
6616
6617         Tests for module 'sys_types'.
6618         * modules/sys_types-tests: New file.
6619         * tests/test-sys_types.c: New file.
6620
6621         New module 'sys_types'.
6622         * lib/sys_types.in.h: New file.
6623         * m4/sys_types_h.m4: New file.
6624         * modules/sys_types: New file.
6625         * doc/posix-headers/sys_types.texi: Mention the new module and the
6626         size_t problem on MSVC 9.
6627
6628 2011-09-11  Bruno Haible  <bruno@clisp.org>
6629
6630         Support for MSVC compiler: Avoid division by a literal 0.
6631         * lib/math.in.h (NAN): Define through a function call also on MSVC.
6632         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
6633         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
6634         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
6635         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
6636         * tests/infinity.h: New file.
6637         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
6638         on MSVC.
6639         * tests/test-ceilf1.c: Include infinity.h.
6640         (main): Use Infinityf.
6641         * tests/test-ceil1.c: Include infinity.h.
6642         (main): Use Infinityd.
6643         * tests/test-ceill.c: Include infinity.h.
6644         (main): Use Infinityl.
6645         * tests/test-dprintf-posix.c: Include infinity.h.
6646         (test_function): Use Infinityd.
6647         * tests/test-floorf1.c: Include infinity.h.
6648         (main): Use Infinityf.
6649         * tests/test-floor1.c: Include infinity.h.
6650         (main): Use Infinityd.
6651         * tests/test-floorl.c: Include infinity.h.
6652         (main): Use Infinityl.
6653         * tests/test-fprintf-posix.c: Include infinity.h.
6654         (test_function): Use Infinityd.
6655         * tests/test-frexp.c: Include infinity.h.
6656         (main): Use Infinityd.
6657         * tests/test-frexpl.c: Include infinity.h.
6658         (main): Use Infinityl.
6659         * tests/test-isfinite.c: Include infinity.h.
6660         (test_isfinitef): Use Infinityf.
6661         (test_isfinited): Use Infinityd.
6662         (test_isfinitel): Use Infinityl.
6663         * tests/test-isinf.c: Include infinity.h.
6664         (test_isinff): Use Infinityf.
6665         (test_isinfd): Use Infinityd.
6666         (test_isinfl): Use Infinityl.
6667         * tests/test-isnan.c: Include infinity.h.
6668         (test_float): Use Infinityf.
6669         (test_double): Use Infinityd.
6670         (test_long_double): Use Infinityl.
6671         * tests/test-isnanf.h: Include infinity.h.
6672         (main): Use Infinityf.
6673         * tests/test-isnand.h: Include infinity.h.
6674         (main): Use Infinityd.
6675         * tests/test-isnanl.h: Include infinity.h.
6676         (main): Use Infinityl.
6677         * tests/test-ldexpl.c: Include infinity.h.
6678         (main): Use Infinityl.
6679         * tests/test-printf-posix.h: Include infinity.h.
6680         (test_function): Use Infinityd.
6681         * tests/test-roundf1.c: Include infinity.h.
6682         (main): Use Infinityf.
6683         * tests/test-round1.c: Include infinity.h.
6684         (main): Use Infinityd.
6685         * tests/test-roundl.c: Include infinity.h.
6686         (main): Use Infinityl.
6687         * tests/test-signbit.c: Include infinity.h.
6688         (test_signbitf): Use Infinityf.
6689         (test_signbitd): Use Infinityd.
6690         (test_signbitl): Use Infinityl.
6691         * tests/test-snprintf-posix.h: Include infinity.h.
6692         (test_function): Use Infinityd, Infinityl.
6693         * tests/test-sprintf-posix.h: Include infinity.h.
6694         (test_function): Use Infinityd, Infinityl.
6695         * tests/test-truncf1.c: Include infinity.h.
6696         (main): Use Infinityf.
6697         * tests/test-trunc1.c: Include infinity.h.
6698         (main): Use Infinityd.
6699         * tests/test-truncl.c: Include infinity.h.
6700         (main): Use Infinityl.
6701         * tests/test-vasnprintf-posix.c: Include infinity.h.
6702         (test_function): Use Infinityd, Infinityl.
6703         * tests/test-vasprintf-posix.c: Include infinity.h.
6704         (test_function): Use Infinityd, Infinityl.
6705         * modules/ceilf-tests (Files): Add tests/infinity.h.
6706         * modules/ceil-tests (Files): Likewise.
6707         * modules/ceill-tests (Files): Likewise.
6708         * modules/dprintf-posix-tests (Files): Likewise.
6709         * modules/floorf-tests (Files): Likewise.
6710         * modules/floor-tests (Files): Likewise.
6711         * modules/floorl-tests (Files): Likewise.
6712         * modules/fprintf-posix-tests (Files): Likewise.
6713         * modules/frexp-tests (Files): Likewise.
6714         * modules/frexp-nolibm-tests (Files): Likewise.
6715         * modules/frexpl-tests (Files): Likewise.
6716         * modules/frexpl-nolibm-tests (Files): Likewise.
6717         * modules/isfinite-tests (Files): Likewise.
6718         * modules/isinf-tests (Files): Likewise.
6719         * modules/isnan-tests (Files): Likewise.
6720         * modules/isnanf-tests (Files): Likewise.
6721         * modules/isnanf-nolibm-tests (Files): Likewise.
6722         * modules/isnand-tests (Files): Likewise.
6723         * modules/isnand-nolibm-tests (Files): Likewise.
6724         * modules/isnanl-tests (Files): Likewise.
6725         * modules/isnanl-nolibm-tests (Files): Likewise.
6726         * modules/ldexpl-tests (Files): Likewise.
6727         * modules/printf-posix-tests (Files): Likewise.
6728         * modules/roundf-tests (Files): Likewise.
6729         * modules/round-tests (Files): Likewise.
6730         * modules/roundl-tests (Files): Likewise.
6731         * modules/signbit-tests (Files): Likewise.
6732         * modules/snprintf-posix-tests (Files): Likewise.
6733         * modules/sprintf-posix-tests (Files): Likewise.
6734         * modules/truncf-tests (Files): Likewise.
6735         * modules/trunc-tests (Files): Likewise.
6736         * modules/truncl-tests (Files): Likewise.
6737         * modules/vasnprintf-posix-tests (Files): Likewise.
6738         * modules/vasprintf-posix-tests (Files): Likewise.
6739         * modules/vdprintf-posix-tests (Files): Likewise.
6740         * modules/vfprintf-posix-tests (Files): Likewise.
6741         * modules/vprintf-posix-tests (Files): Likewise.
6742         * modules/vsnprintf-posix-tests (Files): Likewise.
6743         * modules/vsprintf-posix-tests (Files): Likewise.
6744         * modules/xprintf-posix-tests (Files): Likewise.
6745
6746 2011-09-11  Bruno Haible  <bruno@clisp.org>
6747
6748         Ensure pid_t gets defined.
6749         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
6750         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
6751         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
6752         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
6753         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
6754         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
6755         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
6756         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
6757         * tests/test-fcntl-h.c: Check that pid_t is defined.
6758         * tests/test-sched.c: Likewise.
6759         * tests/test-termios.c: Likewise.
6760         * tests/test-time.c: Likewise.
6761         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
6762         * doc/posix-headers/signal.texi: Likewise.
6763         * doc/posix-headers/sys_types.texi: Likewise.
6764         * doc/posix-headers/time.texi: Likewise.
6765
6766 2011-09-11  Bruno Haible  <bruno@clisp.org>
6767
6768         acl: Fix compilation on Solaris 10 (older version).
6769         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
6770         of ACE_EVERYONE.
6771         * lib/set-mode-acl.c (qset_acl): Likewise.
6772         Reported by Christian Jullien <eligis@orange.fr>.
6773
6774 2011-09-10  Bruno Haible  <bruno@clisp.org>
6775
6776         iconv, unsetenv: Add support for MSVC compiler.
6777         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
6778         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
6779
6780 2011-09-10  Bruno Haible  <bruno@clisp.org>
6781
6782         *printf: Add support for MSVC compiler.
6783         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
6784         handles the exception caused by the %n directive. When cross-compiling,
6785         guess no on native Windows.
6786         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
6787         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
6788         emulate it through vsnprintf.
6789         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
6790         * doc/posix-functions/dprintf.texi: Update documentation regarding
6791         MSVC 9.
6792         * doc/posix-functions/fprintf.texi: Likewise.
6793         * doc/posix-functions/printf.texi: Likewise.
6794         * doc/posix-functions/snprintf.texi: Likewise.
6795         * doc/posix-functions/sprintf.texi: Likewise.
6796         * doc/posix-functions/swprintf.texi: Likewise.
6797         * doc/posix-functions/vdprintf.texi: Likewise.
6798         * doc/posix-functions/vfprintf.texi: Likewise.
6799         * doc/posix-functions/vprintf.texi: Likewise.
6800         * doc/posix-functions/vsnprintf.texi: Likewise.
6801         * doc/posix-functions/vsprintf.texi: Likewise.
6802         * doc/glibc-functions/asprintf.texi: Likewise.
6803         * doc/glibc-functions/obstack_printf.texi: Likewise.
6804         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
6805         * doc/glibc-functions/vasprintf.texi: Likewise.
6806
6807 2011-09-10  Bruno Haible  <bruno@clisp.org>
6808
6809         nocrash: Add support for native Windows.
6810         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
6811
6812 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
6813             Bruno Haible  <bruno@clisp.org>
6814
6815         absolute-header, include-next: Add support for MSVC compiler.
6816         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
6817         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
6818         directory separator in #line directives.
6819         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
6820         recognize also backslash as directory separator in #line directives.
6821
6822 2011-09-08  Jim Meyering  <meyering@redhat.com>
6823
6824         maint.mk: mark the post-release commit log with "maint: " prefix
6825         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
6826         one-line commit-log summary.
6827
6828 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
6829             Bruno Haible  <bruno@clisp.org>
6830
6831         Doc about crypt functions.
6832         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
6833         systems.
6834         * doc/posix-functions/encrypt.texi: Likewise.
6835         * doc/posix-functions/setkey.texi: Likewise.
6836
6837 2011-09-08  Simon Josefsson  <simon@josefsson.org>
6838
6839         * lib/gc.h: Fix copyright header.
6840
6841 2011-09-07  Bruno Haible  <bruno@clisp.org>
6842
6843         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
6844         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
6845         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
6846
6847 2011-09-07  Bruno Haible  <bruno@clisp.org>
6848
6849         openat: Work around compilation error with OSF/1 5.1 DTK cc.
6850         * lib/fopen.c: Use different syntax for include of <stdio.h>.
6851         * lib/freopen.c: Likewise.
6852         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
6853         * lib/lstat.c: Likewise.
6854         * lib/stat.c: Likewise.
6855         * lib/open.c: Use different syntax for include of <fcntl.h>.
6856         * lib/openat.c: Include fcntl.h again, explicitly.
6857
6858 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
6859
6860         parse-datetime: document the newly accepted format
6861         * doc/parse-datetime.texi (Combined date and time of day items):
6862         New section.
6863
6864 2011-09-06  Bruno Haible  <bruno@clisp.org>
6865
6866         acl: Fix a test failure on newer Solaris 10 with ZFS.
6867         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
6868         ENOSYS as no ACL.
6869         Reported by Jim Meyering.
6870
6871 2011-09-06  Bruno Haible  <bruno@clisp.org>
6872
6873         acl: Update for AIX >= 5.3 with NFS.
6874         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
6875         ENOSYS as no ACL.
6876
6877         acl: Fix a test failure on AIX >= 5.3 with NFS.
6878         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
6879         as no ACL.
6880
6881 2011-09-06  Bruno Haible  <bruno@clisp.org>
6882
6883         acl: Fix a test failure on IRIX 6.5 with NFS.
6884         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
6885         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
6886         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
6887         * lib/copy-acl.c (qcopy_acl): Likewise.
6888
6889 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
6890
6891         openat: port to AIX 7.1 with large files
6892         AIX 7.1 does a "#define openat open64at" if large files are in use,
6893         so we can't simply #undef openat.  Use the orig_openat trick (similar
6894         to orig_open in lib/open.c) to work around the problem.  Problem
6895         reported by Kevin Brott for GNU tar, in the thread containing
6896         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
6897         * lib/openat.c (__need_system_fcntl_h): Define first.
6898         Include <fcntl.h> and <sys/types.h> before undefining.
6899         (orig_openat) [HAVE_OPENAT]: New inline function.
6900         (openat) [HAVE_OPENAT]: Do not undef.
6901         (rpl_openat): Use orig_openat, not openat.
6902
6903 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
6904             Bruno Haible  <bruno@clisp.org>
6905
6906         acl: Avoid errors on NonStop Kernel.
6907         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
6908         ENOTSUP errors.
6909
6910 2011-09-05  Bruno Haible  <bruno@clisp.org>
6911
6912         acl: Clean up Solaris code.
6913         * lib/acl-internal.h: Remove no-op #if.
6914         * lib/file-has-acl.c: Likewise.
6915         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
6916         * lib/copy-acl.c (qcopy_acl): Likewise.
6917
6918 2011-09-05  Bruno Haible  <bruno@clisp.org>
6919
6920         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
6921         binaries built on the original Solaris 10.
6922         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
6923         trivial.
6924
6925 2011-09-05  Bruno Haible  <bruno@clisp.org>
6926
6927         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
6928         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
6929         10.
6930         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
6931         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
6932         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
6933         instead of acl_get, facl_get, acl_set, facl_set.
6934
6935 2011-09-05  Bruno Haible  <bruno@clisp.org>
6936
6937         copy-file: Try unit tests on more file systems.
6938         * tests/test-copy-file-1.sh: New file.
6939         * tests/test-copy-file-2.sh: New file.
6940         * modules/copy-file-tests (Files): Add them.
6941         (Makefile.am): Add them to TESTS.
6942
6943         acl: Try unit tests on more file systems.
6944         * tests/test-file-has-acl-1.sh: New file.
6945         * tests/test-file-has-acl-2.sh: New file.
6946         * tests/test-set-mode-acl-1.sh: New file.
6947         * tests/test-set-mode-acl-2.sh: New file.
6948         * tests/test-copy-acl-1.sh: New file.
6949         * tests/test-copy-acl-2.sh: New file.
6950         * modules/acl-tests (Files): Add them.
6951         (Makefile.am): Add them to TESTS.
6952
6953 2011-09-04  Bruno Haible  <bruno@clisp.org>
6954
6955         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
6956         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
6957         10.
6958         (OLD_ALLOW, OLD_DENY): New macros.
6959         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
6960         ACE_ACCESS_ALLOWED_ACE_TYPE.
6961         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
6962         ACE_ACCESS_DENIED_ACE_TYPE.
6963         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
6964         (NEW_ACE_EXECUTE): Fix value.
6965         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
6966         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
6967         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
6968         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
6969         NEW_ACE_SYNCHRONIZE): New macros.
6970         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
6971         instead of acl_fromtext, acl_set, facl_set.
6972         Fixes a coreutils/tests/cp/perm failure.
6973
6974 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
6975
6976         openat: test for fstatat (..., 0) bug
6977         Further testing with tar suggests that fstatat (..., 0)
6978         does not work in general, on AIX 7.1; see
6979         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
6980         So, give up entirely on AIX 7.1's fstatat, and fall back on our
6981         replacement fstatat (which is what older AIX releases were using
6982         anyway).
6983         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
6984         use is now changed to orig_fstatat.  This was probably the right
6985         thing to do anyway.
6986         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
6987         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
6988         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
6989         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
6990         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
6991         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
6992         if the bug is found.
6993
6994         openat: test for fstatat (AT_FDCWD, ..., 0) bug
6995         This tests for another fstatat bug on AIX 7.1:
6996         fstatat (AT_FDCWD, ..., 0) does not work.  See
6997         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
6998         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
6999         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
7000         (rpl_fstatat): Adjust so that it works around either (or both)
7001         bugs if present.
7002         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
7003
7004 2011-09-03  Karl Berry  <karl@gnu.org>
7005
7006         * doc/regex.texi (Character Class Operators): Avoid literal ":"
7007         in index entries.
7008
7009 2011-09-02  Bruno Haible  <bruno@clisp.org>
7010
7011         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
7012         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
7013         values of AR, ARFLAGS, RANLIB.
7014         Reported by John W. Eaton <jwe@gnu.org> for Octave.
7015
7016 2011-09-02  Bruno Haible  <bruno@clisp.org>
7017
7018         Find 'ar' program that fits with --host argument.
7019         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
7020
7021 2011-09-02  Bruno Haible  <bruno@clisp.org>
7022
7023         tests: init.sh: Support any non-GNU diff.
7024         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
7025         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
7026         Solaris 8.
7027
7028 2011-09-02  Bruno Haible  <bruno@clisp.org>
7029
7030         tests: init.sh: work also with any non-GNU diff that supports -u
7031         * tests/init.sh: Relax check for diff -u support.
7032         Rather than checking for GNU diff via --version, simply check
7033         for support for -u itself.  Useful at least on OpenBSD 4.9,
7034         AIX 7.1, IRIX 6.5, and Solaris 10.
7035
7036 2011-09-01  Bruno Haible  <bruno@clisp.org>
7037
7038         strtoimax, strtoumax: Document problem on HP-UX 11.
7039         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
7040         * doc/posix-functions/strtoumax.texi: Likewise.
7041
7042 2011-09-01  Bruno Haible  <bruno@clisp.org>
7043
7044         strtoumax: Avoid link error on OSF/1 with DTK cc.
7045         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
7046         defined as a function.
7047         * modules/strtoumax (Depends-on, configure.ac): Test only whether
7048         strtoumax is defined, not whether it is declared.
7049
7050 2011-09-01  Bruno Haible  <bruno@clisp.org>
7051
7052         strtoimax: Avoid link error on OSF/1 with DTK cc.
7053         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
7054         defined as a function.
7055         * modules/strtoimax (Depends-on, configure.ac): Test only whether
7056         strtoimax is defined, not whether it is declared.
7057
7058 2011-09-01  Bruno Haible  <bruno@clisp.org>
7059
7060         imaxdiv: Avoid link error on OSF/1 with DTK cc.
7061         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
7062         as a function.
7063         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
7064         whether it is declared.
7065
7066 2011-09-01  Bruno Haible  <bruno@clisp.org>
7067
7068         imaxabs: Avoid link error on OSF/1 with DTK cc.
7069         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
7070         as a function.
7071         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
7072         whether it is declared.
7073
7074 2011-09-01  Bruno Haible  <bruno@clisp.org>
7075
7076         Tests for module 'strtoumax'.
7077         * modules/strtoumax-tests: New file.
7078         * tests/test-strtoumax.c: New file.
7079
7080         Tests for module 'strtoimax'.
7081         * modules/strtoimax-tests: New file.
7082         * tests/test-strtoimax.c: New file.
7083
7084         Tests for module 'imaxdiv'.
7085         * modules/imaxdiv-tests: New file.
7086         * tests/test-imaxdiv.c: New file.
7087
7088         Tests for module 'imaxabs'.
7089         * modules/imaxabs-tests: New file.
7090         * tests/test-imaxabs.c: New file.
7091
7092 2011-09-01  Bruno Haible  <bruno@clisp.org>
7093
7094         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
7095         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
7096         pthread_create.
7097
7098 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
7099
7100         openat: work around AIX 7.1 fstatat issue
7101         This should fix the problem that was not properly fixed
7102         in the previous change, dated 2011-08-30.
7103         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
7104         __need_system_stat_h defined.
7105         (orig_fstatat) [HAVE_FSTATAT]: New function.
7106         (rpl_fstatat): Go back to the old way of doing things,
7107         except call orig_fstatat instead of fstatat.
7108         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
7109         Remove unnecessary check whether fstatat fills in st_size etc.
7110
7111 2011-09-01  Bruno Haible  <bruno@clisp.org>
7112
7113         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
7114         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
7115         just include the system's header.
7116
7117 2011-08-31  Jim Meyering  <meyering@redhat.com>
7118
7119         tests: avoid spurious assertion failure in test-float.c on ppc64
7120         * tests/test-float.c (test_long_double): Comment out an assertion,
7121         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
7122         with gcc-4.4.4.
7123
7124         maint: indent with spaces, not TABs
7125         I need to get in the habit of running gnulib's "make check".
7126         Both of these would have been caught.
7127         * m4/largefile.m4: Indent with spaces, not TABs.
7128         * lib/parse-datetime.y (iso_8601_time): Likewise.
7129         Spotted by Pádraig Brady.
7130
7131         test-parse-datetime.c: accommodate a relatively strict gcc warning
7132         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
7133         to avoid a warning from gcc's -Werror=missing-declarations.
7134         Insert a few spaces-before-funcall-parenthesis.
7135
7136 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
7137
7138         parse-datetime: accept ISO 8601 date and time rep with "T" separator
7139         The parser now accepts ISO 8601 date-time strings with "T" as the
7140         separator.  It has long parsed dates like "2004-02-29 16:21:42"
7141         with a space between the date and time strings.  Now it also parses
7142         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
7143         variants like "2004-02-29T16:21:42.333-07:00"
7144         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
7145         of day representation using the 'T' separator character.
7146         * doc/parse-datetime.texi (General date syntax): replace use of
7147         deprecated --iso-8601 option with --rfc-3339 in example of date
7148         command output formats that can be parsed.
7149         * tests/test-parse-datetime.c (tm_diff): New function, taken from
7150         lib/parse-datetime.y.
7151         (gmt_offset): New function.
7152         (main): Add additional test cases to validate ISO8601 extended
7153         date and time of day parsing.
7154
7155 2011-08-31  Bruno Haible  <bruno@clisp.org>
7156
7157         freopen: Documentation.
7158         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
7159         name.
7160         Reported by Claudio Bley <claudio.bley@gmail.com>.
7161
7162 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
7163
7164         freopen: Don't crash if the filename argument is NULL.
7165         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
7166         NULL.
7167
7168 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
7169
7170         openat: work around AIX 7.1 fstatat bug
7171         Problem reported by Kevin Brott for GNU tar, in the thread containing
7172         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
7173         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
7174         FSTATAT_ST_SIZE_ETC_BROKEN.
7175         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
7176         rpl_fstatat.
7177         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
7178         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
7179         AC_CHECK_FUNCS_ONCE for fstatat.
7180         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
7181         fchmodat, mkdirat, openat and unlinkat.
7182
7183 2011-08-30  Bruno Haible  <bruno@clisp.org>
7184
7185         Avoid endless recursions if config.h includes some header files.
7186         * lib/fopen.c (__need_FILE): Define already before including config.h.
7187         * lib/freopen.c (__need_FILE): Likewise.
7188         * lib/open.c (__need_system_fcntl_h): Likewise.
7189         * lib/stat.c (__need_system_sys_stat_h): Likewise.
7190         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
7191         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
7192
7193 2011-08-25  Karl Berry  <karl@gnu.org>
7194
7195         * config/srclist.txt (ylwrap): new try.
7196         * build-aux/ylwrap: new file.
7197
7198 2011-08-23  Bruno Haible  <bruno@clisp.org>
7199
7200         tmpdir: Use a good default directory on native Windows.
7201         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
7202         (P_tmpdir): Default to _P_tmpdir on native Windows.
7203         (path_search): On native Windows, try the value returned by GetTempPath
7204         before trying P_tmpdir.
7205         * modules/tmpdir (Depends-on): Add pathmax.
7206         Suggested by John Darrington <john@darrington.wattle.id.au>.
7207
7208 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
7209
7210         doc: fix typo in README-release
7211         * top/README-release: Capitalize first word of a sentence.
7212
7213 2011-08-19  Jim Meyering  <meyering@redhat.com>
7214
7215         fts: do not exhaust memory when processing million-entry directories
7216         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
7217         directory would require about 256*N bytes of memory.  Thus, it was
7218         easy to construct a directory too large to be processed by any of
7219         those tools.  With this change, fts' maximum memory utilization is
7220         now limited to around 30MB.
7221         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
7222         (fts_read): When we've processed the final entry (i.e., when
7223         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
7224         using the parent entry to read any remaining entries.  Dispatch
7225         depending on what fts_build returns:
7226         - NULL+stop, aka failure: stop
7227         - NULL otherwise: move up in the dir hierarchy
7228         - non-NULL: handle this new entry
7229         (fts_build): Declare and use new local, continue_readdir.
7230         Prepare to be called from fts_read, when the entries
7231         from a partially-read directory have just been exhausted.
7232         In that case, we'll skip the opendir and instead use the parent's
7233         fts_dirp and derive dir_fd from that.
7234         Finally, in the readdir loop, if we read max_entries entries,
7235         exit the loop ensuring *not* to call closedir.  This is required
7236         so that fts_dirp can be reused on a subsequent call.
7237         Prompted by Ben England's report of memory exhaustion in find
7238         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
7239
7240         maint: fts: move decl of `dp' down into while loop; split a long line
7241         * lib/fts.c (fts_build): No semantic change.
7242
7243         fts: add/use new struct member, fts_dirp
7244         We are about to use this to manage any directory with
7245         too many entries to read all of them into memory at once.
7246         To do that, we'll need to save the DIR* pointer in each
7247         affected FTSENT struct.
7248         * lib/fts_.h: Include <dirent.h>.
7249         (struct FTSENT) [fts_dirp]: New member.
7250         * lib/fts.c (closedir_and_clear): Define.
7251         Use it in place of closedir so that we are sure to
7252         clear the new fts_dirp member when done with it.
7253         (fts_alloc): Initialize the new member.
7254         (fts_lfree): Free, if needed.
7255
7256         maint: fts: give __opendir2 a new parameter and rename
7257         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
7258         than surreptitiously using sole caller's "dir_fd".
7259         (fts_opendir): Rename from __opendir2.
7260
7261         maint: fts.c: remove __opendir2's now-unused parameter, oflag
7262         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
7263
7264         maint: fts.c: correct off-by-one indentation
7265         * lib/fts.c (fts_build): Correct indentation, change style
7266         of a couple of block comments, and bracing style.
7267
7268         maint: fts.c: move __opendir2 #define "up" out of function body
7269         * lib/fts.c (__opendir2): Move "up".  No semantic change.
7270
7271         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
7272         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
7273         out for a long time and besides was useful only on BSD systems.
7274
7275 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
7276
7277         regex: port to Stratus OpenVOS
7278         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
7279         define to empty, rather than attempting nonportable optimizations.
7280         Problem reported by Paul Green in:
7281         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
7282         and fix suggested by Eric Blake in:
7283         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
7284
7285 2011-08-17  Eric Blake  <eblake@redhat.com>
7286
7287         getcwd: fix test failures on mingw
7288         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
7289         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
7290         test if long directory cannot be created, and allow mingw errno.
7291
7292         getcwd-lgpl: fix m4 to match relaxed test for BSD
7293         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
7294         (gl_FUNC_GETCWD_SIGNATURE): New macro.
7295         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
7296         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
7297         signature problem.
7298
7299         getcwd: fix compilation on mingw64
7300         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
7301         getcwd.
7302         Reported by Marc-André Lureau.
7303
7304         pipe2: silence compiler warning
7305         * lib/pipe2.c (pipe2): Hide label if it is not used.
7306
7307 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
7308
7309         relocatable-prog: fix link error
7310         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
7311         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
7312         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
7313         into modules/relocatable-lib without noticing that
7314         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
7315         also needs to build relocatable.c.
7316
7317 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
7318
7319         getaddrinfo: fix sh typo in gai_strerrorA decl checking
7320         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
7321         shell code: it contained a 'break' that was not in a loop.
7322         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
7323         via a shell-language loop; this may have been true in old Autoconf
7324         versions, but it's not true in Autoconf 2.68.  I found this bug
7325         when testing coreutils git on Solaris 8, whose shell complains
7326         about the syntax error.
7327
7328 2011-08-12  Simon Josefsson  <simon@josefsson.org>
7329
7330         * lib/base64.c: Fix comment to reference RFC 4648.
7331         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
7332         <gvtulder@gmail.com>.
7333
7334 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
7335
7336         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
7337
7338         po/Makefile.in.in: fix make -q problem
7339         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
7340         rule, since there's no file named 'check-macro-version' and its
7341         use as a file breaks make -q.
7342         (all): Don't depend on check-macro-version.
7343         (CHECK_MACRO_VERSION): New macro.
7344         (stamp-po): Use it.
7345
7346         configmake: fix make -q problem
7347         * modules/configmake (configmake.h): Update configmake.h's time stamp
7348         even if the file does not change.  Otherwise, 'make -q' fails.
7349         Problem reported by Simon Josefsson in
7350         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
7351
7352 2011-08-11  Jim Meyering  <meyering@redhat.com>
7353
7354         git-version-gen: correct the advice in a comment
7355         * build-aux/git-version-gen: Correct comment.
7356         Don't recommend to list .tarball-version in .gitignore.
7357
7358 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
7359
7360         base64: fix off-by-one buffer size bug
7361         Problem and (trivial) fix reported by Gijs van Tulder in
7362         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
7363         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
7364         * tests/test-base64.c (main): Catch the bug.
7365
7366 2011-08-10  Eric Blake  <eblake@redhat.com>
7367
7368         closein: correct comments
7369         * lib/closein.c (close_stdin): Improve comments.
7370
7371 2011-08-09  Bruno Haible  <bruno@clisp.org>
7372
7373         More tests for 'fseeko'.
7374         * tests/test-fseeko3.c: New file, from Eric Blake.
7375         * tests/test-fseeko3.sh: New file.
7376         * modules/fseeko-tests (Files): Add them.
7377         (TESTS): Add test-fseeko3.sh.
7378         (check_PROGRAMS): Add test-fseeko3.
7379
7380 2011-08-09  Eric Blake  <eblake@redhat.com>
7381
7382         fseeko: remove unneeded hack
7383         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
7384
7385         fseeko: fix bug on glibc
7386         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
7387         Reported by John W. Eaton.
7388
7389 2011-08-08  Bruno Haible  <bruno@clisp.org>
7390
7391         unictype/base: Fix interoperability with preinstalled libunistring.
7392         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
7393         Reported by Simon Josefsson.
7394
7395 2011-08-08  Bruno Haible  <bruno@clisp.org>
7396
7397         iswblank: Detect declaration correctly.
7398         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
7399         AC_CHECK_DECLS invocation.
7400
7401 2011-08-08  Bruno Haible  <bruno@clisp.org>
7402
7403         tcgetsid: Detect declaration correctly.
7404         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
7405         AC_CHECK_DECLS invocation.
7406         Reported by Simon Josefsson.
7407
7408 2011-08-08  Eric Blake  <eblake@redhat.com>
7409
7410         largefile: fix typo that regressed large file support
7411         * modules/largefile (configure.ac-early): Fix section name.
7412
7413 2011-08-06  Karl Berry  <karl@gnu.org>
7414
7415         * MODULES.html.sh (func_all_files): _Noreturn is no longer
7416         a separate module.
7417
7418 2011-08-05  Simon Josefsson  <simon@josefsson.org>
7419
7420         openat: Fix warnings and commens when building unlinkat.c on Hurd.
7421         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
7422         get prototype for free.
7423
7424 2011-08-04  Bruno Haible  <bruno@clisp.org>
7425
7426         Tests for module 'pathmax'.
7427         * modules/pathmax-tests: New file.
7428         * tests/test-pathmax.c: New file.
7429
7430         canonicalize-lgpl: Support larger filenames on the Hurd.
7431         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
7432         Reported by Paul Eggert.
7433
7434         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
7435         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
7436         * lib/chdir-long.h: Include pathmax.h.
7437         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
7438         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
7439         (PATH_MAX): Remove code that is done by pathmax.h.
7440         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
7441         * lib/tmpfile.c: Add a comment.
7442         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
7443         * modules/chdir-long (Depends-on): Add pathmax.
7444         * modules/getcwd (Depends-on): Add pathmax.
7445         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
7446         is not defined.
7447         * doc/posix-headers/limits.texi: Mention the pathmax module.
7448         * NEWS: Mention the change.
7449
7450 2011-08-02  Bruno Haible  <bruno@clisp.org>
7451
7452         pthread_sigmask: Actually use results of gl_THREADLIB.
7453         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
7454         gl_THREADLIB, not gl_[]THREADLIB.
7455         Reported by Eric Blake.
7456
7457 2011-08-02  Jim Meyering  <meyering@redhat.com>
7458
7459         maint.mk: relax the default _gl_TS_function_match regexp
7460         * top/maint.mk (_gl_TS_function_match): Don't require at least one
7461         space between function name and "(" in an "extern" declaration.
7462         That would fail to match a decl with no space there: extern void foo();
7463
7464 2011-07-31  Iain Nicol  <iain@thenicols.net>
7465
7466         git-version-gen: document that EXTRA_DIST must include .version
7467         * build-aux/git-version-gen: In the how-to-use comment, document
7468         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
7469         will fail when run from an unpacked distribution tarball.
7470
7471 2011-08-01  Bruno Haible  <bruno@clisp.org>
7472
7473         wctype-h: Fix last change.
7474         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
7475         REPLACE_TOWLOWER to 0.
7476         Reported by Sam Steingold <sds@gnu.org>.
7477
7478 2011-07-31  Bruno Haible  <bruno@clisp.org>
7479
7480         frexpl: Update autoconf test.
7481         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
7482         according to changes of 2011-06-20.
7483
7484 2011-07-31  Bruno Haible  <bruno@clisp.org>
7485
7486         sys_utsname: Add support for Minix.
7487         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
7488         <sys/utsname.h>.
7489         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
7490         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
7491
7492 2011-07-31  Bruno Haible  <bruno@clisp.org>
7493
7494         strings: Add support for Minix.
7495         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
7496         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
7497         * doc/posix-headers/strings.texi: Document the Minix problem.
7498
7499 2011-07-31  Bruno Haible  <bruno@clisp.org>
7500
7501         wctype-h: Add support for Minix.
7502         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
7503         REPLACE_TOWLOWER.
7504         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
7505         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
7506         REPLACE_ISWCNTRL.
7507
7508 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
7509
7510         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
7511         This is a performance improvement for 64-bit hosts: it causes the
7512         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
7513
7514 2011-07-31  Bruno Haible  <bruno@clisp.org>
7515
7516         stdioext: Add support for Minix.
7517         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
7518         * lib/fpurge.c (fpurge): Likewise.
7519         * lib/freadahead.c (freadahead): Likewise.
7520         * lib/freadable.c (freadable): Likewise.
7521         * lib/freading.c (freading): Likewise.
7522         * lib/freadptr.c (freadptr): Likewise.
7523         * lib/freadseek.c (freadptrinc): Likewise.
7524         * lib/fseeko.c (rpl_fseeko): Likewise.
7525         * lib/fseterr.c (fseterr): Likewise.
7526         * lib/fwritable.c (fwritable): Likewise.
7527         * lib/fwriting.c (fwriting): Likewise.
7528         * lib/fflush.c (clear_ungetc_buffer): Update comment.
7529         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
7530
7531 2011-07-31  Bruno Haible  <bruno@clisp.org>
7532
7533         errno: Port to Minix.
7534         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
7535         ECONNABORTED are defined.
7536         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
7537         GNULIB_defined_ECONNABORTED): New macros.
7538         * lib/strerror-override.h (strerror_override): Test also
7539         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
7540         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
7541         ECONNABORTED.
7542         * doc/posix-headers/errno.texi: Mention the Minix problem.
7543
7544 2011-07-31  Bruno Haible  <bruno@clisp.org>
7545
7546         Work around declaration collisions on Minix.
7547         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
7548         defined, set REPLACE_MBSINIT.
7549         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
7550         defined, set REPLACE_MBRTOWC.
7551         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
7552         set REPLACE_MBRLEN.
7553         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
7554         defined, set REPLACE_MBSRTOWCS.
7555         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
7556         defined, set REPLACE_WCRTOMB.
7557         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
7558         defined, set REPLACE_WCSRTOMBS.
7559
7560 2011-07-31  Bruno Haible  <bruno@clisp.org>
7561
7562         Add support for Minix with ACK compiler.
7563         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
7564         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
7565         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
7566
7567 2011-07-31  Bruno Haible  <bruno@clisp.org>
7568
7569         Documentation about Minix.
7570         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
7571         * doc/glibc-headers/*.texi: Likewise.
7572         * doc/posix-functions/*.texi: Likewise.
7573         * doc/glibc-functions/*.texi: Likewise.
7574
7575 2011-07-31  Bruno Haible  <bruno@clisp.org>
7576
7577         snippet/warn-on-use: Fix indentation.
7578         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
7579
7580 2011-07-25  Jim Meyering  <meyering@redhat.com>
7581
7582         tests: test-update-copyright.sh: remove unnecessary "rm" commands
7583         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
7584         commands.
7585
7586 2011-07-27  Jim Meyering  <meyering@redhat.com>
7587
7588         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
7589         * top/maint.mk (gl_extract_significant_defines_): Now that
7590         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
7591         gnulib/lib/signal.in.h, and now that we recommend to
7592         define-if-undefined those two symbols in application code,
7593         we must filter them out of the "significant" list.
7594         This avoids a "make syntax-check" failure in coreutils.
7595
7596 2011-07-26  Eric Blake  <eblake@redhat.com>
7597
7598         warnings: add comments about previous patch
7599         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
7600         * m4/include_next.m4: Likewise.
7601         * m4/warn-on-use.m4: Likewise.
7602         * m4/warnings.m4: Likewise, and simplify use.
7603         Suggested by Stefano Lattarini.
7604
7605         include-next, warnings: support older autoconf
7606         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
7607         AS_VAR_PUSHDEF in a way that works with older autoconf.
7608         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
7609         Reported by Daniel P. Berrange.
7610
7611 2011-07-25  Bruno Haible  <bruno@clisp.org>
7612
7613         fseek, ftell: Fix doc.
7614         * doc/posix-functions/fseek.texi: Reword statement about
7615         AC_SYS_LARGEFILE.
7616         * doc/posix-functions/ftell.texi: Likewise.
7617
7618 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
7619             Bruno Haible  <bruno@clisp.org>
7620
7621         Add dependencies to the 'largefile' module.
7622         * modules/fopen (Depends-on): Add 'largefile'.
7623         * modules/freopen (Depends-on): Likewise.
7624         * modules/fseeko (Depends-on): Likewise.
7625         * modules/ftello (Depends-on): Likewise.
7626         * modules/glob (Depends-on): Likewise.
7627         * modules/lseek (Depends-on): Likewise.
7628         * modules/lstat (Depends-on): Likewise.
7629         * modules/mkostemp (Depends-on): Likewise.
7630         * modules/mkostemps (Depends-on): Likewise.
7631         * modules/mkstemp (Depends-on): Likewise.
7632         * modules/mkstemps (Depends-on): Likewise.
7633         * modules/open (Depends-on): Likewise.
7634         * modules/openat (Depends-on): Likewise.
7635         * modules/pread (Depends-on): Likewise.
7636         * modules/pwrite (Depends-on): Likewise.
7637         * modules/scandir (Depends-on): Likewise.
7638         * modules/stat (Depends-on): Likewise.
7639         * modules/tmpfile (Depends-on): Likewise.
7640         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
7641         since the containing module now depends on the largefile module.
7642         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
7643         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
7644         off_t is fixed by gnulib.
7645         * doc/posix-functions/freopen.texi: Likewise.
7646         * doc/posix-functions/fseeko.texi: Likewise.
7647         * doc/posix-functions/fstatat.texi: Likewise.
7648         * doc/posix-functions/ftello.texi: Likewise.
7649         * doc/posix-functions/glob.texi: Likewise.
7650         * doc/posix-functions/lseek.texi: Likewise.
7651         * doc/posix-functions/lstat.texi: Likewise.
7652         * doc/posix-functions/mkstemp.texi: Likewise.
7653         * doc/posix-functions/open.texi: Likewise.
7654         * doc/posix-functions/openat.texi: Likewise.
7655         * doc/posix-functions/pread.texi: Likewise.
7656         * doc/posix-functions/pwrite.texi: Likewise.
7657         * doc/posix-functions/scandir.texi: Likewise.
7658         * doc/posix-functions/stat.texi: Likewise.
7659         * doc/posix-functions/tmpfile.texi: Likewise.
7660         * doc/glibc-functions/mkostemp.texi: Likewise.
7661         * doc/glibc-functions/mkostemps.texi: Likewise.
7662         * doc/glibc-functions/mkstemps.texi: Likewise.
7663
7664 2011-07-25  Bruno Haible  <bruno@clisp.org>
7665
7666         fcntl: Move AC_LIBOBJ invocation to module description.
7667         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
7668         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
7669
7670         fcntl: Remove call-in from fchdir.m4.
7671         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
7672         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
7673
7674         dup3: Remove potential call-in from fchdir.m4.
7675         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
7676         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
7677
7678         dup2: Move AC_LIBOBJ invocation to module description.
7679         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
7680         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
7681         Don't invoke AC_LIBOBJ.
7682         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
7683
7684         dup2: Remove call-in from fchdir.m4.
7685         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
7686         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
7687
7688         fclose: Move AC_LIBOBJ invocation to module description.
7689         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
7690         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
7691         to 1.
7692         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
7693
7694         fclose: Remove call-in from close.m4.
7695         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
7696         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
7697
7698         close: Move AC_LIBOBJ invocation to module description.
7699         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
7700         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
7701         1.
7702         * modules/close (configure.ac): Invoke AC_LIBOBJ.
7703
7704         close: Remove call-in from fchdir.m4.
7705         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
7706         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
7707
7708         open: Move AC_LIBOBJ invocation to module description.
7709         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
7710         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
7711         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
7712
7713         open: Remove call-in from fchdir.m4.
7714         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
7715         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
7716
7717         fchdir: Start to remove gl_REPLACE_* idiom.
7718         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
7719         (gl_FUNC_FCHDIR): Invoke it.
7720
7721 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
7722
7723         * lib/ftell.c (ftell): Comment out cast.
7724
7725         close: use gl_REPLACE_FCLOSE only if defined
7726         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
7727         is defined.  The close module doesn't depend on the fclose module
7728         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
7729         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
7730         I reproduced the problem with "./gnulib-tool --test close sys_socket".
7731
7732 2011-07-24  Jim Meyering  <meyering@redhat.com>
7733
7734         test-select.h: avoid warning when using gcc's -Wmissing-declarations
7735         * tests/test-select.h (test_function): Declare as "static".
7736
7737 2011-07-24  Bruno Haible  <bruno@clisp.org>
7738
7739         doc: Mention the effects of AC_SYS_LARGEFILE.
7740         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
7741         on this function.
7742         * doc/posix-functions/aio_error.texi: Likewise.
7743         * doc/posix-functions/aio_fsync.texi: Likewise.
7744         * doc/posix-functions/aio_read.texi: Likewise.
7745         * doc/posix-functions/aio_return.texi: Likewise.
7746         * doc/posix-functions/aio_suspend.texi: Likewise.
7747         * doc/posix-functions/aio_write.texi: Likewise.
7748         * doc/posix-functions/fgetpos.texi: Likewise.
7749         * doc/posix-functions/fopen.texi: Likewise.
7750         * doc/posix-functions/freopen.texi: Likewise.
7751         * doc/posix-functions/fsetpos.texi: Likewise.
7752         * doc/posix-functions/fstatvfs.texi: Likewise.
7753         * doc/posix-functions/ftruncate.texi: Likewise.
7754         * doc/posix-functions/ftw.texi: Likewise.
7755         * doc/posix-functions/getrlimit.texi: Likewise.
7756         * doc/posix-functions/glob.texi: Likewise.
7757         * doc/posix-functions/lio_listio.texi: Likewise.
7758         * doc/posix-functions/lockf.texi: Likewise.
7759         * doc/posix-functions/mkstemp.texi: Likewise.
7760         * doc/posix-functions/mmap.texi: Likewise.
7761         * doc/posix-functions/nftw.texi: Likewise.
7762         * doc/posix-functions/openat.texi: Likewise.
7763         * doc/posix-functions/opendir.texi: Likewise.
7764         * doc/posix-functions/posix_fadvise.texi: Likewise.
7765         * doc/posix-functions/posix_fallocate.texi: Likewise.
7766         * doc/posix-functions/pread.texi: Likewise.
7767         * doc/posix-functions/pwrite.texi: Likewise.
7768         * doc/posix-functions/readdir.texi: Likewise.
7769         * doc/posix-functions/readdir_r.texi: Likewise.
7770         * doc/posix-functions/rewinddir.texi: Likewise.
7771         * doc/posix-functions/scandir.texi: Likewise.
7772         * doc/posix-functions/seekdir.texi: Likewise.
7773         * doc/posix-functions/setrlimit.texi: Likewise.
7774         * doc/posix-functions/statvfs.texi: Likewise.
7775         * doc/posix-functions/telldir.texi: Likewise.
7776         * doc/posix-functions/tmpfile.texi: Likewise.
7777         * doc/posix-functions/truncate.texi: Likewise.
7778         * doc/glibc-functions/fallocate.texi: Likewise.
7779         * doc/glibc-functions/fstatfs.texi: Likewise.
7780         * doc/glibc-functions/fts_children.texi: Likewise.
7781         * doc/glibc-functions/fts_read.texi: Likewise.
7782         * doc/glibc-functions/getdirentries.texi: Likewise.
7783         * doc/glibc-functions/mkostemp.texi: Likewise.
7784         * doc/glibc-functions/mkostemps.texi: Likewise.
7785         * doc/glibc-functions/mkstemps.texi: Likewise.
7786         * doc/glibc-functions/preadv.texi: Likewise.
7787         * doc/glibc-functions/pwritev.texi: Likewise.
7788         * doc/glibc-functions/sendfile.texi: Likewise.
7789         * doc/glibc-functions/statfs.texi: Likewise.
7790
7791 2011-07-24  Bruno Haible  <bruno@clisp.org>
7792
7793         doc: Fix typo.
7794         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
7795
7796 2011-07-24  Bruno Haible  <bruno@clisp.org>
7797
7798         doc: Mention fsusage.
7799         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
7800
7801 2011-07-24  Bruno Haible  <bruno@clisp.org>
7802
7803         doc: Mention new glibc headers and functions.
7804         * doc/glibc-headers/gshadow.texi: New file.
7805         * doc/glibc-functions/endsgent.texi: New file.
7806         * doc/glibc-functions/fgetsgent.texi: New file.
7807         * doc/glibc-functions/fgetsgent_r.texi: New file.
7808         * doc/glibc-functions/getsgent.texi: New file.
7809         * doc/glibc-functions/getsgent_r.texi: New file.
7810         * doc/glibc-functions/getsgnam.texi: New file.
7811         * doc/glibc-functions/getsgnam_r.texi: New file.
7812         * doc/glibc-functions/putsgent.texi: New file.
7813         * doc/glibc-functions/setsgent.texi: New file.
7814         * doc/glibc-functions/sgetsgent.texi: New file.
7815         * doc/glibc-functions/sgetsgent_r.texi: New file.
7816         * doc/glibc-functions/malloc_info.texi: New file.
7817         * doc/glibc-functions/preadv.texi: New file.
7818         * doc/glibc-functions/pwritev.texi: New file.
7819         * doc/glibc-functions/register_printf_modifier.texi: New file.
7820         * doc/glibc-functions/register_printf_specifier.texi: New file.
7821         * doc/glibc-functions/register_printf_type.texi: New file.
7822         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
7823         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
7824         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
7825         * doc/glibc-functions/pthread_getname_np.texi: New file.
7826         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
7827         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
7828         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
7829         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
7830         * doc/glibc-functions/pthread_setname_np.texi: New file.
7831         * doc/glibc-functions/pthread_sigqueue.texi: New file.
7832         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
7833         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
7834         * doc/glibc-functions/qsort_r.texi: New file.
7835         * doc/glibc-functions/quick_exit.texi: New file.
7836         * doc/glibc-functions/syncfs.texi: New file.
7837         * doc/gnulib.texi: Include them.
7838         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
7839         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
7840         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
7841         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
7842         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
7843         * doc/glibc-functions/execvpe.texi: Likewise.
7844
7845 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
7846
7847         ftell: don't include <unistd.h>
7848         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
7849         guaranteed to define off_t, and the ftell module depends on the
7850         stdio module.
7851
7852         ftell: do not assume wraparound signed arithmetic
7853         * lib/ftell.c: Include <limits.h>.
7854         (ftell): Don't assume wraparound signed arithmetic.
7855
7856 2011-07-24  Bruno Haible  <bruno@clisp.org>
7857
7858         close: No longer depend on module 'fclose'.
7859         * modules/close (Depends-on): Remove fclose.
7860         * NEWS: Mention the change.
7861         Suggested by Sam Steingold <sds@gnu.org>.
7862
7863 2011-07-24  Bruno Haible  <bruno@clisp.org>
7864
7865         fsusage: Enable large volume support on AIX >= 5.2.
7866         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
7867         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
7868         instead of STAT_STATVFS.
7869         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
7870
7871         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
7872         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
7873         f_blocks field only on MacOS X.
7874
7875         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
7876         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
7877         * modules/fsusage (Depends-on): Add largefile.
7878
7879 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
7880
7881         * README: Modernize discussion of signed integers.
7882         Assuming overflow wraparound is no longer safe.
7883         Mention ones' complement and signed magnitude.
7884
7885 2011-07-22  Bruno Haible  <bruno@clisp.org>
7886
7887         select tests, pselect tests: Refactor.
7888         * tests/test-select.h: New file, extracted from tests/test-select.c.
7889         (select_fn): New type.
7890         (test, do_select, do_select_nowait, do_select_wait, test_tty,
7891         test_connect_first, test_accept_first, test_pair, test_socket_pair,
7892         test_pipe): Add my_select argument.
7893         (test_function): Renamed from main. Add my_select argument.
7894         * tests/test-select.c: Move most code to tests/test-select.h. Include
7895         test-select.h.
7896         * modules/select-tests (Files): Add tests/test-select.h.
7897         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
7898         (my_select, main): New functions.
7899         * modules/pselect-tests (Files): Add tests/test-select.h,
7900         tests/macros.h, tests/signature.h.
7901         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
7902         (configure.ac): Check for <sys/wait.h>.
7903
7904 2011-07-22  Bruno Haible  <bruno@clisp.org>
7905
7906         sys_select tests: Check the signature of FD_*.
7907         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
7908         signature tests from here...
7909         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
7910         here.
7911         * modules/sys_select-tests (Files): Add tests/signature.h.
7912
7913 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
7914
7915         largefile: new module, replacing large-inode
7916         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
7917         * MODULES.html.sh: Add largefile, remove large-inode.
7918         * modules/largefile, m4/largefile.m4: New files.
7919         * modules/large-inode, m4/large-inode.m4: Remove.
7920
7921         fsusage: port to MacOS X 10.7 with 4 TiB file systems
7922         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
7923         implementations that use only 32 bits to count blocks.
7924         On typical hosts with 1024-byte blocks, this fails with file
7925         systems as small as 4 TiB.  Problem reported by Herb Wartens
7926         <http://debbugs.gnu.org/9140> and this should also fix a similar
7927         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
7928
7929         large-inode: New module
7930         * MODULES.html.sh: Add it.
7931         * modules/large-inode, m4/large-inode.m4: New files.
7932
7933         extensions: Enable extensions on MacOS X 10.5 and later.
7934         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
7935
7936 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
7937
7938         file-has-acl: use acl_extended_file_nofollow if available
7939         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
7940         (acl_extended_file): New macro.
7941         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
7942         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
7943
7944 2011-07-21  Bruno Haible  <bruno@clisp.org>
7945
7946         Declare system functions in a way that works with C++.
7947         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
7948         declare fdopendir as extern "C".
7949         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
7950         declare frexpl as extern "C".
7951         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
7952         declare gai_strerror as extern "C".
7953         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
7954         programs, declare gai_strerror as extern "C".
7955         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
7956         declare getlogin_r as extern "C".
7957         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
7958         as extern "C".
7959         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
7960         declare ldexpl as extern "C".
7961         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
7962         as extern "C".
7963         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
7964         program, declare getmntinfo as extern "C".
7965         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
7966         stpncpy as extern "C".
7967         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
7968         program, declare __xpg_strerror_r as extern "C".
7969         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
7970         strndup as extern "C".
7971         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
7972         declare memset and bzero as extern "C".
7973         Reported by Sam Steingold <sds@gnu.org>.
7974
7975 2011-07-12  Jim Meyering  <meyering@redhat.com>
7976
7977         maint.mk: prohibit inclusion of "verify.h" without use
7978         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
7979
7980 2011-07-19  Pádraig Brady  <P@draigBrady.com>
7981
7982         timer-time: A new module to check for timer_settime()
7983         * m4/timer_time.m4: Check for the posix function.
7984         * modules/timer-time: Add the new module.
7985         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
7986         Mention it.
7987
7988 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
7989             Bruno Haible  <bruno@clisp.org>
7990
7991         pthread_sigmask: assume POSIX threads if --avoid=threadlib
7992         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
7993         not defined, assume POSIX threads and look for pthread_sigmask in
7994         $LIBS, without changing $CPPFLAGS.
7995
7996 2011-07-19  Bruno Haible  <bruno@clisp.org>
7997
7998         strstr: Update cross-compilation guess.
7999         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
8000         CPUs, guess no, in view of glibc
8001         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
8002         Suggested by Eric Blake. Reported by Reuben Thomas.
8003
8004 2011-07-19  Pádraig Brady  <P@draigBrady.com>
8005
8006         getopt-gnu: suppress core dumps from detection code
8007         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
8008         to suppress core dumps that may well occur on glibc systems.
8009         * modules/getopt-gnu: Depend on nocrash.
8010
8011 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
8012
8013         pthread_sigmask: ensure usleep is declared
8014         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
8015         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
8016
8017 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
8018
8019         doc: Document NonStop portability issues.
8020         * doc/posix-functions/sigaction.texi (sigaction):
8021         * doc/posix-headers/signal.texi (signal.h):
8022         Document NonStop.  See Joachim Schmitz in
8023         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
8024
8025 2011-07-15  Bruno Haible  <bruno@clisp.org>
8026
8027         ffsl, ffsll: Avoid unportable behaviour.
8028         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
8029
8030 2011-07-15  Bruno Haible  <bruno@clisp.org>
8031
8032         ffs: More tests.
8033         * tests/test-ffs.c (NBITS): New macro.
8034         (main): Add more tests.
8035         * tests/test-ffsl.c (NBITS): New macro.
8036         (main): Add more tests.
8037         * tests/test-ffsll.c (NBITS): New macro.
8038         (main): Add more tests.
8039
8040 2011-07-15  Eric Blake  <eblake@redhat.com>
8041
8042         ffsl, ffsll: new modules
8043         * modules/ffsl: New file.
8044         * modules/ffsll: Likewise.
8045         * m4/ffsl.m4: Likewise.
8046         * m4/ffsll.m4: Likewise.
8047         * lib/ffsl.c: Likewise.
8048         * lib/ffsl.h: Likewise.
8049         * lib/ffsll.c: Likewise.
8050         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
8051         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
8052         * modules/string (Makefile.am): Substitute witnesses.
8053         * lib/strings.in.h (ffsl, ffsll): Declare.
8054         * modules/ffsl-tests: New test file.
8055         * modules/ffsll-tests: Likewise.
8056         * tests/test-ffsl.c: Likewise.
8057         * tests/test-ffsll.c: Likewise.
8058         * MODULES.html.sh (Integer arithmetic functions): Mention it.
8059         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
8060         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
8061
8062         ffs: fix m4 prerequisite
8063         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
8064
8065         ffs: avoid undefined behavior
8066         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
8067         * tests/test-ffs.c (naive, main): Avoid signed shifts.
8068         Reported by Bruno Haible.
8069
8070 2011-07-12  Bruno Haible  <bruno@clisp.org>
8071
8072         pthread_sigmask: Rely on module 'threadlib'.
8073         * modules/pthread_sigmask (Depends-on): Add threadlib.
8074         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
8075         is defined.
8076
8077 2011-07-12  Bruno Haible  <bruno@clisp.org>
8078
8079         regex: Depend on module 'strcase'.
8080         * modules/regex (Depends-on): Add strcase, for strcasecmp().
8081
8082 2011-07-12  Jim Meyering  <meyering@redhat.com>
8083
8084         warn-on-use: fix typo in file name
8085         * modules/snippet/warn-on-use (Files): Correct file name:
8086         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
8087
8088 2011-07-12  Bruno Haible  <bruno@clisp.org>
8089
8090         strings: Document module.
8091         * doc/posix-headers/strings.texi: Mention module 'strings'.
8092
8093 2011-07-12  Bruno Haible  <bruno@clisp.org>
8094
8095         Rename module '_Noreturn' to 'snippet/_Noreturn'.
8096         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
8097         (Files, Makefile.am): Update.
8098         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
8099         * modules/stdlib (Depends-on): Update.
8100
8101 2011-07-12  Bruno Haible  <bruno@clisp.org>
8102
8103         * NEWS: Mention the changes.
8104
8105         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
8106         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
8107         (Files, Makefile.am): Update.
8108         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
8109         * modules/arpa_inet (Depends-on): Update.
8110         * modules/ctype (Depends-on): Update.
8111         * modules/dirent (Depends-on): Update.
8112         * modules/fcntl-h (Depends-on): Update.
8113         * modules/glob (Depends-on): Update.
8114         * modules/iconv-h (Depends-on): Update.
8115         * modules/inttypes-incomplete (Depends-on): Update.
8116         * modules/langinfo (Depends-on): Update.
8117         * modules/locale (Depends-on): Update.
8118         * modules/math (Depends-on): Update.
8119         * modules/netdb (Depends-on): Update.
8120         * modules/poll-h (Depends-on): Update.
8121         * modules/pty (Depends-on): Update.
8122         * modules/search (Depends-on): Update.
8123         * modules/signal (Depends-on): Update.
8124         * modules/spawn (Depends-on): Update.
8125         * modules/stdio (Depends-on): Update.
8126         * modules/stdlib (Depends-on): Update.
8127         * modules/string (Depends-on): Update.
8128         * modules/strings (Depends-on): Update.
8129         * modules/sys_file (Depends-on): Update.
8130         * modules/sys_ioctl (Depends-on): Update.
8131         * modules/sys_select (Depends-on): Update.
8132         * modules/sys_socket (Depends-on): Update.
8133         * modules/sys_stat (Depends-on): Update.
8134         * modules/sys_time (Depends-on): Update.
8135         * modules/sys_times (Depends-on): Update.
8136         * modules/sys_utsname (Depends-on): Update.
8137         * modules/sys_wait (Depends-on): Update.
8138         * modules/termios (Depends-on): Update.
8139         * modules/time (Depends-on): Update.
8140         * modules/unistd (Depends-on): Update.
8141         * modules/wchar (Depends-on): Update.
8142         * modules/wctype-h (Depends-on): Update.
8143         * MODULES.html.sh (Support for building libraries and executables):
8144         Update.
8145
8146         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
8147         * modules/snippet/unused-parameter: Renamed from
8148         modules/unused-parameter.
8149         (Files, Makefile.am): Update.
8150         * build-aux/snippet/unused-parameter.h: Renamed from
8151         build-aux/unused-parameter.h.
8152         * modules/selinux-h (Depends-on): Update.
8153         * modules/unistr/base (Depends-on): Update.
8154         * MODULES.html.sh (Core language properties): Update.
8155
8156         Rename module 'link-warning' to 'snippet/link-warning'.
8157         * modules/snippet/link-warning: Renamed from modules/link-warning.
8158         (Files, Makefile.am): Update.
8159         * build-aux/snippet/link-warning.h: Renamed from
8160         build-aux/link-warning.h.
8161         * MODULES.html.sh (Support for building libraries and executables):
8162         Update.
8163
8164         Rename module 'c++defs' to 'snippet/c++defs'.
8165         * modules/snippet/c++defs: Renamed from modules/c++defs.
8166         (Files, Makefile.am): Update.
8167         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
8168         * modules/arpa_inet (Depends-on): Update.
8169         * modules/ctype (Depends-on): Update.
8170         * modules/dirent (Depends-on): Update.
8171         * modules/fcntl-h (Depends-on): Update.
8172         * modules/glob (Depends-on): Update.
8173         * modules/iconv-h (Depends-on): Update.
8174         * modules/langinfo (Depends-on): Update.
8175         * modules/locale (Depends-on): Update.
8176         * modules/math (Depends-on): Update.
8177         * modules/netdb (Depends-on): Update.
8178         * modules/poll-h (Depends-on): Update.
8179         * modules/pty (Depends-on): Update.
8180         * modules/search (Depends-on): Update.
8181         * modules/signal (Depends-on): Update.
8182         * modules/spawn (Depends-on): Update.
8183         * modules/stdio (Depends-on): Update.
8184         * modules/stdlib (Depends-on): Update.
8185         * modules/string (Depends-on): Update.
8186         * modules/strings (Depends-on): Update.
8187         * modules/sys_ioctl (Depends-on): Update.
8188         * modules/sys_select (Depends-on): Update.
8189         * modules/sys_socket (Depends-on): Update.
8190         * modules/sys_stat (Depends-on): Update.
8191         * modules/sys_time (Depends-on): Update.
8192         * modules/sys_wait (Depends-on): Update.
8193         * modules/termios (Depends-on): Update.
8194         * modules/time (Depends-on): Update.
8195         * modules/unistd (Depends-on): Update.
8196         * modules/wchar (Depends-on): Update.
8197         * modules/wctype-h (Depends-on): Update.
8198
8199         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
8200         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
8201         (Files, Makefile.am): Update.
8202         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
8203         * modules/argv-iter (Depends-on): Update.
8204         * modules/arpa_inet (Depends-on): Update.
8205         * modules/dirent (Depends-on): Update.
8206         * modules/fcntl-h (Depends-on): Update.
8207         * modules/fnmatch (Depends-on): Update.
8208         * modules/getopt-posix (Depends-on): Update.
8209         * modules/glob (Depends-on): Update.
8210         * modules/iconv-h (Depends-on): Update.
8211         * modules/inttypes-incomplete (Depends-on): Update.
8212         * modules/locale (Depends-on): Update.
8213         * modules/math (Depends-on): Update.
8214         * modules/netdb (Depends-on): Update.
8215         * modules/search (Depends-on): Update.
8216         * modules/signal (Depends-on): Update.
8217         * modules/spawn (Depends-on): Update.
8218         * modules/stdio (Depends-on): Update.
8219         * modules/stdlib (Depends-on): Update.
8220         * modules/string (Depends-on): Update.
8221         * modules/strings (Depends-on): Update.
8222         * modules/sys_socket (Depends-on): Update.
8223         * modules/sys_stat (Depends-on): Update.
8224         * modules/sys_time (Depends-on): Update.
8225         * modules/sys_times (Depends-on): Update.
8226         * modules/sys_utsname (Depends-on): Update.
8227         * modules/time (Depends-on): Update.
8228         * modules/unistd (Depends-on): Update.
8229         * modules/wchar (Depends-on): Update.
8230         * MODULES.html.sh (Support for building libraries and executables):
8231         Update.
8232
8233 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
8234
8235         Improvements on _Noreturn and related modules.
8236
8237         modules/_Exit-tests: test _Noreturn too
8238         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
8239         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
8240         (main): Use them.
8241
8242         stdnoreturn, stdnoreturn-tests: remove modules
8243         They're not needed here and a bit premature for use elsewhere.  See
8244         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
8245         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
8246         * tests/test-stdnoreturn.c: Remove files.
8247         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
8248         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
8249         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
8250         and using noreturn.
8251         * modules/openat, modules/sigpipe-die, modules/xalloc:
8252         * modules/xmemdup0, modules/xstrtol:
8253         Remove dependency on stdnoreturn.
8254
8255         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
8256         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
8257         Reparenthesize to avoid GCC warning.
8258         Support Microsoft's syntax.
8259         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
8260
8261         _Noreturn-tests: remove module
8262         * modules/_Noreturn-tests: Remove.
8263         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
8264         * tests/test-_Noreturn.c: Remove.
8265         * tests/test-stdnoreturn.c: Merge from the old
8266         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
8267
8268 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
8269
8270         _Noreturn, stdnoreturn, and related modules.
8271
8272         * top/maint.mk: Adjust to new noreturn support.
8273         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
8274         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
8275
8276         xalloc: use stdnoreturn.h
8277         * lib/xalloc.h: Include <stdnoreturn.h>.
8278         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
8279         * modules/xalloc (Depends-on): Add stdnoreturn.
8280
8281         xstrtol: use stdnoreturn.h
8282         * lib/xstrtol.h: Include <stdnoreturn.h>.
8283         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
8284         * modules/xstrtol (Depends-on): Add stdnoreturn.
8285
8286         xmemdup0: use stdnoreturn.h
8287         * lib/xmemdup0.h: Include <stdnoreturn.h>.
8288         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
8289         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
8290
8291         sigpipe-die: use stdnoreturn.h
8292         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
8293         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
8294         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
8295
8296         openat: use stdnoreturn.h
8297         * lib/openat.h: Include <stdnoreturn.h>.
8298         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
8299         * modules/openat (Depends-on): Add stdnoreturn.
8300
8301         * lib/openat-die.c (openat_save_fail): Modernize comment.
8302
8303         * lib/xalloc-die.c (xalloc_die): Modernize comment.
8304
8305         * lib/glthread/thread.h: Modernize comment.
8306
8307         obstack: use _Noreturn
8308         * lib/obstack.c (__attribute__): Remove macro.
8309         (print_and_abort): Use _Noreturn.
8310
8311         c-stack: use _Noreturn
8312         * lib/c-stack.c (die, overflow_handler, segv_handler):
8313         Use _Noreturn rather than __attribute__((noreturn)).
8314
8315         argmatch-tests, exclude_tests: use _Noreturn
8316         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
8317         Remove.
8318         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
8319
8320         stdlib: use _Noreturn
8321         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
8322         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
8323         * modules/stdlib (Depends-on): Add _Noreturn.
8324         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
8325
8326         stdnoreturn-tests: new module
8327         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
8328
8329         stdnoreturn: new module
8330         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
8331         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
8332
8333         _Noreturn-tests: new module
8334         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
8335
8336         _Noreturn: new module
8337         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
8338         New section, mentioning it.
8339         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
8340
8341         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
8342
8343 2011-07-11  Eric Blake  <eblake@redhat.com>
8344
8345         ffs: new module
8346         * modules/ffs: New file.
8347         * m4/ffs.m4: Likewise.
8348         * lib/ffs.c: Likewise.
8349         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
8350         * modules/strings (Makefile.am): Substitute witness.
8351         (Depends-on): Add c++defs.
8352         * lib/strings.in.h (ffs): Declare.
8353         * modules/ffs-tests: New test file.
8354         * tests/test-ffs.c: Test new module.
8355         * MODULES.html.sh (Integer arithmetic functions): Mention it.
8356         * doc/posix-functions/ffs.texi (ffs): Likewise.
8357
8358         regex: avoid compiler warning
8359         * lib/regex.c (includes): Include <strings.h>, for use of
8360         strcasecmp in regcomp.c.
8361         Reported by Joachim Schmitz.
8362
8363 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
8364
8365         stdint: respect system's intmax_t if INTMAX_MAX
8366         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
8367         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
8368         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
8369         long but int64_t is long long, and where we will clash with the
8370         system intmax_t if we override it.  See
8371         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
8372         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
8373         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
8374         similarly for UINTMAX_C.
8375
8376 2011-07-08  Bruno Haible  <bruno@clisp.org>
8377
8378         pthread_sigmask tests: Avoid a compiler warning.
8379         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
8380         non-zero.
8381
8382         sigprocmask tests: A better way to avoid a compiler warning.
8383         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
8384         (main): Complain if system() returns non-zero.
8385         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
8386
8387 2011-07-08  Bruno Haible  <bruno@clisp.org>
8388
8389         pthread_sigmask: Work around IRIX bug.
8390         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
8391         bug.
8392         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
8393         there may be unblocked pending signals.
8394         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
8395
8396 2011-07-08  Bruno Haible  <bruno@clisp.org>
8397
8398         pthread_sigmask: Work around Cygwin bug.
8399         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
8400         bug.
8401         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
8402         the system's pthread_sigmask function.
8403         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
8404
8405 2011-07-08  Bruno Haible  <bruno@clisp.org>
8406
8407         pthread_sigmask: Work around bug in single-threaded implementation.
8408         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
8409         FreeBSD, HP-UX, Solaris bug.
8410         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
8411         * lib/pthread_sigmask.c: Include <stddef.h>.
8412         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
8413         the system's pthread_sigmask function.
8414         * modules/pthread_sigmask (configure.ac): Invoke
8415         gl_PREREQ_PTHREAD_SIGMASK.
8416         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
8417         HP-UX, Solaris.
8418
8419 2011-07-08  Eric Blake  <eblake@redhat.com>
8420
8421         test-sigprocmask: avoid compiler warning
8422         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
8423         * tests/test-sigprocmask.c (main): Use it to silence warning.
8424         Reported by Jim Meyering.
8425
8426         test-snprintf: avoid compiler warning
8427         * tests/test-snprintf.c (main): Avoid shadowed declaration.
8428         * tests/test-vsnprintf.c (main): Likewise.
8429         Reported by Jim Meyering.
8430
8431 2011-07-08  Bruno Haible  <bruno@clisp.org>
8432
8433         Tests for module 'pthread_sigmask'.
8434         * modules/pthread_sigmask-tests: New file.
8435         * tests/test-pthread_sigmask1.c: New file, based on
8436         tests/test-sigprocmask.c.
8437         * tests/test-pthread_sigmask2.c: New file.
8438
8439 2011-07-08  Jim Meyering  <meyering@redhat.com>
8440
8441         test-getopt.h: avoid warning about an unused variable
8442         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
8443
8444 2011-07-07  Jim Meyering  <meyering@redhat.com>
8445
8446         maint: reduce list of files exempt from sc_prohibit_leading_TABs
8447         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
8448         now that it no longer contains leading TABs.
8449         Remove unused "url=FIXME" statement.
8450
8451 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
8452
8453         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
8454         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
8455         When gl_THREADLIB is not in use, assume that the POSIX sematics
8456         are desired.  This is better for Emacs, which uses POSIX semantics
8457         on GNUish and/or POSIXish platforms, and does not use threads at
8458         all otherwise.
8459
8460         pthread_sigmask: fix typo when testing for libraries
8461         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
8462         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
8463
8464 2011-07-08  Eric Blake  <eblake@redhat.com>
8465
8466         fts: introduce FTS_NOATIME
8467         * lib/fts_.h (FTS_NOATIME): New bit flag.
8468         (FTS_OPTIONMASK): Adjust.
8469         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
8470         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
8471
8472 2011-07-08  Bruno Haible  <bruno@clisp.org>
8473
8474         Tests for module 'thread'.
8475         * modules/thread-tests: New file.
8476         * tests/test-thread_self.c: New file.
8477         * tests/test-thread_create.cc: New file.
8478
8479 2011-07-08  Bruno Haible  <bruno@clisp.org>
8480
8481         thread: Avoid gcc warnings when using gl_thread_self().
8482         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
8483         'void *'.
8484         (gl_thread_self_pointer): Update.
8485
8486 2011-07-07  Bruno Haible  <bruno@clisp.org>
8487
8488         signal-c++-tests: Check declaration of pthread_sigmask.
8489         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
8490         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
8491         $(LIB_PTHREAD_SIGMASK).
8492
8493 2011-07-07  Bruno Haible  <bruno@clisp.org>
8494
8495         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
8496         * lib/signal.in.h (pthread_sigmask): Override if
8497         REPLACE_PTHREAD_SIGMASK is 1.
8498         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
8499         REPLACE_PTHREAD_SIGMASK.
8500         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
8501         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
8502         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
8503         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
8504         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
8505
8506 2011-07-07  Bruno Haible  <bruno@clisp.org>
8507
8508         pthread_sigmask: Ensure declaration in <signal.h>.
8509         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
8510         include <pthread.h>.
8511         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
8512         problem.
8513
8514 2011-07-07  Bruno Haible  <bruno@clisp.org>
8515
8516         pthread_sigmask: Document the module.
8517         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
8518
8519 2011-07-07  Bruno Haible  <bruno@clisp.org>
8520
8521         pthread_sigmask: Follow gnulib conventions.
8522         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
8523         gl_PTHREAD_SIGMASK.
8524         * modules/pthread_sigmask (configure.ac): Update.
8525
8526 2011-07-07  Bruno Haible  <bruno@clisp.org>
8527
8528         pthread_sigmask: Make declaration C++ safe.
8529         * lib/signal.in.h: In two special conditions, just do an #include_next.
8530         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
8531         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
8532         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
8533         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
8534         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
8535         not REPLACE_PTHREAD_MASK.
8536         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
8537         not REPLACE_PTHREAD_MASK.
8538         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
8539
8540 2011-07-07  Bruno Haible  <bruno@clisp.org>
8541
8542         pthread_sigmask: Fix return value.
8543         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
8544         * lib/pthread_sigmask.c: New file.
8545         * modules/pthread_sigmask (Files): Add it.
8546         (configure.ac): Invoke AC_LIBOBJ.
8547
8548 2011-07-07  Eric Blake  <eblake@redhat.com>
8549
8550         getopt: more portable argv creation
8551         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
8552         const, use char arrays rather than strings.
8553         Suggested by Paul Eggert.
8554
8555 2011-07-07  Bruno Haible  <bruno@clisp.org>
8556
8557         Tests for module 'sigprocmask'.
8558         * modules/sigprocmask-tests: New file.
8559         * tests/test-sigprocmask.c: New file.
8560
8561 2011-07-07  Bruno Haible  <bruno@clisp.org>
8562
8563         float tests: Tweak.
8564         * tests/test-float.c (main): Tweak skip message.
8565
8566 2011-07-07  Eric Blake  <eblake@redhat.com>
8567
8568         getopt: avoid compiler warning during configure
8569         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
8570         assigning string literals to non-const pointer.
8571
8572         getopt-gnu: avoid crash in glibc getopt
8573         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
8574         * tests/test-getopt.h (test_getopt): Enhance test.
8575         * tests/test-getopt_long.h (test_getopt_long): Likewise.
8576         * doc/posix-functions/getopt.texi (getopt): Document it.
8577         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
8578         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
8579         Likewise.
8580
8581 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
8582
8583         getopt: handle W; without long options in getopt [BZ #12922]
8584         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
8585         but no long options are defined, just return 'W'.
8586
8587 2011-07-07  Bruno Haible  <bruno@clisp.org>
8588
8589         Avoid literal tabs.
8590         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
8591         variable containing a tab instead of a literal tab.
8592         Reported by Jim Meyering.
8593
8594 2011-07-07  Bruno Haible  <bruno@clisp.org>
8595
8596         Comments.
8597         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
8598
8599 2011-07-06  Bruno Haible  <bruno@clisp.org>
8600
8601         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
8602         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
8603         <winsock2.h>.
8604         (rpl_fd_isset, FD_ISSET): New definitions, copied from
8605         lib/sys_socket.in.h.
8606         (close, gethostname): Hide declarations from <winsock2.h>.
8607         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
8608         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
8609         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
8610         (select): Don't override if gnulib's <sys/select.h> was already
8611         included.
8612         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
8613         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
8614         setsockopt, shutdown, select): Tweak indentation.
8615
8616 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
8617
8618         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
8619         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
8620         in an application that does not use the sys_select module.
8621
8622 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
8623
8624         poll: do not return 0 on timeout=-1
8625         * lib/poll.c: Loop with yield if no events occured
8626
8627 2011-07-06  Eric Blake  <eblake@redhat.com>
8628
8629         pthread_sigmask: always replace when not using pthread
8630         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
8631         replacement when using some threading other than pthread.  Fix
8632         logic bug.
8633
8634 2011-07-06  Bruno Haible  <bruno@clisp.org>
8635
8636         Comments.
8637         * m4/printf.m4: Update comments about mingw.
8638
8639 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
8640
8641         sys_select: define sigset_t more portably
8642         * lib/sys_select.in.h: Always include <sys/types.h>, since
8643         we now need sigset_t and mingw defines it there.
8644         Include <signal.h> before split inclusion guard, to avoid
8645         mishaps on Solaris, whose <signal.h> eventually includes us.
8646         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
8647         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
8648         which come from ...
8649         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
8650         gl_CHECK_TYPE_SIGSET_T.
8651         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
8652         does the real work.
8653         * modules/sys_select (Depends-on): Add 'signal'.
8654
8655         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
8656         Suggested by Bruno Haible.
8657
8658         pselect: Use pthread_sigmask, not sigprocmask.
8659         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
8660         multithreaded apps better than sigprocmask does.
8661         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
8662         sigprocmask directly.
8663
8664 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
8665
8666         * lib/pselect.c (pselect): Use plain name, without "rpl_".
8667         Don't #undef,  since we don't need any underlying pselect.
8668         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
8669         (Depends-on): Add select.
8670         (Link): Add $(LIBSOCKET).
8671         These changes suggested by Bruno Haible.
8672
8673         pselect: document better
8674         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
8675         * doc/posix-functions/pselect.texi (pselect): Document new module.
8676
8677         pthread_sigmask: new module
8678         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
8679         * doc/posix-functions/pthread_sigmask.texi: Document new module.
8680         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
8681         This is done only as a macro; I don't know how well that'll
8682         work for C++.  Move <sys/types.h> include before the include_next,
8683         to avoid mishap on Solaris.
8684         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
8685         * modules/signal (Makefile.am): Substitute the check's results.
8686         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
8687
8688         test-pselect: new module
8689         * modules/pselect-tests, tests/test-pselect.c: New files.
8690         * tests/test-select.c, tests/test-sys_select-c++.cc:
8691         If TEST_PSELECT is defined, test pselect instead of testing select.
8692
8693         * tests/test-sys_select.c (sigset_t): Test for it, too.
8694         Suggested by Bruno Haible.
8695
8696 2011-07-05  Eric Blake  <eblake@redhat.com>
8697
8698         snprintf: guarantee %1$d, for libintl
8699         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
8700         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
8701         * doc/posix-functions/snprintf.texi (snprintf): Update.
8702         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
8703         * tests/test-snprintf.c (main): Enhance test.
8704         * tests/test-vsnprintf.c (main): Likewise.
8705
8706 2011-07-05  Jim Meyering  <meyering@redhat.com>
8707
8708         maint: exempt stdio-read.c and stdio-write.c from the cppi check
8709         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
8710         per Bruno's request, to accommodate this idiom (no space after "#")
8711         even when the function is inside an #if block:
8712         char *
8713         gets (char *s)
8714         #undef gets
8715         {
8716           ...
8717         }
8718
8719 2011-07-04  Jim Meyering  <meyering@redhat.com>
8720
8721         maint: indent with spaces, not TABs, and add a rule to check this
8722         * tests/test-userspec.c: Indent with spaces, not TABs.
8723         * tests/test-argp.c: Likewise.
8724         * tests/test-c-stack2.sh: Likewise.
8725         * tests/test-parse-duration.sh: Likewise
8726         * m4/strtod.m4: Likewise.
8727         * m4/alloca.m4: Likewise.
8728         * m4/pselect.m4: Likewise.
8729         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
8730
8731 2011-07-03  Jim Meyering  <meyering@redhat.com>
8732
8733         maint.mk: correct omissions in prohibit_argmatch_without_use check
8734         This rule would mistakenly report that argmatch.h is included without
8735         use even when both the argmatch and invalid_arg macro were used.
8736         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
8737         of argmatch and invalid_arg.
8738
8739 2011-07-03  Bruno Haible  <bruno@clisp.org>
8740
8741         Comments about EINTR.
8742         * lib/safe-read.h: Explain the purpose of this module.
8743         * lib/safe-write.h: Likewise.
8744         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
8745         module.
8746         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
8747         module.
8748         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8749
8750 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
8751
8752         xnanosleep: Rewrite to use new dtotimespec module.
8753         It has the conversion code that used to be in xnanosleep.
8754         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
8755         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
8756         (TIME_T_MAX): Remove.
8757         (xnanosleep): Rewrite in terms of dtotimespec.
8758         * modules/xnanosleep (Depends-on): Add dtotimespec.
8759         Remove intprops, stdbool.
8760
8761         timespec-add, timespec-sub: new modules
8762         * lib/timespec.h (timespec_add, timespec_sub): New decls.
8763         * lib/timespec-add.c, lib/timespec-sub.c:
8764         * modules/timespec-add, modules/timespec-sub: New files.
8765
8766         dtotimespec: new module
8767         * lib/timespec.h (dtotimespec): New decl.
8768         * lib/dtotimespec.c, modules/dtotimespec: New files.
8769
8770         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
8771
8772         pselect: new module
8773         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
8774         (pselect): New decls.
8775         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
8776         since the standard pselect decl uses 'restrict'.
8777         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
8778         HAVE_PSELECT, REPLACE_PSELECT.
8779         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
8780         HAVE_PSELECT, REPLACE_PSELECT.
8781         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
8782
8783         sys_select: don't depend on sys_socket
8784         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
8785         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
8786         This fix works on GNU and GNU-like platforms, but has not been tested
8787         on native Windows.
8788         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
8789         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
8790         gl_HEADER_SYS_SOCKET.
8791         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
8792         gl_PREREQ_SYS_H_WINSOCK2.
8793
8794 2011-06-29  Eric Blake  <eblake@redhat.com>
8795
8796         pipe2: fix C89 compile problem
8797         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
8798         Reported by Bruno Haible.
8799
8800         pipe, pipe2: don't corrupt fd on error
8801         * lib/pipe.c (pipe): Leave fd unchanged on error.
8802         * lib/pipe2.c (pipe2): Likewise.
8803         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
8804         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
8805
8806 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
8807
8808         mmap-anon: do not use regular expressions inadvertently
8809         * m4/mmap-anon.m4: Remove trailing period from strings sought
8810         in the output.
8811
8812 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
8813
8814         nanosleep: fix integer overflow problem
8815         * lib/nanosleep.c (my_usleep): Don't assume signed integer
8816         arithmetic wraps around on overflow.
8817
8818         nanosleep: simplify carrying
8819         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
8820         first call to the underyling nanosleep, not for the last one.
8821         This doesn't fix any bugs, but it simplifies the computation of
8822         the remaining delay.  Found while auditing integer overflow issues.
8823
8824         dup2: remove test for existence of fcntl
8825         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
8826         "#if HAVE_FCNTL", in the configure-time test program.
8827         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
8828         and therefore speeds up "configure" a bit.  Found while
8829         adding the dup2 module to Emacs.
8830
8831 2011-06-24  Eric Blake  <eblake@redhat.com>
8832
8833         maint.mk: enhance useless header checks
8834         * top/maint.mk (_sc_header_without_use): Check both include
8835         styles.
8836         (sc_prohibit_assert_without_use)
8837         (sc_prohibit_close_stream_without_use)
8838         (sc_prohibit_getopt_without_use)
8839         (sc_prohibit_quotearg_without_use)
8840         (sc_prohibit_quote_without_use)
8841         (sc_prohibit_long_options_without_use)
8842         (sc_prohibit_inttostr_without_use)
8843         (sc_prohibit_ignore_value_without_use)
8844         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
8845         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
8846         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
8847         (sc_prohibit_hash_pjw_without_use)
8848         (sc_prohibit_safe_read_without_use)
8849         (sc_prohibit_argmatch_without_use)
8850         (sc_prohibit_canonicalize_without_use)
8851         (sc_prohibit_root_dev_ino_without_use)
8852         (sc_prohibit_openat_without_use)
8853         (sc_prohibit_c_ctype_without_use)
8854         (sc_prohibit_signal_without_use)
8855         (sc_prohibit_stdio--_without_use)
8856         (sc_prohibit_stdio-safer_without_use)
8857         (sc_prohibit_strings_without_use)
8858         (sc_prohibit_intprops_without_use)
8859         (sc_prohibit_stddef_without_use)
8860         (sc_prohibit_xfreopen_without_use): Update clients.
8861
8862 2011-06-24  Jim Meyering  <meyering@redhat.com>
8863
8864         syntax-check: keep one maint.mk rule in sync with its header
8865         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
8866         of the bug Eric has just fixed, with today's commit 25e4c2ec.
8867         I prefer to avoid temporary files here, so use <(...), but that
8868         is not supported by /bin/sh, so...
8869         (SHELL): Define to /bin/bash.
8870
8871 2011-06-24  Eric Blake  <eblake@redhat.com>
8872
8873         maint.mk: update sc_prohibit_intprops_without_use
8874         * top/maint.mk (_intprops_names): Match recent changes.
8875
8876 2011-06-24  Bruno Haible  <bruno@clisp.org>
8877
8878         strerror-override: No-op tweak.
8879         * lib/strerror-override.h (strerror_override): Reorder conditions,
8880         for consistency with lib/strerror-override.c.
8881
8882 2011-06-23  Eric Blake  <eblake@redhat.com>
8883
8884         maint.mk: test further PATH_MAX issues
8885         * top/maint.mk (sc_prohibit_path_max_array): Rename...
8886         (sc_prohibit_path_max_allocation): ...and also test alloca.
8887         Suggested by Jim Meyering.
8888
8889 2011-06-22  Eric Blake  <eblake@redhat.com>
8890
8891         maint.mk: add syntax-check to avoid char[PATH_MAX]
8892         * top/maint.mk (sc_prohibit_path_max_array): New rule.
8893
8894         stat: be robust to PATH_MAX definition
8895         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
8896         * modules/stat (Depends-on): Add verify.
8897
8898         link: work around IRIX bug
8899         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
8900         * lib/link.c (rpl_link): Work around it.
8901         * tests/test-link.h (test_link): Enhance test.
8902         * doc/posix-functions/link.texi (link): Document the bug.
8903
8904         getopt: silence clang warning
8905         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
8906         dereference.
8907         Reported by Gustavo Martin Domato.
8908
8909 2011-06-22  Jim Meyering  <meyering@redhat.com>
8910
8911         bootstrap: do not insert a blank line into each .gitignore file
8912         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
8913
8914 2011-06-21  Eric Blake  <eblake@redhat.com>
8915
8916         perror: test for output mismatch
8917         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
8918         perror on IRIX.
8919
8920         strerror_r: fix OpenBSD behavior on out-of-range
8921         * lib/strerror_r.c (strerror_r): Always use maximal string.
8922         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
8923
8924         strerror_r: fix OpenBSD behavior on 0
8925         * lib/strerror-override.c (strerror_override): Also override 0
8926         when needed.
8927         * lib/strerror-override.h (strerror_override): Likewise.
8928         * lib/strerror.c (strerror): Simplify, now that 0 override is done
8929         earlier.
8930         * lib/strerror_r.c (strerror_r): Likewise.
8931         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
8932         behavior...
8933         (gl_FUNC_STRERROR_0): ...into new macro.
8934         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
8935         is overridden.
8936         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
8937         * modules/strerror-override (Files): Add strerror.m4.
8938         (configure.ac): Also provide override for 0 when needed.
8939         * doc/posix-functions/strerror.texi (strerror): Document this.
8940         * doc/posix-functions/perror.texi (perror): Likewise.
8941
8942         perror: adjust array size
8943         * modules/perror (Depends-on): Add strerror-override.
8944         * lib/perror.c (perror): Use it to avoid magic number.
8945
8946         strerror-override: reduce size
8947         * lib/strerror-override.c (strerror_override): Use fewer lines.
8948
8949 2011-06-20  Bruno Haible  <bruno@clisp.org>
8950
8951         pathmax: Ensure correct value for PATH_MAX on HP-UX.
8952         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
8953
8954 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
8955
8956         alloca: port to compilers that can optimize like GCC 4.6.0
8957         * lib/alloca.c (find_stack_direction): New signature, taken from
8958         Autoconf git.  This works with GCC 4.6.0.  This code should never
8959         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
8960         be used with other compilers that optimize as well as GCC 4.6.0 does.
8961         (alloca): Adjust to new signature.
8962         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
8963         New macro, which patches Autoconf in a similar way.
8964
8965         c-stack: stop worrying about stack direction
8966         * lib/c-stack.c (find_stack_direction): Remove.
8967         (segv_handler): Don't worry about stack direction growth, as it's
8968         too much of a pain to configure this correctly, given how compilers
8969         are optimizing-away our stack-growth detection code.  Instead, assume
8970         that any access to just before or just after the stack is OK.
8971         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
8972         Don't require AC_FUNC_ALLOCA; no longer needed.
8973
8974 2011-06-20  Eric Blake  <eblake@redhat.com>
8975
8976         test-stat: don't allocate PATH_MAX bytes
8977         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
8978         PATH_MAX-sized buffer.
8979         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
8980         * modules/stat-tests (Depends-on): Likewise.
8981         * tests/test-fstatat.c (includes): Drop pathmax.h.
8982         * tests/test-stat.c (includes): Likewise.
8983         Reported by Bruno Haible.
8984
8985 2011-06-20  Bruno Haible  <bruno@clisp.org>
8986
8987         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
8988         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
8989         * lib/float.c: New file.
8990         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
8991         REPLACE_FLOAT_LDBL.
8992         * modules/float (Files): Add lib/float.c.
8993         (configure.ac): Invoke AC_LIBOBJ.
8994         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
8995
8996 2011-06-20  Bruno Haible  <bruno@clisp.org>
8997
8998         Tests for module 'float'.
8999         * modules/float-tests: New file.
9000         * tests/test-float.c: New file.
9001
9002 2011-06-19  Bruno Haible  <bruno@clisp.org>
9003
9004         isinf: Coding style.
9005         * lib/isinf.c: Use GNU coding style.
9006
9007 2011-06-19  Bruno Haible  <bruno@clisp.org>
9008
9009         linkat test: Avoid test failure on AIX 7.1.
9010         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
9011         * tests/test-link.h (test_link): Likewise.
9012
9013 2011-06-19  Bruno Haible  <bruno@clisp.org>
9014
9015         pread test: Avoid test failure on OpenBSD 4.9.
9016         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
9017
9018 2011-06-19  Bruno Haible  <bruno@clisp.org>
9019
9020         sprintf-posix: Fix test failure on AIX 7.1.
9021         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
9022         * doc/posix-functions/dprintf.texi: Mention limited precision problem
9023         on AIX.
9024         * doc/posix-functions/fprintf.texi: Likewise.
9025         * doc/posix-functions/printf.texi: Likewise.
9026         * doc/posix-functions/snprintf.texi: Likewise.
9027         * doc/posix-functions/sprintf.texi: Likewise.
9028         * doc/posix-functions/vdprintf.texi: Likewise.
9029         * doc/posix-functions/vfprintf.texi: Likewise.
9030         * doc/posix-functions/vprintf.texi: Likewise.
9031         * doc/posix-functions/vsnprintf.texi: Likewise.
9032         * doc/posix-functions/vsprintf.texi: Likewise.
9033
9034 2011-06-19  Bruno Haible  <bruno@clisp.org>
9035
9036         roundl-ieee: Fix test failure on AIX 7.1.
9037         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
9038         * doc/posix-functions/roundl.texi: Mention problem with negative
9039         arguments.
9040
9041 2011-06-19  Bruno Haible  <bruno@clisp.org>
9042
9043         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
9044         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
9045         * doc/posix-functions/round.texi: Mention problem with negative
9046         arguments.
9047         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
9048
9049 2011-06-19  Bruno Haible  <bruno@clisp.org>
9050
9051         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
9052         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
9053         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
9054         * doc/posix-functions/roundf.texi: Mention problem with negative
9055         arguments.
9056         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
9057
9058 2011-06-19  Bruno Haible  <bruno@clisp.org>
9059
9060         ceilf-ieee: Work around bug on MacOS X 10.5.
9061         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
9062
9063         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
9064         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
9065         IEEE compliant, avoid compiler optimizations.
9066         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
9067         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
9068         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
9069         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
9070         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
9071         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
9072         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9073         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
9074         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
9075         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
9076
9077 2011-06-19  Bruno Haible  <bruno@clisp.org>
9078
9079         ceilf-ieee: Work around bug on AIX 7.1.
9080         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
9081         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
9082
9083 2011-06-19  Bruno Haible  <bruno@clisp.org>
9084
9085         ceil-ieee: Work around bug on AIX 7.1.
9086         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
9087         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
9088
9089 2011-06-18  Bruno Haible  <bruno@clisp.org>
9090
9091         fsync test: Avoid test failure on MacOS X and AIX.
9092         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
9093         EINVAL.
9094
9095 2011-06-18  Bruno Haible  <bruno@clisp.org>
9096
9097         openat, fdopendir tests: Fix link errors.
9098         * modules/openat-tests (Depends-on): Add progname.
9099         * modules/fdopendir-tests (Depends-on): Likewise.
9100         * tests/test-fchownat.c: Include progname.h.
9101         (main): Call set_program_name.
9102         * tests/test-fstatat.c: Include progname.h.
9103         (main): Call set_program_name.
9104         * tests/test-mkdirat.c: Include progname.h.
9105         (main): Call set_program_name.
9106         * tests/test-openat.c: Include progname.h.
9107         (main): Call set_program_name.
9108         * tests/test-unlinkat.c: Include progname.h.
9109         (main): Call set_program_name.
9110         * tests/test-fdopendir.c: Include progname.h.
9111         (main): Call set_program_name.
9112
9113 2011-06-18  Bruno Haible  <bruno@clisp.org>
9114
9115         Doc update.
9116         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
9117         HP-UX.
9118         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
9119
9120 2011-06-18  Bruno Haible  <bruno@clisp.org>
9121
9122         getcwd tests: Avoid compilation error on HP-UX 11.31.
9123         * modules/getcwd-tests (Depends-on): Add pathmax.
9124         * tests/test-getcwd.c: Include pathmax.h.
9125
9126 2011-06-18  Bruno Haible  <bruno@clisp.org>
9127
9128         isfinite, isinf: Fix link error on AIX 6 and 7.
9129         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
9130         needed, also test the macro with a 'float' argument.
9131         * m4/isinf.m4 (gl_ISINF): Likewise.
9132
9133 2011-06-18  Bruno Haible  <bruno@clisp.org>
9134
9135         getloadavg: Don't clobber LIBS. Regression from previous commit.
9136         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
9137         AC_CHECK_LIB from here...
9138         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
9139         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
9140         gl_func_getloadavg_done.
9141         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9142
9143 2011-06-18  Bruno Haible  <bruno@clisp.org>
9144
9145         clean-temp: Improve documentation.
9146         * lib/clean-temp.h: Explain better how to use this module.
9147         Reported by John Darrington <john@darrington.wattle.id.au>.
9148
9149 2011-06-17  Bruno Haible  <bruno@clisp.org>
9150
9151         pread, pwrite: Avoid cc warning on AIX.
9152         * lib/unistd.in.h (pread): Undefine before defining as a macro.
9153         (pwrite): Likewise.
9154
9155 2011-06-17  Bruno Haible  <bruno@clisp.org>
9156
9157         spawn-pipe tests: Fix link error.
9158         * tests/test-spawn-pipe-child.c: Undefine fprintf.
9159         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9160
9161 2011-06-17  Bruno Haible  <bruno@clisp.org>
9162
9163         Tests: Remove unnecessary dependency.
9164         * modules/canonicalize-tests (Depends-on): Remove progname.
9165         * modules/chown-tests (Depends-on): Likewise.
9166         * modules/dirname-tests (Depends-on): Likewise.
9167         * modules/fdopendir-tests (Depends-on): Likewise.
9168         * modules/fdutimensat-tests (Depends-on): Likewise.
9169         * modules/hash-tests (Depends-on): Likewise.
9170         * modules/lchown-tests (Depends-on): Likewise.
9171         * modules/linkat-tests (Depends-on): Likewise.
9172         * modules/renameat-tests (Depends-on): Likewise.
9173         * modules/spawn-pipe-tests (Depends-on): Likewise.
9174         * modules/utimensat-tests (Depends-on): Likewise.
9175
9176 2011-06-17  Bruno Haible  <bruno@clisp.org>
9177
9178         spawn-pipe tests: Fix link error.
9179         * tests/test-spawn-pipe-child.c: Undefine fflush.
9180
9181 2011-06-17  Bruno Haible  <bruno@clisp.org>
9182
9183         Fix tests link errors.
9184         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
9185         * modules/chown-tests (Makefile.am): Don't link test-chown with
9186         LIBINTL.
9187         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
9188         LIBINTL.
9189         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
9190         LIBINTL.
9191         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
9192         LIBINTL.
9193
9194 2011-06-16  Bruno Haible  <bruno@clisp.org>
9195
9196         crypto/gc-sha1: Fix recent regression.
9197         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
9198         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
9199
9200         crypto/gc-md5: Fix recent regression.
9201         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
9202
9203         crypto/gc-md4: Fix recent regression.
9204         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
9205         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
9206
9207         crypto/gc-arctwo: Fix recent regression.
9208         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
9209         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
9210
9211         crypto/gc-rijndael: Fix recent regression.
9212         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
9213         (configure.ac): Invoke AC_LIBOBJ here.
9214         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
9215         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9216
9217         crypto/gc-hmac-sha1: Fix recent regression.
9218         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
9219         (configure.ac): Invoke AC_LIBOBJ here.
9220         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
9221         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9222
9223         crypto/gc-hmac-md5: Fix recent regression.
9224         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
9225         (configure.ac): Invoke AC_LIBOBJ here.
9226         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
9227         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9228
9229         crypto/gc-des: Fix recent regression.
9230         * modules/crypto/gc-des (Files): Remove m4/des.m4.
9231         (configure.ac): Invoke AC_LIBOBJ here.
9232         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
9233         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9234
9235         crypto/gc-arcfour: Fix recent regression.
9236         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
9237         (configure.ac): Invoke AC_LIBOBJ here.
9238         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
9239         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9240
9241 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
9242
9243         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
9244         After the 2011-05-21 change, this macro requires
9245         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
9246         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
9247
9248 2011-06-16  Bruno Haible  <bruno@clisp.org>
9249
9250         fprintftime: Move AC_LIBOBJ invocations to module description.
9251         * m4/fprintftime.m4: Remove file.
9252         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
9253         (configure.ac): Remove gl_FPRINTFTIME call.
9254         (Makefile.am): Augment lib_SOURCES.
9255         Reported by Jim Meyering.
9256
9257 2011-06-16  Bruno Haible  <bruno@clisp.org>
9258
9259         tmpfile-safer: Finish 2011-05-23 commit.
9260         * m4/stdio-safer.m4: Really remove file.
9261         Reported by Jim Meyering.
9262
9263 2011-06-16  Bruno Haible  <bruno@clisp.org>
9264
9265         syntax-check: Fix typo.
9266         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
9267         printf-posix.m4.
9268         Reported by Jim Meyering.
9269
9270 2011-06-13  Jim Meyering  <meyering@redhat.com>
9271
9272         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
9273         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
9274
9275 2011-05-23  Bruno Haible  <bruno@clisp.org>
9276
9277         yesno: Move AC_LIBOBJ invocations to module description.
9278         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
9279         * modules/yesno (Makefile.am): Augment lib_SOURCES.
9280
9281 2011-05-23  Bruno Haible  <bruno@clisp.org>
9282
9283         xstrtol: Move AC_LIBOBJ invocations to module description.
9284         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
9285         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
9286
9287 2011-05-23  Bruno Haible  <bruno@clisp.org>
9288
9289         xstrtold: Move AC_LIBOBJ invocations to module description.
9290         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
9291         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
9292
9293 2011-05-23  Bruno Haible  <bruno@clisp.org>
9294
9295         xstrtod: Move AC_LIBOBJ invocations to module description.
9296         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
9297         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
9298
9299 2011-05-23  Bruno Haible  <bruno@clisp.org>
9300
9301         xnanosleep: Move AC_LIBOBJ invocations to module description.
9302         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
9303         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
9304
9305 2011-05-23  Bruno Haible  <bruno@clisp.org>
9306
9307         xgetcwd: Move AC_LIBOBJ invocations to module description.
9308         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
9309         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
9310
9311 2011-05-23  Bruno Haible  <bruno@clisp.org>
9312
9313         xalloc: Move AC_LIBOBJ invocations to module description.
9314         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
9315         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
9316
9317 2011-05-23  Bruno Haible  <bruno@clisp.org>
9318
9319         write-any-file: Move AC_LIBOBJ invocations to module description.
9320         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
9321         invocation.
9322         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
9323
9324 2011-05-23  Bruno Haible  <bruno@clisp.org>
9325
9326         utimens: Move AC_LIBOBJ invocations to module description.
9327         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
9328         * modules/utimens (Makefile.am): Augment lib_SOURCES.
9329
9330 2011-05-23  Bruno Haible  <bruno@clisp.org>
9331
9332         utimecmp: Move AC_LIBOBJ invocations to module description.
9333         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
9334         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
9335
9336 2011-05-23  Bruno Haible  <bruno@clisp.org>
9337
9338         userspec: Move AC_LIBOBJ invocations to module description.
9339         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
9340         * modules/userspec (Makefile.am): Augment lib_SOURCES.
9341
9342 2011-05-23  Bruno Haible  <bruno@clisp.org>
9343
9344         unlinkdir: Move AC_LIBOBJ invocations to module description.
9345         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
9346         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
9347
9348 2011-05-23  Bruno Haible  <bruno@clisp.org>
9349
9350         unistd-safer: Move AC_LIBOBJ invocations to module description.
9351         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
9352         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
9353
9354 2011-05-23  Bruno Haible  <bruno@clisp.org>
9355
9356         tempname: Move AC_LIBOBJ invocations to module description.
9357         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
9358         * modules/tempname (Makefile.am): Augment lib_SOURCES.
9359
9360 2011-05-23  Bruno Haible  <bruno@clisp.org>
9361
9362         strftime: Move AC_LIBOBJ invocations to module description.
9363         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
9364         * modules/strftime (Makefile.am): Augment lib_SOURCES.
9365
9366 2011-05-23  Bruno Haible  <bruno@clisp.org>
9367
9368         stdlib-safer: Move AC_LIBOBJ invocations to module description.
9369         * m4/stdlib-safer.m4: Remove file.
9370         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
9371         (configure.ac): Remove gl_STDLIB_SAFER call.
9372         (Makefile.am): Augment lib_SOURCES.
9373
9374 2011-05-23  Bruno Haible  <bruno@clisp.org>
9375
9376         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
9377         * m4/stdio-safer.m4: Remove file.
9378         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
9379         (configure.ac): Remove gl_TMPFILE_SAFER call.
9380         (Makefile.am): Augment lib_SOURCES.
9381
9382 2011-05-23  Bruno Haible  <bruno@clisp.org>
9383
9384         popen-safer: Move AC_LIBOBJ invocations to module description.
9385         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
9386         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
9387         (configure.ac): Remove gl_POPEN_SAFER call.
9388         (Makefile.am): Augment lib_SOURCES.
9389
9390 2011-05-23  Bruno Haible  <bruno@clisp.org>
9391
9392         freopen-safer: Move AC_LIBOBJ invocations to module description.
9393         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
9394         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
9395         (configure.ac): Remove gl_FREOPEN_SAFER call.
9396         (Makefile.am): Augment lib_SOURCES.
9397
9398 2011-05-23  Bruno Haible  <bruno@clisp.org>
9399
9400         fopen-safer: Move AC_LIBOBJ invocations to module description.
9401         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
9402         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
9403         (configure.ac): Remove gl_FOPEN_SAFER call.
9404         (Makefile.am): Augment lib_SOURCES.
9405
9406 2011-05-23  Bruno Haible  <bruno@clisp.org>
9407
9408         crypto/sha512: Move AC_LIBOBJ invocations to module description.
9409         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
9410         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
9411
9412 2011-05-23  Bruno Haible  <bruno@clisp.org>
9413
9414         crypto/sha256: Move AC_LIBOBJ invocations to module description.
9415         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
9416         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
9417
9418 2011-05-23  Bruno Haible  <bruno@clisp.org>
9419
9420         crypto/sha1: Move AC_LIBOBJ invocations to module description.
9421         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
9422         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
9423
9424 2011-05-23  Bruno Haible  <bruno@clisp.org>
9425
9426         settime: Move AC_LIBOBJ invocations to module description.
9427         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
9428         * modules/settime (Makefile.am): Augment lib_SOURCES.
9429
9430 2011-05-23  Bruno Haible  <bruno@clisp.org>
9431
9432         savedir: Move AC_LIBOBJ invocations to module description.
9433         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
9434         * modules/savedir (Makefile.am): Augment lib_SOURCES.
9435
9436 2011-05-23  Bruno Haible  <bruno@clisp.org>
9437
9438         save-cwd: Move AC_LIBOBJ invocations to module description.
9439         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
9440         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
9441
9442 2011-05-23  Bruno Haible  <bruno@clisp.org>
9443
9444         same: Move AC_LIBOBJ invocations to module description.
9445         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
9446         * modules/same (Makefile.am): Augment lib_SOURCES.
9447
9448 2011-05-23  Bruno Haible  <bruno@clisp.org>
9449
9450         safe-write: Move AC_LIBOBJ invocations to module description.
9451         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
9452         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
9453         instead of gl_SAFE_WRITE.
9454         (Makefile.am): Augment lib_SOURCES.
9455
9456 2011-05-23  Bruno Haible  <bruno@clisp.org>
9457
9458         safe-read: Move AC_LIBOBJ invocations to module description.
9459         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
9460         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
9461         of gl_SAFE_READ.
9462         (Makefile.am): Augment lib_SOURCES.
9463
9464 2011-05-23  Bruno Haible  <bruno@clisp.org>
9465
9466         safe-alloc: Move AC_LIBOBJ invocations to module description.
9467         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
9468         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
9469
9470 2011-05-23  Bruno Haible  <bruno@clisp.org>
9471
9472         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
9473         * m4/rijndael.m4: Remove file.
9474         * modules/crypto/rijndael (Files): Remove it.
9475         (configure.ac): Remove gl_RIJNDAEL call.
9476         (Makefile.am): Augment lib_SOURCES.
9477
9478 2011-05-23  Bruno Haible  <bruno@clisp.org>
9479
9480         readtokens: Move AC_LIBOBJ invocations to module description.
9481         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
9482         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
9483
9484 2011-05-23  Bruno Haible  <bruno@clisp.org>
9485
9486         read-file: Move AC_LIBOBJ invocations to module description.
9487         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
9488         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
9489         of gl_FUNC_READ_FILE.
9490         (Makefile.am): Augment lib_SOURCES.
9491
9492 2011-05-23  Bruno Haible  <bruno@clisp.org>
9493
9494         quotearg: Move AC_LIBOBJ invocations to module description.
9495         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
9496         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
9497
9498 2011-05-23  Bruno Haible  <bruno@clisp.org>
9499
9500         quote: Move AC_LIBOBJ invocations to module description.
9501         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
9502         * modules/quote (Makefile.am): Augment lib_SOURCES.
9503
9504 2011-05-23  Bruno Haible  <bruno@clisp.org>
9505
9506         posixver: Move AC_LIBOBJ invocations to module description.
9507         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
9508         * modules/posixver (Makefile.am): Augment lib_SOURCES.
9509
9510 2011-05-23  Bruno Haible  <bruno@clisp.org>
9511
9512         posixtm: Move AC_LIBOBJ invocations to module description.
9513         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
9514         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
9515
9516 2011-05-23  Bruno Haible  <bruno@clisp.org>
9517
9518         physmem: Move AC_LIBOBJ invocations to module description.
9519         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
9520         * modules/physmem (Makefile.am): Augment lib_SOURCES.
9521
9522 2011-05-23  Bruno Haible  <bruno@clisp.org>
9523
9524         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
9525         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
9526         invocation.
9527         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
9528
9529 2011-05-23  Bruno Haible  <bruno@clisp.org>
9530
9531         mpsort: Move AC_LIBOBJ invocations to module description.
9532         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
9533         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
9534
9535 2011-05-23  Bruno Haible  <bruno@clisp.org>
9536
9537         modechange: Move AC_LIBOBJ invocations to module description.
9538         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
9539         * modules/modechange (Makefile.am): Augment lib_SOURCES.
9540
9541 2011-05-23  Bruno Haible  <bruno@clisp.org>
9542
9543         mkdir-p: Move AC_LIBOBJ invocations to module description.
9544         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
9545         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
9546
9547 2011-05-23  Bruno Haible  <bruno@clisp.org>
9548
9549         mkancesdirs: Move AC_LIBOBJ invocations to module description.
9550         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
9551         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
9552
9553 2011-05-23  Bruno Haible  <bruno@clisp.org>
9554
9555         mgetgroups: Move AC_LIBOBJ invocations to module description.
9556         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
9557         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
9558
9559 2011-05-23  Bruno Haible  <bruno@clisp.org>
9560
9561         memxor: Move AC_LIBOBJ invocations to module description.
9562         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
9563         * modules/memxor (Makefile.am): Augment lib_SOURCES.
9564
9565 2011-05-23  Bruno Haible  <bruno@clisp.org>
9566
9567         memcoll: Move AC_LIBOBJ invocations to module description.
9568         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
9569         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
9570
9571 2011-05-23  Bruno Haible  <bruno@clisp.org>
9572
9573         memcasecmp: Move AC_LIBOBJ invocations to module description.
9574         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
9575         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
9576
9577 2011-05-23  Bruno Haible  <bruno@clisp.org>
9578
9579         crypto/md5: Move AC_LIBOBJ invocations to module description.
9580         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
9581         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
9582
9583 2011-05-23  Bruno Haible  <bruno@clisp.org>
9584
9585         crypto/md4: Move AC_LIBOBJ invocations to module description.
9586         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
9587         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
9588
9589 2011-05-23  Bruno Haible  <bruno@clisp.org>
9590
9591         crypto/md2: Move AC_LIBOBJ invocations to module description.
9592         * m4/md2.m4: Remove file.
9593         * modules/crypto/md2 (Files): Remove it.
9594         (configure.ac): Remove gl_MD2 call.
9595         (Makefile.am): Augment lib_SOURCES.
9596
9597 2011-05-23  Bruno Haible  <bruno@clisp.org>
9598
9599         long-options: Move AC_LIBOBJ invocations to module description.
9600         * m4/long-options.m4: Remove file.
9601         * modules/long-options (Files): Remove it.
9602         (configure.ac): Remove gl_LONG_OPTIONS call.
9603         (Makefile.am): Augment lib_SOURCES.
9604
9605 2011-05-23  Bruno Haible  <bruno@clisp.org>
9606
9607         i-ring: Move AC_LIBOBJ invocations to module description.
9608         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
9609         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
9610
9611 2011-05-23  Bruno Haible  <bruno@clisp.org>
9612
9613         idcache: Move AC_LIBOBJ invocations to module description.
9614         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
9615         * modules/idcache (Makefile.am): Augment lib_SOURCES.
9616
9617 2011-05-23  Bruno Haible  <bruno@clisp.org>
9618
9619         human: Move AC_LIBOBJ invocations to module description.
9620         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
9621         * modules/human (Makefile.am): Augment lib_SOURCES.
9622
9623 2011-05-23  Bruno Haible  <bruno@clisp.org>
9624
9625         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
9626         * m4/hmac-sha1.m4: Remove file.
9627         * modules/crypto/hmac-sha1 (Files): Remove it.
9628         (configure.ac): Remove gl_HMAC_SHA1 call.
9629         (Makefile.am): Augment lib_SOURCES.
9630
9631 2011-05-23  Bruno Haible  <bruno@clisp.org>
9632
9633         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
9634         * m4/hmac-md5.m4: Remove file.
9635         * modules/crypto/hmac-md5 (Files): Remove it.
9636         (configure.ac): Remove gl_HMAC_MD5 call.
9637         (Makefile.am): Augment lib_SOURCES.
9638
9639 2011-05-23  Bruno Haible  <bruno@clisp.org>
9640
9641         hash: Move AC_LIBOBJ invocations to module description.
9642         * m4/hash.m4: Remove file.
9643         * modules/hash (Files): Remove it.
9644         (configure.ac): Remove gl_HASH call.
9645         (Makefile.am): Augment lib_SOURCES.
9646
9647 2011-05-23  Bruno Haible  <bruno@clisp.org>
9648
9649         hard-locale: Move AC_LIBOBJ invocations to module description.
9650         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
9651         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
9652
9653 2011-05-23  Bruno Haible  <bruno@clisp.org>
9654
9655         getugroups: Move AC_LIBOBJ invocations to module description.
9656         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
9657         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
9658
9659 2011-05-23  Bruno Haible  <bruno@clisp.org>
9660
9661         gettime: Move AC_LIBOBJ invocations to module description.
9662         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
9663         * modules/gettime (Makefile.am): Augment lib_SOURCES.
9664
9665 2011-05-23  Bruno Haible  <bruno@clisp.org>
9666
9667         getndelim2: Move AC_LIBOBJ invocations to module description.
9668         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
9669         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
9670
9671 2011-05-23  Bruno Haible  <bruno@clisp.org>
9672
9673         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
9674         * m4/gc-pbkdf2-sha1.m4: Remove file.
9675         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
9676         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
9677         (Makefile.am): Augment lib_SOURCES.
9678
9679 2011-05-23  Bruno Haible  <bruno@clisp.org>
9680
9681         fts: Move AC_LIBOBJ invocations to module description.
9682         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
9683         * modules/fts (configure.ac): ... to here.
9684
9685 2011-05-23  Bruno Haible  <bruno@clisp.org>
9686
9687         file-type: Move AC_LIBOBJ invocations to module description.
9688         * m4/file-type.m4: Remove file.
9689         * modules/file-type (Files): Remove it.
9690         (configure.ac): Remove gl_FILE_TYPE call.
9691         (Makefile.am): Augment lib_SOURCES.
9692
9693 2011-05-23  Bruno Haible  <bruno@clisp.org>
9694
9695         filenamecat*: Respect rules for use of AC_LIBOBJ.
9696         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
9697         Remove AC_LIBOBJ invocation.
9698         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
9699         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
9700
9701 2011-05-23  Bruno Haible  <bruno@clisp.org>
9702
9703         filemode: Move AC_LIBOBJ invocations to module description.
9704         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
9705         * modules/filemode (Makefile.am): Augment lib_SOURCES.
9706
9707 2011-05-23  Bruno Haible  <bruno@clisp.org>
9708
9709         openat-safer: Move AC_LIBOBJ invocations to module description.
9710         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
9711         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
9712
9713 2011-05-23  Bruno Haible  <bruno@clisp.org>
9714
9715         fcntl-safer: Move AC_LIBOBJ invocations to module description.
9716         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
9717         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
9718
9719 2011-05-23  Bruno Haible  <bruno@clisp.org>
9720
9721         exclude: Move AC_LIBOBJ invocations to module description.
9722         * m4/exclude.m4: Remove file.
9723         * modules/exclude (Files): Remove it.
9724         (configure.ac): Remove gl_EXCLUDE call.
9725         (Makefile.am): Augment lib_SOURCES.
9726
9727 2011-05-23  Bruno Haible  <bruno@clisp.org>
9728
9729         dirname*: Respect rules for use of AC_LIBOBJ.
9730         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
9731         invocations.
9732         * modules/dirname (Makefile.am): Augment lib_SOURCES.
9733         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
9734
9735 2011-05-23  Bruno Haible  <bruno@clisp.org>
9736
9737         dirent-safer: Move AC_LIBOBJ invocations to module description.
9738         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
9739         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
9740
9741 2011-05-23  Bruno Haible  <bruno@clisp.org>
9742
9743         crypto/des: Move AC_LIBOBJ invocations to module description.
9744         * m4/des.m4: Remove file.
9745         * modules/crypto/des (Files): Remove it.
9746         (configure.ac): Remove gl_DES call.
9747         (Makefile.am): Augment lib_SOURCES.
9748
9749 2011-05-23  Bruno Haible  <bruno@clisp.org>
9750
9751         cycle-check: Move AC_LIBOBJ invocations to module description.
9752         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
9753         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
9754
9755 2011-05-23  Bruno Haible  <bruno@clisp.org>
9756
9757         c-strtold: Move AC_LIBOBJ invocations to module description.
9758         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
9759         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
9760
9761 2011-05-23  Bruno Haible  <bruno@clisp.org>
9762
9763         c-strtod: Move AC_LIBOBJ invocations to module description.
9764         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
9765         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
9766
9767 2011-05-23  Bruno Haible  <bruno@clisp.org>
9768
9769         crc: Move AC_LIBOBJ invocations to module description.
9770         * m4/crc.m4: Remove file.
9771         * modules/crc (Files): Remove it.
9772         (configure.ac): Remove gl_CRC call.
9773         (Makefile.am): Augment lib_SOURCES.
9774
9775 2011-05-23  Bruno Haible  <bruno@clisp.org>
9776
9777         close-stream: Move AC_LIBOBJ invocations to module description.
9778         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
9779         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
9780
9781 2011-05-23  Bruno Haible  <bruno@clisp.org>
9782
9783         closeout: Move AC_LIBOBJ invocations to module description.
9784         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
9785         * modules/closeout (Makefile.am): Augment lib_SOURCES.
9786
9787 2011-05-23  Bruno Haible  <bruno@clisp.org>
9788
9789         closein: Move AC_LIBOBJ invocations to module description.
9790         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
9791         * modules/closein (Makefile.am): Augment lib_SOURCES.
9792
9793 2011-05-23  Bruno Haible  <bruno@clisp.org>
9794
9795         cloexec: Move AC_LIBOBJ invocations to module description.
9796         * m4/cloexec.m4: Remove file.
9797         * modules/cloexec (Files): Remove it.
9798         (configure.ac): Remove gl_CLOEXEC call.
9799         (Makefile.am): Augment lib_SOURCES.
9800
9801 2011-05-23  Bruno Haible  <bruno@clisp.org>
9802
9803         check-version: Move AC_LIBOBJ invocations to module description.
9804         * m4/check-version.m4: Remove file.
9805         * modules/check-version (Files): Remove it.
9806         (configure.ac): Remove gl_CHECK_VERSION call.
9807         (Makefile.am): Augment lib_SOURCES.
9808
9809 2011-05-23  Bruno Haible  <bruno@clisp.org>
9810
9811         chdir-safer: Move AC_LIBOBJ invocations to module description.
9812         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
9813         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
9814
9815 2011-05-23  Bruno Haible  <bruno@clisp.org>
9816
9817         canonicalize: Move AC_LIBOBJ invocations to module description.
9818         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
9819         AC_LIBOBJ invocation.
9820         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
9821
9822 2011-05-23  Bruno Haible  <bruno@clisp.org>
9823
9824         canon-host: Move AC_LIBOBJ invocations to module description.
9825         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
9826         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
9827         instead of gl_CANON_HOST.
9828         (Makefile.am): Augment lib_SOURCES.
9829
9830 2011-05-23  Bruno Haible  <bruno@clisp.org>
9831
9832         backupfile: Move AC_LIBOBJ invocations to module description.
9833         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
9834         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
9835
9836 2011-05-23  Bruno Haible  <bruno@clisp.org>
9837
9838         argmatch: Move AC_LIBOBJ invocations to module description.
9839         * m4/argmatch.m4: Remove file.
9840         * modules/argmatch (Files): Remove it.
9841         (configure.ac): Remove gl_ARGMATCH call.
9842         (Makefile.am): Augment lib_SOURCES.
9843
9844 2011-05-23  Bruno Haible  <bruno@clisp.org>
9845
9846         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
9847         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
9848         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
9849
9850 2011-05-23  Bruno Haible  <bruno@clisp.org>
9851
9852         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
9853         * m4/arcfour.m4: Remove file.
9854         * modules/crypto/arcfour (Files): Remove it.
9855         (configure.ac): Remove gl_ARCFOUR call.
9856         (Makefile.am): Augment lib_SOURCES.
9857
9858 2011-05-22  Bruno Haible  <bruno@clisp.org>
9859
9860         write: Move AC_LIBOBJ invocations to module description.
9861         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
9862         * modules/write (configure.ac): ... to here.
9863
9864 2011-05-22  Bruno Haible  <bruno@clisp.org>
9865
9866         wmemset: Move AC_LIBOBJ invocations to module description.
9867         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
9868         here...
9869         * modules/wmemset (configure.ac): ... to here.
9870
9871 2011-05-22  Bruno Haible  <bruno@clisp.org>
9872
9873         wmemmove: Move AC_LIBOBJ invocations to module description.
9874         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
9875         here...
9876         * modules/wmemmove (configure.ac): ... to here.
9877
9878 2011-05-22  Bruno Haible  <bruno@clisp.org>
9879
9880         wmemcpy: Move AC_LIBOBJ invocations to module description.
9881         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
9882         here...
9883         * modules/wmemcpy (configure.ac): ... to here.
9884
9885 2011-05-22  Bruno Haible  <bruno@clisp.org>
9886
9887         wmemcmp: Move AC_LIBOBJ invocations to module description.
9888         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
9889         here...
9890         * modules/wmemcmp (configure.ac): ... to here.
9891
9892 2011-05-22  Bruno Haible  <bruno@clisp.org>
9893
9894         wmemchr: Move AC_LIBOBJ invocations to module description.
9895         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
9896         here...
9897         * modules/wmemchr (configure.ac): ... to here.
9898
9899 2011-05-22  Bruno Haible  <bruno@clisp.org>
9900
9901         wcswidth: Move AC_LIBOBJ invocations to module description.
9902         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
9903         here...
9904         * modules/wcswidth (configure.ac): ... to here.
9905
9906 2011-05-22  Bruno Haible  <bruno@clisp.org>
9907
9908         wcwidth: Respect rules for use of AC_LIBOBJ.
9909         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
9910         invocation from here...
9911         * modules/wcwidth (configure.ac): ... to here.
9912         (Depends-on): Update conditions.
9913
9914 2011-05-22  Bruno Haible  <bruno@clisp.org>
9915
9916         wctype: Move AC_LIBOBJ invocations to module description.
9917         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
9918         invocation from here...
9919         * modules/wctype (configure.ac): ... to here.
9920         (Depends-on): Update conditions.
9921
9922 2011-05-22  Bruno Haible  <bruno@clisp.org>
9923
9924         wctrans: Move AC_LIBOBJ invocations to module description.
9925         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
9926         invocation from here...
9927         * modules/wctrans (configure.ac): ... to here.
9928
9929 2011-05-22  Bruno Haible  <bruno@clisp.org>
9930
9931         wctomb: Move AC_LIBOBJ invocations to module description.
9932         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
9933         invocations from here...
9934         * modules/wctomb (configure.ac): ... to here.
9935
9936 2011-05-22  Bruno Haible  <bruno@clisp.org>
9937
9938         wctob: Move AC_LIBOBJ invocations to module description.
9939         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
9940         gl_PREREQ_WCTOB invocations from here...
9941         * modules/wctob (configure.ac): ... to here.
9942         (Depends-on): Update conditions.
9943
9944 2011-05-22  Bruno Haible  <bruno@clisp.org>
9945
9946         wcsxfrm: Move AC_LIBOBJ invocations to module description.
9947         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
9948         here...
9949         * modules/wcsxfrm (configure.ac): ... to here.
9950
9951 2011-05-22  Bruno Haible  <bruno@clisp.org>
9952
9953         wcstok: Move AC_LIBOBJ invocations to module description.
9954         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
9955         * modules/wcstok (configure.ac): ... to here.
9956
9957 2011-05-22  Bruno Haible  <bruno@clisp.org>
9958
9959         wcsstr: Move AC_LIBOBJ invocations to module description.
9960         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
9961         * modules/wcsstr (configure.ac): ... to here.
9962
9963 2011-05-22  Bruno Haible  <bruno@clisp.org>
9964
9965         wcsspn: Move AC_LIBOBJ invocations to module description.
9966         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
9967         * modules/wcsspn (configure.ac): ... to here.
9968
9969 2011-05-22  Bruno Haible  <bruno@clisp.org>
9970
9971         wcsrtombs: Move AC_LIBOBJ invocations to module description.
9972         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
9973         gl_PREREQ_WCSRTOMBS invocations from here...
9974         * modules/wcsrtombs (configure.ac): ... to here.
9975
9976 2011-05-22  Bruno Haible  <bruno@clisp.org>
9977
9978         wcsrchr: Move AC_LIBOBJ invocations to module description.
9979         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
9980         here...
9981         * modules/wcsrchr (configure.ac): ... to here.
9982
9983 2011-05-22  Bruno Haible  <bruno@clisp.org>
9984
9985         wcspbrk: Move AC_LIBOBJ invocations to module description.
9986         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
9987         here...
9988         * modules/wcspbrk (configure.ac): ... to here.
9989
9990 2011-05-22  Bruno Haible  <bruno@clisp.org>
9991
9992         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
9993         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
9994         gl_PREREQ_WCSNRTOMBS invocations from here...
9995         * modules/wcsnrtombs (configure.ac): ... to here.
9996
9997 2011-05-22  Bruno Haible  <bruno@clisp.org>
9998
9999         wcsnlen: Move AC_LIBOBJ invocations to module description.
10000         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
10001         here...
10002         * modules/wcsnlen (configure.ac): ... to here.
10003
10004 2011-05-22  Bruno Haible  <bruno@clisp.org>
10005
10006         wcsncpy: Move AC_LIBOBJ invocations to module description.
10007         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
10008         here...
10009         * modules/wcsncpy (configure.ac): ... to here.
10010
10011 2011-05-22  Bruno Haible  <bruno@clisp.org>
10012
10013         wcsncmp: Move AC_LIBOBJ invocations to module description.
10014         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
10015         here...
10016         * modules/wcsncmp (configure.ac): ... to here.
10017
10018 2011-05-22  Bruno Haible  <bruno@clisp.org>
10019
10020         wcsncat: Move AC_LIBOBJ invocations to module description.
10021         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
10022         here...
10023         * modules/wcsncat (configure.ac): ... to here.
10024
10025 2011-05-22  Bruno Haible  <bruno@clisp.org>
10026
10027         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
10028         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
10029         from here...
10030         * modules/wcsncasecmp (configure.ac): ... to here.
10031
10032 2011-05-22  Bruno Haible  <bruno@clisp.org>
10033
10034         wcslen: Move AC_LIBOBJ invocations to module description.
10035         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
10036         * modules/wcslen (configure.ac): ... to here.
10037
10038 2011-05-22  Bruno Haible  <bruno@clisp.org>
10039
10040         wcsdup: Move AC_LIBOBJ invocations to module description.
10041         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
10042         * modules/wcsdup (configure.ac): ... to here.
10043
10044 2011-05-22  Bruno Haible  <bruno@clisp.org>
10045
10046         wcscspn: Move AC_LIBOBJ invocations to module description.
10047         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
10048         here...
10049         * modules/wcscspn (configure.ac): ... to here.
10050
10051 2011-05-22  Bruno Haible  <bruno@clisp.org>
10052
10053         wcscpy: Move AC_LIBOBJ invocations to module description.
10054         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
10055         * modules/wcscpy (configure.ac): ... to here.
10056
10057 2011-05-22  Bruno Haible  <bruno@clisp.org>
10058
10059         wcscoll: Move AC_LIBOBJ invocations to module description.
10060         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
10061         here...
10062         * modules/wcscoll (configure.ac): ... to here.
10063
10064 2011-05-22  Bruno Haible  <bruno@clisp.org>
10065
10066         wcscmp: Move AC_LIBOBJ invocations to module description.
10067         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
10068         * modules/wcscmp (configure.ac): ... to here.
10069
10070 2011-05-22  Bruno Haible  <bruno@clisp.org>
10071
10072         wcschr: Move AC_LIBOBJ invocations to module description.
10073         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
10074         * modules/wcschr (configure.ac): ... to here.
10075
10076 2011-05-22  Bruno Haible  <bruno@clisp.org>
10077
10078         wcscat: Move AC_LIBOBJ invocations to module description.
10079         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
10080         * modules/wcscat (configure.ac): ... to here.
10081
10082 2011-05-22  Bruno Haible  <bruno@clisp.org>
10083
10084         wcscasecmp: Move AC_LIBOBJ invocations to module description.
10085         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
10086         here...
10087         * modules/wcscasecmp (configure.ac): ... to here.
10088
10089 2011-05-22  Bruno Haible  <bruno@clisp.org>
10090
10091         wcrtomb: Move AC_LIBOBJ invocations to module description.
10092         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
10093         invocations from here...
10094         * modules/wcrtomb (configure.ac): ... to here.
10095
10096 2011-05-22  Bruno Haible  <bruno@clisp.org>
10097
10098         wcpncpy: Move AC_LIBOBJ invocations to module description.
10099         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
10100         here...
10101         * modules/wcpncpy (configure.ac): ... to here.
10102
10103 2011-05-22  Bruno Haible  <bruno@clisp.org>
10104
10105         wcpcpy: Move AC_LIBOBJ invocations to module description.
10106         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
10107         * modules/wcpcpy (configure.ac): ... to here.
10108
10109 2011-05-22  Bruno Haible  <bruno@clisp.org>
10110
10111         waitpid: Move AC_LIBOBJ invocations to module description.
10112         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
10113         invocation from here...
10114         * modules/waitpid (configure.ac): ... to here.
10115
10116 2011-05-22  Bruno Haible  <bruno@clisp.org>
10117
10118         utimensat: Move AC_LIBOBJ invocations to module description.
10119         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
10120         here...
10121         * modules/utimensat (configure.ac): ... to here.
10122
10123 2011-05-22  Bruno Haible  <bruno@clisp.org>
10124
10125         usleep: Move AC_LIBOBJ invocations to module description.
10126         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
10127         here...
10128         * modules/usleep (configure.ac): ... to here.
10129
10130 2011-05-22  Bruno Haible  <bruno@clisp.org>
10131
10132         unlockpt: Move AC_LIBOBJ invocations to module description.
10133         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
10134         gl_PREREQ_UNLOCKPT invocations from here...
10135         * modules/unlockpt (configure.ac): ... to here.
10136
10137 2011-05-22  Bruno Haible  <bruno@clisp.org>
10138
10139         unlink: Respect rules for use of AC_LIBOBJ.
10140         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
10141         * modules/unlink (configure.ac): ... to here.
10142
10143 2011-05-22  Bruno Haible  <bruno@clisp.org>
10144
10145         uname: Move AC_LIBOBJ invocations to module description.
10146         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
10147         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
10148         here...
10149         * modules/uname (configure.ac): ... to here.
10150
10151 2011-05-22  Bruno Haible  <bruno@clisp.org>
10152
10153         ttyname_r: Move AC_LIBOBJ invocations to module description.
10154         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
10155         gl_PREREQ_TTYNAME_R invocations from here...
10156         * modules/ttyname_r (configure.ac): ... to here.
10157
10158 2011-05-22  Bruno Haible  <bruno@clisp.org>
10159
10160         tsearch: Move AC_LIBOBJ invocations to module description.
10161         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
10162         invocations from here...
10163         * modules/tsearch (configure.ac): ... to here.
10164
10165 2011-05-22  Bruno Haible  <bruno@clisp.org>
10166
10167         towctrans: Move AC_LIBOBJ invocations to module description.
10168         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
10169         AC_LIBOBJ invocation from here...
10170         * modules/towctrans (configure.ac): ... to here.
10171
10172 2011-05-22  Bruno Haible  <bruno@clisp.org>
10173
10174         tmpfile: Move AC_LIBOBJ invocations to module description.
10175         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
10176         invocations from here...
10177         * modules/tmpfile (configure.ac): ... to here.
10178
10179 2011-05-22  Bruno Haible  <bruno@clisp.org>
10180
10181         times: Move AC_LIBOBJ invocations to module description.
10182         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
10183         * modules/times (configure.ac): ... to here.
10184
10185 2011-05-22  Bruno Haible  <bruno@clisp.org>
10186
10187         time_r: Move AC_LIBOBJ invocations to module description.
10188         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
10189         invocations from here...
10190         * modules/time_r (configure.ac): ... to here.
10191
10192 2011-05-22  Bruno Haible  <bruno@clisp.org>
10193
10194         timegm: Move AC_LIBOBJ invocations to module description.
10195         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
10196         invocations from here...
10197         * modules/timegm (configure.ac): ... to here.
10198
10199 2011-05-22  Bruno Haible  <bruno@clisp.org>
10200
10201         tcgetsid: Move AC_LIBOBJ invocations to module description.
10202         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
10203         and gl_PREREQ_TCGETSID invocations from here...
10204         * modules/tcgetsid (configure.ac): ... to here.
10205         (Depends-on): Update conditions.
10206
10207 2011-05-22  Bruno Haible  <bruno@clisp.org>
10208
10209         symlinkat: Move AC_LIBOBJ invocations to module description.
10210         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
10211         here...
10212         * modules/symlinkat (configure.ac): ... to here.
10213
10214 2011-05-22  Bruno Haible  <bruno@clisp.org>
10215
10216         symlink: Move AC_LIBOBJ invocations to module description.
10217         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
10218         here...
10219         * modules/symlink (configure.ac): ... to here.
10220
10221 2011-05-22  Bruno Haible  <bruno@clisp.org>
10222
10223         strverscmp: Move AC_LIBOBJ invocations to module description.
10224         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
10225         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
10226         from here...
10227         * modules/strverscmp (configure.ac): ... to here.
10228
10229 2011-05-22  Bruno Haible  <bruno@clisp.org>
10230
10231         strtok_r: Move AC_LIBOBJ invocations to module description.
10232         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
10233         and gl_PREREQ_STRTOK_R invocations from here...
10234         * modules/strtok_r (configure.ac): ... to here.
10235         (Depends-on): Update conditions.
10236
10237 2011-05-22  Bruno Haible  <bruno@clisp.org>
10238
10239         strtoumax: Move AC_LIBOBJ invocations to module description.
10240         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
10241         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
10242         from here...
10243         * modules/strtoumax (configure.ac): ... to here.
10244
10245 2011-05-22  Bruno Haible  <bruno@clisp.org>
10246
10247         strtoimax: Move AC_LIBOBJ invocations to module description.
10248         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
10249         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
10250         from here...
10251         * modules/strtoimax (configure.ac): ... to here.
10252
10253 2011-05-22  Bruno Haible  <bruno@clisp.org>
10254
10255         strtoull: Move AC_LIBOBJ invocations to module description.
10256         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
10257         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
10258         from here...
10259         * modules/strtoull (configure.ac): ... to here.
10260
10261 2011-05-22  Bruno Haible  <bruno@clisp.org>
10262
10263         strtoll: Move AC_LIBOBJ invocations to module description.
10264         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
10265         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
10266         here...
10267         * modules/strtoll (configure.ac): ... to here.
10268
10269 2011-05-22  Bruno Haible  <bruno@clisp.org>
10270
10271         strtoul: Move AC_LIBOBJ invocations to module description.
10272         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
10273         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
10274         * modules/strtoul (configure.ac): ... to here.
10275
10276 2011-05-22  Bruno Haible  <bruno@clisp.org>
10277
10278         strtol: Move AC_LIBOBJ invocations to module description.
10279         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
10280         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
10281         * modules/strtol (configure.ac): ... to here.
10282
10283 2011-05-22  Bruno Haible  <bruno@clisp.org>
10284
10285         strtod: Move AC_LIBOBJ invocations to module description.
10286         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
10287         invocations from here...
10288         * modules/strtod (configure.ac): ... to here.
10289
10290 2011-05-22  Bruno Haible  <bruno@clisp.org>
10291
10292         strstr*: Move AC_LIBOBJ invocations to module description.
10293         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
10294         invocations from here...
10295         * modules/strstr-simple (configure.ac): ... to here.
10296         * modules/strstr (configure.ac): ... and here.
10297
10298 2011-05-22  Bruno Haible  <bruno@clisp.org>
10299
10300         strsignal: Move AC_LIBOBJ invocations to module description.
10301         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
10302         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
10303         * modules/strsignal (configure.ac): ... to here.
10304         (Depends-on): Update conditions.
10305
10306 2011-05-22  Bruno Haible  <bruno@clisp.org>
10307
10308         strsep: Move AC_LIBOBJ invocations to module description.
10309         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
10310         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
10311         here...
10312         * modules/strsep (configure.ac): ... to here.
10313
10314 2011-05-22  Bruno Haible  <bruno@clisp.org>
10315
10316         strptime: Move AC_LIBOBJ invocations to module description.
10317         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
10318         gl_PREREQ_STRPTIME invocations from here...
10319         * modules/strptime (configure.ac): ... to here.
10320
10321 2011-05-22  Bruno Haible  <bruno@clisp.org>
10322
10323         strpbrk: Move AC_LIBOBJ invocations to module description.
10324         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
10325         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
10326         here...
10327         * modules/strpbrk (configure.ac): ... to here.
10328
10329 2011-05-22  Bruno Haible  <bruno@clisp.org>
10330
10331         strnlen: Move AC_LIBOBJ invocations to module description.
10332         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
10333         invocations from here...
10334         * modules/strnlen (configure.ac): ... to here.
10335
10336 2011-05-22  Bruno Haible  <bruno@clisp.org>
10337
10338         strndup: Move AC_LIBOBJ invocations to module description.
10339         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
10340         invocations from here...
10341         * modules/strndup (configure.ac): ... to here.
10342         (Depends-on): Update conditions.
10343
10344 2011-05-22  Bruno Haible  <bruno@clisp.org>
10345
10346         strncat: Move AC_LIBOBJ invocations to module description.
10347         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
10348         invocations from here...
10349         * modules/strncat (configure.ac): ... to here.
10350
10351 2011-05-22  Bruno Haible  <bruno@clisp.org>
10352
10353         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
10354         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
10355         invocations from here...
10356         * modules/strdup (configure.ac): ... to here.
10357         * modules/strdup-posix (configure.ac): ... and here.
10358
10359 2011-05-22  Bruno Haible  <bruno@clisp.org>
10360
10361         strcspn: Move AC_LIBOBJ invocations to module description.
10362         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
10363         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
10364         here...
10365         * modules/strcspn (configure.ac): ... to here.
10366
10367 2011-05-22  Bruno Haible  <bruno@clisp.org>
10368
10369         strchrnul: Move AC_LIBOBJ invocations to module description.
10370         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
10371         gl_PREREQ_STRCHRNUL invocations from here...
10372         * modules/strchrnul (configure.ac): ... to here.
10373
10374 2011-05-22  Bruno Haible  <bruno@clisp.org>
10375
10376         strcasestr*: Move AC_LIBOBJ invocations to module description.
10377         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
10378         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
10379         * modules/strcasestr-simple (configure.ac): ... to here.
10380         * modules/strcasestr (configure.ac): ... and here.
10381
10382 2011-05-22  Bruno Haible  <bruno@clisp.org>
10383
10384         strcase: Move AC_LIBOBJ invocations to module description.
10385         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
10386         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
10387         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
10388         gl_PREREQ_STRNCASECMP invocations from here...
10389         * modules/strcase (configure.ac): ... to here.
10390
10391 2011-05-22  Bruno Haible  <bruno@clisp.org>
10392
10393         stpncpy: Move AC_LIBOBJ invocations to module description.
10394         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
10395         here...
10396         * modules/stpncpy (configure.ac): ... to here.
10397
10398 2011-05-22  Bruno Haible  <bruno@clisp.org>
10399
10400         stpcpy: Move AC_LIBOBJ invocations to module description.
10401         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
10402         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
10403         here...
10404         * modules/stpcpy (configure.ac): ... to here.
10405
10406 2011-05-21  Bruno Haible  <bruno@clisp.org>
10407
10408         stat: Move AC_LIBOBJ invocations to module description.
10409         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
10410         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
10411         here...
10412         * modules/stat (configure.ac): ... to here.
10413
10414 2011-05-21  Bruno Haible  <bruno@clisp.org>
10415
10416         sleep: Move AC_LIBOBJ invocations to module description.
10417         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
10418         * modules/sleep (configure.ac): ... to here.
10419
10420 2011-05-21  Bruno Haible  <bruno@clisp.org>
10421
10422         signbit: Move AC_LIBOBJ invocations to module description.
10423         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
10424         * modules/signbit (configure.ac): ... to here.
10425
10426 2011-05-21  Bruno Haible  <bruno@clisp.org>
10427
10428         sigprocmask: Move AC_LIBOBJ invocations to module description.
10429         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
10430         gl_PREREQ_SIGPROMASK invocations from here...
10431         * modules/sigprocmask (configure.ac): ... to here.
10432
10433 2011-05-21  Bruno Haible  <bruno@clisp.org>
10434
10435         sigaction: Move AC_LIBOBJ invocations to module description.
10436         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
10437         gl_PREREQ_SIGACTION invocations from here...
10438         * modules/sigaction (configure.ac): ... to here.
10439
10440 2011-05-21  Bruno Haible  <bruno@clisp.org>
10441
10442         sig2str: Move AC_LIBOBJ invocations to module description.
10443         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
10444         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
10445         here...
10446         * modules/sig2str (configure.ac): ... to here.
10447
10448 2011-05-21  Bruno Haible  <bruno@clisp.org>
10449
10450         setlocale: Move AC_LIBOBJ invocations to module description.
10451         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
10452         gl_PREREQ_SETLOCALE invocations from here...
10453         * modules/setlocale (configure.ac): ... to here.
10454
10455 2011-05-21  Bruno Haible  <bruno@clisp.org>
10456
10457         unsetenv: Move AC_LIBOBJ invocations to module description.
10458         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
10459         and gl_PREREQ_UNSETENV invocations from here...
10460         * modules/unsetenv (configure.ac): ... to here.
10461         (Depends-on): Update.
10462
10463 2011-05-21  Bruno Haible  <bruno@clisp.org>
10464
10465         setenv: Move AC_LIBOBJ invocations to module description.
10466         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
10467         here...
10468         * modules/setenv (configure.ac): ... to here.
10469
10470 2011-05-21  Bruno Haible  <bruno@clisp.org>
10471
10472         selinux-h: Move AC_LIBOBJ invocations to module description.
10473         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
10474         AC_LIBOBJ invocation from here...
10475         * modules/selinux-h (configure.ac): ... to here.
10476
10477 2011-05-21  Bruno Haible  <bruno@clisp.org>
10478
10479         select: Respect rules for use of AC_LIBOBJ.
10480         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
10481         here...
10482         * modules/select (configure.ac): ... to here.
10483
10484 2011-05-21  Bruno Haible  <bruno@clisp.org>
10485
10486         scandir: Move AC_LIBOBJ invocations to module description.
10487         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
10488         invocations from here...
10489         * modules/scandir (configure.ac): ... to here.
10490
10491 2011-05-21  Bruno Haible  <bruno@clisp.org>
10492
10493         rpmatch: Move AC_LIBOBJ invocations to module description.
10494         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
10495         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
10496         here...
10497         * modules/rpmatch (configure.ac): ... to here.
10498
10499 2011-05-21  Bruno Haible  <bruno@clisp.org>
10500
10501         rmdir: Respect rules for use of AC_LIBOBJ.
10502         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
10503         * modules/rmdir (configure.ac): ... to here.
10504
10505 2011-05-21  Bruno Haible  <bruno@clisp.org>
10506
10507         renameat: Move AC_LIBOBJ invocations to module description.
10508         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
10509         here...
10510         * modules/renameat (configure.ac): ... to here.
10511
10512 2011-05-21  Bruno Haible  <bruno@clisp.org>
10513
10514         rename: Respect rules for use of AC_LIBOBJ.
10515         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
10516         here...
10517         * modules/rename (configure.ac): ... to here.
10518
10519 2011-05-21  Bruno Haible  <bruno@clisp.org>
10520
10521         remove: Move AC_LIBOBJ invocations to module description.
10522         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
10523         here...
10524         * modules/remove (configure.ac): ... to here.
10525
10526 2011-05-21  Bruno Haible  <bruno@clisp.org>
10527
10528         relocatable-lib: Move AC_LIBOBJ invocations to module description.
10529         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
10530         macro.
10531         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
10532         * modules/relocatable-lib (configure.ac): ... to here.
10533         * modules/relocatable-prog-wrapper (configure.ac): Invoke
10534         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
10535
10536 2011-05-21  Bruno Haible  <bruno@clisp.org>
10537
10538         relocatable-prog: Move AC_LIBOBJ invocations to module description.
10539         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
10540         here...
10541         * modules/relocatable-prog (configure.ac): ... to here.
10542
10543 2011-05-21  Bruno Haible  <bruno@clisp.org>
10544
10545         regex: Move AC_LIBOBJ invocations to module description.
10546         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
10547         invocations from here...
10548         * modules/regex (configure.ac): ... to here.
10549
10550 2011-05-21  Bruno Haible  <bruno@clisp.org>
10551
10552         realloc-*: Move AC_LIBOBJ invocations to module description.
10553         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
10554         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
10555         AC_LIBOBJ invocations from here...
10556         * modules/realloc-gnu (configure.ac): ... to here.
10557         * modules/realloc-posix (configure.ac): ... and here.
10558
10559 2011-05-21  Bruno Haible  <bruno@clisp.org>
10560
10561         readutmp: Move AC_LIBOBJ invocations to module description.
10562         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
10563         * modules/readutmp (configure.ac): ... to here.
10564
10565 2011-05-21  Bruno Haible  <bruno@clisp.org>
10566
10567         readlinkat: Move AC_LIBOBJ invocations to module description.
10568         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
10569         here...
10570         * modules/readlinkat (configure.ac): ... to here.
10571
10572 2011-05-21  Bruno Haible  <bruno@clisp.org>
10573
10574         readlink: Move AC_LIBOBJ invocations to module description.
10575         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
10576         gl_PREREQ_READLINK invocations from here...
10577         * modules/readlink (configure.ac): ... to here.
10578
10579 2011-05-21  Bruno Haible  <bruno@clisp.org>
10580
10581         readline: Move AC_LIBOBJ invocations to module description.
10582         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
10583         gl_PREREQ_READLINE invocations from here...
10584         * modules/readline (configure.ac): ... to here.
10585
10586 2011-05-21  Bruno Haible  <bruno@clisp.org>
10587
10588         read: Move AC_LIBOBJ invocations to module description.
10589         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
10590         * modules/read (configure.ac): ... to here.
10591
10592 2011-05-21  Bruno Haible  <bruno@clisp.org>
10593
10594         rawmemchr: Move AC_LIBOBJ invocations to module description.
10595         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
10596         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
10597         from here...
10598         * modules/rawmemchr (configure.ac): ... to here.
10599
10600 2011-05-21  Bruno Haible  <bruno@clisp.org>
10601
10602         random_r: Move AC_LIBOBJ invocations to module description.
10603         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
10604         gl_PREREQ_RANDOM_R invocations from here...
10605         * modules/random_r (configure.ac): ... to here.
10606
10607 2011-05-21  Bruno Haible  <bruno@clisp.org>
10608
10609         pwrite: Move AC_LIBOBJ invocations to module description.
10610         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
10611         * modules/pwrite (configure.ac): ... to here.
10612
10613 2011-05-21  Bruno Haible  <bruno@clisp.org>
10614
10615         putenv: Move AC_LIBOBJ invocations to module description.
10616         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
10617         * modules/putenv (configure.ac): ... to here.
10618
10619 2011-05-21  Bruno Haible  <bruno@clisp.org>
10620
10621         login_tty: Move AC_LIBOBJ invocations to module description.
10622         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
10623         * modules/login_tty (configure.ac): ... to here.
10624
10625 2011-05-21  Bruno Haible  <bruno@clisp.org>
10626
10627         openpty: Move AC_LIBOBJ invocations to module description.
10628         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
10629         * modules/openpty (configure.ac): ... to here.
10630
10631 2011-05-21  Bruno Haible  <bruno@clisp.org>
10632
10633         forkpty: Move AC_LIBOBJ invocations to module description.
10634         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
10635         * modules/forkpty (configure.ac): ... to here.
10636
10637 2011-05-21  Bruno Haible  <bruno@clisp.org>
10638
10639         ptsname: Move AC_LIBOBJ invocations to module description.
10640         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
10641         invocations from here...
10642         * modules/ptsname (configure.ac): ... to here.
10643
10644 2011-05-21  Bruno Haible  <bruno@clisp.org>
10645
10646         pread: Move AC_LIBOBJ invocations to module description.
10647         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
10648         * modules/pread (configure.ac): ... to here.
10649
10650 2011-05-21  Bruno Haible  <bruno@clisp.org>
10651
10652         posix_spawn*: Move AC_LIBOBJ invocations to module description.
10653         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
10654         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
10655         * modules/posix_spawn (configure.ac): ... to here.
10656         * modules/posix_spawnp (configure.ac): ... and here.
10657
10658 2011-05-21  Bruno Haible  <bruno@clisp.org>
10659
10660         popen: Move AC_LIBOBJ invocations to module description.
10661         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
10662         invocations from here...
10663         * modules/popen (configure.ac): ... to here.
10664
10665 2011-05-21  Bruno Haible  <bruno@clisp.org>
10666
10667         poll: Move AC_LIBOBJ invocations to module description.
10668         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
10669         invocations from here...
10670         * modules/poll (configure.ac): ... to here.
10671
10672 2011-05-21  Bruno Haible  <bruno@clisp.org>
10673
10674         pipe-posix: Move AC_LIBOBJ invocations to module description.
10675         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
10676         * modules/pipe-posix (configure.ac): ... to here.
10677
10678 2011-05-21  Bruno Haible  <bruno@clisp.org>
10679
10680         openat: Respect rules for use of AC_LIBOBJ.
10681         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
10682         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
10683         * modules/openat (configure.ac): ... to here.
10684
10685 2011-05-21  Bruno Haible  <bruno@clisp.org>
10686
10687         obstack-printf*: Move AC_LIBOBJ invocations to module description.
10688         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
10689         invocation from here...
10690         * modules/obstack-printf (configure.ac): ... to here.
10691         * modules/obstack-printf-posix (configure.ac): ... and here.
10692
10693 2011-05-21  Bruno Haible  <bruno@clisp.org>
10694
10695         nl_langinfo: Move AC_LIBOBJ invocations to module description.
10696         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
10697         from here...
10698         * modules/nl_langinfo (configure.ac): ... to here.
10699
10700 2011-05-21  Bruno Haible  <bruno@clisp.org>
10701
10702         nanosleep: Move AC_LIBOBJ invocations to module description.
10703         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
10704         gl_PREREQ_NANOSLEEP invocations from here...
10705         * modules/nanosleep (configure.ac): ... to here.
10706
10707 2011-05-21  Bruno Haible  <bruno@clisp.org>
10708
10709         mountlist: Move AC_LIBOBJ invocations to module description.
10710         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
10711         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
10712         * modules/mountlist (configure.ac): ... to here.
10713
10714 2011-05-21  Bruno Haible  <bruno@clisp.org>
10715
10716         mktime: Respect rules for use of AC_LIBOBJ.
10717         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
10718         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
10719         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
10720         (gl_FUNC_MKTIME_INTERNAL): ... and here...
10721         * modules/mktime (configure.ac): ... to here.
10722         * modules/mktime-internal (configure.ac): ... and here.
10723         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
10724
10725 2011-05-21  Bruno Haible  <bruno@clisp.org>
10726
10727         mkstemps: Move AC_LIBOBJ invocations to module description.
10728         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
10729         here...
10730         * modules/mkstemps (configure.ac): ... to here.
10731
10732 2011-05-21  Bruno Haible  <bruno@clisp.org>
10733
10734         mkstemp: Move AC_LIBOBJ invocations to module description.
10735         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
10736         gl_PREREQ_MKSTEMP invocations from here...
10737         * modules/mkstemp (configure.ac): ... to here.
10738
10739 2011-05-21  Bruno Haible  <bruno@clisp.org>
10740
10741         mkostemps: Move AC_LIBOBJ invocations to module description.
10742         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
10743         here...
10744         * modules/mkostemps (configure.ac): ... to here.
10745
10746 2011-05-21  Bruno Haible  <bruno@clisp.org>
10747
10748         mkostemp: Move AC_LIBOBJ invocations to module description.
10749         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
10750         gl_PREREQ_MKOSTEMP invocations from here...
10751         * modules/mkostemp (configure.ac): ... to here.
10752
10753 2011-05-21  Bruno Haible  <bruno@clisp.org>
10754
10755         mknod: Move AC_LIBOBJ invocations to module description.
10756         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
10757         * modules/mknod (configure.ac): ... to here.
10758
10759 2011-05-21  Bruno Haible  <bruno@clisp.org>
10760
10761         mkfifoat: Move AC_LIBOBJ invocations to module description.
10762         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
10763         here...
10764         * modules/mkfifoat (configure.ac): ... to here.
10765
10766 2011-05-21  Bruno Haible  <bruno@clisp.org>
10767
10768         mkfifo: Respect rules for use of AC_LIBOBJ.
10769         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
10770         here...
10771         * modules/mkfifo (configure.ac): ... to here.
10772
10773 2011-05-21  Bruno Haible  <bruno@clisp.org>
10774
10775         mkdtemp: Move AC_LIBOBJ invocations to module description.
10776         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
10777         invocations from here...
10778         * modules/mkdtemp (configure.ac): ... to here.
10779
10780 2011-05-21  Bruno Haible  <bruno@clisp.org>
10781
10782         mkdir: Move AC_LIBOBJ invocations to module description.
10783         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
10784         * modules/mkdir (configure.ac): ... to here.
10785
10786 2011-05-21  Bruno Haible  <bruno@clisp.org>
10787
10788         memset: Move AC_LIBOBJ invocations to module description.
10789         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
10790         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
10791         here...
10792         * modules/memset (configure.ac): ... to here.
10793
10794 2011-05-21  Bruno Haible  <bruno@clisp.org>
10795
10796         memrchr: Move AC_LIBOBJ invocations to module description.
10797         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
10798         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
10799         here...
10800         * modules/memrchr (configure.ac): ... to here.
10801
10802 2011-05-21  Bruno Haible  <bruno@clisp.org>
10803
10804         mempcpy: Move AC_LIBOBJ invocations to module description.
10805         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
10806         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
10807         here...
10808         * modules/mempcpy (configure.ac): ... to here.
10809
10810 2011-05-21  Bruno Haible  <bruno@clisp.org>
10811
10812         memmove: Move AC_LIBOBJ invocations to module description.
10813         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
10814         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
10815         here...
10816         * modules/memmove (configure.ac): ... to here.
10817
10818 2011-05-21  Bruno Haible  <bruno@clisp.org>
10819
10820         memmem*: Move AC_LIBOBJ invocations to module description.
10821         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
10822         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
10823         here...
10824         (gl_FUNC_MEMMEM): ... and here...
10825         * modules/memmem-simple (configure.ac): ... to here.
10826         * modules/memmem (configure.ac): ... and here.
10827
10828 2011-05-21  Bruno Haible  <bruno@clisp.org>
10829
10830         memcpy: Move AC_LIBOBJ invocations to module description.
10831         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
10832         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
10833         here...
10834         * modules/memcpy (configure.ac): ... to here.
10835
10836 2011-05-21  Bruno Haible  <bruno@clisp.org>
10837
10838         memcmp: Simplify autoconf macro.
10839         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
10840         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
10841         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
10842
10843 2011-05-21  Bruno Haible  <bruno@clisp.org>
10844
10845         memcmp: Move AC_LIBOBJ invocations to module description.
10846         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
10847         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
10848         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
10849         * modules/memcmp (configure.ac): ... to here.
10850         (Depends-on): Update conditions.
10851
10852 2011-05-21  Bruno Haible  <bruno@clisp.org>
10853
10854         memchr: Respect rules for use of AC_LIBOBJ.
10855         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
10856         invocations from here...
10857         * modules/memchr (configure.ac): ... to here.
10858
10859 2011-05-21  Bruno Haible  <bruno@clisp.org>
10860
10861         mbtowc: Move AC_LIBOBJ invocations to module description.
10862         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
10863         invocations from here...
10864         * modules/mbtowc (configure.ac): ... to here.
10865
10866 2011-05-21  Bruno Haible  <bruno@clisp.org>
10867
10868         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
10869         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
10870         gl_PREREQ_MBSRTOWCS invocations from here...
10871         * modules/mbsrtowcs (configure.ac): ... to here.
10872
10873 2011-05-21  Bruno Haible  <bruno@clisp.org>
10874
10875         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
10876         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
10877         gl_PREREQ_MBSNRTOWCS invocations from here...
10878         * modules/mbsnrtowcs (configure.ac): ... to here.
10879
10880 2011-05-21  Bruno Haible  <bruno@clisp.org>
10881
10882         mbsinit: Move AC_LIBOBJ invocations to module description.
10883         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
10884         invocations from here...
10885         * modules/mbsinit (configure.ac): ... to here.
10886
10887 2011-05-21  Bruno Haible  <bruno@clisp.org>
10888
10889         mbrlen: Move AC_LIBOBJ invocations to module description.
10890         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
10891         invocations from here...
10892         * modules/mbrlen (configure.ac): ... to here.
10893
10894 2011-05-21  Bruno Haible  <bruno@clisp.org>
10895
10896         mbrtowc: Respect rules for use of AC_LIBOBJ.
10897         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
10898         invocations from here...
10899         * modules/mbrtowc (configure.ac): ... to here.
10900
10901 2011-05-21  Bruno Haible  <bruno@clisp.org>
10902
10903         malloc-*: Move AC_LIBOBJ invocations to module description.
10904         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
10905         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
10906         AC_LIBOBJ invocations from here...
10907         * modules/malloc-gnu (configure.ac): ... to here.
10908         * modules/malloc-posix (configure.ac): ... and here.
10909
10910 2011-05-21  Bruno Haible  <bruno@clisp.org>
10911
10912         lstat, openat: Respect rules for use of AC_LIBOBJ.
10913         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
10914         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
10915         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
10916         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
10917         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
10918         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
10919         here.
10920         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
10921
10922 2011-05-21  Bruno Haible  <bruno@clisp.org>
10923
10924         lseek: Move AC_LIBOBJ invocations to module description.
10925         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
10926         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
10927         * modules/lseek (configure.ac): ... to here.
10928
10929 2011-05-21  Bruno Haible  <bruno@clisp.org>
10930
10931         linkat: Move AC_LIBOBJ invocations to module description.
10932         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
10933         here...
10934         * modules/linkat (configure.ac): ... to here.
10935
10936 2011-05-21  Bruno Haible  <bruno@clisp.org>
10937
10938         link: Respect rules for use of AC_LIBOBJ.
10939         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
10940         * modules/link (configure.ac): ... to here.
10941
10942 2011-05-21  Bruno Haible  <bruno@clisp.org>
10943
10944         lchown: Move AC_LIBOBJ invocations to module description.
10945         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
10946         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
10947         * modules/lchown (configure.ac): ... to here.
10948
10949 2011-05-21  Bruno Haible  <bruno@clisp.org>
10950
10951         iswctype: Move AC_LIBOBJ invocations to module description.
10952         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
10953         here...
10954         * modules/iswctype (configure.ac): ... to here.
10955
10956 2011-05-21  Bruno Haible  <bruno@clisp.org>
10957
10958         iswblank: Move AC_LIBOBJ invocations to module description.
10959         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
10960         here...
10961         * modules/iswblank (configure.ac): ... to here.
10962
10963 2011-05-21  Bruno Haible  <bruno@clisp.org>
10964
10965         atanl: Move AC_LIBOBJ invocations to module description.
10966         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
10967         * modules/atanl (configure.ac): ... to here.
10968
10969 2011-05-21  Bruno Haible  <bruno@clisp.org>
10970
10971         acosl: Move AC_LIBOBJ invocations to module description.
10972         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
10973         * modules/acosl (configure.ac): ... to here.
10974
10975 2011-05-21  Bruno Haible  <bruno@clisp.org>
10976
10977         asinl: Respect rules for use of AC_LIBOBJ.
10978         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
10979         * modules/asinl (configure.ac): ... to here.
10980
10981 2011-05-21  Bruno Haible  <bruno@clisp.org>
10982
10983         tanl: Move AC_LIBOBJ invocations to module description.
10984         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
10985         * modules/tanl (configure.ac): ... to here.
10986
10987 2011-05-21  Bruno Haible  <bruno@clisp.org>
10988
10989         cosl: Move AC_LIBOBJ invocations to module description.
10990         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
10991         * modules/cosl (configure.ac): ... to here.
10992
10993 2011-05-21  Bruno Haible  <bruno@clisp.org>
10994
10995         sinl: Move AC_LIBOBJ invocations to module description.
10996         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
10997         * modules/sinl (configure.ac): ... to here.
10998
10999 2011-05-21  Bruno Haible  <bruno@clisp.org>
11000
11001         logl: Move AC_LIBOBJ invocations to module description.
11002         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
11003         * modules/logl (configure.ac): ... to here.
11004
11005 2011-05-21  Bruno Haible  <bruno@clisp.org>
11006
11007         expl: Move AC_LIBOBJ invocations to module description.
11008         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
11009         * modules/expl (configure.ac): ... to here.
11010
11011 2011-05-21  Bruno Haible  <bruno@clisp.org>
11012
11013         roundl: Move AC_LIBOBJ invocations to module description.
11014         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
11015         * modules/roundl (configure.ac): ... to here.
11016
11017 2011-05-21  Bruno Haible  <bruno@clisp.org>
11018
11019         round: Move AC_LIBOBJ invocations to module description.
11020         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
11021         * modules/round (configure.ac): ... to here.
11022
11023 2011-05-21  Bruno Haible  <bruno@clisp.org>
11024
11025         roundf: Move AC_LIBOBJ invocations to module description.
11026         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
11027         * modules/roundf (configure.ac): ... to here.
11028
11029 2011-05-21  Bruno Haible  <bruno@clisp.org>
11030
11031         truncl: Move AC_LIBOBJ invocations to module description.
11032         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
11033         * modules/truncl (configure.ac): ... to here.
11034
11035 2011-05-21  Bruno Haible  <bruno@clisp.org>
11036
11037         trunc: Move AC_LIBOBJ invocations to module description.
11038         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
11039         * modules/trunc (configure.ac): ... to here.
11040
11041 2011-05-21  Bruno Haible  <bruno@clisp.org>
11042
11043         truncf: Move AC_LIBOBJ invocations to module description.
11044         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
11045         * modules/truncf (configure.ac): ... to here.
11046
11047 2011-05-21  Bruno Haible  <bruno@clisp.org>
11048
11049         ceill: Move AC_LIBOBJ invocations to module description.
11050         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
11051         * modules/ceill (configure.ac): ... to here.
11052
11053 2011-05-21  Bruno Haible  <bruno@clisp.org>
11054
11055         ceil: Move AC_LIBOBJ invocations to module description.
11056         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
11057         * modules/ceil (configure.ac): ... to here.
11058
11059 2011-05-21  Bruno Haible  <bruno@clisp.org>
11060
11061         ceilf: Move AC_LIBOBJ invocations to module description.
11062         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
11063         * modules/ceilf (configure.ac): ... to here.
11064
11065 2011-05-21  Bruno Haible  <bruno@clisp.org>
11066
11067         floorl: Respect rules for use of AC_LIBOBJ.
11068         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
11069         * modules/floorl (configure.ac): ... to here.
11070
11071 2011-05-21  Bruno Haible  <bruno@clisp.org>
11072
11073         floor: Respect rules for use of AC_LIBOBJ.
11074         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
11075         * modules/floor (configure.ac): ... to here.
11076
11077 2011-05-21  Bruno Haible  <bruno@clisp.org>
11078
11079         floorf: Move AC_LIBOBJ invocations to module description.
11080         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
11081         * modules/floorf (configure.ac): ... to here.
11082
11083 2011-05-20  Bruno Haible  <bruno@clisp.org>
11084
11085         sqrtl: Respect rules for use of AC_LIBOBJ.
11086         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
11087         * modules/sqrtl (configure.ac): ... to here.
11088
11089 2011-05-20  Bruno Haible  <bruno@clisp.org>
11090
11091         ldexpl: Respect rules for use of AC_LIBOBJ.
11092         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
11093         * modules/ldexpl (configure.ac): ... to here.
11094
11095 2011-05-20  Bruno Haible  <bruno@clisp.org>
11096
11097         frexpl*: Respect rules for use of AC_LIBOBJ.
11098         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
11099         invocation from here...
11100         * modules/frexpl (configure.ac): ... to here.
11101         * modules/frexpl-nolibm (configure.ac): ... and here.
11102
11103 2011-05-20  Bruno Haible  <bruno@clisp.org>
11104
11105         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
11106         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
11107         invocation from here...
11108         * modules/frexp (configure.ac): ... to here.
11109         * modules/frexp-nolibm (configure.ac): ... and here.
11110
11111 2011-05-20  Bruno Haible  <bruno@clisp.org>
11112
11113         isnan: Respect rules for use of AC_LIBOBJ.
11114         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
11115         invocations here.
11116         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
11117         REPLACE_ISNAN.
11118         * modules/isnand (configure.ac): Likewise.
11119         * modules/isnanl (configure.ac): Likewise.
11120
11121 2011-05-20  Bruno Haible  <bruno@clisp.org>
11122
11123         isnanl*: Respect rules for use of AC_LIBOBJ.
11124         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
11125         invocation from here...
11126         * modules/isnanl (configure.ac): ... to here.
11127         * modules/isnanl-nolibm (configure.ac): ... and here.
11128
11129 2011-05-20  Bruno Haible  <bruno@clisp.org>
11130
11131         isnand*: Move AC_LIBOBJ invocations to module description.
11132         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
11133         invocation from here...
11134         * modules/isnand (configure.ac): ... to here.
11135         * modules/isnand-nolibm (configure.ac): ... and here.
11136
11137 2011-05-20  Bruno Haible  <bruno@clisp.org>
11138
11139         isnanf*: Move AC_LIBOBJ invocations to module description.
11140         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
11141         invocation from here...
11142         * modules/isnanf (configure.ac): ... to here.
11143         * modules/isnanf-nolibm (configure.ac): ... and here.
11144
11145 2011-05-20  Bruno Haible  <bruno@clisp.org>
11146
11147         isnan*: Separate the AC_LIBOBJ invocations.
11148         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
11149         AC_LIBOBJ invocation.
11150         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
11151         here.
11152         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
11153         AC_LIBOBJ invocation.
11154         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
11155         here.
11156         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
11157         AC_LIBOBJ invocation.
11158         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
11159         here.
11160         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
11161
11162 2011-05-08  Bruno Haible  <bruno@clisp.org>
11163
11164         isinf: Move AC_LIBOBJ invocations to module description.
11165         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
11166         * modules/isinf (configure.ac): ... to here.
11167
11168 2011-05-08  Bruno Haible  <bruno@clisp.org>
11169
11170         isfinite: Move AC_LIBOBJ invocations to module description.
11171         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
11172         * modules/isfinite (configure.ac): ... to here.
11173
11174 2011-05-08  Bruno Haible  <bruno@clisp.org>
11175
11176         isblank: Move AC_LIBOBJ invocations to module description.
11177         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
11178         here...
11179         * modules/isblank (configure.ac): ... to here.
11180
11181 2011-05-08  Bruno Haible  <bruno@clisp.org>
11182
11183         isapipe: Move AC_LIBOBJ invocations to module description.
11184         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
11185         gl_PREREQ_ISAPIPE invocations from here...
11186         * modules/isapipe (configure.ac): ... to here.
11187         (Depends-on): Update condition.
11188
11189 2011-05-08  Bruno Haible  <bruno@clisp.org>
11190
11191         ioctl: Move AC_LIBOBJ invocations to module description.
11192         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
11193         invocations from here...
11194         * modules/ioctl (configure.ac): ... to here.
11195         (Depends-on): Update condition.
11196
11197 2011-05-08  Bruno Haible  <bruno@clisp.org>
11198
11199         imaxdiv: Move AC_LIBOBJ invocations to module description.
11200         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
11201         invocations from here...
11202         * modules/imaxdiv (configure.ac): ... to here.
11203
11204 2011-05-08  Bruno Haible  <bruno@clisp.org>
11205
11206         imaxabs: Move AC_LIBOBJ invocations to module description.
11207         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
11208         invocations from here...
11209         * modules/imaxabs (configure.ac): ... to here.
11210
11211 2011-05-08  Bruno Haible  <bruno@clisp.org>
11212
11213         getaddrinfo: Move AC_LIBOBJ invocations to module description.
11214         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
11215         AC_LIBOBJ invocations from here...
11216         * modules/getaddrinfo (configure.ac): ... to here.
11217         (Depends-on): Add conditions.
11218
11219 2011-05-08  Bruno Haible  <bruno@clisp.org>
11220
11221         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
11222         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
11223         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
11224         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
11225         (gl_PREREQ_INET_PTON): ... from here.
11226         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
11227         gl_PREREQ_INET_PTON here.
11228         (Depends-on): Update condition.
11229
11230 2011-05-08  Bruno Haible  <bruno@clisp.org>
11231
11232         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
11233         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
11234         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
11235         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
11236         (gl_PREREQ_INET_NTOP): ... from here.
11237         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
11238         gl_PREREQ_INET_NTOP here.
11239         (Depends-on): Update condition.
11240
11241 2011-05-08  Bruno Haible  <bruno@clisp.org>
11242
11243         iconv_open: Move AC_LIBOBJ invocations to module description.
11244         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
11245         AC_LIBOBJ invocations from here...
11246         * modules/iconv_open (configure.ac): ... to here.
11247
11248 2011-05-08  Bruno Haible  <bruno@clisp.org>
11249
11250         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
11251         If module 'iconv_open' is among the main modules and module
11252         'iconv_open-utf' is among the tests dependencies, then
11253         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
11254         return the special iconv_t values. Therefore iconv() and iconv_close()
11255         must support these special iconv_t values, already in lib, not only in
11256         tests.
11257         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
11258         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
11259         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
11260         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
11261         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
11262         (Depends-on): Add the dependencies of iconv_open-utf.
11263         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
11264         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
11265         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
11266
11267 2011-05-08  Bruno Haible  <bruno@clisp.org>
11268
11269         group-member: Move AC_LIBOBJ invocations to module description.
11270         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
11271         gl_PREREQ_GROUP_MEMBER invocations from here...
11272         * modules/group-member (configure.ac): ... to here.
11273
11274 2011-05-08  Bruno Haible  <bruno@clisp.org>
11275
11276         grantpt: Move AC_LIBOBJ invocations to module description.
11277         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
11278         invocations from here...
11279         * modules/grantpt (configure.ac): ... to here.
11280
11281 2011-05-08  Bruno Haible  <bruno@clisp.org>
11282
11283         glob: Move AC_LIBOBJ invocations to module description.
11284         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
11285         from here...
11286         * modules/glob (configure.ac): ... to here.
11287
11288 2011-05-08  Bruno Haible  <bruno@clisp.org>
11289
11290         getusershell: Move AC_LIBOBJ invocations to module description.
11291         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
11292         Move AC_LIBOBJ invocation from here...
11293         * modules/getusershell (configure.ac): ... to here.
11294         (Depends-on): Update condition.
11295
11296 2011-05-08  Bruno Haible  <bruno@clisp.org>
11297
11298         gettimeofday: Move AC_LIBOBJ invocations to module description.
11299         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
11300         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
11301         gl_PREREQ_GETTIMEOFDAY invocations from here...
11302         * modules/gettimeofday (configure.ac): ... to here.
11303
11304 2011-05-08  Bruno Haible  <bruno@clisp.org>
11305
11306         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
11307         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
11308         just gl_FUNC_TZSET.
11309         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
11310         (gl_FUNC_TZSET_CLOBBER): Remove actions.
11311         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
11312         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
11313
11314 2011-05-08  Bruno Haible  <bruno@clisp.org>
11315
11316         getsubopt: Move AC_LIBOBJ invocations to module description.
11317         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
11318         gl_PREREQ_GETSUBOPT invocations from here...
11319         * modules/getsubopt (configure.ac): ... to here.
11320
11321 2011-05-08  Bruno Haible  <bruno@clisp.org>
11322
11323         getpass-gnu: Move AC_LIBOBJ invocations to module description.
11324         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
11325         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
11326         * modules/getpass-gnu (configure.ac): ... to here.
11327
11328 2011-05-08  Bruno Haible  <bruno@clisp.org>
11329
11330         getpass: Move AC_LIBOBJ invocations to module description.
11331         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
11332         gl_PREREQ_GETPASS invocations from here...
11333         * modules/getpass (configure.ac): ... to here.
11334
11335 2011-05-08  Bruno Haible  <bruno@clisp.org>
11336
11337         getpagesize: Move AC_LIBOBJ invocations to module description.
11338         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
11339         from here...
11340         * modules/getpagesize (configure.ac): ... to here.
11341
11342 2011-05-08  Bruno Haible  <bruno@clisp.org>
11343
11344         getopt: Move AC_LIBOBJ invocations to module description.
11345         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
11346         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
11347         invocations from here...
11348         * modules/getopt-gnu (configure.ac): ... to here.
11349         * modules/getopt-posix (configure.ac): ... and here.
11350         (Depends-on): Update condition.
11351
11352 2011-05-08  Bruno Haible  <bruno@clisp.org>
11353
11354         getopt, argp: Respect rules for use of AC_LIBOBJ.
11355         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
11356         (gl_REPLACE_GETOPT_ALWAYS): New macro.
11357         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
11358         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
11359
11360 2011-05-08  Bruno Haible  <bruno@clisp.org>
11361
11362         getlogin_r: Move AC_LIBOBJ invocations to module description.
11363         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
11364         gl_PREREQ_GETLOGIN_R invocations from here...
11365         * modules/getlogin_r (configure.ac): ... to here.
11366
11367 2011-05-08  Bruno Haible  <bruno@clisp.org>
11368
11369         getlogin: Move AC_LIBOBJ invocations to module description.
11370         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
11371         here...
11372         * modules/getlogin (configure.ac): ... to here.
11373
11374 2011-05-08  Bruno Haible  <bruno@clisp.org>
11375
11376         getloadavg: Move AC_LIBOBJ invocations to module description.
11377         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
11378         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
11379         * modules/getloadavg (configure.ac): ... to here.
11380
11381 2011-05-08  Bruno Haible  <bruno@clisp.org>
11382
11383         gethrxtime: Move AC_LIBOBJ invocations to module description.
11384         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
11385         LIB_GETHRXTIME from here...
11386         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
11387         invocations from here...
11388         * modules/gethrxtime (configure.ac): ... to here.
11389
11390 2011-05-08  Bruno Haible  <bruno@clisp.org>
11391
11392         gethostname: Move AC_LIBOBJ invocations to module description.
11393         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
11394         gl_PREREQ_GETHOSTNAME invocations from here...
11395         * modules/gethostname (configure.ac): ... to here.
11396
11397 2011-05-08  Bruno Haible  <bruno@clisp.org>
11398
11399         getgroups: Move AC_LIBOBJ invocations to module description.
11400         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
11401         here...
11402         * modules/getgroups (configure.ac): ... to here.
11403
11404 2011-05-08  Bruno Haible  <bruno@clisp.org>
11405
11406         getdtablesize: Move AC_LIBOBJ invocations to module description.
11407         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
11408         invocation from here...
11409         * modules/getdtablesize (configure.ac): ... to here.
11410
11411 2011-05-08  Bruno Haible  <bruno@clisp.org>
11412
11413         getdomainname: Move AC_LIBOBJ invocations to module description.
11414         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
11415         gl_PREREQ_GETDOMAINNAME invocations from here...
11416         * modules/getdomainname (configure.ac): ... to here.
11417
11418 2011-05-08  Bruno Haible  <bruno@clisp.org>
11419
11420         getline: Move AC_LIBOBJ invocations to module description.
11421         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
11422         invocations from here...
11423         * modules/getline (configure.ac): ... to here.
11424
11425 2011-05-08  Bruno Haible  <bruno@clisp.org>
11426
11427         getline: Simplify.
11428         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
11429         It's already handled through the module dependency.
11430
11431 2011-05-08  Bruno Haible  <bruno@clisp.org>
11432
11433         getdelim: Move AC_LIBOBJ invocations to module description.
11434         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
11435         and gl_PREREQ_GETDELIM invocations from here...
11436         * modules/getdelim (configure.ac): ... to here.
11437         (Depends-on): Fix condition.
11438
11439 2011-05-08  Bruno Haible  <bruno@clisp.org>
11440
11441         getcwd: Move AC_LIBOBJ invocations to module description.
11442         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
11443         invocations from here...
11444         * modules/getcwd (configure.ac): ... to here.
11445
11446 2011-05-08  Bruno Haible  <bruno@clisp.org>
11447
11448         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
11449         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
11450         here...
11451         * modules/getcwd-lgpl (configure.ac): ... to here.
11452
11453 2011-05-07  Bruno Haible  <bruno@clisp.org>
11454
11455         crypto/gc: Move AC_LIBOBJ invocations to module description.
11456         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
11457         * modules/crypto/gc (configure.ac): ... to here.
11458
11459 2011-05-07  Bruno Haible  <bruno@clisp.org>
11460
11461         fwriting: Move AC_LIBOBJ invocations to module description.
11462         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
11463         here...
11464         * modules/fwriting (configure.ac): ... to here.
11465
11466 2011-05-07  Bruno Haible  <bruno@clisp.org>
11467
11468         fwritable: Move AC_LIBOBJ invocations to module description.
11469         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
11470         here...
11471         * modules/fwritable (configure.ac): ... to here.
11472
11473 2011-05-07  Bruno Haible  <bruno@clisp.org>
11474
11475         futimens: Move AC_LIBOBJ invocations to module description.
11476         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
11477         here...
11478         * modules/futimens (configure.ac): ... to here.
11479
11480 2011-05-07  Bruno Haible  <bruno@clisp.org>
11481
11482         ftruncate: Move AC_LIBOBJ invocations to module description.
11483         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
11484         gl_PREREQ_FTRUNCATE invocations from here...
11485         * modules/ftruncate (configure.ac): ... to here.
11486
11487 2011-05-07  Bruno Haible  <bruno@clisp.org>
11488
11489         fsync: Move AC_LIBOBJ invocations to module description.
11490         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
11491         invocations from here...
11492         * modules/fsync (configure.ac): ... to here.
11493
11494 2011-05-07  Bruno Haible  <bruno@clisp.org>
11495
11496         fsusage: Move AC_LIBOBJ invocations to module description.
11497         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
11498         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
11499         * modules/fsusage (configure.ac): ... to here.
11500
11501 2011-05-07  Bruno Haible  <bruno@clisp.org>
11502
11503         freopen: Move AC_LIBOBJ invocations to module description.
11504         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
11505         invocations from here...
11506         * modules/freopen (configure.ac): ... to here.
11507
11508 2011-05-07  Bruno Haible  <bruno@clisp.org>
11509
11510         free: Move AC_LIBOBJ invocations to module description.
11511         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
11512         invocations from here...
11513         * modules/free (configure.ac): ... to here.
11514
11515 2011-05-07  Bruno Haible  <bruno@clisp.org>
11516
11517         freadable: Move AC_LIBOBJ invocations to module description.
11518         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
11519         here...
11520         * modules/freadable (configure.ac): ... to here.
11521
11522 2011-05-07  Bruno Haible  <bruno@clisp.org>
11523
11524         fpurge: Move AC_LIBOBJ invocations to module description.
11525         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
11526         invocations from here...
11527         * modules/fpurge (configure.ac): ... to here.
11528
11529 2011-05-07  Bruno Haible  <bruno@clisp.org>
11530
11531         fpending: Move AC_LIBOBJ invocations to module description.
11532         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
11533         gl_FUNC_FPENDING.
11534         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
11535         invocations from here...
11536         * modules/fpending (configure.ac): ... to here.
11537
11538 2011-05-07  Bruno Haible  <bruno@clisp.org>
11539
11540         fopen: Move AC_LIBOBJ invocations to module description.
11541         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
11542         invocations from here...
11543         * modules/fopen (configure.ac): ... to here.
11544
11545 2011-05-07  Bruno Haible  <bruno@clisp.org>
11546
11547         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
11548         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
11549         gl_FUNC_FNMATCH_POSIX.
11550         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
11551         invocations from here...
11552         * modules/fnmatch (configure.ac): ... to here.
11553         * modules/fnmatch-gnu (configure.ac): ... and here.
11554
11555 2011-05-07  Bruno Haible  <bruno@clisp.org>
11556
11557         flock: Move AC_LIBOBJ invocations to module description.
11558         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
11559         invocations from here...
11560         * modules/flock (configure.ac): ... to here.
11561
11562 2011-05-07  Bruno Haible  <bruno@clisp.org>
11563
11564         fileblocks: Move AC_LIBOBJ invocations to module description.
11565         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
11566         gl_PREREQ_FILEBLOCKS invocations from here...
11567         * modules/fileblocks (configure.ac): ... to here.
11568
11569 2011-05-06  Bruno Haible  <bruno@clisp.org>
11570
11571         fflush: Move AC_LIBOBJ invocations to module description.
11572         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
11573         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
11574         invocations from here...
11575         * modules/fflush (configure.ac): ... to here.
11576
11577 2011-05-06  Bruno Haible  <bruno@clisp.org>
11578
11579         fdopendir: Move AC_LIBOBJ invocations to module description.
11580         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
11581         here...
11582         * modules/fdopendir (configure.ac): ... to here.
11583         (Depends-on): Improve conditions.
11584
11585 2011-05-06  Bruno Haible  <bruno@clisp.org>
11586
11587         _Exit: Move AC_LIBOBJ invocations to module description.
11588         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
11589         invocations from here...
11590         * modules/_Exit (configure.ac): ... to here.
11591
11592 2011-05-21  Bruno Haible  <bruno@clisp.org>
11593
11594         euidaccess: Respect rules for use of AC_LIBOBJ.
11595         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
11596         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
11597         from here...
11598         * modules/euidaccess (configure.ac): ... to here.
11599
11600 2011-05-06  Bruno Haible  <bruno@clisp.org>
11601
11602         error: Move AC_LIBOBJ invocations to module description.
11603         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
11604         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
11605         invocations from here...
11606         * modules/error (configure.ac): ... to here.
11607
11608 2011-05-06  Bruno Haible  <bruno@clisp.org>
11609
11610         duplocale: Move AC_LIBOBJ invocations to module description.
11611         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
11612         gl_PREREQ_DUPLOCALE invocations from here...
11613         * modules/duplocale (configure.ac): ... to here.
11614
11615 2011-05-05  Bruno Haible  <bruno@clisp.org>
11616
11617         dirfd: Move AC_LIBOBJ invocations to module description.
11618         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
11619         gl_FUNC_DIRFD.
11620         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
11621         here...
11622         * modules/dirfd (configure.ac): ... to here.
11623         (Depends-on): Fix condition.
11624
11625 2011-05-05  Bruno Haible  <bruno@clisp.org>
11626
11627         chown: Respect rules for use of AC_LIBOBJ.
11628         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
11629         * modules/chown (configure.ac): ... to here.
11630
11631 2011-05-05  Bruno Haible  <bruno@clisp.org>
11632
11633         chdir-long: Move AC_LIBOBJ invocations to module description.
11634         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
11635         gl_PREREQ_CHDIR_LONG invocations from here...
11636         * modules/chdir-long (configure.ac): ... to here.
11637
11638 2011-05-05  Bruno Haible  <bruno@clisp.org>
11639
11640         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
11641         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
11642         from here...
11643         * modules/canonicalize-lgpl (configure.ac): ... to here.
11644
11645 2011-05-05  Bruno Haible  <bruno@clisp.org>
11646
11647         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
11648         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
11649         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
11650         REPLACE_CALLOC.
11651         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
11652         * modules/calloc-gnu (configure.ac): Likewise.
11653
11654 2011-05-05  Bruno Haible  <bruno@clisp.org>
11655
11656         btowc: Move AC_LIBOBJ invocations to module description.
11657         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
11658         invocations from here...
11659         * modules/btowc (configure.ac): ... to here.
11660
11661 2011-05-21  Bruno Haible  <bruno@clisp.org>
11662
11663         atexit: Move AC_LIBOBJ invocations to module description.
11664         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
11665         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
11666         here...
11667         * modules/atexit (configure.ac): ... to here.
11668
11669 2011-05-05  Bruno Haible  <bruno@clisp.org>
11670
11671         atoll: Move AC_LIBOBJ invocations to module description.
11672         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
11673         invocations from here...
11674         * modules/atoll (configure.ac): ... to here.
11675
11676 2011-05-05  Bruno Haible  <bruno@clisp.org>
11677
11678         argz: Move AC_LIBOBJ invocations to module description.
11679         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
11680         * modules/argz (configure.ac): ... to here.
11681
11682 2011-05-05  Bruno Haible  <bruno@clisp.org>
11683
11684         alphasort: Move AC_LIBOBJ invocations to module description.
11685         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
11686         gl_PREREQ_ALPHASORT invocations from here...
11687         * modules/alphasort (configure.ac): ... to here.
11688
11689 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
11690
11691         verify: new macro verify_expr; verify_true deprecated
11692         * NEWS: Mention this.
11693         * doc/verify.texi (Compile-time Assertions): Document this.
11694         * lib/verify.h (verify_true): Deprecate.
11695         (verify_expr): New macro.
11696         * tests/test-verify.c (function): Test verify_expr.
11697
11698 2011-06-14  Jim Meyering  <meyering@redhat.com>
11699
11700         init.sh: give more portable redirection-related advice in a comment
11701         * tests/init.sh (stderr_fileno_): Update the advice in comments.
11702         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
11703         for lots of discussion.  Stefano Lattarini suggested the solution
11704         of putting "9>&2" after the command.  Reported by Bruno Haible.
11705
11706 2011-06-13  Bruno Haible  <bruno@clisp.org>
11707
11708         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
11709         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
11710         'none'.
11711
11712 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
11713
11714         ftoastr: use strtof only if HAVE_STRTOF
11715         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
11716         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
11717         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
11718         * modules/ftoastr (configure.ac): Check for strtof.
11719
11720 2011-06-13  Bruno Haible  <bruno@clisp.org>
11721
11722         gnulib-tool: Addendum to 2011-06-08 commit.
11723         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
11724         and --witness-c-macro have been given, augment AM_CPPFLAGS.
11725
11726 2011-06-13  Bruno Haible  <bruno@clisp.org>
11727
11728         fseeko: Provide a non-inline replacement of fseek().
11729         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
11730         * modules/fseeko (Depends-on): Add fseek.
11731         * modules/fseek (License): Change to LGPLv2+.
11732
11733 2011-06-13  Bruno Haible  <bruno@clisp.org>
11734
11735         ftello: Provide a non-inline replacement of ftell().
11736         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
11737         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
11738         not have ftello() (such as on mingw).
11739         * modules/ftello (Depends-on): Add ftell.
11740         * modules/ftell (License): Change to LGPLv2+.
11741
11742 2011-05-07  Bruno Haible  <bruno@clisp.org>
11743
11744         ftell: Move AC_LIBOBJ invocations to module description.
11745         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
11746         * modules/ftell (configure.ac): ... to here.
11747
11748 2011-05-07  Bruno Haible  <bruno@clisp.org>
11749
11750         ftello: Respect rules for use of AC_LIBOBJ.
11751         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
11752         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
11753         here...
11754         * modules/ftello (configure.ac): ... to here.
11755
11756 2011-05-07  Bruno Haible  <bruno@clisp.org>
11757
11758         fseeko: Simplify.
11759         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
11760         (gl_FUNC_FSEEKO): Inline it here.
11761
11762 2011-05-07  Bruno Haible  <bruno@clisp.org>
11763
11764         fseek: Move AC_LIBOBJ invocations to module description.
11765         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
11766         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
11767         * modules/fseek (configure.ac): ... to here.
11768
11769 2011-05-07  Bruno Haible  <bruno@clisp.org>
11770
11771         fseek: Respect rules for use of AC_LIBOBJ.
11772         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
11773         here...
11774         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
11775
11776 2011-05-07  Bruno Haible  <bruno@clisp.org>
11777
11778         fseeko: Respect rules for use of AC_LIBOBJ.
11779         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
11780         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
11781         here...
11782         * modules/fseeko (configure.ac): ... to here.
11783
11784 2011-06-13  Bruno Haible  <bruno@clisp.org>
11785
11786         gnulib-tool: Allow comments in the 'Depends-on' section.
11787         * doc/gnulib.texi (Module description): Mention comment syntax in the
11788         Depends-on section.
11789         * gnulib-tool (func_get_dependencies): Filter out comment lines.
11790
11791 2011-06-13  Bruno Haible  <bruno@clisp.org>
11792
11793         file-set.h: guard __attibute__ use, now that it's not always defined
11794         * lib/file-set.h (record_file): Use __attribute__ only with compiler
11795         versions that support it.  This fixes a coreutils build failure with
11796         the vendor cc on HP-UX 11.31.
11797
11798 2011-06-12  Bruno Haible  <bruno@clisp.org>
11799
11800         acl: Add support for HP-UX >= 11.11 JFS ACLs.
11801         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
11802         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
11803         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
11804         (acl, aclsort): New declarations.
11805         (aclv_nontrivial): New declaration.
11806         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
11807         (file_has_acl): Read also the second kind of HP-UX ACLs.
11808         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
11809         kind of HP-UX ACLs if the first kind fails.
11810         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
11811         second kind of HP-UX ACLs.
11812         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
11813         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
11814         agree.
11815         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
11816         hpuxjfs.
11817         Handle hpuxjfs.
11818         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
11819         hpuxjfs.
11820         Handle hpuxjfs.
11821         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
11822         (func_test_same_acls): Use both lsacl and getacl.
11823         Handle hpuxjfs.
11824         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
11825         (func_test_same_acls): Use both lsacl and getacl.
11826         Handle hpuxjfs.
11827
11828 2011-06-12  Bruno Haible  <bruno@clisp.org>
11829
11830         acl: Complete the 2010-08-10 fix.
11831         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
11832         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
11833         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
11834         explicitly.
11835         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
11836         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
11837
11838 2011-06-12  Bruno Haible  <bruno@clisp.org>
11839
11840         spawn-pipe tests: Comments.
11841         * tests/test-spawn-pipe-child.c (main): Update comment.
11842         Reported by James Youngman <jay@gnu.org>.
11843
11844 2011-06-11  James Youngman  <jay@gnu.org>
11845
11846         New module 'stat-size'.
11847         * modules/stat-size: New module.  Provides macros for accessing
11848         file size information in instances of struct stat.  Depends on the
11849         fileblocks module because it calls st_blocks.
11850         * lib/stat-size.h: New file, adapted from coreutils' system.h.
11851         * doc/gnulib.texi: Include stat-size.texi.
11852         * doc/stat-size.texi: Documentation for this module.
11853         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
11854         * m4/fileblocks.m4: Mention that stat-size depends on the call to
11855         AC_STRUCT_ST_BLOCKS.
11856
11857 2011-06-09  Bruno Haible  <bruno@clisp.org>
11858
11859         thread: Support pthreads-win32.
11860         * lib/glthread/thread.h (gl_thread_self): Define differently on
11861         pthreads-win32.
11862         (gl_null_thread): New declaration.
11863         (gl_thread_self_pointer): New macro.
11864         * lib/glthread/thread.c (gl_null_thread): New constant.
11865         * tests/test-lock.c: Use gl_thread_self_pointer instead of
11866         gl_thread_self.
11867         * tests/test-tls.c: Likewise.
11868         Suggested by Paul Eggert. Reported by Eric Blake.
11869
11870 2011-06-09  Bruno Haible  <bruno@clisp.org>
11871
11872         thread: Fix confusion between NULL and 0.
11873         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
11874         Reported by Paul Eggert.
11875
11876 2011-06-09  Bruno Haible  <bruno@clisp.org>
11877
11878         spawn-pipe tests: Avoid test failure on HP-UX 11.
11879         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
11880         is closed.
11881
11882 2011-06-09  Bruno Haible  <bruno@clisp.org>
11883
11884         acl tests: Fix compilation error on HP-UX 11.
11885         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
11886
11887 2011-06-09  Bruno Haible  <bruno@clisp.org>
11888
11889         rmdir: Avoid test failure on HP-UX 10.20.
11890         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
11891         EEXIST.
11892
11893 2011-06-08  Eric Blake  <eblake@redhat.com>
11894
11895         perror: fix test on mingw
11896         * modules/perror-tests (Depends-on): Add dup2.
11897
11898         strerror_r-posix: fix on MacOS
11899         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
11900         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
11901         logic bug.
11902         * lib/strerror_r.c (strerror_r): Fix the bug.
11903         * lib/strerror.c (strerror): Likewise.
11904         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
11905         problem.
11906         * doc/posix-functions/strerror.texi (strerror): Likewise.
11907         * doc/posix-functions/perror.texi (perror): Likewise.
11908         * tests/test-strerror.c (main): Enhance test.
11909         * tests/test-strerror_r.c (main): Likewise.
11910
11911 2011-06-08  Bruno Haible  <bruno@clisp.org>
11912
11913         gnulib-tool: Better isolation between different gnulib-tool invocations.
11914         * gnulib-tool: New option --witness-c-macro.
11915         (witness_c_macro): New variable.
11916         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
11917         AM_CPPFLAGS define it as a C macro.
11918         (func_emit_tests_Makefile_am): Likewise.
11919         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
11920         read it from there.
11921         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
11922         m4_define, not AC_DEFUN.
11923         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
11924         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
11925         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
11926         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
11927         s|...|...|, to substitute the values of the GNULIB_* module indicator
11928         variables.
11929         * modules/dirent (Makefile.am): Likewise.
11930         * modules/fcntl-h (Makefile.am): Likewise.
11931         * modules/iconv-h (Makefile.am): Likewise.
11932         * modules/langinfo (Makefile.am): Likewise.
11933         * modules/locale (Makefile.am): Likewise.
11934         * modules/math (Makefile.am): Likewise.
11935         * modules/netdb (Makefile.am): Likewise.
11936         * modules/poll-h (Makefile.am): Likewise.
11937         * modules/pty (Makefile.am): Likewise.
11938         * modules/search (Makefile.am): Likewise.
11939         * modules/signal (Makefile.am): Likewise.
11940         * modules/spawn (Makefile.am): Likewise.
11941         * modules/stdio (Makefile.am): Likewise.
11942         * modules/stdlib (Makefile.am): Likewise.
11943         * modules/string (Makefile.am): Likewise.
11944         * modules/sys_ioctl (Makefile.am): Likewise.
11945         * modules/sys_select (Makefile.am): Likewise.
11946         * modules/sys_socket (Makefile.am): Likewise.
11947         * modules/sys_stat (Makefile.am): Likewise.
11948         * modules/sys_times (Makefile.am): Likewise.
11949         * modules/sys_utsname (Makefile.am): Likewise.
11950         * modules/sys_wait (Makefile.am): Likewise.
11951         * modules/termios (Makefile.am): Likewise.
11952         * modules/time (Makefile.am): Likewise.
11953         * modules/unistd (Makefile.am): Likewise.
11954         * modules/wchar (Makefile.am): Likewise.
11955
11956 2011-06-08  Eric Blake  <eblake@redhat.com>
11957
11958         strerror: simplify replacement
11959         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
11960         * modules/strerror (configure.ac): No prereqs needed here...
11961         * modules/strerror-override (configure.ac): ...but this needs it.
11962         (Files): Add file for needed prereq macro.
11963
11964 2011-06-08  Bruno Haible  <bruno@clisp.org>
11965
11966         strerror_r-posix: Tweaks.
11967         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
11968         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
11969         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
11970         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
11971         (gl_FUNC_STRERROR_R): ... to here.
11972         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
11973
11974 2011-06-07  Eric Blake  <eblake@redhat.com>
11975
11976         perror: document fixed bugs
11977         * doc/posix-functions/perror.texi (perror): Document recent
11978         patches.
11979
11980 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
11981
11982         stat-time: get_stat_birthtime failure is better-defined
11983         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
11984         return a timestamp whose tv_sec and tv_nsec values are both -1.
11985         Previously, the spec said only that the tv_nsec value was negative.
11986         This upward-compatible change simplifies GNU tar a bit.
11987
11988 2011-06-07  Eric Blake  <eblake@redhat.com>
11989
11990         strerror_r-posix: work around cygwin 1.7.9
11991         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
11992         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
11993         bug without replacing strerror_r.
11994         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
11995         strerror_r is buggy, but without requiring strerror_r compilation.
11996         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
11997
11998         test-perror: relax test to ignore cygwin bug
11999         * tests/test-perror2.c (main): Relax test on requiring detection
12000         of stream errors, and use unbuffered stream.
12001         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
12002         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
12003         * doc/posix-functions/fputc.texi (fputc): Likewise.
12004         * doc/posix-functions/fputs.texi (fputs): Likewise.
12005         * doc/posix-functions/fputws.texi (fputws): Likewise.
12006         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
12007         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
12008         * doc/posix-functions/getopt.texi (getopt): Likewise.
12009         * doc/posix-functions/perror.texi (perror): Likewise.
12010         * doc/posix-functions/printf.texi (printf): Likewise.
12011         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
12012         * doc/posix-functions/psignal.texi (psignal): Likewise.
12013         * doc/posix-functions/putc.texi (putc): Likewise.
12014         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
12015         Likewise.
12016         * doc/posix-functions/putchar.texi (putchar): Likewise.
12017         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
12018         Likewise.
12019         * doc/posix-functions/puts.texi (puts): Likewise.
12020         * doc/posix-functions/putwc.texi (putwc): Likewise.
12021         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
12022         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
12023         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
12024         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
12025         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
12026         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
12027         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
12028         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
12029
12030 2011-05-22  Bruno Haible  <bruno@clisp.org>
12031
12032         strerror: Move AC_LIBOBJ invocations to module description.
12033         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
12034         gl_PREREQ_STRERROR invocations from here...
12035         * modules/strerror (configure.ac): ... to here.
12036
12037 2011-05-21  Bruno Haible  <bruno@clisp.org>
12038
12039         perror: Use common idiom.
12040         * modules/perror (configure.ac): Reorder statements.
12041
12042 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
12043
12044         tests: fix usage message in 'mktempd_'
12045         * tests/init.sh (mktempd_): In the usage message, use literal
12046         'mktempd_', not '$ME' (which is even undefined), as the name of
12047         the subroutine.
12048
12049 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
12050
12051         tests init: new function 'fatal_', for hard errors
12052         Before this patch, the only way offered by tests/init.sh to
12053         properly signal a hard error was the `framework_failure_'
12054         function.  But the error message issued by that function,
12055         as its name would suggest, refers to a set-up failure in the
12056         testsuite, while hard errors can obviously also be due to
12057         other reasons.  The best way to fix this inconsistency is to
12058         introduce a new function with a more general error message.
12059         * tests/init.sh (fatal_): New function.
12060
12061 2011-06-06  Eric Blake  <eblake@redhat.com>
12062
12063         canonicalize-lgpl: use common idiom
12064         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
12065         over newer POSIX -Rf.
12066         Reported by Bruno Haible.
12067
12068         canonicalize-lgpl: work around AIX realpath bug
12069         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
12070         * doc/posix-functions/realpath.texi (realpath): Document it.
12071         Reported by Bruno Haible.
12072
12073         strerror: work around FreeBSD bug
12074         * lib/strerror.c (strerror): Special case 0.
12075         Reported by Bruno Haible.
12076
12077         strerror-override: avoid bloating errno module
12078         * modules/errno (Files, configure.ac): Move replacement strings...
12079         * modules/strerror-override: ...to new module.
12080         * modules/strerror (Depends-on): Add strerror-override.
12081         * modules/strerror_r-posix (Depends-on): Likewise.
12082         * MODULES.html.sh: Document new module.
12083         Reported by Bruno Haible.
12084
12085 2011-06-06  Bruno Haible  <bruno@clisp.org>
12086
12087         spawn-pipe tests: Rename program.
12088         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
12089         * tests/test-spawn-pipe-child.c: Update comment.
12090         * tests/test-spawn-pipe.sh: Update.
12091         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
12092
12093         spawn-pipe tests: Link the child program only against libc.
12094         * tests/test-spawn-pipe-child.c: New file, extracted from
12095         tests/test-spawn-pipe.c.
12096         (main): Expect only one argument.
12097         (is_open): New function, copied from tests/test-pipe.c.
12098         * tests/test-spawn-pipe.c: Don't include <errno.h>.
12099         (child_main): Remove function.
12100         (test_pipe): Pass only one argument to the child program.
12101         (main): Remove child process code. Expect the child program's name as
12102         first argument.
12103         * tests/test-spawn-pipe.sh: Pass the child program's name as first
12104         argument.
12105         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
12106         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
12107         test-spawn-pipe-child against no libraries.
12108
12109 2011-06-06  Bruno Haible  <bruno@clisp.org>
12110
12111         careadlinkat: Avoid mismatch between ssize_t and int.
12112         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
12113         * lib/careadlinkat.c (careadlinkatcwd): Define always.
12114
12115 2011-06-06  Jim Meyering  <meyering@redhat.com>
12116
12117         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
12118         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
12119         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
12120
12121 2011-06-05  Bruno Haible  <bruno@clisp.org>
12122
12123         ansi-c++-opt: Interoperability with libtool.
12124         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
12125         set the variable to "no", not to ":".
12126         * NEWS: Mention the change.
12127
12128 2011-06-05  Bruno Haible  <bruno@clisp.org>
12129
12130         acl: Fix test failure on AIX 7.
12131         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
12132         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
12133
12134 2011-06-05  Bruno Haible  <bruno@clisp.org>
12135
12136         pipe-filter-ii: Fix test failure on AIX and IRIX.
12137         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
12138         with EAGAIN, retry with a smaller buffer size.
12139
12140 2011-06-05  Bruno Haible  <bruno@clisp.org>
12141
12142         localename: Fix link dependencies.
12143         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
12144         * modules/localename-tests (Makefile.am): Link test-localename with
12145         $(LIBTHREAD).
12146
12147 2011-06-05  Bruno Haible  <bruno@clisp.org>
12148
12149         error: Avoid gcc warning.
12150         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
12151
12152 2011-06-05  Bruno Haible  <bruno@clisp.org>
12153
12154         unsetenv: Avoid gcc warning.
12155         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
12156
12157 2011-06-05  Bruno Haible  <bruno@clisp.org>
12158
12159         setenv: Avoid gcc warning.
12160         * lib/setenv.c (setenv): Provide declaration if system lacks it.
12161
12162 2011-06-05  Bruno Haible  <bruno@clisp.org>
12163
12164         sys_select: Ensure memset is declared also on AIX 7.
12165         * lib/sys_select.in.h: Include <string.h> also on AIX.
12166         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
12167         self-contained also on AIX 7.1.
12168
12169 2011-06-04  Jim Meyering  <meyering@redhat.com>
12170
12171         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
12172         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
12173         function name, "error".
12174         (_gl_translatable_diag_func_re): New configurable variable.
12175
12176 2011-06-04  Bruno Haible  <bruno@clisp.org>
12177
12178         getopt: Avoid gcc warning.
12179         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
12180
12181 2011-06-04  Bruno Haible  <bruno@clisp.org>
12182
12183         strerror_r: Fix comments.
12184         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
12185         commit.
12186
12187 2011-06-04  Bruno Haible  <bruno@clisp.org>
12188
12189         perror: Fix compilation error.
12190         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
12191         Undefine fprintf, not sprintf.
12192         * modules/perror (Depends-on): Remove intprops, verify.
12193
12194 2011-06-04  Bruno Haible  <bruno@clisp.org>
12195
12196         setlocale: Enable replacement on Cygwin 1.5.
12197         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
12198         Cygwin 1.5.x.
12199         * doc/posix-functions/setlocale.texi: Mention that the problem with the
12200         LC_CTYPE category also exists on Cygwin 1.5.x.
12201
12202 2011-06-04  Bruno Haible  <bruno@clisp.org>
12203
12204         strerror-override: Don't disable symbol renamings.
12205         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
12206         * lib/strerror-override.c: Include config.h.
12207         (strerror_override): Don't undefine.
12208
12209 2011-06-03  Bruno Haible  <bruno@clisp.org>
12210
12211         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
12212         * lib/localename.h: Update copyright header.
12213         * lib/localename.c: Likewise.
12214         * lib/relocatable.h: Likewise.
12215         * lib/relocatable.c: Likewise.
12216
12217 2011-06-02  Bruno Haible  <bruno@clisp.org>
12218
12219         doc: Fix a module name.
12220         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
12221
12222 2011-06-02  Bruno Haible  <bruno@clisp.org>
12223
12224         pipe2: Remove dependency on 'nonblocking' module.
12225         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
12226         O_NONBLOCK is defined by gnulib.
12227         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
12228         is zero.
12229         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
12230         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
12231         defined by gnulib.
12232         (get_nonblocking_flag): New function.
12233         (main): Test O_NONBLOCK flag only if it is nonzero.
12234         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
12235
12236 2011-06-03  Jim Meyering  <meyering@redhat.com>
12237
12238         maint: three new prohibit-header-without-use rules
12239         Prohibit use of cloexec.h, posixver.h, same.h without use.
12240         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
12241         (sc_prohibit_posixver_without_use): Likewise.
12242         (sc_prohibit_same_without_use): Likewise.
12243
12244 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
12245
12246         allocator: 'die' routine is now given requested size
12247         * lib/allocator.h (struct allocator.die): New size arg.
12248         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
12249         If the actual problem is an ssize_t limitation, not a size_t or
12250         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
12251
12252 2011-06-01  Eric Blake  <eblake@redhat.com>
12253
12254         strerror: drop strerror_r dependency
12255         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
12256         * lib/strerror-override.c (strerror_override): ...to new file.
12257         * lib/strerror-override.h: Add prototype.
12258         * lib/strerror-impl.h: Delete.
12259         * lib/strerror.c (strerror): New implementation.
12260         * modules/errno (Files): Add new files.
12261         (configure.ac): Compile new file as appropriate.
12262         * modules/strerror (Files): Drop unused file.
12263         (Depends-on): Drop strerror_r-posix.
12264         * MODULES.html.sh: Document strerror_r-posix.
12265         Requested by Sam Steingold.
12266
12267         perror: call strerror_r directly
12268         * modules/perror (Files): Drop strerror-impl.h.
12269         * lib/perror.c (perror): Use our own stack buffer, rather than
12270         calling a wrapper that uses static storage.
12271         * doc/posix-functions/perror.texi (perror): Document a limitation
12272         of our replacement.
12273
12274         strerror_r: fix includes for FreeBSD
12275         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
12276         since we use abort on some platforms.
12277         Reported by Matthias Bolte.
12278
12279 2011-05-31  Bruno Haible  <bruno@clisp.org>
12280
12281         Fix link errors in tests: openat-die uses gettext-h.
12282         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
12283         against $(LIBINTL).
12284         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
12285         against $(LIBINTL).
12286         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
12287         $(LIBINTL).
12288         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
12289         against $(LIBINTL).
12290         * modules/linkat-tests (Makefile.am): Link test-linkat against
12291         $(LIBINTL).
12292         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
12293         $(LIBINTL).
12294         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
12295         against $(LIBINTL).
12296         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
12297         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
12298         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
12299         $(LIBINTL).
12300         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
12301         $(LIBINTL).
12302         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
12303         $(LIBINTL).
12304         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12305
12306 2011-05-31  Bruno Haible  <bruno@clisp.org>
12307
12308         Fix link errors in tests: wait-process uses gettext-h.
12309         * modules/nonblocking-pipe-tests (Makefile.am): Set
12310         test_nonblocking_pipe_main_LDADD.
12311         * modules/nonblocking-socket-tests (Makefile.am): Link
12312         test-nonblocking-socket-main against $(LIBINTL).
12313         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12314
12315 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
12316
12317         assert-h: work around 'verify' incompatibility
12318         * lib/verify.h: Use @...@ directives, not ifdef.
12319         * modules/assert-h (assert.h): Implement the directives.
12320         (assert.h): Substitute the symbol-prefix more consistently.
12321
12322 2011-05-29  Jim Meyering  <meyering@redhat.com>
12323
12324         trim: remove three superfluous assignments
12325         * lib/trim.c (trim2): Remove three superfluous assignments
12326         and correct brace positioning.
12327
12328 2011-05-29  Bruno Haible  <bruno@clisp.org>
12329
12330         wctype-h: Avoid namespace pollution on Solaris 2.6.
12331         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
12332         identifiers.
12333         * doc/posix-headers/wctype.texi: Mention the problem.
12334         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12335
12336 2011-05-28  Jim Meyering  <meyering@redhat.com>
12337
12338         parse-datetime.y: accommodate -Wstrict-overflow
12339         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
12340         placate -Wstrict-overflow.
12341
12342         trim: avoid a warning from -O2 -Wstrict-overflow
12343         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
12344
12345 2011-05-29  Bruno Haible  <bruno@clisp.org>
12346
12347         gnulib-tool: Fix bug in yesterday's commit.
12348         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
12349         twice.
12350
12351 2011-05-29  Bruno Haible  <bruno@clisp.org>
12352
12353         Allow multiple gnulib generated include files to be combined.
12354         * gnulib-tool (func_compute_include_guard_prefix): New function.
12355         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
12356         ${gl_include_guard_prefix} references.
12357         (func_import, func_create_testdir): Invoke
12358         func_compute_include_guard_prefix.
12359         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
12360         * lib/ctype.in.h: Likewise.
12361         * lib/dirent.in.h: Likewise.
12362         * lib/errno.in.h: Likewise.
12363         * lib/fcntl.in.h: Likewise.
12364         * lib/float.in.h: Likewise.
12365         * lib/getopt.in.h: Likewise.
12366         * lib/iconv.in.h: Likewise.
12367         * lib/langinfo.in.h: Likewise.
12368         * lib/locale.in.h: Likewise.
12369         * lib/math.in.h: Likewise.
12370         * lib/netdb.in.h: Likewise.
12371         * lib/netinet_in.in.h: Likewise.
12372         * lib/poll.in.h: Likewise.
12373         * lib/pthread.in.h: Likewise.
12374         * lib/pty.in.h: Likewise.
12375         * lib/sched.in.h: Likewise.
12376         * lib/se-selinux.in.h: Likewise.
12377         * lib/search.in.h: Likewise.
12378         * lib/signal.in.h: Likewise.
12379         * lib/spawn.in.h: Likewise.
12380         * lib/stdarg.in.h: Likewise.
12381         * lib/stddef.in.h: Likewise.
12382         * lib/stdint.in.h: Likewise.
12383         * lib/stdio.in.h: Likewise.
12384         * lib/stdlib.in.h: Likewise.
12385         * lib/string.in.h: Likewise.
12386         * lib/strings.in.h: Likewise.
12387         * lib/sys_file.in.h: Likewise.
12388         * lib/sys_ioctl.in.h: Likewise.
12389         * lib/sys_select.in.h: Likewise.
12390         * lib/sys_socket.in.h: Likewise.
12391         * lib/sys_stat.in.h: Likewise.
12392         * lib/sys_time.in.h: Likewise.
12393         * lib/sys_times.in.h: Likewise.
12394         * lib/sys_uio.in.h: Likewise.
12395         * lib/sys_utsname.in.h: Likewise.
12396         * lib/sys_wait.in.h: Likewise.
12397         * lib/sysexits.in.h: Likewise.
12398         * lib/termios.in.h: Likewise.
12399         * lib/time.in.h: Likewise.
12400         * lib/unistd.in.h: Likewise.
12401         * lib/wchar.in.h: Likewise.
12402         * lib/wctype.in.h: Likewise.
12403         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
12404         * modules/ctype (Makefile.am): Likewise.
12405         * modules/dirent (Makefile.am): Likewise.
12406         * modules/errno (Makefile.am): Likewise.
12407         * modules/fcntl-h (Makefile.am): Likewise.
12408         * modules/float (Makefile.am): Likewise.
12409         * modules/getopt-posix (Makefile.am): Likewise.
12410         * modules/iconv-h (Makefile.am): Likewise.
12411         * modules/langinfo (Makefile.am): Likewise.
12412         * modules/locale (Makefile.am): Likewise.
12413         * modules/math (Makefile.am): Likewise.
12414         * modules/netdb (Makefile.am): Likewise.
12415         * modules/netinet_in (Makefile.am): Likewise.
12416         * modules/poll-h (Makefile.am): Likewise.
12417         * modules/pthread (Makefile.am): Likewise.
12418         * modules/pty (Makefile.am): Likewise.
12419         * modules/sched (Makefile.am): Likewise.
12420         * modules/search (Makefile.am): Likewise.
12421         * modules/selinux-h (Makefile.am): Likewise.
12422         * modules/signal (Makefile.am): Likewise.
12423         * modules/spawn (Makefile.am): Likewise.
12424         * modules/stdarg (Makefile.am): Likewise.
12425         * modules/stddef (Makefile.am): Likewise.
12426         * modules/stdint (Makefile.am): Likewise.
12427         * modules/stdio (Makefile.am): Likewise.
12428         * modules/stdlib (Makefile.am): Likewise.
12429         * modules/string (Makefile.am): Likewise.
12430         * modules/strings (Makefile.am): Likewise.
12431         * modules/sys_file (Makefile.am): Likewise.
12432         * modules/sys_ioctl (Makefile.am): Likewise.
12433         * modules/sys_select (Makefile.am): Likewise.
12434         * modules/sys_socket (Makefile.am): Likewise.
12435         * modules/sys_stat (Makefile.am): Likewise.
12436         * modules/sys_time (Makefile.am): Likewise.
12437         * modules/sys_times (Makefile.am): Likewise.
12438         * modules/sys_uio (Makefile.am): Likewise.
12439         * modules/sys_utsname (Makefile.am): Likewise.
12440         * modules/sys_wait (Makefile.am): Likewise.
12441         * modules/sysexits (Makefile.am): Likewise.
12442         * modules/termios (Makefile.am): Likewise.
12443         * modules/time (Makefile.am): Likewise.
12444         * modules/unistd (Makefile.am): Likewise.
12445         * modules/wchar (Makefile.am): Likewise.
12446         * modules/wctype-h (Makefile.am): Likewise.
12447         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
12448
12449 2011-05-29  Bruno Haible  <bruno@clisp.org>
12450
12451         assert-h: Allow multiple gnulib generated replacements to coexist.
12452         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
12453
12454 2011-05-29  Bruno Haible  <bruno@clisp.org>
12455
12456         argp: Allow coexistence with strerror_r-posix module.
12457         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
12458         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
12459         by gnulib's <string.h> replacement), assume it has the POSIX signature,
12460         not the glibc signature.
12461
12462 2011-05-28  Bruno Haible  <bruno@clisp.org>
12463
12464         gnulib-tool: Alternative structure of testdirs, similar to --import.
12465         * gnulib-tool: New option --single-configure.
12466         (func_usage): Document it.
12467         (single_configure): New variable.
12468         (func_modules_transitive_closure_separately,
12469         func_modules_transitive_closure_separately,
12470         func_determine_use_libtests, func_modules_add_dummy_separately,
12471         func_modules_to_filelist_separately): New functions, extracted from
12472         func_import.
12473         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
12474         (func_import): Use the new functions.
12475         (func_create_testdir): Set final_modules. Handle $single_configure =
12476         true case.
12477
12478 2011-05-28  Bruno Haible  <bruno@clisp.org>
12479
12480         getloadavg: Remove an unreliable safety check.
12481         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
12482         getloadavg.c is in place.
12483         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
12484         Reported by Sam Steingold <sds@gnu.org>.
12485
12486 2011-05-28  Bruno Haible  <bruno@clisp.org>
12487
12488         doc: Cleanup yet another file produced by texinfo.tex.
12489         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
12490
12491 2011-05-28  Bruno Haible  <bruno@clisp.org>
12492
12493         Finish the conditional dependencies mechanism.
12494         * gnulib-tool: New option --no-conditional-dependencies.
12495         (func_usage): Document it. Don't mark --conditional-dependencies as
12496         experimental.
12497         (cond_dependencies): The possible values can now be true, false, empty.
12498         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
12499         (func_import): Store setting in gnulib-cache.m4 and read it from there.
12500         * doc/gnulib-tool.texi (Conditional dependencies): New section.
12501
12502 2011-05-28  Bruno Haible  <bruno@clisp.org>
12503
12504         doc: Use a recent texinfo.tex.
12505         * doc/Makefile (tex_opts): New variable.
12506         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
12507
12508 2011-05-28  Jim Meyering  <meyering@redhat.com>
12509
12510         intprops.h: adjust comment to match code change
12511         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
12512         only once, it *may* have side effects.  Also fix an unrelated typo.
12513         (_GL_INT_SIGNED): Likewise.
12514
12515 2011-05-26  Simon Josefsson  <simon@josefsson.org>
12516
12517         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
12518
12519 2011-05-26  Bruno Haible  <bruno@clisp.org>
12520
12521         mbsrchr: Avoid collision with system function on Interix.
12522         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
12523         Reported by Markus Duft <mduft@gentoo.org>.
12524
12525 2011-05-15  James Youngman  <jay@gnu.org>
12526
12527         getopt: for ambiguous options, enumerate the possibilities.
12528         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
12529         the ambiguous options when an ambiguous prefix is given. This was
12530         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
12531         glibc change was
12532         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
12533
12534 2011-05-25  Eric Blake  <eblake@redhat.com>
12535
12536         getcwd: work around mingw bug
12537         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
12538         * doc/posix-functions/getcwd.texi (getcwd): Document it.
12539         Reported by Matthias Bolte.
12540
12541 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
12542
12543         test-intprops: disable -Wtype-limits diagnostics
12544         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
12545         diagnostics.  Otherwise, the integer overflow macros generate many
12546         diagnostics.  Reported by Jim Meyering in
12547         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
12548
12549         intprops: shorten, to pacify gcc -Woverlength-strings
12550         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
12551         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
12552         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
12553         likely to run afoul of C compiler limits for string constant lengths.
12554         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
12555
12556 2011-05-24  Eric Blake  <eblake@redhat.com>
12557
12558         docs: document recently fixed glibc printf bug
12559         * doc/posix-functions/fprintf.texi (fprintf): Document it.
12560         * doc/posix-functions/printf.texi (printf): Likewise.
12561         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
12562         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
12563
12564         closein-tests: convert to init.sh
12565         * modules/closein-tests (Files): Add init.sh
12566         * tests/test-closein.sh Use it.
12567
12568         yesno-tests: convert to init.sh
12569         * modules/yesno-tests (Files): Add init.sh.
12570         * tests/test-yesno.sh: Use it.
12571
12572         atexit-tests: ensure reliable exit status
12573         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
12574         Reported by Bruno Haible.
12575
12576 2011-05-24  Bruno Haible  <bruno@clisp.org>
12577
12578         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
12579         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
12580         gl_PREREQ_STRERROR_R invocations from here...
12581         * modules/strerror_r-posix (configure.ac): ... to here.
12582
12583 2011-05-24  Eric Blake  <eblake@redhat.com>
12584
12585         strerror_r: fix missing header
12586         * lib/strerror_r.c: Avoid compiler warning about snprintf.
12587
12588         strerror_r: fix AIX test failures
12589         * lib/strerror_r.c (strerror_r): Convert silent truncation to
12590         ERANGE failure.
12591
12592         strerror_r: fix Solaris test failures
12593         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
12594         failures.
12595         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
12596
12597         strerror_r: enforce POSIX recommendations
12598         * lib/strerror_r.c (safe_copy): New helper method.
12599         (strerror_r): Guarantee a non-empty string.
12600         * tests/test-strerror_r.c (main): Enhance tests to incorporate
12601         recent POSIX rulings and to match our strerror guarantees.
12602         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
12603
12604 2011-05-24  Jim Meyering  <meyering@redhat.com>
12605
12606         test-perror2.c: avoid warning about unused variable
12607         * tests/test-perror2.c (main): Remove declaration of unused "fp".
12608
12609 2011-05-24  Eric Blake  <eblake@redhat.com>
12610
12611         perror: avoid spurious test failure on HP-UX
12612         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
12613
12614         tests: fix logic bug in init.sh
12615         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
12616         shell.
12617
12618 2011-05-24  Jim Meyering  <meyering@redhat.com>
12619
12620         utimensat: do not reference an out-of-scope buffer
12621         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
12622         declared in an inner scope, yet "times" would be dereferenced outside
12623         the scope in which "ts" was valid.
12624         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
12625         of ts[2] "out/up", so that the use of aliased "times" (via
12626         "times = ts;") does not end up referencing an out-of-scope "ts"
12627
12628         opendir-safer.c: don't clobber errno; don't close negative FD
12629         * lib/opendir-safer.c (opendir_safer):
12630         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
12631         file descriptor, and more importantly, don't clobber the
12632         offending errno value with EINVAL.  Before, upon failure
12633         of dup_safer, we would pass the negative file descriptor to
12634         fdopendir, which would clobber errno.
12635
12636 2011-05-23  Bruno Haible  <bruno@clisp.org>
12637
12638         idcache: Fix module description.
12639         * modules/idcache (Include): Set to "idcache.h".
12640
12641 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
12642
12643         gnulib-tool: fix portability problem with MacOS sed
12644         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
12645         before the "}".  Problem reported by Leo in
12646         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
12647         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
12648         sed_extract_condition1, sed_extract_condition2.
12649
12650 2011-05-23  Bruno Haible  <bruno@clisp.org>
12651
12652         hash: Simplify autoconf macro.
12653         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
12654
12655 2011-05-23  Bruno Haible  <bruno@clisp.org>
12656
12657         getugroups: Fix module description.
12658         * modules/getugroups (Include): Set to "getugroups.h".
12659
12660 2011-05-23  Bruno Haible  <bruno@clisp.org>
12661
12662         linkat: Simplify autoconf macro.
12663         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
12664
12665 2011-05-23  Bruno Haible  <bruno@clisp.org>
12666             Eric Blake  <eblake@redhat.com>
12667
12668         linkat, renameat: Update dependencies.
12669         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
12670         * modules/linkat (Depends-on): Likewise. Remove also readlink,
12671         symlinkat.
12672
12673 2011-05-23  Jim Meyering  <meyering@redhat.com>
12674
12675         maint.mk: more tight_scope improvements
12676         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
12677         (_gl_TS_headers): Define only in if-0'd block.
12678         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
12679         sometimes we must *not* use it.  Adjust uses accordingly.
12680         (sc_tight_scope): Use much simpler grep-based test to determine
12681         whether we skip this rule.
12682
12683         maint.mk: generalize/improve the tight-scope rule
12684         * top/maint.mk: Emit a warning when the test is skipped.
12685         (_gl_TS_dir): Add $(srcdir)/ prefix.
12686         (_gl_TS_function_match): Simplify, rather than trying
12687         to enumerate common types.  Otherwise, it would fail to match an
12688         "extern unsigned char const *" declaration in idutils.
12689         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
12690         a way to support use of that type of macro.
12691         (_gl_TS_var_match): Simplify regexp.
12692         (_gl_TS_obj_files): New configurable variable.
12693         (_gl_TS_headers): Likewise.
12694
12695 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
12696
12697         verify: fix bug when gnulib <assert.h> is also included
12698         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
12699         is defined, not if _GL_STATIC_ASSERT_H is not defined.
12700         Perhaps there's a better way, but this fixes the immediate problem.
12701         Problem reported by Bruno Haible in
12702         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
12703
12704 2011-05-22  Bruno Haible  <bruno@clisp.org>
12705
12706         xgetcwd: Simplify autoconf macro.
12707         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
12708
12709 2011-05-22  Bruno Haible  <bruno@clisp.org>
12710
12711         New module 'mktime-internal'.
12712         * modules/mktime-internal: New file.
12713         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
12714         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
12715         mktime_internal as a C macro if libc has __mktime_internal.
12716         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
12717         conditions.
12718         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
12719
12720 2011-05-22  Bruno Haible  <bruno@clisp.org>
12721
12722         timegm: Correct mktime replacement statements.
12723         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
12724         defining mktime as a C macro. This completes a 2009-07-28 commit.
12725
12726 2011-05-22  Bruno Haible  <bruno@clisp.org>
12727
12728         timegm: Simplify autoconf macro.
12729         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
12730
12731 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
12732
12733         clock-time: change to LGPLv2+.
12734         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
12735         BSD-like but we have no mark for that; this is good enough for now.
12736
12737 2011-05-21  Bruno Haible  <bruno@clisp.org>
12738
12739         strerror_r: Fix comments.
12740         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
12741
12742 2011-05-21  Bruno Haible  <bruno@clisp.org>
12743
12744         relocatable-prog-wrapper: Fix possible link error.
12745         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
12746         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
12747         (gl_FUNC_SETENV): ... to here.
12748         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
12749         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
12750
12751 2011-05-21  Bruno Haible  <bruno@clisp.org>
12752
12753         relocatable-prog-wrapper: Assume strerror() exists.
12754         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
12755         m4/strerror.m4.
12756         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
12757         * lib/relocwrapper.c: Remove mention of strerror module.
12758         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
12759         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
12760         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
12761         C macro.
12762
12763 2011-05-21  Bruno Haible  <bruno@clisp.org>
12764
12765         select: Simplify replacement idiom.
12766         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
12767         Win32 platforms.
12768         * lib/sys_select.in.h (select): Simplify accordingly.
12769         * modules/select (Depends-on): Likewise.
12770
12771 2011-05-21  Bruno Haible  <bruno@clisp.org>
12772
12773         mkdir-p: Simplify autoconf macro.
12774         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
12775         gl_FUNC_LCHOWN.
12776
12777 2011-05-21  Eric Blake  <eblake@redhat.com>
12778
12779         strerror_r: avoid clobbering strerror on cygwin
12780         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
12781         fall back instead to sys_errlist.
12782         * modules/strerror (configure.ac): Add witness.
12783         * tests/test-strerror_r.c (main): Enhance test.
12784         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
12785         * tests/test-perror2.c (main): Free memory before exit.
12786
12787 2011-05-21  Bruno Haible  <bruno@clisp.org>
12788
12789         mkdtemp: Use gnulib naming conventions.
12790         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
12791         * modules/mkdtemp (configure.ac): Update.
12792
12793 2011-05-20  Eric Blake  <eblake@redhat.com>
12794
12795         strerror_r: avoid corrupting errno on Solaris
12796         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
12797         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
12798
12799         strerror_r: avoid compiler warning
12800         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
12801
12802         strerror_r: simplify AIX code
12803         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
12804
12805         test-perror: avoid spurious failure on FreeBSD
12806         * modules/perror-tests (Depends-on): Add strerror, now that
12807         strerror_r no longer pulls it in.
12808
12809 2011-05-20  Bruno Haible  <bruno@clisp.org>
12810
12811         strerror_r-posix: Remove unused dependencies.
12812         * modules/strerror_r-posix (Depends-on): Remove strerror.
12813         Reported by Eric Blake.
12814
12815 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
12816
12817         intprops: remove assumption about A|B representation
12818         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
12819         is a valid integer if both A and B are.  Although this is true for
12820         all known practical hosts, the C standard doesn't guarantee it,
12821         and the code need not assume it.  Also, this change may work around
12822         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
12823         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
12824
12825 2011-05-20  Eric Blake  <eblake@redhat.com>
12826
12827         perror: work around FreeBSD bug
12828         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
12829         is broken.  Move AC_LIBOBJ...
12830         * modules/perror (configure.ac): Here.
12831         * doc/posix-functions/perror.texi (perror): Document this.
12832         * tests/test-perror2.c (main): Enhance test.
12833
12834         test-perror: check for strerror interactions
12835         * tests/macros.h (STREQ): Add macro.
12836         * modules/perror-tests (Files): Add second test.
12837         * tests/test-perror2.c (main): New file.
12838         * doc/posix-functions/perror.texi (perror): Document glibc bug.
12839
12840         test-perror: rewrite to use init script
12841         * modules/perror-tests (Files): Add init.sh.
12842         * tests/test-perror.sh: Use temporary directory.
12843
12844 2011-05-20  Jim Meyering  <meyering@redhat.com>
12845
12846         maint: replace misused "a" with "an"
12847         * doc/intprops.texi: "a integer"
12848         * doc/regex.texi: "a explanation"
12849         * lib/alignof.h: "a object"
12850         * lib/argmatch.h: "a explanation"
12851         * lib/argp-help.c: "a option" and "a OPTION_DOC"
12852         * lib/stdint.in.h: "a integer"
12853         * lib/userspec.c: "a owner"
12854         * doc/gnulib.texi: Fix "a idea", and reword.
12855
12856 2011-05-19  Jim Meyering  <meyering@redhat.com>
12857
12858         maint: correct misuse of "a" and "an"
12859         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
12860         * lib/argp-help.c: "an docum...": s/an/a/
12861         * lib/argp-parse.c: "An vector": s/An/A/
12862         * lib/execute.c: "an native": s/an/a/
12863         * lib/spawn-pipe.c: Likewise.
12864         * lib/gc.h: "an Gc_rc": s/an/a/
12865         * lib/unigbrk.in.h: "an grapheme": s/an/a/
12866         * lib/fts.c: "an stat.st_dev": s/an/a/
12867
12868 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
12869
12870         intprops-tests: work around HP-UX 11.23 cc bug with constants
12871         * tests/test-intprops.c (VERIFY): New macro.
12872         (main): Use it, instead of verify, to work around the compiler bug; see
12873         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
12874
12875         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
12876         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
12877         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
12878         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
12879         (_GL_REMAINDER_OVERFLOW): Use it.
12880
12881         intprops-tests: revert unsigned part of previous change
12882         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
12883         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
12884         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
12885         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
12886
12887 2011-05-19  Bruno Haible  <bruno@clisp.org>
12888
12889         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
12890         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
12891         strerror_r() returned without filling the buffer.
12892         Reported by Eric Blake.
12893
12894 2011-05-19  Eric Blake  <eblake@redhat.com>
12895
12896         strerror_r: guarantee unchanged errno
12897         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
12898         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
12899         failure.
12900         * tests/test-strerror_r.c (main): Enhance test.
12901
12902 2011-05-19  Bruno Haible  <bruno@clisp.org>
12903
12904         strerror_r: Reorder #if blocks.
12905         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
12906         for consistency with the previous commit.
12907
12908 2011-05-19  Bruno Haible  <bruno@clisp.org>
12909
12910         perror: Avoid clobbering the strerror buffer when possible.
12911         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
12912         * lib/strerror.c: Include it.
12913         * modules/strerror (Files): Add lib/strerror-impl.h.
12914         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
12915         (my_strerror): New function, defined through lib/strerror-impl.h.
12916         (perror): Use it instead of strerror.
12917         * modules/perror (Files): Add lib/strerror-impl.h.
12918         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
12919
12920 2011-05-19  Eric Blake  <eblake@redhat.com>
12921
12922         strerror_r: fix on newer cygwin
12923         * lib/strerror_r.c (strerror_r): Cygwin now has
12924         __xpg_strerror_r, use it.
12925
12926 2011-05-19  Bruno Haible  <bruno@clisp.org>
12927
12928         strerror_r: Avoid clobbering the strerror buffer when possible.
12929         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
12930         (sys_nerr, sys_errlist): New declarations.
12931         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
12932         HP-UX, native Win32, IRIX, and 32-bit Solaris.
12933         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
12934
12935 2011-05-19  Bruno Haible  <bruno@clisp.org>
12936
12937         strerror_r: Fix test failure on mingw.
12938         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
12939         EXTEND_STRERROR_R.
12940         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
12941         macros from errno.in.h instead.
12942
12943 2011-05-19  Eric Blake  <eblake@redhat.com>
12944
12945         strerror: relax test for Solaris
12946         * tests/test-strerror.c (main): Permit Solaris behavior.
12947         * tests/test-strerror_r.c (main): Likewise.
12948
12949         strerror: enforce POSIX ruling on strerror(0)
12950         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
12951         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
12952         * lib/strerror_r.c (rpl_strerror_r): Work around it.
12953         * doc/posix-functions/strerror.texi (strerror): Document it.
12954         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
12955         * tests/test-strerror.c (main): Strengthen test.
12956         * tests/test-strerror_r.c (main): Likewise.
12957
12958 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
12959
12960         intprop-tests: port to older and more-pedantic compilers
12961         * modules/intprops-tests (Files): Add tests/macros.h.
12962         * tests/test-intprops.c: Include macros.h.
12963         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
12964         it's no longer documented to expand to an integer constant expression.
12965         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
12966         argument is floating point, as it's no longer documented to expand
12967         to an integer constant expression in that case.
12968         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
12969         compiler bugs reported by Bruno Haible.  See
12970         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
12971         (U0, U1): New constants, to work around the same bugs.  Also,
12972         in tests, use e.g., "(unsigned int) 39" rather than "39u".
12973
12974         intprops: work around C compiler bugs
12975         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
12976         bug in Sun C 5.11 2010/08/13 and other compilers; see
12977         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
12978
12979         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
12980         * doc/intprops.texi (Integer Type Determination): Fix
12981         documentation for TYPE_IS_INTEGER: it returns an constant
12982         expression, not an integer constant expression.  Fix doc for
12983         TYPE_SIGNED: it returns an integer constant expression only if its
12984         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
12985         hardly worth documented that way....)
12986
12987 2011-05-18  Bruno Haible  <bruno@clisp.org>
12988
12989         strerror_r: Avoid clobbering the strerror buffer when possible.
12990         * lib/strerror_r.c (strerror_r): Merge the three implementations.
12991         Handle gnulib defined errno values here. When strerror() returns NULL
12992         or an empty string, return EINVAL.
12993         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
12994         gnulib defined errno values here.
12995         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
12996
12997 2011-05-18  Eric Blake  <eblake@redhat.com>
12998
12999         fnmatch: avoid compiler warning
13000         * lib/fnmatch_loop.c (FCT): Use correct type.
13001         Reported by Matthias Bolte.
13002
13003 2011-05-13  Jim Meyering  <meyering@redhat.com>
13004
13005         maint.mk: three new prohibit_<HDR>_without_use rules
13006         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
13007         (sc_prohibit_stdio-safer_without_use): Likewise.
13008         (sc_prohibit_xfreopen_without_use): Likewise.
13009
13010 2011-05-17  Jim Meyering  <meyering@redhat.com>
13011
13012         announce-gen: fail if the NEWS delta is empty
13013         If there's nothing noteworthy in NEWS, then either you forgot
13014         or you shouldn't be releasing.
13015         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
13016
13017 2011-05-17  Pádraig Brady <P@draigBrady.com>
13018
13019         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
13020         reserved symbols starting with double underscore from the check.
13021
13022 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
13023
13024         intprops: add doc
13025         * doc/intprops.texi: New file, documenting intprops.
13026         * doc/gnulib.texi (Particular Modules): Include it.
13027
13028         verify: add doc to gnulib manual and fix example
13029         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
13030         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
13031         (Compile-time Assertions): Fix example so it can't overflow.
13032
13033 2011-05-17  Jim Meyering  <meyering@redhat.com>
13034
13035         warnings.m4: don't usurp save_CPPFLAGS variable name
13036         * m4/warnings.m4: Prefix local temporary variable name with gl_.
13037
13038         doc: fix typo
13039         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
13040
13041 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
13042             Bruno Haible  <bruno@clisp.org>
13043
13044         doc: Tweak recent change.
13045         * README (Portability guidelines): Tweak new text.
13046         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
13047         Interix 6.1.
13048
13049 2011-05-16  Eric Blake  <eblake@redhat.com>
13050
13051         inttypes: avoid autoconf warning
13052         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
13053         * m4/stdint.m4 (gl_STDINT_H): Likewise.
13054
13055 2011-05-16  Sam Steingold <sds@gnu.org>
13056         and Eric Blake  <eblake@redhat.com>
13057
13058         vc-list-files: accept multiple directory operands
13059         * build-aux/vc-list-files: Iterate over all remaining operands.
13060
13061 2011-05-16  Bruno Haible  <bruno@clisp.org>
13062
13063         Fix confusion regarding deprecated modules.
13064         * modules/calloc (Status, Notice): Mark module as deprecated, not
13065         obsolete.
13066         * modules/fnmatch-posix (Status, Notice): Likewise.
13067         * modules/getdate (Status, Notice): Likewise.
13068         * modules/getopt (Status, Notice): Likewise.
13069         * modules/malloc (Status, Notice): Likewise.
13070         * modules/pipe (Status, Notice): Likewise.
13071         * modules/realloc (Status, Notice): Likewise.
13072         * modules/rename-dest-slash (Status, Notice): Likewise.
13073         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
13074         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
13075         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
13076         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
13077         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
13078
13079 2011-05-16  Bruno Haible  <bruno@clisp.org>
13080
13081         doc: List the target platforms.
13082         * doc/gnulib-intro.texi (Target Platforms): New section.
13083         * doc/gnulib.texi (Introduction): Update menu.
13084         * README (Portability guidelines): Refer to the new section. Update
13085         statement about oldest supported environment. Remove rationale why
13086         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
13087         unportable C89 function.
13088         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
13089         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
13090
13091 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
13092
13093         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
13094
13095 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
13096
13097         intprops-tests: new module
13098         * modules/intprops-tests, tests/test-intprops.c: New files.
13099
13100         intprops: add safe, portable integer overflow checking
13101         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
13102         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
13103         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
13104         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
13105         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
13106         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
13107         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
13108         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
13109         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
13110         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
13111         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
13112
13113 2011-05-12  James Youngman  <jay@gnu.org>
13114
13115         Add a test for glibc's Bugzilla bug #12378.
13116         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
13117         doesn't allow the literal matching of a lone "[" (which is
13118         required by POSIX).
13119         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
13120
13121 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
13122
13123         Sync glibc change fixing Bugzilla bug #12378.
13124         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
13125         beginning and fall back to matching as normal character if the
13126         string ends before the matching ']' is found.  This is what POSIX
13127         requires.
13128
13129 2011-05-13  Eric Blake  <eblake@redhat.com>
13130
13131         getcwd-lgpl: relax test for FreeBSD
13132         * doc/posix-functions/getcwd.texi (getcwd): Document portability
13133         issue.
13134         * tests/test-getcwd-lgpl.c (main): Relax test.
13135         Reported by Matthias Bolte.
13136
13137 2011-05-11  Eric Blake  <eblake@redhat.com>
13138
13139         test-fflush: silence compiler warning
13140         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
13141
13142 2011-05-11  Bruno Haible  <bruno@clisp.org>
13143
13144         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
13145         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
13146         * modules/canonicalize (Depends-on): Add 'nocrash'.
13147         * modules/canonicalize-lgpl (Depends-on): Likewise.
13148         * doc/posix-functions/realpath.texi: Update platforms list.
13149         Reported by Ryan Schmidt <ryandesign@macports.org>.
13150
13151 2011-05-11  Bruno Haible  <bruno@clisp.org>
13152
13153         group-member: Declare function in <unistd.h>.
13154         * lib/unistd.in.h (group_member): New declaration.
13155         * lib/group-member.h: Remove file.
13156         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
13157         * tests/test-unistd-c++.cc: Check signature of group_member.
13158         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
13159         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
13160         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
13161         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
13162         HAVE_GROUP_MEMBER.
13163         * modules/group-member (Files): Remove lib/group-member.h.
13164         (Depends-on): Add unistd. Specify conditions.
13165         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
13166         (Include): Change to <unistd.h>.
13167         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
13168         HAVE_GROUP_MEMBER.
13169         * NEWS: Mention the change.
13170         * lib/euidaccess.c: Don't include group-member.h.
13171
13172 2011-05-11  Bruno Haible  <bruno@clisp.org>
13173
13174         group-member: Document module.
13175         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
13176         module.
13177
13178 2011-05-11  Bruno Haible  <bruno@clisp.org>
13179
13180         fclose: Fix mistake earlier today.
13181         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
13182
13183 2011-05-11  Eric Blake  <eblake@redhat.com>
13184
13185         fclose: preserve fflush errors
13186         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
13187         Reported by Jim Meyering.
13188
13189         bootstrap: support a prereq of 'rpcgen -' on RHEL5
13190         * build-aux/bootstrap (check_versions): When no specific version
13191         is required, merely check that the app produces an exit status
13192         that indicates its existence.
13193
13194         maint.mk: drop redundant check
13195         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
13196         the same but better.
13197
13198 2011-05-11  Bruno Haible  <bruno@clisp.org>
13199
13200         fclose: Fix possible link error.
13201         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
13202         unregister_shadow_fd. Improve comments.
13203         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
13204         Eric Blake.
13205
13206 2011-05-11  Jim Meyering  <meyering@redhat.com>
13207
13208         maint.mk: improve "can not" detection and generalize rule name
13209         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
13210         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
13211         Use the same technique as in sc_prohibit_doubled_word, so that
13212         we recognize "can not" also when the words are separated by a newline.
13213         Suggested by Eric Blake.
13214         (perl_filename_lineno_text_): Define.  Factored out of...
13215         (prohibit_doubled_word_): ...here.  Use the new definition.
13216         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
13217         (prohibit_undesirable_word_seq_RE_): New overridable variable.
13218         (ignore_undesirable_word_sequence_RE_): New overridable variable.
13219
13220 2011-05-10  Eric Blake  <eblake@redhat.com>
13221
13222         fclose: avoid double close race when possible
13223         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
13224         all but WINDOWS_SOCKETS.
13225
13226 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
13227
13228         openat: correct new comment
13229         * lib/openat-proc.c (openat_proc_name): Correct the comment.
13230
13231 2011-05-10  Jim Meyering  <meyering@redhat.com>
13232
13233         openat: add comments
13234         * lib/openat-proc.c (openat_proc_name): Add comments,
13235         mostly from Eric Blake.
13236
13237 2011-05-09  Eric Blake  <eblake@redhat.com>
13238
13239         openat: reduce syscalls in first probe of /proc
13240         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
13241         be a directory.  Simplify the probe for .. bugs.
13242         * modules/openat (Depends-on): Drop same-inode.
13243         Reported by Bastien ROUCARIES.
13244
13245 2011-05-09  Jim Meyering  <meyering@redhat.com>
13246
13247         maint.mk: change semantics/name of tight_scope variables
13248         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
13249         Rename variables to align with semantics that make them more useful.
13250
13251         maint.mk: tweak new rule's name not to impinge
13252         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
13253         (sc_tight_scope): Use new rule name rather than $@-0.
13254
13255         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
13256         * top/maint.mk (sc_tight_scope): New rule.
13257         (sc_tight_scope-0): New rule, ifdef'd out.
13258         (_gl_TS_dir): Default.
13259         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
13260         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
13261
13262 2011-05-09  Simon Josefsson  <simon@josefsson.org>
13263
13264         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
13265         Haible <bruno@clisp.org>.
13266
13267 2011-05-08  Bruno Haible  <bruno@clisp.org>
13268
13269         Comments.
13270         * m4/isnanf.m4: Add comment.
13271         * m4/isnanl.m4: Likewise.
13272
13273 2011-05-08  Bruno Haible  <bruno@clisp.org>
13274
13275         glob: Remove obsolete macro.
13276         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
13277
13278 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
13279
13280         intprops: Sun C 5.11 supports __typeof__
13281         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
13282         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
13283         which is new.
13284         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
13285
13286         intprops: switch to usual gnulib indenting and naming
13287         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
13288         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
13289
13290         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
13291
13292 2011-05-08  Jim Meyering  <meyering@redhat.com>
13293
13294         maint.mk: suppress "Entering/Leaving directory" diag in announcement
13295         * top/maint.mk (release-prep): Use make's --no-print-directory
13296         option when generating the announcement.  This eliminates the
13297         pesky "make[2]: Entering/Leaving directory" diagnostics in the
13298         generated announcement template.
13299
13300 2011-05-08  Bruno Haible  <bruno@clisp.org>
13301
13302         tzset: Fix gettimeofday wrapper on Solaris 2.6.
13303         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
13304         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
13305
13306 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
13307
13308         ignore-value, verify: Omit include files from lib_SOURCES.
13309         * modules/ignore-value, modules/verify (Makefile.am):
13310         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
13311         that leads Automake to duplicate use of am__objects_... variables
13312         in Makefile.in.  See
13313         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
13314
13315 2011-05-07  Bruno Haible  <bruno@clisp.org>
13316
13317         fclose: Simplify autoconf macro.
13318         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
13319         defined.
13320
13321 2011-05-07  Bruno Haible  <bruno@clisp.org>
13322
13323         canonicalize-lgpl: Fix autoconf macro ordering bug.
13324         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
13325         gl_STDLIB_H_DEFAULTS.
13326
13327 2011-05-06  Eric Blake  <eblake@redhat.com>
13328
13329         maintainer-makefile: make sc_po_check easier to tune
13330         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
13331         to probe for strings, such as an alternate location for gnulib.
13332
13333         fclose: guarantee behavior on seekable stdin
13334         * modules/fclose (Depends-on): Add fflush.
13335         * doc/posix-functions/fclose.texi (fclose): Document this.
13336         * tests/test-fclose.c (main): Make test for this unconditional.
13337
13338 2011-05-06  Bruno Haible  <bruno@clisp.org>
13339
13340         fflush, fpurge: Relicense under LGPLv2+.
13341         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
13342         * modules/fpurge (License): Likewise.
13343         With permission from Eric Blake and Jim Meyering.
13344         Suggested by Eric Blake.
13345
13346 2011-05-06  Karl Berry  <karl@gnu.org>
13347
13348         * MODULES.html.sh (func_all_modules): remove exit.
13349
13350 2011-05-06  Jim Meyering  <meyering@redhat.com>
13351
13352         maint.mk: use info-gnu@ as the default only for a stable release
13353         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
13354         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
13355         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
13356         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
13357
13358 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
13359
13360         assert-h: new module, which supports C1X-style static_assert
13361         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
13362         * lib/verify.h: Revamp so that this can be copied into assert.h,
13363         while retaining the ability to use it standalone as before.
13364         Rename private identifiers so as not to encroach on the
13365         standard C namespace, since this is now used by assert.h.
13366         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
13367         the old verify_true.
13368         (_GL_VERIFY_TRUE): New macro, with much of the contents of
13369         the old verify_true.  Use _GL_VERIFY_TYPE.
13370         (_GL_VERIFY): New macro, with much of the contents of the old verify.
13371         (static_assert): New macro, if _GL_STATIC_ASSERT_H
13372         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
13373         defined when this file is copied into the replacement assert.h.
13374         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
13375         and _Static_assert is not built in.
13376         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
13377         defined, and use the new macros mentioned above.
13378         * doc/posix-headers/assert.texi: Document this.
13379
13380 2011-05-05  Bruno Haible  <bruno@clisp.org>
13381
13382         fclose, fflush: Respect rules for use of AC_LIBOBJ.
13383         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
13384         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
13385         gl_REPLACE_FCLOSE here.
13386         * modules/fflush (Depends-on): Remove fclose.
13387         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
13388         combination with module 'fclose'.
13389
13390 2011-05-05  Bruno Haible  <bruno@clisp.org>
13391
13392         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
13393         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
13394         gl_FUNC_FFLUSH.
13395         (gl_FUNC_FFLUSH): Use it.
13396         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
13397         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
13398         gl_REPLACE_FSEEKO here.
13399
13400 2011-05-05  Bruno Haible  <bruno@clisp.org>
13401
13402         tzset: Relicense under LGPL.
13403         * modules/tzset (License): Change to LGPL.
13404         No agreement needed; it's a no-op.
13405
13406         strtoimax, strtoumax: Relicense under LGPL.
13407         * modules/strtoimax (License): Change to LGPL.
13408         * modules/strtoumax (License): Likewise.
13409         With permission from Jim Meyering, Paul Eggert:
13410         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
13411         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
13412
13413         getgroups: Relicense under LGPL.
13414         * modules/getgroups (License): Change to LGPL.
13415         With permission from Jim Meyering, Paul Eggert, Eric Blake:
13416         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
13417         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
13418         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
13419
13420         nanosleep: Relicense under LGPL.
13421         * modules/nanosleep (License): Change to LGPL.
13422         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
13423         Haible:
13424         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
13425         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
13426         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
13427         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
13428
13429         futimens: Relicense under LGPL.
13430         * modules/futimens (License): Change to LGPL.
13431         With permission from Eric Blake:
13432         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
13433
13434         fflush: Relicense under LGPL.
13435         * modules/fflush (License): Change to LGPL.
13436         With permission from Eric Blake, Bruno Haible, Jim Meyering:
13437         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
13438         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
13439         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
13440
13441         tmpfile: Relicense under LGPL.
13442         * modules/tmpfile (License): Change to LGPL.
13443         With permission from Ben Pfaff:
13444         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
13445
13446         isfinite: Relicense under LGPL.
13447         * modules/isfinite (License): Change to LGPL.
13448         With permission from Ben Pfaff, Bruno Haible:
13449         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
13450         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
13451
13452         acosl..tanl: Relicense under LGPL.
13453         * modules/acosl (License): Change to LGPL.
13454         * modules/asinl (License): Likewise.
13455         * modules/atanl (License): Likewise.
13456         * modules/cosl (License): Likewise.
13457         * modules/expl (License): Likewise.
13458         * modules/logl (License): Likewise.
13459         * modules/sinl (License): Likewise.
13460         * modules/sqrtl (License): Likewise.
13461         * modules/tanl (License): Likewise.
13462         Source code originally from glibc and Paolo Bonzini. Agreements:
13463         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
13464         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
13465
13466 2011-05-05  Bruno Haible  <bruno@clisp.org>
13467
13468         signal: Define sighandler_t.
13469         * lib/signal.in.h (sighandler_t): New type.
13470         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
13471         whether sighandler_t is defined.
13472         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
13473         * modules/signal (Depends-on): Add extensions.
13474         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
13475         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
13476         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
13477
13478 2011-05-05  Eric Blake  <eblake@redhat.com>
13479
13480         maint: remove useless REPLACE_*_H macros
13481         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
13482         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
13483         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
13484         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
13485         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
13486         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
13487         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
13488         * m4/btowc.m4: Update callers.
13489         * m4/dirfd.m4: Likewise.
13490         * m4/duplocale.m4: Likewise.
13491         * m4/fchdir.m4: Likewise.
13492         * m4/fdopendir.m4: Likewise.
13493         * m4/inet_ntop.m4: Likewise.
13494         * m4/inet_pton.m4: Likewise.
13495         * m4/ioctl.m4: Likewise.
13496         * m4/mbrlen.m4: Likewise.
13497         * m4/mbrtowc.m4: Likewise.
13498         * m4/mbsinit.m4: Likewise.
13499         * m4/mbsnrtowcs.m4: Likewise.
13500         * m4/mbsrtowcs.m4: Likewise.
13501         * m4/poll.m4: Likewise.
13502         * m4/setlocale.m4: Likewise.
13503         * m4/wcrtomb.m4: Likewise.
13504         * m4/wcsnrtombs.m4: Likewise.
13505         * m4/wcsrtombs.m4: Likewise.
13506         * m4/wctob.m4: Likewise.
13507         * m4/wcwidth.m4: Likewise.
13508         * modules/posix_spawn: Likewise.
13509         * modules/posix_spawn_file_actions_addclose: Likewise.
13510         * modules/posix_spawn_file_actions_adddup2: Likewise.
13511         * modules/posix_spawn_file_actions_addopen: Likewise.
13512         * modules/posix_spawn_file_actions_destroy: Likewise.
13513         * modules/posix_spawn_file_actions_init: Likewise.
13514         * modules/posix_spawnattr_destroy: Likewise.
13515         * modules/posix_spawnattr_getflags: Likewise.
13516         * modules/posix_spawnattr_getpgroup: Likewise.
13517         * modules/posix_spawnattr_getschedparam: Likewise.
13518         * modules/posix_spawnattr_getschedpolicy: Likewise.
13519         * modules/posix_spawnattr_getsigdefault: Likewise.
13520         * modules/posix_spawnattr_getsigmask: Likewise.
13521         * modules/posix_spawnattr_init: Likewise.
13522         * modules/posix_spawnattr_setflags: Likewise.
13523         * modules/posix_spawnattr_setpgroup: Likewise.
13524         * modules/posix_spawnattr_setschedparam: Likewise.
13525         * modules/posix_spawnattr_setschedpolicy: Likewise.
13526         * modules/posix_spawnattr_setsigdefault: Likewise.
13527         * modules/posix_spawnattr_setsigmask: Likewise.
13528         * modules/posix_spawnp: Likewise.
13529
13530 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
13531
13532         Add option to do-release-commit-and-tag to specify branch.
13533         * build-aux/do-release-commit-and-tag: Add --branch.
13534
13535 2011-05-03  Bruno Haible  <bruno@clisp.org>
13536
13537         Avoid unnecessary compilation units, through conditional dependencies.
13538         * modules/accept (Depends-on): Add conditions to the dependencies.
13539         * modules/acosl (Depends-on): Likewise.
13540         * modules/argz (Depends-on): Likewise.
13541         * modules/asinl (Depends-on): Likewise.
13542         * modules/atanl (Depends-on): Likewise.
13543         * modules/atoll (Depends-on): Likewise.
13544         * modules/bind (Depends-on): Likewise.
13545         * modules/btowc (Depends-on): Likewise.
13546         * modules/canonicalize-lgpl (Depends-on): Likewise.
13547         * modules/ceil (Depends-on): Likewise.
13548         * modules/ceilf (Depends-on): Likewise.
13549         * modules/ceill (Depends-on): Likewise.
13550         * modules/chdir-long (Depends-on): Likewise.
13551         * modules/chown (Depends-on): Likewise.
13552         * modules/close (Depends-on): Likewise.
13553         * modules/connect (Depends-on): Likewise.
13554         * modules/cosl (Depends-on): Likewise.
13555         * modules/dirfd (Depends-on): Likewise.
13556         * modules/dprintf (Depends-on): Likewise.
13557         * modules/dprintf-posix (Depends-on): Likewise.
13558         * modules/error (Depends-on): Likewise.
13559         * modules/euidaccess (Depends-on): Likewise.
13560         * modules/expl (Depends-on): Likewise.
13561         * modules/faccessat (Depends-on): Likewise.
13562         * modules/fchdir (Depends-on): Likewise.
13563         * modules/fclose (Depends-on): Likewise.
13564         * modules/fcntl (Depends-on): Likewise.
13565         * modules/fdopendir (Depends-on): Likewise.
13566         * modules/fflush (Depends-on): Likewise.
13567         * modules/floor (Depends-on): Likewise.
13568         * modules/floorf (Depends-on): Likewise.
13569         * modules/floorl (Depends-on): Likewise.
13570         * modules/fnmatch (Depends-on): Likewise.
13571         * modules/fopen (Depends-on): Likewise.
13572         * modules/fprintf-posix (Depends-on): Likewise.
13573         * modules/frexp (Depends-on): Likewise.
13574         * modules/frexp-nolibm (Depends-on): Likewise.
13575         * modules/frexpl (Depends-on): Likewise.
13576         * modules/frexpl-nolibm (Depends-on): Likewise.
13577         * modules/fseek (Depends-on): Likewise.
13578         * modules/fsusage (Depends-on): Likewise.
13579         * modules/ftell (Depends-on): Likewise.
13580         * modules/ftello (Depends-on): Likewise.
13581         * modules/futimens (Depends-on): Likewise.
13582         * modules/getcwd (Depends-on): Likewise.
13583         * modules/getcwd-lgpl (Depends-on): Likewise.
13584         * modules/getdelim (Depends-on): Likewise.
13585         * modules/getdomainname (Depends-on): Likewise.
13586         * modules/getgroups (Depends-on): Likewise.
13587         * modules/gethostname (Depends-on): Likewise.
13588         * modules/getline (Depends-on): Likewise.
13589         * modules/getlogin_r (Depends-on): Likewise.
13590         * modules/getopt-posix (Depends-on): Likewise.
13591         * modules/getpeername (Depends-on): Likewise.
13592         * modules/getsockname (Depends-on): Likewise.
13593         * modules/getsockopt (Depends-on): Likewise.
13594         * modules/getsubopt (Depends-on): Likewise.
13595         * modules/getusershell (Depends-on): Likewise.
13596         * modules/glob (Depends-on): Likewise.
13597         * modules/grantpt (Depends-on): Likewise.
13598         * modules/iconv_open (Depends-on): Likewise.
13599         * modules/iconv_open-utf (Depends-on): Likewise.
13600         * modules/inet_ntop (Depends-on): Likewise.
13601         * modules/inet_pton (Depends-on): Likewise.
13602         * modules/ioctl (Depends-on): Likewise.
13603         * modules/isapipe (Depends-on): Likewise.
13604         * modules/isfinite (Depends-on): Likewise.
13605         * modules/isinf (Depends-on): Likewise.
13606         * modules/lchown (Depends-on): Likewise.
13607         * modules/ldexpl (Depends-on): Likewise.
13608         * modules/link (Depends-on): Likewise.
13609         * modules/linkat (Depends-on): Likewise.
13610         * modules/listen (Depends-on): Likewise.
13611         * modules/logl (Depends-on): Likewise.
13612         * modules/lstat (Depends-on): Likewise.
13613         * modules/mbrlen (Depends-on): Likewise.
13614         * modules/mbrtowc (Depends-on): Likewise.
13615         * modules/mbsinit (Depends-on): Likewise.
13616         * modules/mbsnrtowcs (Depends-on): Likewise.
13617         * modules/mbsrtowcs (Depends-on): Likewise.
13618         * modules/mbtowc (Depends-on): Likewise.
13619         * modules/memcmp (Depends-on): Likewise.
13620         * modules/mkdir (Depends-on): Likewise.
13621         * modules/mkdtemp (Depends-on): Likewise.
13622         * modules/mkfifo (Depends-on): Likewise.
13623         * modules/mkfifoat (Depends-on): Likewise.
13624         * modules/mknod (Depends-on): Likewise.
13625         * modules/mkostemp (Depends-on): Likewise.
13626         * modules/mkostemps (Depends-on): Likewise.
13627         * modules/mkstemp (Depends-on): Likewise.
13628         * modules/mkstemps (Depends-on): Likewise.
13629         * modules/mktime (Depends-on): Likewise.
13630         * modules/nanosleep (Depends-on): Likewise.
13631         * modules/open (Depends-on): Likewise.
13632         * modules/openat (Depends-on): Likewise.
13633         * modules/perror (Depends-on): Likewise.
13634         * modules/poll (Depends-on): Likewise.
13635         * modules/popen (Depends-on): Likewise.
13636         * modules/posix_spawn (Depends-on): Likewise.
13637         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
13638         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
13639         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
13640         * modules/posix_spawnp (Depends-on): Likewise.
13641         * modules/pread (Depends-on): Likewise.
13642         * modules/printf-posix (Depends-on): Likewise.
13643         * modules/ptsname (Depends-on): Likewise.
13644         * modules/putenv (Depends-on): Likewise.
13645         * modules/pwrite (Depends-on): Likewise.
13646         * modules/readline (Depends-on): Likewise.
13647         * modules/readlink (Depends-on): Likewise.
13648         * modules/readlinkat (Depends-on): Likewise.
13649         * modules/recv (Depends-on): Likewise.
13650         * modules/recvfrom (Depends-on): Likewise.
13651         * modules/regex (Depends-on): Likewise.
13652         * modules/remove (Depends-on): Likewise.
13653         * modules/rename (Depends-on): Likewise.
13654         * modules/renameat (Depends-on): Likewise.
13655         * modules/rmdir (Depends-on): Likewise.
13656         * modules/round (Depends-on): Likewise.
13657         * modules/roundf (Depends-on): Likewise.
13658         * modules/roundl (Depends-on): Likewise.
13659         * modules/rpmatch (Depends-on): Likewise.
13660         * modules/select (Depends-on): Likewise.
13661         * modules/send (Depends-on): Likewise.
13662         * modules/sendto (Depends-on): Likewise.
13663         * modules/setenv (Depends-on): Likewise.
13664         * modules/setlocale (Depends-on): Likewise.
13665         * modules/setsockopt (Depends-on): Likewise.
13666         * modules/shutdown (Depends-on): Likewise.
13667         * modules/sigaction (Depends-on): Likewise.
13668         * modules/signbit (Depends-on): Likewise.
13669         * modules/sigprocmask (Depends-on): Likewise.
13670         * modules/sinl (Depends-on): Likewise.
13671         * modules/sleep (Depends-on): Likewise.
13672         * modules/snprintf (Depends-on): Likewise.
13673         * modules/snprintf-posix (Depends-on): Likewise.
13674         * modules/socket (Depends-on): Likewise.
13675         * modules/sprintf-posix (Depends-on): Likewise.
13676         * modules/sqrtl (Depends-on): Likewise.
13677         * modules/stat (Depends-on): Likewise.
13678         * modules/strchrnul (Depends-on): Likewise.
13679         * modules/strdup-posix (Depends-on): Likewise.
13680         * modules/strerror (Depends-on): Likewise.
13681         * modules/strerror_r-posix (Depends-on): Likewise.
13682         * modules/strndup (Depends-on): Likewise.
13683         * modules/strnlen (Depends-on): Likewise.
13684         * modules/strptime (Depends-on): Likewise.
13685         * modules/strsep (Depends-on): Likewise.
13686         * modules/strsignal (Depends-on): Likewise.
13687         * modules/strstr-simple (Depends-on): Likewise.
13688         * modules/strtod (Depends-on): Likewise.
13689         * modules/strtoimax (Depends-on): Likewise.
13690         * modules/strtok_r (Depends-on): Likewise.
13691         * modules/strtoumax (Depends-on): Likewise.
13692         * modules/symlink (Depends-on): Likewise.
13693         * modules/symlinkat (Depends-on): Likewise.
13694         * modules/tanl (Depends-on): Likewise.
13695         * modules/tcgetsid (Depends-on): Likewise.
13696         * modules/tmpfile (Depends-on): Likewise.
13697         * modules/trunc (Depends-on): Likewise.
13698         * modules/truncf (Depends-on): Likewise.
13699         * modules/truncl (Depends-on): Likewise.
13700         * modules/uname (Depends-on): Likewise.
13701         * modules/unlink (Depends-on): Likewise.
13702         * modules/unlockpt (Depends-on): Likewise.
13703         * modules/unsetenv (Depends-on): Likewise.
13704         * modules/usleep (Depends-on): Likewise.
13705         * modules/utimensat (Depends-on): Likewise.
13706         * modules/vasprintf (Depends-on): Likewise.
13707         * modules/vdprintf (Depends-on): Likewise.
13708         * modules/vdprintf-posix (Depends-on): Likewise.
13709         * modules/vfprintf-posix (Depends-on): Likewise.
13710         * modules/vprintf-posix (Depends-on): Likewise.
13711         * modules/vsnprintf (Depends-on): Likewise.
13712         * modules/vsnprintf-posix (Depends-on): Likewise.
13713         * modules/vsprintf-posix (Depends-on): Likewise.
13714         * modules/wcrtomb (Depends-on): Likewise.
13715         * modules/wcscasecmp (Depends-on): Likewise.
13716         * modules/wcscspn (Depends-on): Likewise.
13717         * modules/wcsdup (Depends-on): Likewise.
13718         * modules/wcsncasecmp (Depends-on): Likewise.
13719         * modules/wcsnrtombs (Depends-on): Likewise.
13720         * modules/wcspbrk (Depends-on): Likewise.
13721         * modules/wcsrtombs (Depends-on): Likewise.
13722         * modules/wcsspn (Depends-on): Likewise.
13723         * modules/wcsstr (Depends-on): Likewise.
13724         * modules/wcstok (Depends-on): Likewise.
13725         * modules/wcswidth (Depends-on): Likewise.
13726         * modules/wctob (Depends-on): Likewise.
13727         * modules/wctomb (Depends-on): Likewise.
13728         * modules/wctype (Depends-on): Likewise.
13729         * modules/wcwidth (Depends-on): Likewise.
13730         * modules/write (Depends-on): Likewise.
13731
13732 2011-05-03  Bruno Haible  <bruno@clisp.org>
13733
13734         Support for conditional dependencies.
13735         * doc/gnulib.texi (Module description): Document the syntax of
13736         conditional dependencies.
13737         * gnulib-tool: New option --conditional-dependencies.
13738         (func_usage): Document it.
13739         (cond_dependencies): New variable.
13740         (func_get_automake_snippet_conditional,
13741         func_get_automake_snippet_unconditional): New functions, extracted from
13742         func_get_automake_snippet.
13743         (func_get_automake_snippet): Use them.
13744         (sed_first_32_chars): New variable.
13745         (func_module_shellfunc_name): New function.
13746         (func_module_shellvar_name): New function.
13747         (func_module_conditional_name): New function.
13748         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
13749         func_cond_module_condition): New functions.
13750         (func_modules_transitive_closure): Add support for conditional
13751         dependencies.
13752         (func_emit_lib_Makefile_am): For a conditional module, enclose the
13753         conditional automake snippet in an automake conditional.
13754         (func_emit_autoconf_snippets): Emit shell functions that contain the
13755         code for conditional modules.
13756         (func_import, func_create_testdir): Update specification.
13757
13758 2011-05-03  Eric Blake  <eblake@redhat.com>
13759
13760         test-getaddrinfo: report error information
13761         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
13762
13763 2011-05-03  Jim Meyering  <meyering@redhat.com>
13764
13765         bootstrap: avoid build failure when $GZIP is set
13766         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
13767         program name.  If defined at all, it is supposed to list gzip options.
13768         Reported by Alan Curry in http://debbugs.gnu.org/8609
13769
13770 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
13771
13772         readme-release: new module with release instructions
13773         * modules/readme-release: New module.
13774         * top/README-release: New file, from coreutils, grep, diffutils.
13775         * MODULES.html.sh (Support for maintaining and releasing): Add it.
13776
13777 2011-05-02  Eric Blake  <eblake@redhat.com>
13778
13779         fflush: also replace fclose when fixing fflush
13780         * modules/fflush (Depends-on): Add fclose.
13781         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
13782         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
13783         memstreams with no backing fd.
13784         * doc/posix-functions/fclose.texi (fclose): Document the use of
13785         fflush module to fix the bug.
13786         * tests/test-fclose.c (main): Relax test when fclose is used in
13787         isolation.
13788
13789         fclose: add some tests
13790         * modules/fclose-tests: New test module.
13791         * tests/test-fclose.c: New file.
13792         * doc/posix-functions/fclose.texi (fclose): Document the bug.
13793
13794         fclose: reduced dependencies
13795         * modules/fclose (Depends-on): Switch from fflush/fseeko to
13796         simpler lseek.
13797         * lib/fclose.c (rpl_fclose): Likewise.
13798         Reported by Simon Josefsson.
13799
13800         exit: drop remaining clients
13801         * modules/argmatch (Depends-on): Replace exit with stdlib.
13802         * modules/copy-file (Depends-on): Likewise.
13803         * modules/execute (Depends-on): Likewise.
13804         * modules/exitfail (Depends-on): Likewise.
13805         * modules/obstack (Depends-on): Likewise.
13806         * modules/pagealign_alloc (Depends-on): Likewise.
13807         * modules/pipe-filter-gi (Depends-on): Likewise.
13808         * modules/pipe-filter-ii (Depends-on): Likewise.
13809         * modules/savewd (Depends-on): Likewise.
13810         * modules/spawn-pipe (Depends-on): Likewise.
13811         * modules/wait-process (Depends-on): Likewise.
13812         * modules/xsetenv (Depends-on): Likewise.
13813         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
13814         * modules/git-merge-changelog (Depends-on): Likewise.
13815         * modules/long-options (Depends-on): Likewise.
13816         * modules/pt_chown (Depends-on): Likewise.
13817         * modules/sysexits (Depends-on): Likewise.
13818
13819         freading: relax license from LGPLv3+ to LGPLv2+
13820         * modules/freading (License): Relax LGPL version.
13821
13822 2011-05-02  Bruno Haible  <bruno@clisp.org>
13823
13824         fchdir: Remove unused dependencies.
13825         * modules/fchdir (Depends-on): Remove include_next.
13826
13827 2011-05-02  Bruno Haible  <bruno@clisp.org>
13828
13829         gnulib-tool: Refactor.
13830         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
13831         from func_emit_autoconf_snippets.
13832         (func_emit_autoconf_snippets): Use it.
13833
13834 2011-05-02  Simon Josefsson  <simon@josefsson.org>
13835
13836         * NEWS: Document removal of 'exit'.
13837         * modules/exit: Remove file.
13838
13839 2011-05-01  Bruno Haible  <bruno@clisp.org>
13840
13841         Update DEPENDENCIES.
13842         * DEPENDENCIES (gettext): Recommend the newest release.
13843         Reported by Simon Josefsson.
13844
13845 2011-05-01  Bruno Haible  <bruno@clisp.org>
13846
13847         gnulib-tool: Reduce code duplication.
13848         * gnulib-tool (func_emit_autoconf_snippets): New function.
13849         (func_import, func_create_testdir): Use it.
13850
13851 2011-04-30  Eric Blake  <eblake@redhat.com>
13852
13853         fclose: don't fail on non-seekable input stream
13854         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
13855         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
13856         since fflush is allowed to fail in that case.
13857
13858 2011-04-30  Bruno Haible  <bruno@clisp.org>
13859
13860         dup3: cleanup
13861         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
13862
13863 2011-04-30  Bruno Haible  <bruno@clisp.org>
13864
13865         netdb: Make it work in C++ mode.
13866         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
13867         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
13868         module.
13869         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
13870         gl_MODULE_INDICATOR_FOR_TESTS.
13871         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
13872         * modules/netdb-c++-tests: New file.
13873         * tests/test-netdb-c++.cc: New file.
13874
13875 2011-04-30  Bruno Haible  <bruno@clisp.org>
13876
13877         New modules 'vfscanf', 'vscanf'.
13878         * modules/vfscanf: New file.
13879         * modules/vscanf: New file.
13880         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
13881         here.
13882         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
13883         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
13884
13885 2011-04-30  Bruno Haible  <bruno@clisp.org>
13886
13887         passfd: Add comments.
13888         * lib/passfd.c: Add comments about platforms.
13889
13890 2011-04-30  Bruno Haible  <bruno@clisp.org>
13891
13892         sys_uio: Make <sys/uio.h> self-contained.
13893         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
13894         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
13895
13896 2011-04-30  Bruno Haible  <bruno@clisp.org>
13897
13898         sys_socket: Ensure 'struct iovec' definition.
13899         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
13900         <sys/socket.h>.
13901         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
13902
13903 2011-04-30  Bruno Haible  <bruno@clisp.org>
13904
13905         sys_uio: Protect definition of 'struct iovec'.
13906         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
13907         it as a C struct.
13908
13909 2011-04-30  Bruno Haible  <bruno@clisp.org>
13910
13911         manywarnings: fix indentation
13912         * m4/manywarnings.m4: Indent by 2 spaces consistently.
13913
13914 2011-04-30  Pádraig Brady <P@draigBrady.com>
13915
13916         manywarnings: add -Wno-missing-field-initializers if needed.
13917         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
13918         option if it's needed to allow initialization with { 0, }
13919
13920 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
13921
13922         announce-gen: cosmetic improvement
13923         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
13924
13925 2011-04-29  Jim Meyering  <meyering@redhat.com>
13926
13927         vc-list-files: indent with spaces, not TABs
13928         * build-aux/vc-list-files: Convert leading TABs to spaces,
13929         to match the style of most other files in gnulib.
13930
13931         announce-gen: indent with spaces, not TABs
13932         * build-aux/announce-gen: Convert all TABs to spaces, to match
13933         the style of most other files in gnulib.
13934
13935 2011-04-29  Eric Blake  <eblake@redhat.com>
13936
13937         quotearg: avoid uninitialized variable use
13938         * lib/quotearg.c (quoting_options_from_style): Initialize
13939         remaining fields, and ensure that custom styles are only used via
13940         quoting_options rather than quoting_style.
13941
13942 2011-04-29  Jim Meyering  <meyering@redhat.com>
13943
13944         maint.mk: remove unused VC-tag variable
13945         * top/maint.mk (VC-tag): Remove unused variable.
13946
13947 2011-04-29  Bruno Haible  <bruno@clisp.org>
13948
13949         netdb: fix gai_strerror replacements
13950         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
13951         * modules/netdb: Substitute it.
13952
13953 2011-04-29  Jim Meyering  <meyering@redhat.com>
13954
13955         test-getcwd.c: avoid new set-but-not-used warning
13956         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
13957         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
13958         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
13959         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
13960
13961         test-hash.c: avoid a new shadowing warning
13962         * tests/test-hash.c (main): Don't shadow "dup".
13963
13964 2011-04-28  Eric Blake  <eblake@redhat.com>
13965
13966         getaddrinfo: fix gai_strerror signature
13967         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
13968         and work around mingw with UNICODE defined.
13969         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
13970         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
13971         * modules/netdb (Makefile.am): Substitute it.
13972         * lib/netdb.in.h (gai_strerror): Declare replacement.
13973         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
13974         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
13975         the fix.
13976
13977         getsockopt: avoid compiler warning
13978         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
13979         Reported by Matthias Bolte.
13980
13981         tests: drop unused link dependency
13982         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
13983         * modules/dirent-safer-tests (Makefile.am): Likewise.
13984         * modules/fdopendir-tests (Makefile.am): Likewise.
13985         * modules/mkfifoat-tests (Makefile.am): Likewise.
13986         * modules/openat-safer-tests (Makefile.am): Likewise.
13987         * modules/openat-tests (Makefile.am): Likewise.
13988         * modules/readlinkat-tests (Makefile.am): Likewise.
13989         * modules/symlinkat-tests (Makefile.am): Likewise.
13990         * modules/linkat-tests (Makefile.am): Likewise.
13991         (Depends-on): Switch to filenamecat-lgpl.
13992         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
13993         LIBINTL.
13994         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
13995         * tests/test-linkat.c (main): Don't require xalloc.
13996
13997         hash, mgetgroups: drop xalloc dependency
13998         * lib/hash.c (includes): Adjust includes.
13999         * lib/mgetgroups.c (includes): Likewise.
14000         (xgetgroups): Move...
14001         * lib/xgetgroups.c: ...to new file.
14002         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
14003         * modules/xgetgroups: New file, split from...
14004         * modules/mgetgroups: ...here.
14005         (Depends-on): Add xalloc-oversized.
14006         * modules/hash (Depends-on): Likewise.
14007         * modules/hash-tests (Depends-on): Drop xalloc.
14008         (test_hash_LDADD): Drop unused library.
14009         * tests/test-hash.c (main): Break xalloc dependency.
14010         (includes): Drop unused include.
14011
14012         xalloc-oversized: new module
14013         * modules/xalloc-oversized: New module.
14014         * modules/xalloc (Depends-on): Add it.
14015         * lib/xalloc.h (xalloc_oversized): Move...
14016         * lib/xalloc-oversized.h: ...into new file.
14017
14018         utimecmp: drop dependency on xmalloc
14019         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
14020         due to memory pressure.
14021         * modules/utimecmp (Depends-on): Drop xalloc.
14022
14023 2011-04-27  Eric Blake  <eblake@redhat.com>
14024
14025         getcwd: fix mingw bugs
14026         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
14027         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
14028         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
14029
14030 2011-04-27  Bruno Haible  <bruno@clisp.org>
14031
14032         mkstemps: Ensure declaration on MacOS X 10.5.
14033         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
14034         * doc/glibc-functions/mkstemps.texi: Document header file problem on
14035         MacOS X.
14036
14037 2011-04-27  Bruno Haible  <bruno@clisp.org>
14038
14039         mkstemp: More documentation.
14040         * doc/posix-functions/mkstemp.texi: Document header file problem on
14041         MacOS X.
14042
14043 2011-04-27  Bruno Haible  <bruno@clisp.org>
14044
14045         mkstemp: Tweak configure message when cross-compiling.
14046         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
14047         result as a guess.
14048
14049 2011-04-27  Bruno Haible  <bruno@clisp.org>
14050
14051         clean-temp: Clarify what it does.
14052         * lib/clean-temp.h: Add more comments.
14053         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
14054         module.
14055         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
14056         * doc/glibc-functions/mkstemps.texi: Likewise.
14057         * doc/glibc-functions/mkostemps.texi: Likewise.
14058
14059 2011-04-27  Eric Blake  <eblake@redhat.com>
14060
14061         fchdir: avoid extra chdir and fix test
14062         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
14063         getcwd-lgpl.
14064         * lib/fchdir.c (get_name): Any absolute name will do; it does not
14065         have to be canonical.
14066         (canonicalize_file_name): Drop unused macro.
14067         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
14068
14069         filenamecat-lgpl: fix licence
14070         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
14071         when it was first created.
14072
14073         linkat, renameat: add missing dependency
14074         * modules/linkat (Depends-on): Require getcwd-lgpl.
14075         * modules/renameat (Depends-on): Likewise.
14076
14077         tests: reduce dependencies
14078         * tests/test-linkat.c (main): Use lighter-weight getcwd.
14079         * tests/test-renameat.c (main): Likewise.
14080         * modules/linkat-tests (Depends-on): Relax dependency.
14081         * modules/renameat-tests (Depends-on): Likewise.
14082         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
14083         dependency explicit.
14084
14085         save-cwd: reduce default dependency
14086         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
14087         * lib/save-cwd.c: Update comments.
14088         * NEWS: Document the semantic change.
14089
14090         getcwd: enhance tests
14091         * tests/test-getcwd-lgpl.c: New file, taken from...
14092         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
14093         repeat long path stress tests from m4 probe.
14094         * modules/getcwd-lgpl-tests: New module.
14095         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
14096         * m4/getcwd-abort-bug.m4: Update comment.
14097         * m4/getcwd-path-max.m4: Likewise.
14098
14099         getcwd-lgpl: new module
14100         * modules/getcwd-lgpl: New module.
14101         * lib/getcwd-lgpl.c: New file.
14102         * doc/posix-functions/getcwd.texi (getcwd): Document it.
14103         * MODULES.html.sh (lacking POSIX:2008): Likewise.
14104         * modules/getcwd (configure.ac): Set C witness.
14105         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
14106
14107         getcwd: tweak comments
14108         * m4/getcwd-abort-bug.m4: Fix comments.
14109         * m4/getcwd-path-max.m4: Likewise.
14110         * m4/getcwd.m4: Likewise.
14111
14112 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
14113         and Eric Blake  <eblake@redhat.com>
14114
14115         mkstemp: replace if system version uses wrong permissions
14116         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
14117         read/write mode bits set in file created by mkstemp.
14118         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
14119
14120 2011-04-27  Eric Blake  <eblake@redhat.com>
14121
14122         passfd: avoid compiler warning
14123         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
14124         Reported by Laine Stump.
14125
14126 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
14127
14128         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
14129         required by the NetBSD (and perhaps other 4.4BSD derived) join.
14130
14131 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
14132         and Eric Blake  <eblake@redhat.com>
14133
14134         mkstemp: mention clean-temp module
14135         * lib/mkstemp.c: Add comment.
14136         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
14137
14138 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
14139
14140         inttypes: also provide default values for 32-bit tests
14141         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
14142         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
14143
14144 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
14145
14146         strtoumax: remove dependency on strtoimax
14147         This is like the strtoull change of yesterday.
14148         * modules/strtoumax (Files): Add lib/strtoimax.c.
14149         (Depends-on): Remove strtoimax and add verify.
14150
14151         inttypes-incomplete: new module
14152         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
14153         all but the PRI* and SCN* parts of gl_INTTYPES_H.
14154         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
14155         of gl_INTTYPES_H.
14156         (gl_INTTYPES_H): Rewrite in terms of these new macros.
14157         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
14158         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
14159         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
14160         * modules/strtoumax, modules/xstrtol (Depends-on):
14161         Depend on inttypes-incomplete, not inttypes.
14162         * modules/inttypes-incomplete: New module, containing the contents
14163         of the old modules/inttypes module, except that the Files: section
14164         omits m4/inttypes-pri.m4, and the configure.ac section invokes
14165         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
14166         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
14167         (Depends-on): Depend only on inttypes-incomplete.
14168         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
14169
14170         inttypes: omit now-redundant strtoimax and strtoumax work
14171         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
14172         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
14173
14174         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
14175         This supports apps that need pointers to strtoimax and strtoumax,
14176         and ports to HP-UX 11.00 64.bit, which has macros that expand to
14177         nonexistent functions.  See
14178         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
14179         et seq.
14180         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
14181         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
14182         a macro.
14183         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
14184
14185 2011-04-25  Simon Josefsson  <simon@josefsson.org>
14186
14187         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
14188
14189 2011-04-25  Bruno Haible  <bruno@clisp.org>
14190
14191         strtol, strtoul: Mark modules as obsolete.
14192         * modules/strtol (Status, Notice): New sections.
14193         * modules/strtoul (Status, Notice): New sections.
14194
14195 2011-04-25  Bruno Haible  <bruno@clisp.org>
14196
14197         strtod: Remove check for strtod, unless supporting old platforms.
14198         * modules/strtod-obsolete: New file.
14199         * m4/strtod-obsolete.m4: New file.
14200         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
14201         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
14202         * modules/strtod (Depends-on): Add strtod-obsolete.
14203         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
14204
14205 2011-04-25  Bruno Haible  <bruno@clisp.org>
14206
14207         strcase: Make module obsolete.
14208         * modules/strcase (Status, Notice): New sections.
14209
14210 2011-04-25  Bruno Haible  <bruno@clisp.org>
14211
14212         dup2: Remove check for dup2, unless supporting old obsolete platforms.
14213         * modules/dup2-obsolete: New file.
14214         * m4/dup2-obsolete.m4: New file.
14215         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
14216         gl_FUNC_DUP2_OBSOLETE is not also defined.
14217         * modules/dup2 (Depends-on): Add dup2-obsolete.
14218         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
14219
14220 2011-04-25  Bruno Haible  <bruno@clisp.org>
14221
14222         strnlen: Avoid memchr related link error on old obsolete platforms.
14223         * modules/memchr-obsolete: New file.
14224         * m4/memchr-obsolete.m4: New file.
14225         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
14226         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
14227         * modules/memchr (Depends-on): Add memchr-obsolete.
14228         * modules/strnlen (Depends-on): Likewise.
14229         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
14230
14231 2011-04-25  Jim Meyering  <meyering@redhat.com>
14232
14233         maint.mk: makefile_at_at_check extend and clean up
14234         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
14235         in addition to */Makefile.am.
14236         Exempt legitimate uses of @VAR@ notation, e.g.,
14237         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
14238         Remove obsolete coreutils-specific comment.
14239         Prompted by discussion here:
14240         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
14241
14242 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
14243
14244         strtoul: remove dependency on strtol
14245         This is so that 'configure' need not check for strtol merely because
14246         the application needs strtoul.
14247         * modules/strtoul (Files): Add lib/strtol.c.
14248         (Depends-on): Remove strtol.
14249
14250         strtoull: remove dependency on strtoul
14251         This is like the strtoll change.
14252         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
14253         (Depends-on): Remove strtoul.
14254
14255         strtoll: remove dependency on strtol
14256         This is so that 'configure' need not check for strtol merely because
14257         the application needs strtoll.
14258         * modules/strtoll (Files): Add lib/strtol.c.
14259         (Depends-on): Remove strtol.
14260
14261 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
14262
14263         inttypes: Move some configure check to module 'imaxdiv'.
14264         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
14265         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
14266         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
14267
14268 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
14269
14270         inttypes: Move some configure check to module 'imaxabs'.
14271         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
14272         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
14273         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
14274
14275 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
14276
14277         inttypes: Remove configure tests that are not needed since 2009-12-31.
14278         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
14279         gl_cv_header_working_inttypes_h.
14280
14281 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
14282
14283         * modules/strnlen (Depends-on): Remove memchr.
14284         The strnlen implementation doesn't need the memchr module's fixes; see
14285         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
14286
14287         strtol: remove dependency on wchar
14288         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
14289         * modules/strtol (Depends-on): Remove wchar.
14290
14291 2011-04-21  Eric Blake  <eblake@redhat.com>
14292
14293         passfd: fix test regression on Linux
14294         * modules/passfd-tests (configure.ac): Correct socketpair check.
14295
14296         passfd: speed up configure and drop unused code
14297         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
14298         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
14299         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
14300         Instead of probing at configure for unix_scm_rights_bsd44_way,
14301         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
14302         check to a struct member probe.
14303         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
14304         (sendfd, recvfd): Update preprocessor checks.
14305         * modules/passfd (Files): Reflect rename, and drop unused file.
14306         (Depends-on): Drop unused dependency.
14307
14308         passfd: allow compilation on mingw
14309         * modules/sys_socket (Depends-on): Add sys_uio.
14310         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
14311         iovec and a minimal struct msghdr.
14312         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
14313         * tests/test-sys_socket.c (main): Enhance test.
14314         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
14315         guaranteed to provide what we need.
14316         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
14317         * modules/passfd-tests (Depends-on): Add sys_wait.
14318         * tests/test-passfd.c (main): Skip test on mingw, for now.
14319         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
14320         partial 'struct msghdr' implementation.
14321
14322         sys_uio: new module
14323         * modules/sys_uio: New module.
14324         * modules/sys_uio-tests: Likewise.
14325         * lib/sys_uio.in.h: New file.
14326         * m4/sys_uio_h.m4: Likewise.
14327         * tests/test-sys_uio.c: Likewise.
14328         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
14329         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
14330
14331 2011-04-20  Jim Meyering  <meyering@redhat.com>
14332
14333         useless-if-before-free: avoid false-positive
14334         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
14335         disjunct so that it too requires a terminating ";".  Without that,
14336         this script would identify as useless one statement from gcc that
14337         was not:
14338           if (aligned_ptr)
14339             free (((void **) aligned_ptr) [-1]);
14340
14341 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
14342
14343         doc: update users.txt.
14344         * users.txt: Add barcode.
14345
14346 2011-04-19  Bruno Haible  <bruno@clisp.org>
14347
14348         ioctl: Remove link dependency on native Windows.
14349         * lib/fd-hook.h: Renamed from lib/close-hook.h.
14350         (gl_close_fn, gl_ioctl_fn): New types.
14351         (struct fd_hook): Renamed from struct close_hook. Change type of
14352         private_close_fn field. Add private_ioctl_fn field.
14353         (close_hook_fn): Add parameter for primary close method.
14354         (execute_close_hooks, execute_all_close_hooks): Likewise.
14355         (ioctl_hook_fn): New type.
14356         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
14357         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
14358         argument.
14359         (unregister_fd_hook): Renamed from unregister_close_hook.
14360         * lib/fd-hook.c: Renamed from lib/close-hook.c.
14361         Don't include <unistd.h>.
14362         (close): Remove undef.
14363         (anchor): Update.
14364         (execute_close_hooks): Add argument for primary close method.
14365         (execute_all_close_hooks): Likewise.
14366         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
14367         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
14368         argument. Allow each argument to be NULL.
14369         (unregister_fd_hook): Renamed from unregister_close_hook.
14370         * lib/close.c (rpl_close): Pass 'close' function pointer to
14371         execute_all_close_hooks.
14372         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
14373         (primary_ioctl): New function.
14374         (ioctl): Don't call ioctlsocket here. Instead, call
14375         execute_all_ioctl_hooks.
14376         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
14377         close method.
14378         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
14379         (fd_sockets_hook): Renamed from close_sockets_hook.
14380         (gl_sockets_startup, gl_sockets_cleanup): Update.
14381         * modules/fd-hook: Renamed from modules/close-hook. Update.
14382         * modules/close (Depends-on): Add fd-hook, remove close-hook.
14383         * modules/sockets (Depends-on): Likewise.
14384         * modules/ioctl (Depends-on): Add fd-hook.
14385         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
14386         GNULIB_SOCKET.
14387
14388 2011-04-19  Bruno Haible  <bruno@clisp.org>
14389
14390         Move the support of O_NONBLOCK in open() to the 'open' module.
14391         * modules/nonblocking (Depends-on): Remove 'open'.
14392         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
14393         gl_cv_have_open_O_NONBLOCK.
14394         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
14395         O_NONBLOCK support.
14396         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
14397
14398 2011-04-17  Bruno Haible  <bruno@clisp.org>
14399
14400         pipe2: Simplify code.
14401         * lib/pipe2.c (pipe2): Reduce code duplication.
14402
14403 2011-04-17  Bruno Haible  <bruno@clisp.org>
14404
14405         nonblocking: Add comment.
14406         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
14407
14408 2011-04-17  Bruno Haible  <bruno@clisp.org>
14409
14410         nonblocking: Add tests for sockets.
14411         * tests/test-nonblocking-socket.sh: New file.
14412         * tests/test-nonblocking-socket-main.c: New file.
14413         * tests/test-nonblocking-socket-child.c: New file.
14414         * tests/test-nonblocking-socket.h: New file.
14415         * tests/socket-server.h: New file.
14416         * tests/socket-client.h: New file.
14417         * modules/nonblocking-socket-tests: New file.
14418         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
14419
14420 2011-04-17  Bruno Haible  <bruno@clisp.org>
14421
14422         nonblocking: Add tests for pipes.
14423         * tests/test-nonblocking-pipe.sh: New file.
14424         * tests/test-nonblocking-pipe-main.c: New file.
14425         * tests/test-nonblocking-pipe-child.c: New file.
14426         * tests/test-nonblocking-pipe.h: New file.
14427         * tests/test-nonblocking-writer.h: New file.
14428         * tests/test-nonblocking-reader.h: New file.
14429         * tests/test-nonblocking-misc.h: New file.
14430         * modules/nonblocking-pipe-tests: New file.
14431         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
14432
14433 2011-04-16  Bruno Haible  <bruno@clisp.org>
14434
14435         gettext: Clarify the needed programmer actions.
14436         * modules/gettext (Notice): New field.
14437         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
14438
14439 2011-04-16  Bruno Haible  <bruno@clisp.org>
14440
14441         strchrnul: Tweak last commit.
14442         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
14443         bug.
14444         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
14445         as in _GL_FUNCDECL_SYS.
14446         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
14447         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
14448
14449 2011-04-15  Eric Blake  <eblake@redhat.com>
14450
14451         strchrnul: work around cygwin bug
14452         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
14453         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
14454         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
14455         * modules/string (Makefile.am): Substitute it.
14456         * lib/string.in.h (strchrnul): Use it.
14457
14458 2011-04-15  Bruno Haible  <bruno@clisp.org>
14459
14460         Don't require lib/stdio-write.c when only module 'stdio' is used.
14461         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
14462         invocation.
14463         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
14464
14465 2011-04-14  Bruno Haible  <bruno@clisp.org>
14466
14467         Support non-blocking pipe I/O in read() on native Windows.
14468         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
14469         (read): New declaration.
14470         * lib/read.c: New file.
14471         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
14472         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
14473         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
14474         vscanf): New declarations.
14475         * lib/stdio-read.c: New file.
14476         * m4/read.m4: New file.
14477         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
14478         REPLACE_READ.
14479         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
14480         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
14481         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
14482         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
14483         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
14484         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
14485         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
14486         * modules/read: New file.
14487         * modules/nonblocking (Files): Add lib/stdio-read.c.
14488         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
14489         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
14490         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
14491         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
14492         * modules/pread (Depends-on): Add read.
14493         * modules/safe-read (Depends-on): Likewise.
14494         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
14495         gets, scanf, vfscanf, vscanf): Verify signatures.
14496         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
14497         problem with non-blocking pipes.
14498         * doc/posix-functions/fgetc.texi: Likewise.
14499         * doc/posix-functions/fgets.texi: Likewise.
14500         * doc/posix-functions/fread.texi: Likewise.
14501         * doc/posix-functions/fscanf.texi: Likewise.
14502         * doc/posix-functions/getc.texi: Likewise.
14503         * doc/posix-functions/getchar.texi: Likewise.
14504         * doc/posix-functions/gets.texi: Likewise.
14505         * doc/posix-functions/scanf.texi: Likewise.
14506         * doc/posix-functions/vfscanf.texi: Likewise.
14507         * doc/posix-functions/vscanf.texi: Likewise.
14508
14509 2011-04-14  Bruno Haible  <bruno@clisp.org>
14510
14511         Support non-blocking pipe I/O in write() on native Windows.
14512         * lib/write.c (rpl_write): Split a write request that failed merely
14513         because the byte count was larger than the pipe buffer's size.
14514         * doc/posix-functions/write.texi: Mention the problem with large byte
14515         counts.
14516
14517 2011-04-14  Bruno Haible  <bruno@clisp.org>
14518
14519         wchar: Ensure that wchar_t gets defined on uClibc.
14520         * lib/wchar.in.h: On uClibc, include <stddef.h>.
14521         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
14522
14523 2011-04-13  Bruno Haible  <bruno@clisp.org>
14524
14525         safe-write, full-read: Avoid unnecessary compilation units.
14526         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
14527         (Depends-on): Remove safe-read. Add ssize_t.
14528         * modules/full-read (Files): Add lib/full-write.c.
14529         (Depends-on): Add full-write.
14530
14531 2011-04-13  Bruno Haible  <bruno@clisp.org>
14532
14533         Support non-blocking pipe I/O and SIGPIPE in pwrite().
14534         * modules/pwrite (Depends-on): Add 'write'.
14535
14536 2011-04-13  Bruno Haible  <bruno@clisp.org>
14537
14538         Support non-blocking pipe I/O in write() on native Windows.
14539         * lib/unistd.in.h (write): Enable replacement also if
14540         GNULIB_UNISTD_H_NONBLOCKING is 1.
14541         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
14542         (rpl_write): When failing to write on a non-blocking pipe, change
14543         errno from ENOSPC to EAGAIN.
14544         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
14545         putchar, puts, vfprintf, vprintf): Enable replacement also if
14546         GNULIB_STDIO_H_NONBLOCKING is 1.
14547         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
14548         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
14549         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
14550         CALL_WITH_SIGPIPE_EMULATION.
14551         (CALL_WITH_SIGPIPE_EMULATION): Use them.
14552         * m4/nonblocking.m4: New file.
14553         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
14554         for non-blocking I/O support.
14555         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14556         GNULIB_UNISTD_H_NONBLOCKING.
14557         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
14558         required for non-blocking I/O support.
14559         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
14560         * modules/nonblocking (Files): Add m4/nonblocking.m4,
14561         lib/stdio-write.c, m4/asm-underscore.m4.
14562         (Depends-on): Add stdio, unistd.
14563         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
14564         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
14565         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
14566         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
14567         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
14568         problem with non-blocking pipes.
14569         * doc/posix-functions/fputc.texi: Likewise.
14570         * doc/posix-functions/fputs.texi: Likewise.
14571         * doc/posix-functions/fwrite.texi: Likewise.
14572         * doc/posix-functions/printf.texi: Likewise.
14573         * doc/posix-functions/putc.texi: Likewise.
14574         * doc/posix-functions/putchar.texi: Likewise.
14575         * doc/posix-functions/puts.texi: Likewise.
14576         * doc/posix-functions/vfprintf.texi: Likewise.
14577         * doc/posix-functions/vprintf.texi: Likewise.
14578         * doc/posix-functions/write.texi: Likewise.
14579
14580 2011-04-10  Jim Meyering  <meyering@redhat.com>
14581
14582         maint.mk: prohibit doubled words
14583         Detect them also when they're separated by a newline.
14584         There are 3 ways to customize it:
14585           - disable the test on a per file basis, as usual with rules using
14586             $(VC_LIST_EXCEPT)
14587           - replace the default doubled-word-selecting regexp (affects all files)
14588           - ignore a particular file-vs-doubled-word match
14589         I nearly used that last one to ignore the "is is" match in
14590         coreutils' NEWS file, since the text was "ls -is is ..."
14591         To do that, I would have added this line to cfg.mk:
14592           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
14593         but it would have ignored any "is is" match in NEWS.
14594         Low probability, but still...
14595         Instead, I changed the text, slightly:
14596           -  ls -is is now consistent with ls -lis in ignoring values returned
14597           +  "ls -is" is now consistent with ls -lis in ignoring values returned
14598         * top/maint.mk (prohibit_double_word_RE_): Provide default.
14599         (prohibit_doubled_word_): Define.
14600         (sc_prohibit_doubled_word): New rule.
14601         (sc_prohibit_the_the): Remove.  Subsumed by the above.
14602
14603 2011-04-10  Jim Meyering  <meyering@redhat.com>
14604
14605         maint: fix doubled-word typo in comment
14606         * m4/gethostname.m4: s/is is/it is/
14607         * m4/getdomainname.m4: Likewise.
14608
14609 2011-04-10  Jim Meyering  <meyering@redhat.com>
14610
14611         maint: remove doubled word: s/it it/it/
14612         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
14613
14614 2011-04-10  Jim Meyering  <meyering@redhat.com>
14615
14616         maint.mk: remove useless semicolon and backslash
14617         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
14618         semicolon and backslash.
14619
14620 2011-04-10  Bruno Haible  <bruno@clisp.org>
14621
14622         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
14623         * modules/stdint-tests (Depends-on): Add wchar.
14624
14625 2011-04-10  Jim Meyering  <meyering@redhat.com>
14626
14627         maint: remove doubled words in comments, e.g., s/a a/a/
14628         * lib/strptime.c (day_of_the_week): s/the the/the/
14629         * tests/test-chown.h (test_chown): s/a a/a/
14630
14631         test-chown.h: correct a cast
14632         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
14633         when the destination is a stat.st_gid.
14634
14635 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
14636
14637         getaddrinfo: Fix test for sa_len member.
14638         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
14639         include <sys/types.h> before <sys/socket.h>.
14640
14641 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
14642
14643         maint: change "can not" to "cannot"
14644         * doc/posix-functions/iconv.texi (iconv): This one crossed line
14645         boundaries.
14646
14647 2011-04-09  Jim Meyering  <meyering@redhat.com>
14648
14649         maint: change "a a" to "a"
14650         * tests/test-lchown.h (test_lchown): s/a a/a/
14651
14652         maint.mk: prohibit \<the the\>
14653         * top/maint.mk (sc_prohibit_the_the): New rule.
14654
14655         maint: fix "the the" in comment
14656         * lib/count-one-bits.h: s/the the/the/
14657
14658         maint: change "can not" to "cannot"
14659         But do not change the occurrences in maintain.texi or in
14660         build-aux/po/Makefile.in.in, which I presume comes from gettext.
14661         * doc/gnulib-tool.texi: s/can not/cannot/
14662         * doc/posix-functions/accept.texi (accept): Likewise.
14663         * doc/posix-functions/socket.texi (socket): Likewise.
14664         * lib/mbrtowc.c: Likewise.
14665
14666         maint.mk: prohibit use of "can not"
14667         * top/maint.mk (sc_prohibit_can_not): New rule.
14668         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
14669
14670 2011-04-09  Bruno Haible  <bruno@clisp.org>
14671
14672         careadlinkat: Guard against misuse of careadlinkatcwd.
14673         * lib/careadlinkat.c: Include <stdlib.h>.
14674         (careadlinkatcwd): Check that the fd argument is as expected.
14675
14676 2011-04-09  Bruno Haible  <bruno@clisp.org>
14677
14678         careadlinkat: Use common coding style.
14679         * lib/careadlinkat.c: Move gnulib includes after system includes.
14680
14681 2011-04-09  Bruno Haible  <bruno@clisp.org>
14682
14683         careadlinkat: Clarify specification.
14684         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
14685         (careadlinkatcwd): Add comment.
14686         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
14687
14688 2011-04-09  Bruno Haible  <bruno@clisp.org>
14689
14690         areadlinkat: Avoid link error on many platforms.
14691         * modules/areadlinkat (Depends-on): Add areadlink.
14692
14693 2011-04-09  Bruno Haible  <bruno@clisp.org>
14694
14695         allocator, careadlinkat: Fix double-inclusion guard.
14696         * lib/allocator.h: Fix double-inclusion guard.
14697         * lib/careadlinkat.h: Likewise.
14698
14699 2011-04-09  Bruno Haible  <bruno@clisp.org>
14700
14701         relocatable-prog-wrapper: Update after module 'areadlink' changed.
14702         * lib/relocwrapper.c: Update dependencies hierarchy.
14703         * build-aux/install-reloc: Update list of files to be compiled.
14704         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
14705         lib/allocator.[hc].
14706
14707 2011-04-08  Eric Blake  <eblake@redhat.com>
14708
14709         strftime: silence gnulib-tool warning
14710         * modules/strftime-tests (Depends-on): Drop automatic dependency.
14711
14712 2011-04-08  Bruno Haible  <bruno@clisp.org>
14713
14714         verify: Fix syntax error with GCC 4.6 in C++ mode.
14715         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
14716         (HAVE_STATIC_ASSERT): New macro.
14717         (verify_true, verify): Use 'static_assert' if it is supported and
14718         '_Static_assert' is not supported.
14719
14720 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
14721
14722         allocator: New module.
14723         * modules/allocator, lib/allocator.c: New files.
14724         * lib/allocator.h (stdlib_allocator): New decl.
14725         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
14726         Remove.  Do not include <stdlib.h>.
14727         (careadlinkat): Use stdlib_allocator instead of rolling our own.
14728         * modules/careadlinkat (Files): Remove lib/allocator.h.
14729         (Depends-on): Add allocator.
14730
14731         stdlib: let modules use system malloc, realloc
14732         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
14733         if !_GL_USE_STDLIB_ALLOC.
14734         (malloc, realloc): Limit this change to a smaller scope.
14735
14736         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
14737         (malloc, realloc): Don't #undef; no longer needed.
14738         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
14739         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
14740         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
14741         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
14742         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
14743         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
14744         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
14745         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
14746
14747         careadlinkat: rename members to avoid problem
14748         * lib/allocator.h (struct allocator): Rename members from
14749         malloc/realloc to allocate/reallocate, to avoid problems if malloc
14750         and realloc are #define'd.  Reported by Eric Blake in
14751         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
14752         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
14753
14754 2011-04-08  Eric Blake  <eblake@redhat.com>
14755
14756         nonblocking: reduce dependency
14757         * tests/test-nonblocking.c: Only test sockets when in use.
14758         * modules/nonblocking-tests (Depends-on): Drop socket.
14759         (Makefile.am): Link even if sockets are not present.
14760         * modules/pipe2-tests (Makefile.am): Likewise.
14761         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
14762
14763         pipe2: fix O_NONBLOCK support on mingw
14764         * modules/pipe2 (Depends-on): Add nonblocking.
14765         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
14766         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
14767         * tests/test-nonblocking.c (main): Likewise.
14768         * modules/pipe2-tests (Makefile.am): Avoid link failure.
14769
14770         fcntl-h: fix O_ACCMODE on cygwin
14771         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
14772         * lib/fcntl.in.h (O_ACCMODE): Fix it.
14773
14774         pipe-filter: drop O_NONBLOCK workarounds
14775         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
14776         * modules/pipe-filter-ii (Depends-on): Likewise.
14777         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
14778
14779         nonblocking: provide O_NONBLOCK for mingw
14780         * modules/nonblocking (Depends-on): Add open.
14781         (configure.ac): Set new witness macro.
14782         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
14783         * modules/fcntl-h (Makefile.am): Substitute it.
14784         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
14785         nonblocking module is in use.
14786         * lib/nonblocking.c: Adjust portability test.
14787         * lib/open.c (open): Don't let native open see gnulib flag.
14788         * tests/test-fcntl-h.c (main): Enhance test.
14789         * tests/test-open.h (test_open): Likewise.
14790         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
14791
14792         careadlinkat: fix compilation error on mingw
14793         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
14794         within struct allocator.
14795
14796 2011-04-06  Eric Blake  <eblake@redhat.com>
14797
14798         binary-io: relicense under LGPLv2+
14799         * modules/binary-io (License): Relax to LGPLv2+.
14800         Requested for libvirt, and required by pipe2.
14801
14802 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
14803
14804         verify: use _Static_assert if available
14805         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
14806         (verify_true, verify): Use it if available.  This generates better
14807         diagnostics with GCC 4.6.0 and later.
14808
14809 2011-04-05  Bruno Haible  <bruno@clisp.org>
14810
14811         Remove leftover generated .h files after config.status changed.
14812
14813         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
14814         GL_GENERATE_ALLOCA_H.
14815         * modules/alloca-opt (Makefile.am): Remove alloca.h if
14816         GL_GENERATE_ALLOCA_H evaluates to false.
14817
14818         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
14819         GL_GENERATE_ARGZ_H.
14820         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
14821         evaluates to false.
14822
14823         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
14824         GL_GENERATE_BYTESWAP_H.
14825         * modules/byteswap (Makefile.am): Remove byteswap.h if
14826         GL_GENERATE_BYTESWAP_H evaluates to false.
14827
14828         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
14829         GL_GENERATE_ERRNO_H.
14830         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
14831         evaluates to false.
14832
14833         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
14834         GL_GENERATE_FLOAT_H.
14835         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
14836         evaluates to false.
14837
14838         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
14839         GL_GENERATE_FNMATCH_H.
14840         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
14841         GL_GENERATE_FNMATCH_H evaluates to false.
14842
14843         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
14844         GL_GENERATE_GLOB_H.
14845         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
14846         evaluates to false.
14847
14848         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
14849         automake conditional GL_GENERATE_ICONV_H.
14850         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
14851         evaluates to false.
14852
14853         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
14854         GL_GENERATE_NETINET_IN_H.
14855         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
14856         GL_GENERATE_NETINET_IN_H evaluates to false.
14857
14858         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
14859         conditional GL_GENERATE_PTHREAD_H.
14860         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
14861         * modules/pthread (Makefile.am): Remove pthread.h if
14862         GL_GENERATE_PTHREAD_H evaluates to false.
14863
14864         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
14865         GL_GENERATE_SCHED_H.
14866         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
14867         evaluates to false.
14868
14869         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
14870         conditional GL_GENERATE_SELINUX_CONTEXT_H.
14871         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
14872         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
14873
14874         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
14875         GL_GENERATE_STDARG_H.
14876         * modules/stdarg (Makefile.am): Remove stdarg.h if
14877         GL_GENERATE_STDARG_H evaluates to false.
14878
14879         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
14880         GL_GENERATE_STDBOOL_H.
14881         * modules/stdbool (Makefile.am): Remove stdbool.h if
14882         GL_GENERATE_STDBOOL_H evaluates to false.
14883
14884         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
14885         conditional GL_GENERATE_STDDEF_H.
14886         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
14887         * modules/stddef (Makefile.am): Remove stddef.h if
14888         GL_GENERATE_STDDEF_H evaluates to false.
14889
14890         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
14891         GL_GENERATE_STDINT_H.
14892         * modules/stdint (Makefile.am): Remove stdint.h if
14893         GL_GENERATE_STDINT_H evaluates to false.
14894
14895         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
14896         GL_GENERATE_SYSEXITS_H.
14897         * modules/sysexits (Makefile.am): Remove sysexits.h if
14898         GL_GENERATE_SYSEXITS_H evaluates to false.
14899
14900         Reported by Karl Berry and Ralf Wildenhues.
14901
14902 2011-04-05  Bruno Haible  <bruno@clisp.org>
14903
14904         Ensure to rebuild generated .h files when config.status has changed.
14905         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
14906         config.status.
14907         * modules/ctype (Makefile.am): Likewise.
14908         * modules/dirent (Makefile.am): Likewise.
14909         * modules/errno (Makefile.am): Likewise.
14910         * modules/fcntl-h (Makefile.am): Likewise.
14911         * modules/float (Makefile.am): Likewise.
14912         * modules/getopt-posix (Makefile.am): Likewise.
14913         * modules/glob (Makefile.am): Likewise.
14914         * modules/iconv-h (Makefile.am): Likewise.
14915         * modules/inttypes (Makefile.am): Likewise.
14916         * modules/langinfo (Makefile.am): Likewise.
14917         * modules/locale (Makefile.am): Likewise.
14918         * modules/math (Makefile.am): Likewise.
14919         * modules/netdb (Makefile.am): Likewise.
14920         * modules/netinet_in (Makefile.am): Likewise.
14921         * modules/poll-h (Makefile.am): Likewise.
14922         * modules/pthread (Makefile.am): Likewise.
14923         * modules/pty (Makefile.am): Likewise.
14924         * modules/sched (Makefile.am): Likewise.
14925         * modules/search (Makefile.am): Likewise.
14926         * modules/selinux-h (Makefile.am): Likewise.
14927         * modules/signal (Makefile.am): Likewise.
14928         * modules/spawn (Makefile.am): Likewise.
14929         * modules/stdarg (Makefile.am): Likewise.
14930         * modules/stdbool (Makefile.am): Likewise.
14931         * modules/stddef (Makefile.am): Likewise.
14932         * modules/stdint (Makefile.am): Likewise.
14933         * modules/stdio (Makefile.am): Likewise.
14934         * modules/stdlib (Makefile.am): Likewise.
14935         * modules/string (Makefile.am): Likewise.
14936         * modules/strings (Makefile.am): Likewise.
14937         * modules/sys_file (Makefile.am): Likewise.
14938         * modules/sys_ioctl (Makefile.am): Likewise.
14939         * modules/sys_select (Makefile.am): Likewise.
14940         * modules/sys_socket (Makefile.am): Likewise.
14941         * modules/sys_stat (Makefile.am): Likewise.
14942         * modules/sys_time (Makefile.am): Likewise.
14943         * modules/sys_times (Makefile.am): Likewise.
14944         * modules/sys_utsname (Makefile.am): Likewise.
14945         * modules/sys_wait (Makefile.am): Likewise.
14946         * modules/sysexits (Makefile.am): Likewise.
14947         * modules/termios (Makefile.am): Likewise.
14948         * modules/time (Makefile.am): Likewise.
14949         * modules/unistd (Makefile.am): Likewise.
14950         * modules/wchar (Makefile.am): Likewise.
14951         * modules/wctype-h (Makefile.am): Likewise.
14952         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
14953
14954 2011-04-05  Bruno Haible  <bruno@clisp.org>
14955
14956         pipe2: Relicense under LGPLv2+.
14957         * modules/pipe2 (License): Change to LGPLv2+.
14958         Requested by Eric Blake, for libvirt.
14959
14960 2011-04-05  Bruce Korb  <bkorb@gnu.org>
14961
14962         bootstrap: compute gnulib_extra_files after updating build_aux
14963         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
14964         change build_aux or also supply gnulib_extra_files.  Handle correctly.
14965
14966 2011-04-05  Eric Blake  <eblake@redhat.com>
14967
14968         bootstrap: preserve git whitelist item sorting
14969         * build-aux/bootstrap (sort_patterns): New function.
14970         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
14971
14972 2011-04-05  Simon Josefsson  <simon@josefsson.org>
14973
14974         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
14975         sc_space_tab check.
14976
14977 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
14978
14979         areadlink, areadlinkat: rewrite in terms of careadlinkat
14980         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
14981         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
14982         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
14983         (malloc, realloc): Remove #undefs.
14984         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
14985         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
14986         readlink, ssize_t, stdint, unistd.
14987         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
14988         areadlink, stdint.
14989
14990         careadlinkat: new module
14991         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
14992         * modules/careadlinkat: New files, written by me with
14993         a review and feedback from Ben Pfaff in
14994         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
14995
14996 2011-04-01  Bruno Haible  <bruno@clisp.org>
14997
14998         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
14999         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
15000         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
15001         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
15002         Reported by Bruce Korb <bruce.korb@gmail.com>.
15003
15004 2011-04-01  Bruno Haible  <bruno@clisp.org>
15005
15006         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
15007         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
15008         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
15009         * modules/wcpcpy (Depends-on): Add extensions.
15010         * modules/wcpncpy (Depends-on): Likewise.
15011         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
15012         systems.
15013         * doc/posix-functions/wcpncpy.texi: Likewise.
15014         * doc/posix-functions/wcwidth.texi: Likewise.
15015
15016 2011-03-31  Eric Blake  <eblake@redhat.com>
15017
15018         nonblocking: fix mingw test failures
15019         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
15020         non-blocking flag on regular file.
15021         (get_nonblocking_flag): Set errno on invalid fd.
15022         * tests/test-nonblocking.c (main): Avoid test failure on
15023         directories if fchdir is not active.
15024         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
15025
15026 2011-03-31  Bruno Haible  <bruno@clisp.org>
15027
15028         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
15029         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
15030         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
15031         Reported by Simon Josefsson <simon@josefsson.org>.
15032
15033 2011-03-31  Bruno Haible  <bruno@clisp.org>
15034         and Eric Blake  <eblake@redhat.com>
15035
15036         nonblocking: new module
15037         * modules/nonblocking: New module.
15038         * modules/nonblocking-tests: Likewise.
15039         * lib/nonblocking.h: New file.
15040         * lib/nonblocking.c: Likewise.
15041         * tests/test-nonblocking.c: New test.
15042         * lib/ioctl.c (ioctl) [mingw]: Update comment.
15043
15044 2011-03-30  Bruno Haible  <bruno@clisp.org>
15045
15046         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
15047         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
15048         instead of 'printf' format for GCC >= 4.4.
15049         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
15050         (fprintf, printf, vfprintf, vprintf): Declare with
15051         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
15052         the system's vfprintf() function.
15053         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
15054
15055 2011-03-30  Eric Blake  <eblake@redhat.com>
15056
15057         passfd: fix scoping bug
15058         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
15059         before sendmsg/recvmsg.
15060
15061         passfd: standardize coding conventions
15062         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
15063         can be learned at compile time.
15064         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
15065         ifdefs.
15066         (sendfd, recvfd): Follow gnulib code conventions.
15067
15068         passfd: fix incorrect sendmsg arguments
15069         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
15070         incorrect msg_controllen value.
15071         * modules/passfd-tests (Depends-on): Check for alarm.
15072         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
15073         Reported by Bastien ROUCARIES.
15074
15075 2011-03-30  Bruno Haible  <bruno@clisp.org>
15076
15077         c-strcasestr: Relicense under LGPLv2+.
15078         * modules/c-strcasestr (License): Change to LGPLv2+.
15079         Requested by Eric Blake, for libvirt.
15080
15081 2011-03-30  Simon Josefsson  <simon@josefsson.org>
15082
15083         * users.txt: Add libidn2.  Fix libtasn1 link.
15084
15085 2011-03-30  Jim Meyering  <meyering@redhat.com>
15086
15087         tests: readlink* ("",... fails with EINVAL on newer kernels
15088         readlink and readlinkat have typically failed with ENOENT for
15089         the invalid, empty file name,  "".  However, with the advent
15090         of linux-2.6.39, they fail with EINVAL.
15091         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
15092         when operating on the empty file name.
15093         * tests/test-readlink.h (test_readlink): Likewise.
15094
15095 2011-03-29  Bruno Haible  <bruno@clisp.org>
15096
15097         Relicense some modules under LGPLv2+, for libidn2.
15098         * modules/array-mergesort (License): Change to LGPLv2+.
15099         * modules/c-strcaseeq (License): Likewise.
15100         * modules/striconveh (License): Likewise.
15101         * modules/striconveha (License): Likewise.
15102         * modules/uniconv/base (License): Likewise.
15103         * modules/uniconv/u8-conv-from-enc (License): Likewise.
15104         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
15105         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
15106         * modules/unictype/base (License): Likewise.
15107         * modules/unictype/bidiclass-of (License): Likewise.
15108         * modules/unictype/category-M (License): Likewise.
15109         * modules/unictype/category-none (License): Likewise.
15110         * modules/unictype/category-of (License): Likewise.
15111         * modules/unictype/category-test (License): Likewise.
15112         * modules/unictype/category-test-withtable (License): Likewise.
15113         * modules/unictype/combining-class (License): Likewise.
15114         * modules/unictype/joiningtype-of (License): Likewise.
15115         * modules/unictype/scripts (License): Likewise.
15116         * modules/uninorm/base (License): Likewise.
15117         * modules/uninorm/canonical-decomposition (License): Likewise.
15118         * modules/uninorm/composition (License): Likewise.
15119         * modules/uninorm/decompose-internal (License): Likewise.
15120         * modules/uninorm/decomposition-table (License): Likewise.
15121         * modules/uninorm/nfc (License): Likewise.
15122         * modules/uninorm/nfd (License): Likewise.
15123         * modules/uninorm/u32-normalize (License): Likewise.
15124         * modules/unistr/base (License): Likewise.
15125         * modules/unistr/u32-cpy (License): Likewise.
15126         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
15127         * modules/unistr/u32-to-u8 (License): Likewise.
15128         * modules/unistr/u32-uctomb (License): Likewise.
15129         * modules/unistr/u8-check (License): Likewise.
15130         * modules/unistr/u8-mblen (License): Likewise.
15131         * modules/unistr/u8-mbtouc (License): Likewise.
15132         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
15133         * modules/unistr/u8-mbtoucr (License): Likewise.
15134         * modules/unistr/u8-prev (License): Likewise.
15135         * modules/unistr/u8-strlen (License): Likewise.
15136         * modules/unistr/u8-to-u32 (License): Likewise.
15137         * modules/unistr/u8-uctomb (License): Likewise.
15138         * modules/unitypes (License): Likewise.
15139         Requested by Simon Josefsson.
15140
15141 2011-03-29  Simon Josefsson  <simon@josefsson.org>
15142
15143         lib-symbol-visibility: Add a notice.
15144         * modules/lib-symbol-visibility (Notice): New field.
15145
15146 2011-03-29  Bruno Haible  <bruno@clisp.org>
15147
15148         getaddrinfo: Doc fix.
15149         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
15150         section "fixed in Gnulib".
15151
15152 2011-03-28  Simon Josefsson  <simon@josefsson.org>
15153
15154         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
15155         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
15156
15157 2011-03-26  Bruno Haible  <bruno@clisp.org>
15158
15159         unictype/property-byname: Reduce the number of load-time relocations.
15160         * lib/unictype/pr_byname.c: Include <stdlib.h>.
15161         (UC_PROPERTY_INDEX_*): New enumeration values.
15162         (uc_property_byname): Convert an index from the lookup table to an
15163         uc_property_t.
15164         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
15165         values.
15166
15167 2011-03-26  Bruno Haible  <bruno@clisp.org>
15168
15169         unictype/property-byname: Allow omitted word separators and aliases.
15170         * lib/unictype/pr_byname.gperf: Add property names without word
15171         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
15172         for 'space'.
15173
15174 2011-03-26  Bruno Haible  <bruno@clisp.org>
15175
15176         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
15177         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
15178         also hyphens to space.
15179         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
15180         without spaces.
15181         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
15182
15183 2011-03-26  Bruno Haible  <bruno@clisp.org>
15184
15185         unictype/joiningtype-byname: Recognize long names as well.
15186         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
15187         a long name.
15188         * lib/unictype/joiningtype_byname.c: Include <string.h>,
15189         unictype/joiningtype_byname.h.
15190         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
15191         * lib/unictype/joiningtype_byname.gperf: New file.
15192         * modules/unictype/joiningtype-byname (Files): Add
15193         lib/unictype/joiningtype_byname.gperf.
15194         (Depends-on): Add gperf.
15195         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
15196         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
15197         long names.
15198
15199         Tests for module 'unictype/joiningtype-longname'.
15200         * modules/unictype/joiningtype-longname-tests: New file.
15201         * tests/unictype/test-joiningtype_longname.c: New file.
15202
15203         New module 'unictype/joiningtype-longname'.
15204         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
15205         * lib/unictype/joiningtype_longname.c: New file.
15206         * modules/unictype/joiningtype-longname: New file.
15207         * modules/unictype/joiningtype-all (Depends-on): Add
15208         unictype/joiningtype-longname.
15209
15210 2011-03-26  Bruno Haible  <bruno@clisp.org>
15211
15212         unictype/bidiclass-byname: Recognize long names as well.
15213         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
15214         name.
15215         * lib/unictype/bidi_byname.c: Include <string.h>,
15216         unictype/bidi_byname.h.
15217         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
15218         * lib/unictype/bidi_byname.gperf: New file.
15219         * modules/unictype/bidiclass-byname (Files): Add
15220         lib/unictype/bidi_byname.gperf.
15221         (Depends-on): Add gperf.
15222         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
15223         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
15224         long names.
15225
15226         Tests for module 'unictype/bidiclass-longname'.
15227         * modules/unictype/bidiclass-longname-tests: New file.
15228         * tests/unictype/test-bidi_longname.c: New file.
15229
15230         New module 'unictype/bidiclass-longname'.
15231         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
15232         * lib/unictype/bidi_longname.c: New file.
15233         * modules/unictype/bidiclass-longname: New file.
15234         * modules/unictype/bidiclass-all (Depends-on): Add
15235         unictype/bidiclass-longname.
15236
15237 2011-03-26  Bruno Haible  <bruno@clisp.org>
15238
15239         unictype/bidi*: Rename modules.
15240         * modules/unictype/bidiclass-all: Renamed from
15241         modules/unictype/bidicategory-all.
15242         * modules/unictype/bidiclass-name: Renamed from
15243         modules/unictype/bidiclass-name.
15244         (Description): Update.
15245         * modules/unictype/bidiclass-name-tests: Renamed from
15246         modules/unictype/bidicategory-name-tests.
15247         * modules/unictype/bidiclass-byname: Renamed from
15248         modules/unictype/bidicategory-byname.
15249         (Description): Update.
15250         * modules/unictype/bidiclass-byname-tests: Renamed from
15251         modules/unictype/bidicategory-byname-tests.
15252         * modules/unictype/bidiclass-of: Renamed from
15253         modules/unictype/bidicategory-of.
15254         (Description): Update.
15255         * modules/unictype/bidiclass-of-tests: Renamed from
15256         modules/unictype/bidicategory-of-tests.
15257         * modules/unictype/bidiclass-test: Renamed from
15258         modules/unictype/bidicategory-test.
15259         (Description): Update.
15260         * modules/unictype/bidiclass-test-tests: Renamed from
15261         modules/unictype/bidicategory-test-tests.
15262         * modules/unictype/bidicategory-all: New file, a simple redirection.
15263         * modules/unictype/bidicategory-name: Likewise.
15264         * modules/unictype/bidicategory-byname: Likewise.
15265         * modules/unictype/bidicategory-of: Likewise.
15266         * modules/unictype/bidicategory-test: Likewise.
15267         * modules/unictype/property-bidi-* (Dependencies): Update.
15268         * lib/unictype/bidi_*.c: Update comment.
15269
15270 2011-03-26  Bruno Haible  <bruno@clisp.org>
15271
15272         unictype/bidi*: Rename functions, part 2.
15273         * modules/unictype/bidicategory-name (configure.ac): Update required
15274         libunistring version.
15275         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
15276
15277 2011-03-25  Bruno Haible  <bruno@clisp.org>
15278
15279         New module 'unictype/combining-class-all'.
15280         * modules/unictype/combining-class-all: New file.
15281
15282         Tests for module 'unictype/combining-class-byname'.
15283         * modules/unictype/combining-class-byname-tests: New file.
15284         * tests/unictype/test-combiningclass_byname.c: New file.
15285
15286         New module 'unictype/combining-class-byname'.
15287         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
15288         * lib/unictype/combiningclass_byname.c: New file.
15289         * lib/unictype/combiningclass_byname.gperf: New file.
15290         * modules/unictype/combining-class-byname: New file.
15291
15292         Tests for module 'unictype/combining-class-longname'.
15293         * modules/unictype/combining-class-longname-tests: New file.
15294         * tests/unictype/test-combiningclass_longname.c: New file.
15295
15296         New module 'unictype/combining-class-longname'.
15297         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
15298         * lib/unictype/combiningclass_longname.c: New file.
15299         * modules/unictype/combining-class-longname: New file.
15300
15301         Tests for module 'unictype/combining-class-name'.
15302         * modules/unictype/combining-class-name-tests: New file.
15303         * tests/unictype/test-combiningclass_name.c: New file.
15304
15305         New module 'unictype/combining-class-name'.
15306         * lib/unictype.in.h (uc_combining_class_name): New declaration.
15307         * lib/unictype/combiningclass_name.c: New file.
15308         * modules/unictype/combining-class-name: New file.
15309
15310 2011-03-25  Bruno Haible  <bruno@clisp.org>
15311
15312         unictype/combining-class: Rename source files.
15313         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
15314         of unictype/combining.h.
15315         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
15316         Update.
15317         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
15318         * modules/unictype/combining-class (Description): Fix.
15319         (Files, Makefile.am): Update.
15320         * tests/unictype/test-combiningclass.c: Renamed from
15321         tests/unictype/test-combining.c.
15322         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
15323
15324 2011-03-25  Bruno Haible  <bruno@clisp.org>
15325
15326         unictype: Update list of canonical combining classes.
15327         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
15328
15329 2011-03-25  Bruno Haible  <bruno@clisp.org>
15330
15331         unictype/category-byname: Recognize long names as well.
15332         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
15333         a long name.
15334         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
15335         unictype/categ_byname.h.
15336         (UC_CATEGORY_INDEX_*): New enumeration values.
15337         (uc_general_category_byname): Use uc_general_category_lookup and
15338         convert from index to value.
15339         * lib/unictype/categ_byname.gperf: New file.
15340         * modules/unictype/category-byname (Files): Add
15341         lib/unictype/categ_byname.gperf.
15342         (Depends-on): Add gperf.
15343         (Makefile.am): Add rule for generating unictype/categ_byname.h.
15344         * tests/unictype/test-categ_byname.c (main): Test the recognition of
15345         long names.
15346
15347         Tests for module 'unictype/category-longname'.
15348         * modules/unictype/category-longname-tests: New file.
15349         * tests/unictype/test-categ_longname.c: New file.
15350
15351         New module 'unictype/category-longname'.
15352         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
15353         * lib/unictype/categ_longname.c: New file.
15354         * modules/unictype/category-longname: New file.
15355         * modules/unictype/category-all (Depends-on): Add it.
15356
15357 2011-03-25  Bruno Haible  <bruno@clisp.org>
15358
15359         Tests for module 'unictype/category-LC'.
15360         * modules/unictype/category-LC-tests: New file.
15361         * tests/unictype/test-categ_LC.c: New file, automatically generated.
15362
15363         New module 'unictype/category-LC'.
15364         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
15365         (UC_CATEGORY_LC): New declaration.
15366         (UC_CASED_LETTER): New macro.
15367         * lib/gen-uni-tables.c (is_category_LC): New function.
15368         (output_categories): Also handle category LC.
15369         (UC_CATEGORY_MASK_LC): New enumeration value.
15370         (general_category_byname): Also handle category LC.
15371         * lib/unictype/categ_LC.c: New file.
15372         * lib/unictype/categ_LC.h: New file, automatically generated.
15373         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
15374         category LC.
15375         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
15376         * modules/unictype/category-LC: New file.
15377         * modules/unictype/category-byname (Depends-on): Add
15378         unictype/category-LC.
15379         * modules/unictype/category-all (Depends-on): Likewise.
15380
15381 2011-03-25  Eric Blake  <eblake@redhat.com>
15382
15383         xmalloc: revert yesterday's regression
15384         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
15385         realloc's underlying behavior (allowing allocation of zero-size
15386         objects, especially if malloc-gnu is also in use).
15387
15388 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
15389
15390         maint.mk: add missing version to VC-tag
15391         * top/maint.mk: git tag was missing actual tag name; add it.
15392
15393         valgrind: do leak checking, and exit with code 1 on error (not 0)
15394         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
15395         to VALGRIND.
15396
15397 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
15398
15399         posix-modules: say what it does.
15400         * posix-modules: Add a line to the --help output saying what it does.
15401
15402 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
15403
15404         xmalloc: Do not leak if underlying realloc is C99 compatible.
15405         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
15406         This avoids a leak on C99-based systems.  See
15407         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
15408
15409 2011-03-24  Eric Blake  <eblake@redhat.com>
15410
15411         realloc: document portability problem
15412         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
15413         passing 0 size to realloc.
15414
15415 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
15416
15417         doc: update users.txt
15418         * users.txt: Add cvsps, tmpwatch
15419
15420 2011-03-23  Matt Rice  <ratmice@gmail.com>
15421
15422         doc: update users.txt
15423         * users.txt: Add gdb.
15424
15425 2011-03-23  Jim Meyering  <meyering@redhat.com>
15426
15427         doc: update users.txt
15428         Looking through matches up to the following URL (there are still
15429         several more pages), I found several projects that use gnulib:
15430         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
15431         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
15432         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
15433
15434 2011-03-22  Bruno Haible  <bruno@clisp.org>
15435
15436         unictype/bidi*: Rename functions.
15437         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
15438         uc_bidi_class, uc_is_bidi_class): New declarations.
15439         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
15440         uc_bidi_category_byname.
15441         (uc_bidi_category_byname): New function.
15442         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
15443         u_bidi_category_name.
15444         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
15445         (uc_bidi_category_name): New function.
15446         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
15447         uc_bidi_category.
15448         (uc_bidi_category): New function.
15449         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
15450         uc_is_bidi_category. Invoke uc_bidi_class.
15451         (uc_is_bidi_category): New function.
15452         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
15453         instead of uc_bidi_category_byname.
15454         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
15455         instead of uc_bidi_category_name.
15456         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
15457         uc_bidi_category.
15458         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
15459         instead of uc_is_bidi_category.
15460
15461 2011-03-21  Bruno Haible  <bruno@clisp.org>
15462
15463         New module 'unictype/joininggroup-all'.
15464         * modules/unictype/joininggroup-all: New file.
15465
15466         Tests for module 'unictype/joininggroup-of'.
15467         * modules/unictype/joininggroup-of-tests: New file.
15468         * tests/unictype/test-joininggroup_of.c: New file.
15469         * tests/unictype/test-joininggroup_of.h: New file, automatically
15470         generated by gen-uni-tables.
15471
15472         New module 'unictype/joininggroup-of'.
15473         * modules/unictype/joininggroup-of: New file.
15474         * lib/unictype/joininggroup_of.c: New file.
15475         * lib/unictype/joininggroup_of.h: New file, automatically generated by
15476         gen-uni-tables.
15477
15478         Tests for module 'unictype/joininggroup-byname'.
15479         * modules/unictype/joininggroup-byname-tests: New file.
15480         * tests/unictype/test-joininggroup_byname.c: New file.
15481
15482         New module 'unictype/joininggroup-byname'.
15483         * modules/unictype/joininggroup-byname: New file.
15484         * lib/unictype/joininggroup_byname.c: New file.
15485         * lib/unictype/joininggroup_byname.gperf: New file.
15486
15487         Tests for module 'unictype/joininggroup-name'.
15488         * modules/unictype/joininggroup-name-tests: New file.
15489         * tests/unictype/test-joininggroup_name.c: New file.
15490
15491         New module 'unictype/joininggroup-name'.
15492         * modules/unictype/joininggroup-name: New file.
15493         * lib/unictype/joininggroup_name.c: New file.
15494         * lib/unictype/joininggroup_name.h: New file.
15495
15496         New module 'unictype/joiningtype-all'.
15497         * modules/unictype/joiningtype-all: New file.
15498
15499         Tests for module 'unictype/joiningtype-of'.
15500         * modules/unictype/joiningtype-of-tests: New file.
15501         * tests/unictype/test-joiningtype_of.c: New file.
15502         * tests/unictype/test-joiningtype_of.h: New file, automatically
15503         generated by gen-uni-tables.
15504
15505         New module 'unictype/joiningtype-of'.
15506         * modules/unictype/joiningtype-of: New file.
15507         * lib/unictype/joiningtype_of.c: New file.
15508         * lib/unictype/joiningtype_of.h: New file, automatically generated by
15509         gen-uni-tables.
15510
15511         Tests for module 'unictype/joiningtype-byname'.
15512         * modules/unictype/joiningtype-byname-tests: New file.
15513         * tests/unictype/test-joiningtype_byname.c: New file.
15514
15515         New module 'unictype/joiningtype-byname'.
15516         * modules/unictype/joiningtype-byname: New file.
15517         * lib/unictype/joiningtype_byname.c: New file.
15518
15519         Tests for module 'unictype/joiningtype-name'.
15520         * modules/unictype/joiningtype-name-tests: New file.
15521         * tests/unictype/test-joiningtype_name.c: New file.
15522
15523         New module 'unictype/joiningtype-name'.
15524         * modules/unictype/joiningtype-name: New file.
15525         * lib/unictype/joiningtype_name.c: New file.
15526
15527         unictype: Add support for Arabic shaping properties.
15528         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
15529         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
15530         declarations.
15531         (UC_JOINING_GROUP_*): New enumeration values.
15532         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
15533         declarations.
15534         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
15535         (unicode_joining_type): New variable.
15536         (UC_JOINING_GROUP_*): New enumeration values.
15537         (unicode_joining_group): New variable.
15538         (fill_arabicshaping, joining_type_as_c_identifier,
15539         output_joining_type_test, output_joining_type,
15540         joining_group_as_c_identifier, output_joining_group_test,
15541         output_joining_group): New functions.
15542         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
15543         fill_arabicshaping and output_joining_type_test, output_joining_type,
15544         output_joining_group_test, output_joining_group.
15545         Reported by Simon Josefsson.
15546
15547 2011-03-21  Jim Meyering  <meyering@redhat.com>
15548
15549         strftime: fix a bug in yesterday's change
15550         * lib/strftime.c (add): Accommodate width's initial value of -1.
15551         Otherwise, nstrftime would copy uninitialized data into
15552         the result buffer.
15553
15554 2011-03-21  Jim Meyering  <meyering@redhat.com>
15555
15556         tests: add strftime-tests module
15557         * tests/test-strftime.c: New file.
15558         * modules/strftime-tests: New module.
15559
15560 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
15561
15562         strftime: don't assume a byte count fits in 'int'
15563         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
15564         found this problem by static analysis, using gcc -Wstrict-overflow
15565         (GCC 4.5.2, x86-64).  This reported an optimization that depended
15566         on an integer overflow having undefined behavior, but it turns out
15567         that the argument is a size, which might not fit in 'int' anyway,
15568
15569 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
15570
15571         stdio: don't require ignore_value around fwrite
15572
15573         This patch works around libc bug 11959
15574         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
15575         Without this patch, applications must often write
15576         ignore_value (fwrite (...)) even though the ignore_value is
15577         not helpful here.  It's common to write many objects, using
15578         fwrite/printf/etc., and then use ferror to detect output error.
15579
15580         I considered making this patch optional, but decided against it,
15581         because libc is obviously being inconsistent here: there is no
15582         reason libc should insist that user code must inspect fwrite
15583         return's value without also insisting that it inspect printf's,
15584         putchar's, etc.  If user code wants to have a strict style where
15585         all these functions' values are checked (so that ferror need not
15586         be checked), we could add support for that style in a new gnulib
15587         module, but in the meantime it's better to be consistent and to
15588         support common usage.
15589
15590         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
15591         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
15592         that we are compiling in checking mode, and if not C++, and
15593         if not already wrapping fwrite for some other reason.
15594         (fwrite): #define to rpl_fwrite if the latter is defined.
15595
15596 2011-03-20  Bruno Haible  <bruno@clisp.org>
15597
15598         verror: Fix compilation error introduced on 2011-02-13.
15599         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
15600         instead of __attribute__.
15601         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15602
15603 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
15604             Bruno Haible  <bruno@clisp.org>
15605
15606         socklen: do not depend on sys_socket
15607         While trying to modify Emacs to use gnulib's socklen module,
15608         I discovered a circular dependency: socklen depends on sys_socket
15609         and vice versa.  Emacs can use socklen, but it does not need
15610         sys_socket because it has its own substitute for sys/socket.h.
15611         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
15612         gl_TYPE_SOCKLEN_T.
15613         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
15614         gl_PREREQ_SYS_H_SOCKET.
15615         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
15616         gl_PREREQ_SYS_H_SOCKET.
15617         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
15618         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
15619         * modules/socklen (Depends-on): Do not depend on sys_socket.
15620         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
15621
15622 2011-03-20  Jim Meyering  <meyering@redhat.com>
15623
15624         maint.mk: sort file names *after* new transformation
15625         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
15626         prefix would have led to an unwarranted failure in GNU parted.
15627         Sort after that transformation.
15628
15629 2011-03-19  Jim Meyering  <meyering@redhat.com>
15630
15631         maint.mk: fix po-file syntax-check rule
15632         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
15633         Patch by Bruno Haible.
15634
15635 2011-03-19  Bruno Haible  <bruno@clisp.org>
15636
15637         socklen: Update comment.
15638         * m4/socklen.m4: Update comment about platforms.
15639
15640 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
15641             Bruno Haible  <bruno@clisp.org>
15642
15643         inet_ntop, inet_pton: Simplify.
15644         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
15645         documented to provide socklen_t and we already depend on sys_socket.
15646         * modules/inet_pton (Depends-on): Likewise.
15647         * lib/arpa_inet.in.h: Adjust comment.
15648
15649 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
15650             Bruno Haible  <bruno@clisp.org>
15651
15652         netdb: Simplify.
15653         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
15654         documented to provide socklen_t and we already depend on sys_socket.
15655         * lib/netdb.in.h: Adjust comment.
15656
15657 2011-03-19  Bruno Haible  <bruno@clisp.org>
15658
15659         sys_socket, netdb: Document problem with socklen_t.
15660         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
15661         platforms.
15662         * doc/posix-headers/netdb.texi: Likewise.
15663
15664 2011-03-18  Eric Blake  <eblake@redhat.com>
15665
15666         maint.mk: let po check work in VPATH build
15667         * top/maint.mk (po_file): Allow cfg.mk override.
15668         (sc_po_check): Allow VPATH use.
15669         Reported by Jiri Denemark.
15670
15671 2011-03-16  Jim Meyering  <meyering@redhat.com>
15672
15673         maint.mk: allow fine-grained syntax-check exclusion via Make variables
15674         Before, you would have had to create one .x-sc_ file per rule in order
15675         to exempt offending files.  Now, you may instead use a Make variable --
15676         usually defined in cfg.mk -- whose name identifies the affected rule.
15677         * top/maint.mk (_sc_excl): Define.
15678         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
15679         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
15680
15681 2011-03-13  Bruno Haible  <bruno@clisp.org>
15682
15683         ignore-value tests: Avoid warnings.
15684         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
15685         empty for gcc < 3.4.
15686
15687 2011-03-13  Bruno Haible  <bruno@clisp.org>
15688
15689         passfd: Fix link error on Solaris.
15690         * modules/passfd (Description): Correct.
15691         (Depends-on): Add socketlib.
15692         (Link): New section.
15693         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
15694
15695 2011-03-13  Bruno Haible  <bruno@clisp.org>
15696
15697         passfd: Fix link error on AIX 5.2.
15698         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
15699
15700 2011-03-13  Bruno Haible  <bruno@clisp.org>
15701
15702         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
15703         * lib/sys_socket.in.h: Include <stddef.h>.
15704         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
15705         CMSG_FIRSTHDR. Remove unused variable.
15706
15707 2011-03-13  Bruno Haible  <bruno@clisp.org>
15708
15709         passfd: Fix compilation error on OpenBSD.
15710         * lib/passfd.c: Include <sys/uio.h>.
15711
15712 2011-03-13  Bruno Haible  <bruno@clisp.org>
15713
15714         passfd test: Fix warnings.
15715         * tests/test-passfd.c: Include <sys/wait.h>.
15716         (main): Fix typo.
15717
15718 2011-03-13  Bruno Haible  <bruno@clisp.org>
15719
15720         passfd module, part 4, tweaks.
15721         * tests/test-passfd.c: Reorder includes.
15722         (main): Fix perror and printf calls.
15723
15724 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
15725
15726         passfd module, part 4.
15727         * modules/passfd-tests: New file.
15728         * tests/test-passfd.c: New file.
15729
15730 2011-03-13  Jim Meyering  <meyering@redhat.com>
15731
15732         Makefile: rely on GNU make; derive syntax-check rule names
15733         Rather than requiring that each sc_ rule be listed as a dependent
15734         of "check", use features of GNU make to derive the list.
15735         * Makefile (syntax-check-rules): Define.
15736         (check): Depend on the new variable, not the hard-coded list.
15737
15738 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
15739             Bruno Haible  <bruno@clisp.org>
15740
15741         passfd module, part 3.
15742         * lib/passfd.h (recvfd): Add a flags argument.
15743         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
15744         (recvfd): Add a flags argument.
15745         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
15746         exists.
15747         * modules/passfd (Depends-on): Add cloexec.
15748         Suggested by Eric Blake.
15749
15750 2011-03-13  Bruno Haible  <bruno@clisp.org>
15751
15752         passfd module, part 2, tweaks.
15753         * modules/passfd (Files): Reorder.
15754         (Depends-on): Remove errno.
15755         (Include): Remove <sys/socket.h>, <sys/un.h>.
15756         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
15757         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
15758         specification header. Include <sys/socket.h> always. Don't include
15759         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
15760         (sendfd): Clarify that it sets errno when it fails.
15761         (recvfd): Fix specification.
15762
15763 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
15764
15765         passfd module, part 2.
15766         * modules/passfd: New file.
15767         * lib/passfd.h: New file.
15768         * lib/passfd.c: New file.
15769
15770 2011-03-12  Bruno Haible  <bruno@clisp.org>
15771
15772         wcswidth, mbswidth: Avoid integer overflow.
15773         * lib/wcswidth.c: Include <limits.h>.
15774         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
15775         * lib/mbswidth.c: Include <limits.h>.
15776         (mbsnwidth): Avoid 'int' overflow.
15777         Reported by Jim Meyering.
15778
15779 2011-03-12  Bruno Haible  <bruno@clisp.org>
15780
15781         futimens, utimensat: Avoid endless recursion on Solaris 10.
15782         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
15783         Solaris.
15784         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
15785         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
15786
15787 2011-03-11  Jim Meyering  <meyering@redhat.com>
15788
15789         maint.mk: relax a regexp to accommodate other formatting styles
15790         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
15791         between "ngettext" and the following "(".
15792
15793 2011-03-11  Pádraig Brady <P@draigBrady.com>
15794
15795         maint.mk: suppress a false positive warning
15796         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
15797         diagnostics are marked with ngettext.
15798
15799 2011-03-10  Eric Blake  <eblake@redhat.com>
15800
15801         wchar: add explicit dependencies, for Tru64
15802         * modules/mbmemcasecoll (Depends-on): Add wchar.
15803         * modules/mbtowc (Depends-on): Likewise.
15804         * modules/vasnprintf (Depends-on): Likewise.
15805         * modules/unistdio/u-printf-args (Depends-on): Likewise.
15806         * modules/wctomb (Depends-on): Likewise.
15807         Reported by Peter O'Gorman.
15808
15809 2011-03-08  Bruno Haible  <bruno@clisp.org>
15810
15811         passfd module, part 1, tweaks.
15812         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
15813         Improve indentation. Improve AC_MSG_CHECKING messages.
15814         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
15815         gl_SOCKET_FAMILIES.
15816
15817 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
15818
15819         passfd module, part 1.
15820         * m4/afunix.m4: New file.
15821         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
15822         sockets.
15823
15824 2011-03-08  Bruno Haible  <bruno@clisp.org>
15825
15826         regex-quote: New API.
15827         * lib/regex-quote.h: Include <stdbool.h>.
15828         (struct regex_quote_spec): New type.
15829         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
15830         New declarations.
15831         (regex_quote_length, regex_quote_copy, regex_quote): Take a
15832         'const struct regex_quote_spec *' argument.
15833         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
15834         (pcre_special): New constant.
15835         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
15836         New functions.
15837         (regex_quote_length, regex_quote_copy, regex_quote): Take a
15838         'const struct regex_quote_spec *' argument.
15839         * modules/regex-quote (Depends-on): Add stdbool.
15840         * tests/test-regex-quote.c (check): Update for new API. Add test for
15841         anchored results.
15842         * NEWS: Mention the API change.
15843         Reported by Reuben Thomas and Eric Blake.
15844
15845 2011-03-06  Bruno Haible  <bruno@clisp.org>
15846
15847         regex-quote: Fix creation of POSIX extended regular expressions.
15848         * lib/regex-quote.c (ere_special): Add grouping and alternation
15849         operators.
15850
15851 2011-03-05  Bruno Haible  <bruno@clisp.org>
15852
15853         doc: Improve doc regarding autopoint vs. gnulib.
15854         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
15855         disable autopoint while running autoreconf.
15856         Suggested by Ralf Wildenhues.
15857
15858 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15859
15860         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
15861         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
15862
15863 2011-03-03  Bruce Korb  <bkorb@gnu.org>
15864
15865         parse-duration: remove xalloc.h dependency
15866         * lib/parse-duration.c (parse_period): handle NULL return from
15867         strdup instead of calling xstrdup().
15868         * modules/parse-duration: remove "xalloc" dependency
15869
15870 2011-03-03  Matthew Booth  <mbooth@redhat.com>
15871
15872         bootstrap: honor m4_base when running aclocal
15873         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
15874
15875 2011-03-02  Jim Meyering  <meyering@redhat.com>
15876
15877         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
15878         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
15879         on request from Matt Booth.
15880
15881 2011-03-01  Eric Blake  <eblake@redhat.com>
15882
15883         test-link: work on Hurd
15884         * tests/test-link.h (test_link): Hurd rejects linking directories
15885         with EISDIR instead of the POSIX-mandated EPERM.
15886
15887 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
15888
15889         stdio: simplify by moving files to printf-posix, sigpipe
15890         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
15891         since this symbol is needed only if printf is replaced.
15892         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
15893         Require gl_ASM_SYMBOL_PREFIX.
15894         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
15895         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
15896         (Depends-on): Add 'raise'.
15897         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
15898         * modules/stdio (Files): Remove lib/stdio-write.c,
15899         m4/asm-underscore.m4.
15900         (Depends-on): Remove 'raise'.
15901
15902         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
15903         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
15904         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
15905         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
15906
15907 2011-02-28  Bruno Haible  <bruno@clisp.org>
15908
15909         localcharset: Assume ANSI C behaviour of free().
15910         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
15911         calling free().
15912         Suggested by Simon Josefsson <simon@josefsson.org>.
15913
15914 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
15915             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
15916             Bruno Haible  <bruno@clisp.org>  (tiny change)
15917
15918         On Cygwin, use /proc file system instead of win32 API.
15919         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
15920         Win32 file names.
15921         (DllMain): Simplify by removing Cygwin specific code.
15922         (find_shared_library_fullname): Use Linux specific implementation also
15923         for Cygwin.
15924         (get_shared_library_fullname): Update accordingly.
15925         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
15926         Win32 file names.
15927         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
15928         Cygwin specific code.
15929
15930 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
15931             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
15932
15933         Fix OpenMP flag detection for various Fortran compilers.
15934         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
15935         OpenMP-conditional compilation construct, to force compile
15936         failure with missing OpenMP flag.
15937         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
15938
15939 2011-02-25  Eric Blake  <eblake@redhat.com>
15940
15941         strstr: expand test coverage
15942         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
15943         compilation.
15944         * tests/test-memmem.c (main): Duplicate tests.
15945         * tests/test-strcasestr.c (main): Likewise.
15946         * tests/test-c-strcasestr.c (main): Likewise.
15947
15948 2011-02-25  Jim Meyering  <meyering@redhat.com>
15949
15950         maint.mk: detect missing-NL-at-EOF, too
15951         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
15952         it also detects when a file lacks a newline at EOF.
15953         (require_exactly_one_NL_at_EOF_): Renamed from
15954         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
15955         since people may well have .x-sc_... file names tied to the
15956         existing name.  Suggested by Eric Blake.
15957
15958 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
15959
15960         dirname: move m4/dos.m4 functionality into lib/dosname.h
15961
15962         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
15963         extracts symbols from it, puts them into config.h; but it's much
15964         easier to use the symbols directly.  filename.h already does this,
15965         but it disagrees with dos.m4 in some respects.  This patch
15966         introduces a different include file dosname.h that packages up
15967         dos.m4, and then later we can work on merging filename.h and
15968         dosname.h.  Applications that need only the easy-to-configure
15969         symbols should consider including dosname.h rather than dirname.h.
15970         * NEWS: Mention incompatible changes.
15971         * m4/dos.m4: Remove.
15972         * lib/dosname.h, modules/dosname: New files.
15973         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
15974         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
15975         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
15976         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
15977         Include dosname.h, not dirname.h.
15978         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
15979         Include dosname.h, for definitions of symbols like ISSLASH
15980         that used to be in config.h.
15981         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
15982         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
15983         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
15984         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
15985         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
15986         * modules/rmdir (Files): Likewise.
15987         * modules/stat (Files): Likewise.
15988         * modules/unlink (Files): Likewise.
15989         * modules/dirname-lgpl (Depends-on): Add dosname.
15990         * modules/lstat (Depends-on): Likewise.
15991         * modules/openat (Depends-on): Likewise.
15992         * modules/rmdir (Depends-on): Likewise.
15993         * modules/savewd (Depends-on): Likewise.
15994         * modules/stat (Depends-on): Likewise.
15995         * modules/unlink (Depends-on): Likewise.
15996         * modules/openat (Depends-on): Remove dirname-lgpl.
15997         * modules/savewd (Depends-on): Likewise.
15998         * tests/test-dirname.c: Do not use removed symbols like
15999         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
16000         the remaining symbols, e.g., ISSLASH ('\\').
16001
16002 2011-02-25  Eric Blake  <eblake@redhat.com>
16003
16004         strstr: revert patches that introduced bug and pessimization
16005         * lib/str-two-way.h: Add another reference.
16006         (two_way_short_needle, two_way_long_needle): Revert changes from
16007         2011-02-24; they pessimize search speed.
16008         (critical_factorization): Partially revert changes from
16009         2010-06-22; they violate the requirement that the left half of the
16010         needle be smaller than the period of the needle.
16011
16012 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
16013
16014         filenamecat: remove unnecessary dependency on dirname-lgpl
16015         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
16016         is no direct dependency, just an indirect one via filenamecat-lgpl.
16017
16018         remove: remove unnecessary use of m4/dos.m4
16019         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
16020         * modules/remove (FILES): Remove m4/dos.m4.
16021
16022         * lib/openat-proc.c: Don't include dirname.h; not needed.
16023
16024         backupfile: remove unnecessary use of m4/dos.m4
16025         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
16026         of its symbols are used by the backupfile code.  backupfile.c does
16027         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
16028         for the rare case of programs that want all their backup file
16029         names to live within 8+3 limits, and dos.m4 doesn't address that.
16030         * modules/backupfile (Files): Remove m4/dos.m4.
16031
16032 2011-02-24  Jim Meyering  <meyering@redhat.com>
16033
16034         strstr: fix a bug whereby strstr would mistakenly return NULL
16035         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
16036         in period calculation.
16037         (two_way_long_needle): Likewise.
16038         The original problem was reported by Mike Stump in
16039         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
16040         Ralf Wildenhues provided the short needle and haystack.
16041         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
16042         Add a more involved test to trigger the bug in two_way_long_needle.
16043
16044 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
16045
16046         gnulib-tool: remove use of bold display in help screen
16047         * gnulib-tool (func_usage): Do not use bold display anymore in the
16048         help screen.  That was just meant to be a temporary emphasis for a
16049         backward-incompatible change.
16050
16051 2011-02-23  Bruno Haible  <bruno@clisp.org>
16052
16053         Fix misindentation of preprocessor directives.
16054         * lib/argp-namefrob.h: Reindent preprocessor directives.
16055         * lib/getopt_int.h (struct _getopt_data): Likewise.
16056         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
16057         * lib/vasnprintf.c (decode_long_double): Likewise.
16058         * tests/test-argmatch.c: Insert blank lines, for clarity.
16059         * tests/test-exclude.c: Likewise.
16060
16061 2011-02-22  Bruno Haible  <bruno@clisp.org>
16062
16063         ioctl: Fix for MacOS X in 64-bit mode.
16064         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
16065         value.
16066         Suggested by Eric Blake.
16067         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
16068
16069 2011-02-22  Jim Meyering  <meyering@redhat.com>
16070
16071         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
16072         * Makefile (sc_cpp_indent_check): Don't limit the check to files
16073         in lib/.
16074
16075 2011-02-22  Eric Blake  <eblake@redhat.com>
16076
16077         maint: avoid any CDPATH issue
16078         * Makefile (sc_cpp_indent_check): Anchor cd argument.
16079
16080         maint: adjust cpp indentation for my modules, as well
16081         * Makefile (sc_cpp_indent_check): Add my name.
16082         * lib/fbufmode.c: Filter through cppi.
16083         * lib/fpurge.c: Likewise.
16084         * lib/freadable.c: Likewise.
16085         * lib/freading.c: Likewise.
16086         * lib/fwritable.c: Likewise.
16087         * lib/fwriting.c: Likewise.
16088         * lib/sigaction.c: Likewise.
16089
16090 2011-02-22  Jim Meyering  <meyering@redhat.com>
16091
16092         maint: adjust cpp indentation to reflect nesting depth
16093         I.e., in a block of code that begins with an unnested "#if",
16094         put one space between the "#" in column 1 and following token.
16095         For example,
16096         -#include <sys/vfs.h>
16097         +# include <sys/vfs.h>
16098         Do this only in .c files that are part of a module I maintain.
16099         * lib/linkat.c: Filter through cppi.
16100         * lib/nanosleep.c: Likewise.
16101         * lib/openat.c: Likewise.
16102         * lib/openat-die.c: Likewise.
16103         * lib/dup3.c: Likewise.
16104         * lib/fchownat.c: Likewise.
16105         * lib/flock.c: Likewise.
16106         * lib/fsync.c: Likewise.
16107         * lib/fts.c: Likewise.
16108         * lib/getpass.c: Likewise.
16109         * lib/gettimeofday.c: Likewise.
16110         * lib/userspec.c: Likewise.
16111         * Makefile (sc_cpp_indent_check): New rule, to check this.
16112
16113 2011-02-22  Bruno Haible  <bruno@clisp.org>
16114
16115         New module 'wctomb'.
16116         * lib/stdlib.in.h (wctomb): New declaration.
16117         * lib/wctomb.c: New file.
16118         * lib/wctomb-impl.h: New file.
16119         * m4/wctomb.m4: New file.
16120         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
16121         REPLACE_WCTOMB.
16122         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
16123         REPLACE_WCTOMB.
16124         * modules/wctomb: New file.
16125         * tests/test-stdlib-c++.cc: Test signature of wctomb.
16126         * doc/posix-functions/wctomb.texi: Mention the new module.
16127         * modules/wctob (Depends-on): Add wctomb.
16128
16129 2011-02-22  Bruno Haible  <bruno@clisp.org>
16130
16131         New module 'mbtowc'.
16132         * lib/stdlib.in.h (mbtowc): New declaration.
16133         * lib/mbtowc.c: New file.
16134         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
16135         * m4/mbtowc.m4: New file.
16136         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
16137         REPLACE_MBTOWC.
16138         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
16139         REPLACE_MBTOWC.
16140         * modules/mbtowc: New file.
16141         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
16142         * doc/posix-functions/mbtowc.texi: Mention the new module.
16143         * modules/btowc (Depends-on): Add mbtowc.
16144
16145 2011-02-22  Bruno Haible  <bruno@clisp.org>
16146
16147         wcrtomb: Add more tests for native Windows platforms.
16148         * tests/test-wcrtomb-w32-1.sh: New file.
16149         * tests/test-wcrtomb-w32-2.sh: New file.
16150         * tests/test-wcrtomb-w32-3.sh: New file.
16151         * tests/test-wcrtomb-w32-4.sh: New file.
16152         * tests/test-wcrtomb-w32-5.sh: New file.
16153         * tests/test-wcrtomb-w32.c: New file.
16154         * modules/wcrtomb-tests (Files): Add them.
16155         (Makefile.am): Arrange to run these tests.
16156         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
16157         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
16158
16159 2011-02-20  Bruno Haible  <bruno@clisp.org>
16160
16161         wcrtomb: Enhance test.
16162         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
16163
16164 2011-02-20  Bruno Haible  <bruno@clisp.org>
16165
16166         mbrtowc: Tiny optimization.
16167         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
16168
16169 2011-02-20  Jim Meyering  <meyering@redhat.com>
16170
16171         test-exclude.c: remove unmatched #endif
16172         * tests/test-exclude.c: Remove stray #endif, left over from
16173         the change of a week ago.
16174
16175 2011-02-19  Jim Meyering  <meyering@redhat.com>
16176
16177         git-version-gen: skip "-dirty" check when appropriate
16178         * build-aux/git-version-gen: Don't run any git commands when the
16179         version string comes from .tarball-version.  Prior to this, we
16180         would run git update-index --refresh even from a just-unpacked
16181         tarball directory, and that could affect a .git/ directory in a
16182         parent of the build directory.  Reported by Mike Frysinger.
16183
16184 2011-02-19  Bruno Haible  <bruno@clisp.org>
16185
16186         unictype/property-byname: Reduce the size of the 'data' segment.
16187         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
16188
16189 2011-02-19  Bruno Haible  <bruno@clisp.org>
16190
16191         unictype/scripts: Reduce the size of the 'data' segment.
16192         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
16193         '%pic'.
16194         * lib/unictype/scripts_byname.gperf: Regenerated.
16195
16196 2011-02-19  Bruno Haible  <bruno@clisp.org>
16197
16198         stdint: Update documentation.
16199         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
16200
16201 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
16202
16203         stdint: omit redundant check for wchar.h
16204         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
16205         always tests whether wchar.h exists, so remove the now-redundant test.
16206
16207 2011-02-18  Bruno Haible  <bruno@clisp.org>
16208
16209         stdint: Cut dependency to module 'wchar'.
16210         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
16211         include the necessary prerequisites.
16212         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
16213         * modules/stdint (Depends-on): Remove wchar.
16214         (Makefile.am): Substitute HAVE_WCHAR_H.
16215         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
16216
16217 2011-02-18  Eric Blake  <eblake@redhat.com>
16218
16219         longlong: skip, rather than fail, on cross-compilation
16220         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
16221         when cross-compiling; regression from 2011-02-16.
16222
16223 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
16224
16225         * NEWS: Mention 2011-02-08 change to stdlib.
16226
16227 2011-02-17  Bruno Haible  <bruno@clisp.org>
16228
16229         getloadavg: Add comments about platforms.
16230         * m4/getloadavg.m4: Add comment.
16231         * lib/getloadavg.c: Likewise.
16232
16233 2011-02-17  Bruno Haible  <bruno@clisp.org>
16234
16235         getloadavg: Fix link error on Solaris 2.6.
16236         * modules/getloadavg (Link): New section.
16237         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
16238         linking test-getloadavg.
16239         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
16240         getloadavg.
16241
16242 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
16243
16244         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
16245         It was 'int', but this doesn't match the IRIX 6.5 manual.
16246         Suggested by Bruno Haible in
16247         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
16248
16249 2011-02-17  Bruno Haible  <bruno@clisp.org>
16250
16251         havelib: Fix comments.
16252         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
16253         change.
16254
16255 2011-02-17  Bruno Haible  <bruno@clisp.org>
16256
16257         havelib: Update config.rpath.
16258         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
16259
16260 2011-02-17  Bruno Haible  <bruno@clisp.org>
16261
16262         getloadavg test: Add some plausibility checks.
16263         * tests/test-getloadavg.c (check_avg): Print a warning when the value
16264         is improbable.
16265
16266 2011-02-16  Eric Blake  <eblake@redhat.com>
16267
16268         maintainer-makefile: make syntax-check a no-op from tarballs
16269         * top/maint.mk (no-vc-detected): New rule.
16270         (local-checks-available): Use it to avoid hanging if someone tries
16271         'make syntax-check' from a tarball.  Also append to any non-syntax
16272         checks already defined in cfg.mk.
16273
16274 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
16275
16276         longlong: tune, particularly for common case of c99
16277
16278         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
16279         or running anything if c99, or if unsigned long long int does not
16280         work.  In either case, we know the answer without further tests.
16281         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
16282         it at most once, and use its results for both long long int and
16283         unsigned long long int.  This is more likely to be efficient in
16284         the common case where the program wants to check for both long
16285         long int and unsigned long long int.
16286         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
16287         since the answer is already known.
16288
16289 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
16290
16291         getloadavg: set errno
16292         * lib/getloadavg.c: Set errno when returning -1.  If no other
16293         error number looks appropriate, set it to ENOSYS if the getloadavg
16294         looks like it can't possibly ever work, ENOTSUP otherwise.
16295         Suggested by Bruno Haible in
16296         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
16297
16298         getloadavg: trim unused parts and speed up 'configure'
16299         * NEWS: Document this.
16300         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
16301         always compiled if getloadavg is absent.
16302         Move test code to ...
16303         * tests/test-getloadavg.c: New file, containing previous
16304         contents of test from lib/getloadavg.c.  It also contains
16305         suggestions by Bruno Haible in
16306         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
16307         * modules/getloadavg-tests: New file.
16308         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
16309         Do tests in the same order as they're needed for getloadavg.c.
16310         Omit setgid-related tests that generate symbols KMEM_GROUP,
16311         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
16312         Do only the tests that are needed to see whether the system has
16313         getloadavg, moving the other tests into ...
16314         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
16315         NLIST_NAME_UNION; nobody should be using it.  Do not define
16316         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
16317         relevant, as the user of this module shouldn't care how getloadavg
16318         is implemented.
16319
16320         getloadavg: omit unused var
16321         * lib/getloadavg.c (getloadavg): Omit unused local variable.
16322
16323 2011-02-15  Jim Meyering  <meyering@redhat.com>
16324
16325         doc: update users.txt
16326         * users.txt: Update iwhd's URL.
16327
16328 2011-02-13  Bruno Haible  <bruno@clisp.org>
16329
16330         Consistent macro naming for macros that use GCC __attribute__.
16331         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
16332         _ATTRIBUTE_NONNULL_.
16333         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
16334         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
16335         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
16336         ATTRIBUTE_DEPRECATED.
16337         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
16338         ATTRIBUTE_NORETURN.
16339         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
16340         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
16341         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
16342         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
16343         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
16344         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
16345         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
16346         ATTRIBUTE_SENTINEL.
16347         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
16348         ATTRIBUTE_RETURN_CHECK.
16349         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
16350         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
16351         ATTRIBUTE_NORETURN.
16352         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
16353         Reported by Paul Eggert.
16354
16355 2011-02-13  Bruno Haible  <bruno@clisp.org>
16356
16357         Don't interfere with a program's definition of __attribute__.
16358         * lib/argp.h (__attribute__): Remove definition.
16359         (_GL_ATTRIBUTE_FORMAT): New macro.
16360         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
16361         * lib/argp-fmtstream.h (__attribute__): Remove definition.
16362         (_GL_ATTRIBUTE_FORMAT): New macro.
16363         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
16364         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
16365         GCC 3 or newer.
16366         * lib/error.h (__attribute__): Remove definition.
16367         (_GL_ATTRIBUTE_FORMAT): New macro.
16368         (error, error_at_line): Use it.
16369         * lib/hash.h (__attribute__): Remove definition.
16370         (ATTRIBUTE_WUR): Update definition. Define always.
16371         * lib/openat.h (__attribute__): Remove definition.
16372         (ATTRIBUTE_NORETURN): Update definition. Define always.
16373         * lib/sigpipe-die.h (__attribute__): Remove definition.
16374         (ATTRIBUTE_NORETURN): Update definition. Define always.
16375         * lib/vasnprintf.h (__attribute__): Remove definition.
16376         (_GL_ATTRIBUTE_FORMAT): New macro.
16377         (asnprintf, vasnprintf): Use it.
16378         * lib/xalloc.h (__attribute__): Remove definition.
16379         (ATTRIBUTE_NORETURN): Update definition. Define always.
16380         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
16381         * lib/xmemdup0.h (__attribute__): Remove definition.
16382         (ATTRIBUTE_NORETURN): Update definition. Define always.
16383         * lib/xprintf.h (__attribute__): Remove definition.
16384         (_GL_ATTRIBUTE_FORMAT): New macro.
16385         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
16386         * lib/xstrtol.h (__attribute__): Remove definition.
16387         (ATTRIBUTE_NORETURN): Update definition. Define always.
16388         * lib/xvasprintf.h (__attribute__): Remove definition.
16389         (_GL_ATTRIBUTE_FORMAT): New macro.
16390         (xasprintf, xvasprintf): Use it.
16391         * tests/test-argmatch.c (__attribute__): Remove definition.
16392         (ATTRIBUTE_NORETURN): Update definition. Define always.
16393         * tests/test-exclude.c (__attribute__): Remove definition.
16394         (ATTRIBUTE_NORETURN): Update definition. Define always.
16395         Reported by Paul Eggert.
16396
16397 2011-02-13  Bruno Haible  <bruno@clisp.org>
16398
16399         mbrtowc: Add more tests for native Windows platforms.
16400         * tests/test-mbrtowc-w32-1.sh: New file.
16401         * tests/test-mbrtowc-w32-2.sh: New file.
16402         * tests/test-mbrtowc-w32-3.sh: New file.
16403         * tests/test-mbrtowc-w32-4.sh: New file.
16404         * tests/test-mbrtowc-w32-5.sh: New file.
16405         * tests/test-mbrtowc-w32.c: New file.
16406         * modules/mbrtowc-tests (Files): Add them.
16407         (Makefile.am): Arrange to run these tests.
16408         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
16409         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
16410
16411 2011-02-13  Bruno Haible  <bruno@clisp.org>
16412
16413         mbrtowc: Work around native Windows bug.
16414         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
16415         guess when no suitable locale for testing was found.
16416         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
16417
16418 2011-02-13  Bruno Haible  <bruno@clisp.org>
16419
16420         mbsinit: Work around mingw bug.
16421         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
16422         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
16423         Windows.
16424         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
16425
16426 2011-02-13  Bruno Haible  <bruno@clisp.org>
16427
16428         mbsinit: Don't crash for a NULL argument.
16429         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
16430         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
16431
16432 2011-02-13  Bruno Haible  <bruno@clisp.org>
16433
16434         Don't interfere with a program's definition of __attribute__.
16435         * lib/stdio.in.h (__attribute__): Remove definition.
16436         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
16437         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
16438         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
16439         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
16440         * lib/string.in.h (__attribute__): Remove definition.
16441         Reported by Paul Eggert.
16442
16443 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
16444
16445         stdlib: don't get in the way of non-GCC __attribute__
16446         See thread starting at
16447         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
16448         Revert previous stdlib change, installing the following instead:
16449         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
16450         to get in the way of a non-GCC compiler that supports __attribute__.
16451         (_GL_ATTRIBUTE_RETURN): New macro.
16452         (_Exit): Use it instead of __attribute__.
16453
16454 2011-02-12  Bruno Haible  <bruno@clisp.org>
16455
16456         quotearg test: Avoid test failure on mingw.
16457         * tests/test-quotearg.sh: Convert the locale identifier from native
16458         Windows syntax to Unix syntax.
16459
16460 2011-02-12  Bruno Haible  <bruno@clisp.org>
16461
16462         setlocale: Prefer gnulib's override over libintl's override.
16463         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
16464         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
16465         GNULIB_defined_setlocale is set.
16466
16467 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
16468
16469         stdlib: support non-GCC __attribute__
16470
16471         Fix a serious and tricky problem encountered when attempting to
16472         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
16473         5.5, but it crashed due to memory corruption on Solaris 10 with
16474         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
16475         bits that are otherwise zero.  This tagging is optional inside
16476         Emacs but is preferred and is used when __attribute__ ((__aligned
16477         (8))) works, as it does with both recent-enough GCC and with Sun C
16478         5.11.  However, Sun C 5.11 is not GCC and does not #define
16479         __GNUC__ and __GNUC_MINOR__.
16480
16481         When I added the getloadavg module to Emacs, it brought in
16482         stdlib.in.h, which contained this fragment:
16483
16484            #ifndef __attribute__
16485            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
16486            #  define __attribute__(Spec)   /* empty */
16487            # endif
16488            #endif
16489
16490         When files that include <stdlib.h> were compiled with Sun C 5.11,
16491         the above code disabled __attribute__ ((__aligned (8))), which
16492         caused variables to not be properly aligned, which eventually led
16493         to the pointer corruption mentioned above.  (This was a bit hard
16494         to diagnose, unfortunately.)
16495
16496         Several "#define __attribute__(X) /* empty */" code snippets need
16497         to be eradicated from Gnulib to work with non-GCC compilers that
16498         support __attribute__.  The Autoconf way to do this is to test for
16499         each kind of attribute that we want support for, and selectively
16500         enable that in source code.
16501
16502         Fix this problem just for stdlib.h, by adding a test for the
16503         __noreturn__ attribute, and change stdlib.in.h to use that test
16504         when needed.  This technique can be easily generalized to the
16505         other *.in.h files and attributes, and a similar technique can be
16506         used for *.h and *.c files.  This patch is enough to solve the
16507         problem for Emacs + getloadavg, and I thought I'd publish it for
16508         feedback before undertaking further, similar fixes in other
16509         modules.
16510
16511         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
16512         because it's not needed for stdlib.h.  It merely substitutes the
16513         value directly into stdlib.h.  We may well need to #define it, or
16514         similar symbols, for other modules, but it's nice to also have an
16515         option to not #define it for applications like Emacs that do not
16516         need it.
16517
16518         * lib/stdlib.in.h (__attribute__): Do not #define.
16519         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
16520         be defined only if the _Exit module is also used.
16521         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
16522         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
16523         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
16524         platforms.
16525         * modules/_Exit (Files): Add m4/attribute.m4.
16526         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
16527         * m4/attribute.m4: New file.
16528
16529 2011-02-12  Bruno Haible  <bruno@clisp.org>
16530
16531         wcsrtombs: Work around bug on native Windows.
16532         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
16533         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
16534         instead of len.
16535         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
16536
16537 2011-02-12  Bruno Haible  <bruno@clisp.org>
16538
16539         mbsrtowcs: Work around bug on native Windows.
16540         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
16541         against mingw bug.
16542         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
16543
16544 2011-02-12  Bruno Haible  <bruno@clisp.org>
16545
16546         Avoid setlocale bugs in tests.
16547         * modules/btowc (Dependencies): Add setlocale.
16548         * modules/c-strcase (Dependencies): Likewise.
16549         * modules/mbmemcasecmp (Dependencies): Likewise.
16550         * modules/mbmemcasecoll (Dependencies): Likewise.
16551         * modules/mbrtowc (Dependencies): Likewise.
16552         * modules/mbscasecmp (Dependencies): Likewise.
16553         * modules/mbscasestr (Dependencies): Likewise.
16554         * modules/mbschr (Dependencies): Likewise.
16555         * modules/mbscspn (Dependencies): Likewise.
16556         * modules/mbsinit (Dependencies): Likewise.
16557         * modules/mbsncasecmp (Dependencies): Likewise.
16558         * modules/mbsnrtowcs (Dependencies): Likewise.
16559         * modules/mbspbrk (Dependencies): Likewise.
16560         * modules/mbspcasecmp (Dependencies): Likewise.
16561         * modules/mbsrchr (Dependencies): Likewise.
16562         * modules/mbsrtowcs (Dependencies): Likewise.
16563         * modules/mbsspn (Dependencies): Likewise.
16564         * modules/mbsstr (Dependencies): Likewise.
16565         * modules/nl_langinfo (Dependencies): Likewise.
16566         * modules/quotearg (Dependencies): Likewise.
16567         * modules/unicase/locale-language (Dependencies): Likewise.
16568         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
16569         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
16570         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
16571         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
16572         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
16573         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
16574         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
16575         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
16576         * modules/vasnprintf-posix (Dependencies): Likewise.
16577         * modules/wcrtomb (Dependencies): Likewise.
16578         * modules/wcsnrtombs (Dependencies): Likewise.
16579         * modules/wcsrtombs (Dependencies): Likewise.
16580
16581 2011-02-12  Bruno Haible  <bruno@clisp.org>
16582
16583         setlocale: Workaround native Windows bug.
16584         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
16585         succeeds but sets LC_CTYPE to "C", report a failure.
16586         * tests/test-setlocale2.sh: New file.
16587         * tests/test-setlocale2.c: New file.
16588         * modules/setlocale-tests (Files): Add the new files.
16589         (Makefile.am): Enable test-setlocale2.sh test.
16590         * doc/posix-functions/setlocale.texi: Mention workaround.
16591
16592 2011-02-11  Bruno Haible  <bruno@clisp.org>
16593
16594         Tests for module 'setlocale'.
16595         * modules/setlocale-tests: New file.
16596         * tests/test-setlocale1.sh: New file.
16597         * tests/test-setlocale1.c: New file.
16598
16599         New module 'setlocale'.
16600         * lib/locale.in.h (setlocale): New declaration.
16601         * lib/setlocale.c: New file, based on
16602         gettext/gettext-runtime/intl/setlocale.c.
16603         * m4/setlocale.m4: New file.
16604         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
16605         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
16606         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
16607         REPLACE_SETLOCALE.
16608         * modules/setlocale: New file.
16609         * tests/test-locale-c++.cc: Test the declaration of setlocale.
16610         * doc/posix-functions/setlocale.texi: Mention the new module.
16611
16612 2011-02-11  Bruno Haible  <bruno@clisp.org>
16613
16614         Prepare for locale dependent tests on mingw.
16615         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
16616         because it has the wrong locale encoding.
16617         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
16618         French_France.1252 instead of "fr".
16619         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
16620         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
16621         because it has the wrong locale encoding.
16622         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
16623         native Windows, try Turkish_Turkey.65001.
16624         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
16625         Chinese_China.54936.
16626
16627         Prepare for locale dependent tests on mingw.
16628         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
16629         differently.
16630         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
16631         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
16632         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
16633         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
16634
16635 2011-02-11  Eric Blake  <eblake@redhat.com>
16636
16637         strptime: avoid compiler warnings
16638         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
16639         compiler warnings about dead code.
16640         Reported by Daniel P. Berrange.
16641
16642 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
16643
16644         doc: update users.txt
16645         * users.txt: Add rcs.
16646
16647 2011-02-10  John W. Eaton  <jwe@gnu.org>
16648
16649         doc: update users.txt
16650         * users.txt: Add octave.
16651
16652 2011-02-10  Jim Meyering  <meyering@redhat.com>
16653
16654         doc: update users.txt
16655         * users.txt: Add iwhd.
16656
16657 2011-02-09  Bruno Haible  <bruno@clisp.org>
16658
16659         gnulib-tool: Make copyright notice adjustment more robust.
16660         * gnulib-tool (func_import): In sed_transform_main_lib_file,
16661         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
16662         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
16663         License".
16664         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
16665
16666 2011-02-06  Bruno Haible  <bruno@clisp.org>
16667
16668         New module 'towctrans'.
16669         * modules/towctrans: New file.
16670         * lib/wctype.in.h (towctrans): New declaration.
16671         * lib/towctrans.c: New file.
16672         * lib/towctrans-impl.h: New file.
16673         * m4/towctrans.m4: New file.
16674         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
16675         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
16676         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
16677         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
16678         * doc/posix-functions/towctrans.texi: Mention the new module.
16679
16680 2011-02-06  Bruno Haible  <bruno@clisp.org>
16681
16682         New module 'wctrans'.
16683         * modules/wctrans: New file.
16684         * lib/wctype.in.h (wctrans): New declaration.
16685         * lib/wctrans.c: New file.
16686         * lib/wctrans-impl.h: New file.
16687         * m4/wctrans.m4: New file.
16688         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
16689         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
16690         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
16691         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
16692         * doc/posix-functions/wctrans.texi: Mention the new module.
16693
16694 2011-02-06  Bruno Haible  <bruno@clisp.org>
16695
16696         New module 'iswctype'.
16697         * modules/iswctype: New file.
16698         * lib/wctype.in.h (iswctype): New declaration.
16699         * lib/iswctype.c: New file.
16700         * lib/iswctype-impl.h: New file.
16701         * m4/iswctype.m4: New file.
16702         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
16703         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
16704         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
16705         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
16706         * doc/posix-functions/iswctype.texi: Mention the new module and the
16707         HP-UX 11.00 problem.
16708
16709 2011-02-06  Bruno Haible  <bruno@clisp.org>
16710
16711         New module 'wctype'.
16712         * modules/wctype: Change to represent the wctype() substitute.
16713         * lib/wctype.in.h (wctype): New declaration.
16714         * lib/wctype.c: New file.
16715         * lib/wctype-impl.h: New file.
16716         * m4/wctype.m4: New file.
16717         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
16718         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
16719         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
16720         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
16721         * doc/posix-functions/wctype.texi: Mention the new module and the
16722         HP-UX 11.00 problem.
16723
16724 2011-02-06  Bruno Haible  <bruno@clisp.org>
16725
16726         wctype-h: Ensure wctype_t and wctrans_t are defined.
16727         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
16728         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
16729         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
16730         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
16731         HAVE_WCTRANS_T.
16732         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
16733
16734 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
16735
16736         flock: fix license typo
16737
16738         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
16739         omitted.
16740
16741 2011-02-08  Bruno Haible  <bruno@clisp.org>
16742
16743         Split large sed scripts, for HP-UX sed.
16744         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
16745         to avoid HP-UX limit of 99 commands, in the near future.
16746         * modules/stdlib (Makefile.am): Likewise.
16747         * modules/unistd (Makefile.am): Likewise.
16748         * modules/wchar (Makefile.am): Likewise.
16749         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16750         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
16751         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
16752
16753 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
16754             Bruno Haible  <bruno@clisp.org>
16755
16756         stdlib: improve random_r modularization
16757         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
16758         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
16759         you also need the random_r module to get this material right.
16760         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
16761         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
16762         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
16763
16764 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
16765
16766         stdlib: don't depend on stdint
16767         * lib/stdlib.in.h: Don't include <stdint.h> merely because
16768         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
16769         be independent of whether stdint.h is needed.
16770         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
16771         here, instead of ...
16772         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
16773         struct random_data should be using the random_r module, not just
16774         the stdlib module (which wouldn't make sense: what package needs
16775         just struct random_data without also needing random_r?).
16776         * modules/stdlib (Depends-on): Remove stdint.
16777
16778         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
16779         See the thread rooted at
16780         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
16781         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
16782         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
16783         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
16784         __VMS)); previously it was always included (via fcntl--.h).
16785         (getloadavg): Do not use c_strtod.  Instead, approximate it by
16786         hand; this is good enough for load averages.  Also, do not use
16787         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
16788         flags directly if available and don't bother otherwise.  (Packages
16789         that need the extra reliability should use the modules that define
16790         these flags on older platforms that lack them.)
16791         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
16792         fcntl-safer.
16793
16794 2011-02-08  Jim Meyering  <meyering@redhat.com>
16795
16796         di-set.h, ino-map.h: add multiple-inclusion guard
16797         Technically, the guard is required only for ino-map.h, due to its
16798         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
16799         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
16800         * lib/ino-map.h: Likewise.
16801
16802 2011-02-06  Bruno Haible  <bruno@clisp.org>
16803
16804         iswblank: Ensure declaration on glibc systems.
16805         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
16806         * modules/iswblank (Dependencies): Add 'extensions'.
16807         * doc/posix-functions/iswblank.texi: Document the glibc problem.
16808
16809 2011-02-06  Bruno Haible  <bruno@clisp.org>
16810
16811         New module 'iswblank'.
16812         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
16813         * modules/iswblank: New file.
16814         * modules/wctype-h (Files): Remove lib/iswblank.c.
16815         (Makefile.am): Substitute GNULIB_ISWBLANK.
16816         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
16817         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
16818         (gl_WCTYPE_H_DEFAULTS): New macro.
16819         (gl_WCTYPE_H): Require it. Remove iswblank related code.
16820         * modules/iswblank-tests: New file.
16821         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
16822         * tests/test-wctype-h.c (main): Remove iswblank tests.
16823         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
16824         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
16825         of 'wctype-h'.
16826         * NEWS: Mention the change.
16827         * modules/mbchar (Depends-on): Add iswblank.
16828
16829 2011-02-08  Bruno Haible  <bruno@clisp.org>
16830
16831         di-set tests: Refactor.
16832         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
16833         unnecessary includes.
16834         (ASSERT): Remove macro.
16835         (main): Make C90 compliant by avoiding variable declaration after
16836         statement.
16837         * modules/di-set-tests (Files): Add tests/macros.h.
16838
16839 2011-02-08  Bruno Haible  <bruno@clisp.org>
16840
16841         ino-map tests: Refactor.
16842         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
16843         unnecessary includes.
16844         (ASSERT): Remove macro.
16845         (main): Make C90 compliant by avoiding variable declaration after
16846         statement.
16847         * modules/ino-map-tests (Files): Add tests/macros.h.
16848
16849 2011-02-08  Jim Meyering  <meyering@redhat.com>
16850
16851         di-set: add "const" to a cast
16852         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
16853         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
16854
16855 2011-02-06  Bruno Haible  <bruno@clisp.org>
16856
16857         Rename module 'wctype' to 'wctype-h'.
16858         * modules/wctype-h: Renamed from modules/wctype.
16859         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
16860         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
16861         (Files, Depends-on, Makefile.am): Update.
16862         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
16863         (Files, Makefile.am): Update.
16864         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
16865         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
16866         * doc/posix-headers/wctype.texi: Update.
16867         * doc/posix-functions/iswalnum.texi: Update.
16868         * doc/posix-functions/iswalpha.texi: Update.
16869         * doc/posix-functions/iswblank.texi: Update.
16870         * doc/posix-functions/iswcntrl.texi: Update.
16871         * doc/posix-functions/iswdigit.texi: Update.
16872         * doc/posix-functions/iswgraph.texi: Update.
16873         * doc/posix-functions/iswlower.texi: Update.
16874         * doc/posix-functions/iswprint.texi: Update.
16875         * doc/posix-functions/iswpunct.texi: Update.
16876         * doc/posix-functions/iswspace.texi: Update.
16877         * doc/posix-functions/iswupper.texi: Update.
16878         * doc/posix-functions/iswxdigit.texi: Update.
16879         * doc/posix-functions/towlower.texi: Update.
16880         * doc/posix-functions/towupper.texi: Update.
16881         * NEWS: Mention the change.
16882         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
16883         * modules/mbchar (Dependencies): Likewise.
16884         * modules/mbswidth (Dependencies): Likewise.
16885         * modules/quotearg (Dependencies): Likewise.
16886         * modules/regex (Dependencies): Likewise.
16887         * modules/wcscasecmp (Dependencies): Likewise.
16888         * modules/wcsncasecmp (Dependencies): Likewise.
16889         * modules/wcwidth (Dependencies): Likewise.
16890
16891 2011-02-06  Bruno Haible  <bruno@clisp.org>
16892
16893         New module 'wcswidth'.
16894         * modules/wcswidth: New file.
16895         * lib/wchar.in.h (wcswidth): New declaration.
16896         * lib/wcswidth.c: New file.
16897         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
16898         * m4/wcswidth.m4: New file.
16899         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
16900         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
16901         REPLACE_WCSWIDTH.
16902         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
16903         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
16904         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
16905         * doc/posix-functions/wcswidth.texi: Mention the new module.
16906
16907 2011-02-06  Bruno Haible  <bruno@clisp.org>
16908
16909         New module 'wcstok'.
16910         * modules/wcstok: New file.
16911         * lib/wchar.in.h (wcstok): New declaration.
16912         * lib/wcstok.c: New file.
16913         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
16914         * m4/wcstok.m4: New file.
16915         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
16916         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
16917         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
16918         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
16919         * doc/posix-functions/wcstok.texi: Mention the new module.
16920
16921 2011-02-06  Bruno Haible  <bruno@clisp.org>
16922
16923         New module 'wcsstr'.
16924         * modules/wcsstr: New file.
16925         * lib/wchar.in.h (wcsstr): New declaration.
16926         * lib/wcsstr.c: New file.
16927         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
16928         * m4/wcsstr.m4: New file.
16929         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
16930         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
16931         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
16932         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
16933         * doc/posix-functions/wcsstr.texi: Mention the new module.
16934
16935 2011-02-06  Bruno Haible  <bruno@clisp.org>
16936
16937         New module 'wcspbrk'.
16938         * modules/wcspbrk: New file.
16939         * lib/wchar.in.h (wcspbrk): New declaration.
16940         * lib/wcspbrk.c: New file.
16941         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
16942         * m4/wcspbrk.m4: New file.
16943         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
16944         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
16945         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
16946         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
16947         * doc/posix-functions/wcspbrk.texi: Mention the new module.
16948
16949 2011-02-06  Bruno Haible  <bruno@clisp.org>
16950
16951         New module 'wcsspn'.
16952         * modules/wcsspn: New file.
16953         * lib/wchar.in.h (wcsspn): New declaration.
16954         * lib/wcsspn.c: New file.
16955         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
16956         * m4/wcsspn.m4: New file.
16957         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
16958         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
16959         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
16960         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
16961         * doc/posix-functions/wcsspn.texi: Mention the new module.
16962
16963 2011-02-06  Bruno Haible  <bruno@clisp.org>
16964
16965         New module 'wcscspn'.
16966         * modules/wcscspn: New file.
16967         * lib/wchar.in.h (wcscspn): New declaration.
16968         * lib/wcscspn.c: New file.
16969         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
16970         * m4/wcscspn.m4: New file.
16971         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
16972         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
16973         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
16974         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
16975         * doc/posix-functions/wcscspn.texi: Mention the new module.
16976
16977 2011-02-06  Bruno Haible  <bruno@clisp.org>
16978
16979         New module 'wcsrchr'.
16980         * modules/wcsrchr: New file.
16981         * lib/wchar.in.h (wcsrchr): New declaration.
16982         * lib/wcsrchr.c: New file.
16983         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
16984         * m4/wcsrchr.m4: New file.
16985         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
16986         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
16987         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
16988         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
16989         * doc/posix-functions/wcsrchr.texi: Mention the new module.
16990
16991 2011-02-06  Bruno Haible  <bruno@clisp.org>
16992
16993         New module 'wcschr'.
16994         * modules/wcschr: New file.
16995         * lib/wchar.in.h (wcschr): New declaration.
16996         * lib/wcschr.c: New file.
16997         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
16998         * m4/wcschr.m4: New file.
16999         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
17000         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
17001         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
17002         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
17003         * doc/posix-functions/wcschr.texi: Mention the new module.
17004
17005 2011-02-06  Bruno Haible  <bruno@clisp.org>
17006
17007         New module 'wcsdup'.
17008         * modules/wcsdup: New file.
17009         * lib/wchar.in.h (wcsdup): New declaration.
17010         * lib/wcsdup.c: New file.
17011         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
17012         * m4/wcsdup.m4: New file.
17013         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
17014         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
17015         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
17016         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
17017         * doc/posix-functions/wcsdup.texi: Mention the new module.
17018
17019 2011-02-06  Bruno Haible  <bruno@clisp.org>
17020
17021         New module 'wcsxfrm'.
17022         * modules/wcsxfrm: New file.
17023         * lib/wchar.in.h (wcsxfrm): New declaration.
17024         * lib/wcsxfrm.c: New file.
17025         * lib/wcsxfrm-impl.h: New file.
17026         * m4/wcsxfrm.m4: New file.
17027         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
17028         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
17029         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
17030         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
17031         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
17032
17033 2011-02-06  Bruno Haible  <bruno@clisp.org>
17034
17035         New module 'wcscoll'.
17036         * modules/wcscoll: New file.
17037         * lib/wchar.in.h (wcscoll): New declaration.
17038         * lib/wcscoll.c: New file.
17039         * lib/wcscoll-impl.h: New file.
17040         * m4/wcscoll.m4: New file.
17041         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
17042         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
17043         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
17044         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
17045         * doc/posix-functions/wcscoll.texi: Mention the new module.
17046
17047 2011-02-06  Bruno Haible  <bruno@clisp.org>
17048
17049         New module 'wcsncasecmp'.
17050         * modules/wcsncasecmp: New file.
17051         * lib/wchar.in.h (wcsncasecmp): New declaration.
17052         * lib/wcsncasecmp.c: New file.
17053         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
17054         * m4/wcsncasecmp.m4: New file.
17055         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
17056         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
17057         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
17058         HAVE_WCSNCASECMP.
17059         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
17060         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
17061
17062 2011-02-06  Bruno Haible  <bruno@clisp.org>
17063
17064         New module 'wcscasecmp'.
17065         * modules/wcscasecmp: New file.
17066         * lib/wchar.in.h (wcscasecmp): New declaration.
17067         * lib/wcscasecmp.c: New file.
17068         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
17069         * m4/wcscasecmp.m4: New file.
17070         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
17071         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
17072         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
17073         HAVE_WCSCASECMP.
17074         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
17075         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
17076
17077 2011-02-05  Bruno Haible  <bruno@clisp.org>
17078
17079         New module 'wcsncmp'.
17080         * modules/wcsncmp: New file.
17081         * lib/wchar.in.h (wcsncmp): New declaration.
17082         * lib/wcsncmp.c: New file.
17083         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
17084         * m4/wcsncmp.m4: New file.
17085         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
17086         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
17087         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
17088         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
17089         * doc/posix-functions/wcsncmp.texi: Mention the new module.
17090
17091 2011-02-05  Bruno Haible  <bruno@clisp.org>
17092
17093         New module 'wcscmp'.
17094         * modules/wcscmp: New file.
17095         * lib/wchar.in.h (wcscmp): New declaration.
17096         * lib/wcscmp.c: New file.
17097         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
17098         * m4/wcscmp.m4: New file.
17099         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
17100         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
17101         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
17102         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
17103         * doc/posix-functions/wcscmp.texi: Mention the new module.
17104
17105 2011-02-05  Bruno Haible  <bruno@clisp.org>
17106
17107         New module 'wcsncat'.
17108         * modules/wcsncat: New file.
17109         * lib/wchar.in.h (wcsncat): New declaration.
17110         * lib/wcsncat.c: New file.
17111         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
17112         * m4/wcsncat.m4: New file.
17113         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
17114         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
17115         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
17116         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
17117         * doc/posix-functions/wcsncat.texi: Mention the new module.
17118
17119 2011-02-05  Bruno Haible  <bruno@clisp.org>
17120
17121         New module 'wcscat'.
17122         * modules/wcscat: New file.
17123         * lib/wchar.in.h (wcscat): New declaration.
17124         * lib/wcscat.c: New file.
17125         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
17126         * m4/wcscat.m4: New file.
17127         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
17128         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
17129         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
17130         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
17131         * doc/posix-functions/wcscat.texi: Mention the new module.
17132
17133 2011-02-05  Bruno Haible  <bruno@clisp.org>
17134
17135         New module 'wcpncpy'.
17136         * modules/wcpncpy: New file.
17137         * lib/wchar.in.h (wcpncpy): New declaration.
17138         * lib/wcpncpy.c: New file.
17139         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
17140         * m4/wcpncpy.m4: New file.
17141         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
17142         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
17143         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
17144         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
17145         * doc/posix-functions/wcpncpy.texi: Mention the new module.
17146
17147 2011-02-05  Bruno Haible  <bruno@clisp.org>
17148
17149         New module 'wcsncpy'.
17150         * modules/wcsncpy: New file.
17151         * lib/wchar.in.h (wcsncpy): New declaration.
17152         * lib/wcsncpy.c: New file.
17153         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
17154         * m4/wcsncpy.m4: New file.
17155         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
17156         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
17157         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
17158         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
17159         * doc/posix-functions/wcsncpy.texi: Mention the new module.
17160
17161 2011-02-05  Bruno Haible  <bruno@clisp.org>
17162
17163         New module 'wcpcpy'.
17164         * modules/wcpcpy: New file.
17165         * lib/wchar.in.h (wcpcpy): New declaration.
17166         * lib/wcpcpy.c: New file.
17167         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
17168         * m4/wcpcpy.m4: New file.
17169         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
17170         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
17171         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
17172         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
17173         * doc/posix-functions/wcpcpy.texi: Mention the new module.
17174
17175 2011-02-05  Bruno Haible  <bruno@clisp.org>
17176
17177         New module 'wcscpy'.
17178         * modules/wcscpy: New file.
17179         * lib/wchar.in.h (wcscpy): New declaration.
17180         * lib/wcscpy.c: New file.
17181         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
17182         * m4/wcscpy.m4: New file.
17183         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
17184         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
17185         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
17186         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
17187         * doc/posix-functions/wcscpy.texi: Mention the new module.
17188
17189 2011-02-05  Bruno Haible  <bruno@clisp.org>
17190
17191         New module 'wcsnlen'.
17192         * modules/wcsnlen: New file.
17193         * lib/wchar.in.h (wcsnlen): New declaration.
17194         * lib/wcsnlen.c: New file.
17195         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
17196         * m4/wcsnlen.m4: New file.
17197         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
17198         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
17199         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
17200         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
17201         * doc/posix-functions/wcsnlen.texi: Mention the new module.
17202
17203 2011-02-05  Bruno Haible  <bruno@clisp.org>
17204
17205         New module 'wcslen'.
17206         * modules/wcslen: New file.
17207         * lib/wchar.in.h (wcslen): New declaration.
17208         * lib/wcslen.c: New file.
17209         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
17210         * m4/wcslen.m4: New file.
17211         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
17212         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
17213         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
17214         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
17215         * doc/posix-functions/wcslen.texi: Mention the new module.
17216
17217 2011-02-05  Bruno Haible  <bruno@clisp.org>
17218
17219         New module 'wmemset'.
17220         * modules/wmemset: New file.
17221         * lib/wchar.in.h (wmemset): New declaration.
17222         * lib/wmemset.c: New file.
17223         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
17224         * m4/wmemset.m4: New file.
17225         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
17226         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
17227         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
17228         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
17229         * doc/posix-functions/wmemset.texi: Mention the new module.
17230
17231 2011-02-05  Bruno Haible  <bruno@clisp.org>
17232
17233         New module 'wmemmove'.
17234         * modules/wmemmove: New file.
17235         * lib/wchar.in.h (wmemmove): New declaration.
17236         * lib/wmemmove.c: New file.
17237         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
17238         * m4/wmemmove.m4: New file.
17239         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
17240         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
17241         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
17242         HAVE_WMEMMOVE.
17243         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
17244         * doc/posix-functions/wmemmove.texi: Mention the new module.
17245
17246 2011-02-05  Bruno Haible  <bruno@clisp.org>
17247
17248         New module 'wmemcpy'.
17249         * modules/wmemcpy: New file.
17250         * lib/wchar.in.h (wmemcpy): New declaration.
17251         * lib/wmemcpy.c: New file.
17252         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
17253         * m4/wmemcpy.m4: New file.
17254         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
17255         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
17256         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
17257         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
17258         * doc/posix-functions/wmemcpy.texi: Mention the new module.
17259
17260 2011-02-05  Bruno Haible  <bruno@clisp.org>
17261
17262         New module 'wmemcmp'.
17263         * modules/wmemcmp: New file.
17264         * lib/wchar.in.h (wmemcmp): New declaration.
17265         * lib/wmemcmp.c: New file.
17266         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
17267         * m4/wmemcmp.m4: New file.
17268         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
17269         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
17270         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
17271         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
17272         * doc/posix-functions/wmemcmp.texi: Mention the new module.
17273
17274 2011-02-07  Jim Meyering  <meyering@redhat.com>
17275
17276         di-set, ino-map: new modules, from coreutils
17277         * lib/di-set.c: New file.
17278         * lib/di-set.h: Likewise.
17279         * lib/ino-map.c: Likewise.
17280         * lib/ino-map.h: Likewise.
17281         * modules/di-set: Likewise.
17282         * modules/di-set-tests: Likewise.
17283         * modules/ino-map: Likewise.
17284         * modules/ino-map-tests: Likewise.
17285         * tests/test-di-set.c: Likewise.
17286         * tests/test-ino-map.c: Likewise.
17287
17288 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
17289
17290         getloadavg: merge minor changes from Emacs
17291
17292         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
17293         (getloadavg): Use memset, not bzero.
17294
17295         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
17296         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
17297         clash (bug#86).
17298
17299 2010-11-14  Bruno Haible  <bruno@clisp.org>
17300
17301         Allow multiple gnulib generated replacements to coexist.
17302         * lib/getopt.in.h (struct option): Avoid identical redefinition.
17303         * lib/inttypes.in.h (imaxdiv_t): Likewise.
17304         * lib/langinfo.in.h (nl_item): Likewise.
17305         * lib/math.in.h (_NaN, NAN): Likewise.
17306         * lib/netdb.in.h (struct addrinfo): Likewise.
17307         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
17308         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
17309         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
17310         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
17311         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
17312         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
17313         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
17314         pthread_mutexattr_init, pthread_mutexattr_settype,
17315         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
17316         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
17317         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
17318         pthread_spin_trylock, pthread_spin_unlock): Likewise.
17319         * lib/sched.in.h (struct sched_param): Likewise.
17320         * lib/se-selinux.in.h (security_class_t, security_context_t,
17321         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
17322         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
17323         lsetfilecon, fsetfilecon, security_check_context,
17324         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
17325         Likewise.
17326         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
17327         Likewise.
17328         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
17329         _gl_function_taking_int_returning_void_t, union sigval,
17330         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
17331         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
17332         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
17333         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
17334         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
17335         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
17336         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
17337         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
17338         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
17339         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
17340         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
17341         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
17342         socklen_t, rpl_fd_isset): Likewise.
17343         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
17344         * lib/sys_time.in.h (struct timeval): Likewise.
17345         * lib/sys_times.in.h (struct tms): Likewise.
17346         * lib/sys_utsname.in.h (struct utsname):
17347         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
17348         * lib/unistd.in.h (getpagesize): Likewise.
17349         * lib/wchar.in.h (mbstate_t): Likewise.
17350         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
17351         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
17352         towlower, towupper): Likewise.
17353         Reported by Sam Steingold <sds@gnu.org>.
17354
17355 2011-02-05  Eric Blake  <eblake@redhat.com>
17356
17357         unsetenv: work around Haiku issues
17358         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
17359         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
17360
17361 2010-12-30  Bruce Korb  <bkorb@gnu.org>
17362
17363         libposix: avoid calling error() within libposix
17364         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
17365         is defined.
17366
17367 2011-02-05  Eric Blake  <eblake@redhat.com>
17368
17369         strerror_r-posix: port to cygwin
17370         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
17371         implementation.
17372         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
17373         * tests/test-strerror_r.c (main): Fix test.
17374         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
17375         issue.
17376
17377 2011-02-05  Bruno Haible  <bruno@clisp.org>
17378
17379         New module 'wmemchr'.
17380         * modules/wmemchr: New file.
17381         * lib/wchar.in.h (wmemchr): New declaration.
17382         * lib/wmemchr.c: New file.
17383         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
17384         * m4/wmemchr.m4: New file.
17385         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
17386         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
17387         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
17388         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
17389         * doc/posix-functions/wmemchr.texi: Mention the new module.
17390
17391 2011-02-04  Eric Blake  <eblake@redhat.com>
17392
17393         fdopendir: detect FreeBSD bug
17394         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
17395         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
17396
17397 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
17398
17399         stdbool: do not define HAVE_STDBOOL_H
17400         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
17401         AC_HEADER_STDBOOL.  All uses changed.  Do not define
17402         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
17403         imported from the latest Autoconf git.  It was motivated by Emacs,
17404         which uses gnulib but does not need HAVE_STDBOOL_H.
17405
17406 2011-02-04  Bruno Haible  <bruno@clisp.org>
17407
17408         wcsnrtombs: Prepare for new module wwcsnrtombs.
17409         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
17410         * lib/wcsnrtombs.c: Include it.
17411         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
17412
17413         wcsrtombs: Prepare for new module wwcsrtombs.
17414         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
17415         * lib/wcsrtombs.c: Include it.
17416         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
17417
17418         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
17419         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
17420         * lib/mbsnrtowcs.c: Include it.
17421         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
17422
17423         mbsrtowcs: Prepare for new module mbsrtowwcs.
17424         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
17425         * lib/mbsrtowcs.c: Include it.
17426         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
17427
17428 2011-02-04  Bruno Haible  <bruno@clisp.org>
17429
17430         vasnprintf: Reduce use of malloc for small format strings.
17431         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
17432         (arguments): Add room for the first 7 arguments.
17433         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
17434         (char_directives, u8_directives, u16_directives, u32_directives): Add
17435         room for the first 7 directives.
17436         * lib/printf-parse.c: Include <string.h>.
17437         (PRINTF_PARSE): Change memory handling code so that it uses the first
17438         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
17439         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
17440         Reported by Pádraig Brady <P@draigbrady.com>.
17441
17442 2011-01-31  Eric Blake  <eblake@redhat.com>
17443
17444         dup2: work around Haiku bug
17445         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
17446         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
17447         * doc/posix-functions/dup2.texi (dup2): Document the bug.
17448         * tests/test-dup2.c (main): Enhance test.
17449
17450 2011-01-31  Simon Josefsson  <simon@josefsson.org>
17451
17452         doc: off_t is not available in eglibc 2.11.2 stdio.h.
17453         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
17454         declared by eglibc 2.11.2.
17455         * lib/stdio.in.h: Likewise.
17456
17457 2011-01-31  Eric Blake  <eblake@redhat.com>
17458
17459         ignore-value: add missing test dependency
17460         * tests/test-ignore-value.c: Revert previous change; stdio.h
17461         provides off_t.
17462         * modules/ignore-value-tests (Depends-on): Add missing dependency.
17463
17464 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
17465
17466         mktime: clarify long_int width checking
17467         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
17468         the top level, to make it clearer that the assumption about
17469         long_int width is being checked.  See
17470         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
17471
17472 2011-01-30  Simon Josefsson  <simon@josefsson.org>
17473
17474         ignore-value: Fix self-test.
17475         * tests/test-ignore-value.c: Include sys/types.h for off_t.
17476
17477 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
17478
17479         TYPE_MAXIMUM: avoid theoretically undefined behavior
17480         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
17481         negative number, which the C Standard says has undefined behavior.
17482         In practice this is not a problem, but might as well do it by the book.
17483         Reported by Rich Felker and Eric Blake; see
17484         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
17485         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
17486         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
17487         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
17488         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
17489         * m4/stdint.m4 (gl_STDINT_H): Likewise.
17490         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
17491
17492         mktime: #undef mktime before #defining it
17493         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
17494
17495         mktime: systematically normalize tm_isdst comparisons
17496         * lib/mktime.c (isdst_differ): New function.
17497         (__mktime_internal): Use it systematically for all isdst comparisons.
17498         This completes the fix for libc BZ #6723, and removes the need for
17499         normalizing tm_isdst.  See
17500         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
17501         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
17502
17503         mktime: fix some integer overflow issues and sidestep the rest
17504
17505         This was prompted by a bug report by Benjamin Lindner for MinGW
17506         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
17507         His bug is due to signed integer overflow (0 - INT_MIN), and I
17508         I scanned through mktime.c looking for other integer overflow
17509         problems, fixing all the bugs I found.
17510
17511         Although the C Standard says the resulting code is still not safe
17512         in the presence of integer overflow, in practice it should be good
17513         enough for all real-world two's-complement implementations, except
17514         for debugging environments that deliberately trap on integer
17515         overflow (e.g., gcc -ftrapv).
17516
17517         * lib/mktime.c (WRAPV): New macro.
17518         (SHR): Also check that long_int and time_t shift right in the
17519         usual way, before using the fast-but-unportable method.
17520         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
17521         used.  The code already assumed two's complement, so there's
17522         no need to test for alternatives.  All uses removed.
17523         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
17524         the C standard.  Problem reported by Rich Felker in
17525         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
17526         (twos_complement_arithmetic): Also check long_int and time_t.
17527         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
17528         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
17529         (__mktime_internal): Avoid integer overflow with unary subtraction
17530         in two instances where -1 - X is an adequate replacement for -X,
17531         since the calculations are approximate.
17532
17533 2011-01-29  Eric Blake  <eblake@redhat.com>
17534
17535         mktime: avoid infinite loop
17536         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
17537         type; behavior is still undefined but portable to all known targets.
17538         Reported by Rich Felker.
17539
17540 2011-01-29  Simon Josefsson  <simon@josefsson.org>
17541
17542         rename, unlink, same-inode: Relicense.
17543         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
17544         * modules/unlink (License): Likewise.
17545         * modules/same-inode (License): Likewise.
17546
17547 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
17548
17549         mktime: avoid problems on NetBSD 5 / i386
17550         * lib/mktime.c (long_int): New type.  This works around a problem
17551         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
17552         but time_t is 64 bits, and where I expect the existing code is
17553         wrong in some cases.
17554         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
17555         (ydhms_diff): Bring back the compile-time check for wide-enough
17556         year and yday.
17557
17558         mktime: fix misspelling in comment
17559         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
17560         This merges all recent glibc changes of importance.
17561
17562 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17563
17564         move-if-change: cope with concurrent mv of identical file.
17565         * build-aux/move-if-change (CMPPROG): Accept environment
17566         variable as an override for `cmp'.
17567         (usage): Document CMPPROG.
17568         Adjust comparison to drop stdout.  Cope with failure of mv if
17569         the target file exists and is identical to the source, for
17570         parallel builds.
17571         Report from H.J. Lu against binutils in PR binutils/12283.
17572
17573 2011-01-28  Bruce Korb  <bkorb@gnu.org>
17574
17575         * users.txt: Mention sharutils.
17576
17577 2011-01-28  Simon Josefsson  <simon@josefsson.org>
17578
17579         * users.txt: Mention OATH Toolkit.
17580
17581 2011-01-27  Bruno Haible  <bruno@clisp.org>
17582
17583         Prepare for supporting FreeBSD 10.
17584         * build-aux/config.libpath: Remove handling of freebsd1*.
17585
17586 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
17587
17588         Prepare for supporting FreeBSD 10.
17589         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
17590         match FreeBSD 10.0.
17591
17592 2011-01-27  Bruno Haible  <bruno@clisp.org>
17593
17594         vma-iter, get-rusage-as: Add OpenBSD support.
17595         * modules/vma-iter (configure.ac): Test for mquery.
17596         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
17597         * lib/vma-iter.c: Include <sys/mman.h>.
17598         (vma_iterate): Add an implementation based on mquery().
17599         * lib/resource-ext.h (get_rusage_as): Update comments.
17600         * lib/get-rusage-as.c: Likewise.
17601         * lib/get-rusage-data.c: Likewise.
17602
17603 2011-01-26  Karl Berry  <karl@gnu.org>
17604
17605         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
17606         variables to make it easier to override the makeinfo program used.
17607
17608 2011-01-26  Eric Blake  <eblake@redhat.com>
17609
17610         fcntl: work around Haiku F_DUPFD bugs
17611         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
17612         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
17613         cloexec bit on duplication.
17614         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
17615
17616 2011-01-26  Bruno Haible  <bruno@clisp.org>
17617
17618         Enable memory leak tests on AIX.
17619         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
17620         * tests/test-fprintf-posix3.c (main): Likewise.
17621
17622 2011-01-26  Bruno Haible  <bruno@clisp.org>
17623
17624         Tests for module 'get-rusage-data'.
17625         * modules/get-rusage-data-tests: New file.
17626         * tests/test-get-rusage-data.c: New file.
17627
17628         New module 'get-rusage-data'.
17629         * lib/resource-ext.h (get_rusage_data): New declaration.
17630         * lib/get-rusage-data.c: New file.
17631         * modules/get-rusage-data: New file.
17632
17633 2011-01-25  Bruno Haible  <bruno@clisp.org>
17634
17635         get-rusage-as: Allow for easier testing.
17636         * lib/resource-ext.h (get_rusage_as): Add comment.
17637         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
17638         (main): New function for interactive testing.
17639
17640 2011-01-25  Bruno Haible  <bruno@clisp.org>
17641
17642         vma-iter: Treat Haiku like BeOS.
17643         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
17644         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
17645
17646 2011-01-25  Eric Blake  <eblake@redhat.com>
17647
17648         c-stack: fix regression on cygwin when libsigsegv is present
17649         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
17650
17651 2011-01-24  Bruno Haible  <bruno@clisp.org>
17652
17653         vma-iter: Avoid empty intervals.
17654         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
17655         on an empty interval.
17656
17657 2011-01-24  Jim Meyering  <meyering@redhat.com>
17658
17659         u64: remove unnecessary #include
17660         * lib/u64.h: Don't include <stddef.h>.  It was not used.
17661
17662 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
17663
17664         Allow the user to avoid the HAVE_RAW_DECL_* macros.
17665         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
17666
17667 2011-01-23  Bruno Haible  <bruno@clisp.org>
17668
17669         New module 'vma-iter'.
17670         * lib/vma-iter.h: New file.
17671         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
17672         * modules/vma-iter: New file.
17673         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
17674         for get_rusage_as_via_iterator.
17675         (vma_iterate_callback): New function.
17676         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
17677         * modules/get-rusage-as (Depends-on): Add vma-iter.
17678
17679 2011-01-23  Bruno Haible  <bruno@clisp.org>
17680
17681         uninorm: Tweak includes.
17682         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
17683         Reported by Jim Meyering.
17684
17685 2011-01-23  Bruno Haible  <bruno@clisp.org>
17686
17687         get-rusage-as: Improve on NetBSD.
17688         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
17689         /proc, like on FreeBSD.
17690
17691 2011-01-23  Jim Meyering  <meyering@redhat.com>
17692
17693         xreadlink.h: remove unnecessary #include
17694         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
17695
17696         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
17697         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
17698
17699 2011-01-23  Bruno Haible  <bruno@clisp.org>
17700
17701         get-rusage-as: Fix bug.
17702         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
17703         original limit when aborting the first loop.
17704
17705 2011-01-23  Bruno Haible  <bruno@clisp.org>
17706
17707         wctype: Ensure valid C syntax.
17708         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
17709         unconditionally, instead of gl_NEXT_HEADERS conditionally.
17710
17711 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
17712
17713         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
17714         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
17715         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
17716         as they are needed only for configure's test case.
17717         This removes two unnecessary symbols from config.h.
17718
17719         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
17720         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
17721         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
17722         AC_CHECK_HEADERS_ONCE on a header that we also invoke
17723         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
17724         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
17725         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
17726         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
17727         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
17728         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
17729         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
17730         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
17731         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
17732         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
17733         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
17734         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
17735         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
17736         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
17737
17738 2011-01-21  Eric Blake  <eblake@redhat.com>
17739
17740         maintainer-makefile: work with older git for submodule check
17741         * top/maint.mk (public-submodule-commit): Rewrite to avoid
17742         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
17743         Reported by Matthias Bolte.
17744
17745         bootstrap: minor portability fixes
17746         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
17747         (usage): Omit leading capital and trailing . on help phrases, per
17748         GNU Coding Standards.
17749         (check_versions, top level): Prefix messages with script name.
17750
17751 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
17752
17753         bootstrap: support --no-git option
17754         * build-aux/bootstrap: Add --no-git option, to be used when
17755         --gnulib-srcdir points to the exact desired checkout.
17756
17757 2011-01-21  Eric Blake  <eblake@redhat.com>
17758
17759         strerror_r-posix: work with glibc 2.13
17760         * lib/strerror_r.c (strerror_r): Fix return type.
17761
17762 2011-01-21  Pádraig Brady  <P@draigBrady.com>
17763             Bruno Haible  <bruno@clisp.org>
17764
17765         uN_strstr: New unit tests.
17766         * modules/unistr/u8-strstr-tests: New file.
17767         * modules/unistr/u16-strstr-tests: New file.
17768         * modules/unistr/u32-strstr-tests: New file.
17769         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
17770         * tests/unistr/test-u8-strstr.c: New file.
17771         * tests/unistr/test-u16-strstr.c: New file.
17772         * tests/unistr/test-u32-strstr.c: New file.
17773
17774 2011-01-21  Pádraig Brady  <P@draigBrady.com>
17775             Bruno Haible  <bruno@clisp.org>
17776
17777         Make uN_strstr functions O(n) worst-case.
17778         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
17779         16-bit and 32-bit unit cases, use the unibyte algorithm from
17780         lib/mbsstr.c.
17781         * lib/unistr/u8-strstr.c: Include <string.h>.
17782         (UNIT_IS_UINT8_T): New macro.
17783         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
17784         (U_STRLEN, U_STRNLEN): New macros.
17785         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
17786         (U_STRLEN, U_STRNLEN): New macros.
17787         * modules/unistr/u8-strstr (Depends-on): Add strstr.
17788         (configure.ac): Update required libunistring version.
17789         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
17790         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
17791         malloca.
17792         (configure.ac): Update required libunistring version.
17793         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
17794         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
17795         malloca.
17796         (configure.ac): Update required libunistring version.
17797
17798 2011-01-21  Pádraig Brady  <P@draigBrady.com>
17799             Bruno Haible  <bruno@clisp.org>
17800
17801         Prepare for faster uN_strstr functions.
17802         * lib/str-kmp.h: Support definable UNITs.
17803         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
17804         needle_len argument.
17805         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
17806         * lib/mbscasestr.c (mbscasestr): Likewise.
17807
17808 2011-01-21  Pádraig Brady <P@draigBrady.com>
17809
17810         malloca-tests: make faster by unsetting MALLOC_PERTURB_
17811         * tests/test-malloca.c (main): Unset the environment variable
17812         to greatly speed up the test.
17813         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
17814         * modules/malloca-tests: Depend on unsetenv.
17815
17816 2011-01-21  Pádraig Brady <P@draigBrady.com>
17817
17818         ignore-value: remove stdint dependency
17819         * lib/ignore-value.h: Remove <stdint.h>
17820         * modules/ignore-value: Remove stdint dependency.
17821
17822 2011-01-21  Jim Meyering  <meyering@redhat.com>
17823
17824         maint.mk: adjust variable name to be consistent with other gl_ vars
17825         * top/maint.mk (gl_public_submodule_commit): Rename the variable
17826         to be lower case.
17827
17828 2011-01-20  Jim Meyering  <meyering@redhat.com>
17829
17830         maint.mk: make "check" depend on public-submodule-commit by default
17831         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
17832
17833 2011-01-20  Bruno Haible  <bruno@clisp.org>
17834
17835         mbfile, mbiter: Complete change from 2008-12-21.
17836         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
17837         * m4/mbiter.m4 (gl_MBITER): Likewise.
17838
17839 2011-01-20  Jim Meyering  <meyering@redhat.com>
17840
17841         init.sh: insert space between each function name and "()"
17842         * tests/init.sh: Make it a little easier to see that a function's
17843         name is "warn_", and not "warn" when looking at the first part of
17844         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
17845
17846 2011-01-20  Jim Meyering  <meyering@redhat.com>
17847
17848         mountlist: clean up code formatting
17849         * lib/mountlist.c (read_file_system_list): Split a long line,
17850         correct bracing style, use NULL in place of "(struct statfs *)0",
17851         don't parenthesize return value, add spaces around "=" and after
17852         ";-in-for-stmt".
17853
17854 2011-01-14  Markus Duft <mduft@gentoo.org>
17855
17856         mountlist: add support for Interix
17857         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
17858         Apply statvfs to all entries of /dev/fs.
17859         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
17860         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
17861
17862 2011-01-20  Jim Meyering  <meyering@redhat.com>
17863
17864         maint.mk: improve the public-submodule-commit rule
17865         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
17866         to suppress printing of its commands... unless V=1.
17867         Add git submodule's --quiet option to suppress printing of e.g.,
17868         "Entering gnulib" output.
17869         "cd" into $(srcdir) before running git submodule.
17870
17871 2011-01-20  Bruno Haible  <bruno@clisp.org>
17872
17873         include_next: Fix bug introduced on 2011-01-18.
17874         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
17875         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
17876         ac_cv_header_... variable if the second argument is not 'check'.
17877         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
17878         gl_NEXT_HEADERS_INTERNAL.
17879
17880 2011-01-20  Bruno Haible  <bruno@clisp.org>
17881
17882         Allow the user to avoid the GNULIB_TEST_* macros.
17883         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
17884         Suggested by Paul Eggert.
17885
17886 2011-01-14  Jim Meyering  <meyering@redhat.com>
17887
17888         bootstrap: avoid failure when there is no .gitmodules file
17889         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
17890         has been assigned to, even when its value is the empty string.
17891         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
17892         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
17893         Reported by John W. Eaton <jwe@gnu.org>.
17894
17895 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
17896
17897         assume <ctype.h>, ..., <time.h> exist
17898         For years gnulib has been assuming the existence of the headers
17899         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
17900         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
17901         them, since they don't appear to be needed.
17902         * README (Portability guidelines): Document this.
17903         * lib/flock.c: Assume <fcntl.h> exists.
17904         * lib/regex_internal.h: Assume <locale.h> exists.
17905         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
17906         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
17907         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
17908         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
17909         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
17910         * m4/regex.m4 (gl_REGEX): Likewise.
17911         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
17912         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
17913         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
17914         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
17915         * tests/test-argp.c: Likewise.
17916         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
17917
17918         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
17919         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
17920         AA_APPLE_UNIVERSAL_BUILD.  See
17921         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
17922         * NEWS: Document this.
17923
17924 2011-01-19  Eric Blake  <eblake@redhat.com>
17925
17926         c-stack: assume stack overflow if SA_SIGINFO unsupported
17927         * lib/c-stack.c (SIGACTION_WORKS): Rename...
17928         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
17929         sigaction will work.
17930         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
17931         behavior match Linux.
17932         * tests/test-c-stack.c (main): Prefer NULL for pointers.
17933
17934         stdbool-tests: accomodate Haiku
17935         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
17936
17937         binary-io: fix O_TEXT on Haiku
17938         * modules/binary-io (Depends-on): Add fcntl-h.
17939         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
17940         than blindly undefining O_TEXT.
17941         Reported by Scott McCreary.
17942
17943 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
17944
17945         include_next: do not check for standard headers like stddef.h
17946
17947         I found this problem when modifying Emacs to use gnulib.
17948         I noticed that it added HAVE_STDDEF_H to config.h, even though
17949         gnulib always assumes <stddef.h> exists as per README and this
17950         symbol is unnecessary.
17951         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
17952         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
17953         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
17954         faster for headers like stddef.h that are known to exist.
17955         (gl_CHECK_NEXT_HEADERS): Use it.
17956         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
17957         rather than gl_CHECK_NEXT_HEADERS.
17958         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
17959         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
17960
17961 2011-01-18  Eric Blake  <eblake@redhat.com>
17962
17963         ansi-c++-opt: skip C++ dependency style if C++ is unused
17964         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
17965         tests when we know C++ compilation is not desired.
17966         Reported by Scott McCreary.
17967
17968 2011-01-18  Bruno Haible  <bruno@clisp.org>
17969
17970         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
17971         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
17972         (main): Perform test also when getrlimit and setrlimit don't exist or
17973         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
17974         limiting the address space size using setrlimit, compare the address
17975         space size before and after the the test.
17976         * tests/test-dprintf-posix2.c: Likewise.
17977         * tests/test-fprintf-posix3.sh: Update skip messages.
17978         * tests/test-dprintf-posix2.sh: Likewise.
17979         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
17980         * modules/dprintf-posix-tests (Depends-on): Likewise.
17981         Reported by Bruce Korb <bkorb@gnu.org> and
17982         Gary V. Vaughan <gary@gnu.org>.
17983
17984 2011-01-18  Bruno Haible  <bruno@clisp.org>
17985
17986         get-rusage-as: Improvement for Cygwin.
17987         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
17988         areas that are merely reserved.
17989
17990 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
17991
17992         strftime: remove dependencies on multibyte modules
17993
17994         strftime depended on mbrlen, mbsinit, and wchar, but these modules
17995         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
17996         only if __osf__ is defined, and I suspect OSF doesn't need these
17997         other modules.  If my guess is wrong, we'll need to come up with a
17998         variant of strftime that doesn't need the multibyte modules.
17999
18000         I discovered this problem when attempting modify Emacs to use the
18001         strftime module.  With the previous gnulib, this caused Emacs to
18002         need 31 new files, ranging from lib/config.charset to
18003         m4/wint_t.m4.  This was overkill and I expect would be offputting
18004         to the Emacs maintainers.  After this change, only 6 new files are
18005         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
18006         stdbool.m4, and tm_gmtoff.m4.
18007
18008         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
18009         Suggested by Bruno Haible in
18010         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
18011         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
18012         and do not check for wchar.h.
18013         * modules/strftime (Files): Remove m4/mbstate_t.m4.
18014         (Depends-on): Remove mbrlen, mbsinit, wchar.
18015
18016 2011-01-18  Bruno Haible  <bruno@clisp.org>
18017
18018         Tests for module 'get-rusage-as'.
18019         * modules/get-rusage-as-tests: New file.
18020         * tests/test-get-rusage-as.c: New file.
18021
18022         New module 'get-rusage-as'.
18023         * modules/get-rusage-as: New file.
18024         * lib/resource-ext.h: New file.
18025         * lib/get-rusage-as.c: New file.
18026
18027 2011-01-17  Eric Blake  <eblake@redhat.com>
18028
18029         sigaction: relax license from LGPLv3+ to LGPLv2+
18030         * modules/sigaction (License): Relax to LGPLv2+.
18031
18032 2011-01-14  Bruno Haible  <bruno@clisp.org>
18033
18034         filemode: Make function declarations usable in C++ mode.
18035         * lib/filemode.h: Enclose function declarations in extern "C" block.
18036         Reported by John W. Eaton <jwe@gnu.org>.
18037
18038 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
18039
18040         save-cwd: no longer include "xgetcwd.h"
18041         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
18042         This avoids a compilation failure in projects that use save-cwd
18043         without also using the xgetcwd module.
18044
18045 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
18046
18047         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
18048         This is so that a program like Emacs, which needs only dtoastr,
18049         does not have to bother with distributing and compiling ftoastr
18050         and ldtoastr.
18051         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
18052         * modules/dtoastr, modules/ldtoastr: New files.
18053         * modules/ftoastr: Now works just for 'float'.
18054         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
18055         (Makefile.am): Remove ftoastr.h (not needed and no effect),
18056         dtoastr.c, ldtoastr.c.
18057
18058 2011-01-11  Jim Meyering  <meyering@redhat.com>
18059
18060         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
18061         There is no need to work around the lack of the fchdir function,
18062         since gnulib can now provide a replacement when required.
18063         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
18064         * modules/save-cwd (Depends-on): Add fchdir.
18065
18066 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
18067
18068         openat, save-cwd: avoid xmalloc
18069
18070         This removes a direct (but undocumented) dependency of openat on
18071         xalloc, along with an indirect dependency via save-cwd.  It also
18072         removes a dependency of save-cwd on xgetcwd, and thereby
18073         indirectly on xalloc.  This change causes the openat substitute
18074         to fall back on save_cwd when memory is tight, and for save_cwd to
18075         fail instead of dying when memory is tight, but that's good enough.
18076         Problem and initial idea for fix reported by Bastien Roucaries in
18077         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
18078
18079         * lib/openat-proc.c: Include stdlib.h (for malloc), not
18080         xalloc.h (for xmalloc).
18081         (openat_proc_name): Use malloc, not xmalloc.
18082         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
18083         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
18084
18085         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
18086         This avoids heap allocation for file names whose lengths are in
18087         the range 512..1023, with the upper bound increasing to at most
18088         4031 depending on the platform's PATH_MAX.  (We do not want
18089         pathmax.h here as it might supply a non-constant PATH_MAX.)
18090         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
18091         Perhaps they should be moved to malloca.h?
18092         (OPENAT_BUFFER_SIZE): Use them.
18093
18094 2011-01-10  Bruno Haible  <bruno@clisp.org>
18095
18096         doc: Update users.txt.
18097         * users.txt: Add recutils.
18098
18099 2011-01-09  Karl Berry  <karl@gnu.org>
18100
18101         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
18102
18103         * doc/configmake.texi: New file.
18104         * doc/gnulib.texi: Include it.
18105         * modules/configmake: Move documentation from here.
18106
18107 2011-01-09  Bruno Haible  <bruno@clisp.org>
18108
18109         Update to Unicode 6.0.0.
18110         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
18111         (get_lbp): Update for Unicode 6.0.0.
18112         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
18113         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
18114         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
18115         U+11001, U+11038..U+11046. Remove U+06DE.
18116         (uc_width): Fix bounds of planes.
18117         * tests/uniwidth/test-uc_width2.sh: Same updates as in
18118         lib/uniwidth/width.c.
18119         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
18120         trailing whitespace removed.
18121         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
18122         without comments, but with the original copyright notice.
18123         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
18124         * lib/unicase/ignorable.h: Likewise.
18125         * lib/unicase/tocasefold.h: Likewise.
18126         * lib/unicase/tolower.h: Likewise.
18127         * lib/unicase/totitle.h: Likewise.
18128         * lib/unicase/toupper.h: Likewise.
18129         * lib/unictype/bidi_of.h: Likewise.
18130         * lib/unictype/blocks.h: Likewise.
18131         * lib/unictype/categ_C.h: Likewise.
18132         * lib/unictype/categ_Cn.h: Likewise.
18133         * lib/unictype/categ_L.h: Likewise.
18134         * lib/unictype/categ_Ll.h: Likewise.
18135         * lib/unictype/categ_Lm.h: Likewise.
18136         * lib/unictype/categ_Lo.h: Likewise.
18137         * lib/unictype/categ_Lu.h: Likewise.
18138         * lib/unictype/categ_M.h: Likewise.
18139         * lib/unictype/categ_Mc.h: Likewise.
18140         * lib/unictype/categ_Me.h: Likewise.
18141         * lib/unictype/categ_Mn.h: Likewise.
18142         * lib/unictype/categ_N.h: Likewise.
18143         * lib/unictype/categ_Nd.h: Likewise.
18144         * lib/unictype/categ_No.h: Likewise.
18145         * lib/unictype/categ_P.h: Likewise.
18146         * lib/unictype/categ_Po.h: Likewise.
18147         * lib/unictype/categ_S.h: Likewise.
18148         * lib/unictype/categ_Sc.h: Likewise.
18149         * lib/unictype/categ_Sk.h: Likewise.
18150         * lib/unictype/categ_Sm.h: Likewise.
18151         * lib/unictype/categ_So.h: Likewise.
18152         * lib/unictype/categ_of.h: Likewise.
18153         * lib/unictype/combining.h: Likewise.
18154         * lib/unictype/ctype_alnum.h: Likewise.
18155         * lib/unictype/ctype_alpha.h: Likewise.
18156         * lib/unictype/ctype_graph.h: Likewise.
18157         * lib/unictype/ctype_lower.h: Likewise.
18158         * lib/unictype/ctype_print.h: Likewise.
18159         * lib/unictype/ctype_punct.h: Likewise.
18160         * lib/unictype/ctype_upper.h: Likewise.
18161         * lib/unictype/decdigit.h: Likewise.
18162         * lib/unictype/digit.h: Likewise.
18163         * lib/unictype/numeric.h: Likewise.
18164         * lib/unictype/pr_alphabetic.h: Likewise.
18165         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
18166         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
18167         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
18168         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
18169         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
18170         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
18171         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
18172         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
18173         * lib/unictype/pr_case_ignorable.h: Likewise.
18174         * lib/unictype/pr_cased.h: Likewise.
18175         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
18176         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
18177         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
18178         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
18179         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
18180         * lib/unictype/pr_combining.h: Likewise.
18181         * lib/unictype/pr_composite.h: Likewise.
18182         * lib/unictype/pr_currency_symbol.h: Likewise.
18183         * lib/unictype/pr_decimal_digit.h: Likewise.
18184         * lib/unictype/pr_deprecated.h: Likewise.
18185         * lib/unictype/pr_format_control.h: Likewise.
18186         * lib/unictype/pr_grapheme_base.h: Likewise.
18187         * lib/unictype/pr_grapheme_extend.h: Likewise.
18188         * lib/unictype/pr_grapheme_link.h: Likewise.
18189         * lib/unictype/pr_id_continue.h: Likewise.
18190         * lib/unictype/pr_id_start.h: Likewise.
18191         * lib/unictype/pr_ideographic.h: Likewise.
18192         * lib/unictype/pr_lowercase.h: Likewise.
18193         * lib/unictype/pr_math.h: Likewise.
18194         * lib/unictype/pr_numeric.h: Likewise.
18195         * lib/unictype/pr_other_alphabetic.h: Likewise.
18196         * lib/unictype/pr_other_id_continue.h: Likewise.
18197         * lib/unictype/pr_other_math.h: Likewise.
18198         * lib/unictype/pr_punctuation.h: Likewise.
18199         * lib/unictype/pr_sentence_terminal.h: Likewise.
18200         * lib/unictype/pr_terminal_punctuation.h: Likewise.
18201         * lib/unictype/pr_unassigned_code_value.h: Likewise.
18202         * lib/unictype/pr_unified_ideograph.h: Likewise.
18203         * lib/unictype/pr_uppercase.h: Likewise.
18204         * lib/unictype/pr_xid_continue.h: Likewise.
18205         * lib/unictype/pr_xid_start.h: Likewise.
18206         * lib/unictype/scripts.h: Likewise.
18207         * lib/unictype/scripts_byname.gperf: Likewise.
18208         * lib/unictype/sy_java_ident.h: Likewise.
18209         * lib/unigbrk/gbrkprop.h: Likewise.
18210         * lib/unilbrk/lbrkprop1.h: Likewise.
18211         * lib/unilbrk/lbrkprop2.h: Likewise.
18212         * lib/uninorm/decomposition-table2.h: Likewise.
18213         * lib/uniwbrk/wbrkprop.h: Likewise.
18214         * tests/unicase/test-cased.c: Likewise.
18215         * tests/unicase/test-ignorable.c: Likewise.
18216         * tests/unicase/test-uc_tolower.c: Likewise.
18217         * tests/unicase/test-uc_totitle.c: Likewise.
18218         * tests/unicase/test-uc_toupper.c: Likewise.
18219         * tests/unictype/test-categ_C.c: Likewise.
18220         * tests/unictype/test-categ_Cn.c: Likewise.
18221         * tests/unictype/test-categ_L.c: Likewise.
18222         * tests/unictype/test-categ_Ll.c: Likewise.
18223         * tests/unictype/test-categ_Lm.c: Likewise.
18224         * tests/unictype/test-categ_Lo.c: Likewise.
18225         * tests/unictype/test-categ_Lu.c: Likewise.
18226         * tests/unictype/test-categ_M.c: Likewise.
18227         * tests/unictype/test-categ_Mc.c: Likewise.
18228         * tests/unictype/test-categ_Me.c: Likewise.
18229         * tests/unictype/test-categ_Mn.c: Likewise.
18230         * tests/unictype/test-categ_N.c: Likewise.
18231         * tests/unictype/test-categ_Nd.c: Likewise.
18232         * tests/unictype/test-categ_No.c: Likewise.
18233         * tests/unictype/test-categ_P.c: Likewise.
18234         * tests/unictype/test-categ_Po.c: Likewise.
18235         * tests/unictype/test-categ_S.c: Likewise.
18236         * tests/unictype/test-categ_Sc.c: Likewise.
18237         * tests/unictype/test-categ_Sk.c: Likewise.
18238         * tests/unictype/test-categ_Sm.c: Likewise.
18239         * tests/unictype/test-categ_So.c: Likewise.
18240         * tests/unictype/test-ctype_alnum.c: Likewise.
18241         * tests/unictype/test-ctype_alpha.c: Likewise.
18242         * tests/unictype/test-ctype_graph.c: Likewise.
18243         * tests/unictype/test-ctype_lower.c: Likewise.
18244         * tests/unictype/test-ctype_print.c: Likewise.
18245         * tests/unictype/test-ctype_punct.c: Likewise.
18246         * tests/unictype/test-ctype_upper.c: Likewise.
18247         * tests/unictype/test-decdigit.h: Likewise.
18248         * tests/unictype/test-digit.h: Likewise.
18249         * tests/unictype/test-numeric.h: Likewise.
18250         * tests/unictype/test-pr_alphabetic.c: Likewise.
18251         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
18252         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
18253         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
18254         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
18255         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
18256         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
18257         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
18258         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
18259         * tests/unictype/test-pr_case_ignorable.c: Likewise.
18260         * tests/unictype/test-pr_cased.c: Likewise.
18261         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
18262         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
18263         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
18264         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
18265         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
18266         * tests/unictype/test-pr_combining.c: Likewise.
18267         * tests/unictype/test-pr_composite.c: Likewise.
18268         * tests/unictype/test-pr_currency_symbol.c: Likewise.
18269         * tests/unictype/test-pr_decimal_digit.c: Likewise.
18270         * tests/unictype/test-pr_deprecated.c: Likewise.
18271         * tests/unictype/test-pr_format_control.c: Likewise.
18272         * tests/unictype/test-pr_grapheme_base.c: Likewise.
18273         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
18274         * tests/unictype/test-pr_grapheme_link.c: Likewise.
18275         * tests/unictype/test-pr_id_continue.c: Likewise.
18276         * tests/unictype/test-pr_id_start.c: Likewise.
18277         * tests/unictype/test-pr_ideographic.c: Likewise.
18278         * tests/unictype/test-pr_lowercase.c: Likewise.
18279         * tests/unictype/test-pr_math.c: Likewise.
18280         * tests/unictype/test-pr_numeric.c: Likewise.
18281         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
18282         * tests/unictype/test-pr_other_id_continue.c: Likewise.
18283         * tests/unictype/test-pr_other_math.c: Likewise.
18284         * tests/unictype/test-pr_punctuation.c: Likewise.
18285         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
18286         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
18287         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
18288         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
18289         * tests/unictype/test-pr_uppercase.c: Likewise.
18290         * tests/unictype/test-pr_xid_continue.c: Likewise.
18291         * tests/unictype/test-pr_xid_start.c: Likewise.
18292         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
18293         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
18294         changes.
18295         * lib/unictype/categ_Cc.h: Likewise.
18296         * lib/unictype/categ_Cf.h: Likewise.
18297         * lib/unictype/categ_Co.h: Likewise.
18298         * lib/unictype/categ_Cs.h: Likewise.
18299         * lib/unictype/categ_Lt.h: Likewise.
18300         * lib/unictype/categ_Nl.h: Likewise.
18301         * lib/unictype/categ_Pc.h: Likewise.
18302         * lib/unictype/categ_Pd.h: Likewise.
18303         * lib/unictype/categ_Pe.h: Likewise.
18304         * lib/unictype/categ_Pf.h: Likewise.
18305         * lib/unictype/categ_Pi.h: Likewise.
18306         * lib/unictype/categ_Ps.h: Likewise.
18307         * lib/unictype/categ_Z.h: Likewise.
18308         * lib/unictype/categ_Zl.h: Likewise.
18309         * lib/unictype/categ_Zp.h: Likewise.
18310         * lib/unictype/categ_Zs.h: Likewise.
18311         * lib/unictype/ctype_blank.h: Likewise.
18312         * lib/unictype/ctype_cntrl.h: Likewise.
18313         * lib/unictype/ctype_digit.h: Likewise.
18314         * lib/unictype/ctype_space.h: Likewise.
18315         * lib/unictype/ctype_xdigit.h: Likewise.
18316         * lib/unictype/mirror.h: Likewise.
18317         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
18318         * lib/unictype/pr_bidi_block_separator.h: Likewise.
18319         * lib/unictype/pr_bidi_common_separator.h: Likewise.
18320         * lib/unictype/pr_bidi_control.h: Likewise.
18321         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
18322         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
18323         * lib/unictype/pr_bidi_european_digit.h: Likewise.
18324         * lib/unictype/pr_bidi_pdf.h: Likewise.
18325         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
18326         * lib/unictype/pr_bidi_whitespace.h: Likewise.
18327         * lib/unictype/pr_dash.h: Likewise.
18328         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
18329         * lib/unictype/pr_diacritic.h: Likewise.
18330         * lib/unictype/pr_extender.h: Likewise.
18331         * lib/unictype/pr_hex_digit.h: Likewise.
18332         * lib/unictype/pr_hyphen.h: Likewise.
18333         * lib/unictype/pr_ids_binary_operator.h: Likewise.
18334         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
18335         * lib/unictype/pr_ignorable_control.h: Likewise.
18336         * lib/unictype/pr_iso_control.h: Likewise.
18337         * lib/unictype/pr_join_control.h: Likewise.
18338         * lib/unictype/pr_left_of_pair.h: Likewise.
18339         * lib/unictype/pr_line_separator.h: Likewise.
18340         * lib/unictype/pr_logical_order_exception.h: Likewise.
18341         * lib/unictype/pr_non_break.h: Likewise.
18342         * lib/unictype/pr_not_a_character.h: Likewise.
18343         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
18344         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
18345         * lib/unictype/pr_other_id_start.h: Likewise.
18346         * lib/unictype/pr_other_lowercase.h: Likewise.
18347         * lib/unictype/pr_other_uppercase.h: Likewise.
18348         * lib/unictype/pr_paired_punctuation.h: Likewise.
18349         * lib/unictype/pr_paragraph_separator.h: Likewise.
18350         * lib/unictype/pr_pattern_syntax.h: Likewise.
18351         * lib/unictype/pr_pattern_white_space.h: Likewise.
18352         * lib/unictype/pr_private_use.h: Likewise.
18353         * lib/unictype/pr_quotation_mark.h: Likewise.
18354         * lib/unictype/pr_radical.h: Likewise.
18355         * lib/unictype/pr_soft_dotted.h: Likewise.
18356         * lib/unictype/pr_space.h: Likewise.
18357         * lib/unictype/pr_titlecase.h: Likewise.
18358         * lib/unictype/pr_variation_selector.h: Likewise.
18359         * lib/unictype/pr_white_space.h: Likewise.
18360         * lib/unictype/pr_zero_width.h: Likewise.
18361         * lib/unictype/sy_c_ident.h: Likewise.
18362         * lib/unictype/sy_c_whitespace.h: Likewise.
18363         * lib/unictype/sy_java_whitespace.h: Likewise.
18364         * lib/uninorm/composition-table.gperf: Likewise.
18365         * lib/uninorm/decomposition-table1.h: Likewise.
18366         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
18367         LB8.
18368         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
18369         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
18370         * modules/unictype/*: Bump version number of expected libunistring
18371         version.
18372
18373 2011-01-09  Bruno Haible  <bruno@clisp.org>
18374
18375         Update to Unicode 5.2.0.
18376         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
18377         trailing whitespace removed.
18378
18379 2011-01-09  Bruno Haible  <bruno@clisp.org>
18380
18381         New Unicode character properties, from Unicode 5.2.0.
18382         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
18383         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
18384         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
18385         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
18386         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
18387         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
18388         uc_is_property_cased, uc_is_property_case_ignorable,
18389         uc_is_property_changes_when_lowercased,
18390         uc_is_property_changes_when_uppercased,
18391         uc_is_property_changes_when_titlecased,
18392         uc_is_property_changes_when_casefolded,
18393         uc_is_property_changes_when_casemapped): New declarations.
18394         * lib/unictype/pr_byname.gperf: Add the new properties.
18395         * modules/unictype/property-byname (Depends-on): Depend on the new
18396         properties modules.
18397         * modules/unictype/property-all (Depends-on): Likewise.
18398         * MODULES.html.sh (Unicode string functions): Add
18399         unictype/property-case-ignorable, unictype/property-cased,
18400         unictype/property-changes-when-casefolded,
18401         unictype/property-changes-when-casemapped,
18402         unictype/property-changes-when-lowercased,
18403         unictype/property-changes-when-titlecased,
18404         unictype/property-changes-when-uppercased.
18405
18406         New module 'unictype/property-changes-when-casemapped'.
18407         * modules/unictype/property-changes-when-casemapped: New file.
18408         * lib/unictype/pr_changes_when_casemapped.c: New file.
18409         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
18410         generated by gen-uni-tables.
18411         * modules/unictype/property-changes-when-casemapped-tests: New file.
18412         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
18413         automatically generated by gen-uni-tables.
18414
18415         New module 'unictype/property-changes-when-casefolded'.
18416         * modules/unictype/property-changes-when-casefolded: New file.
18417         * lib/unictype/pr_changes_when_casefolded.c: New file.
18418         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
18419         generated by gen-uni-tables.
18420         * modules/unictype/property-changes-when-casefolded-tests: New file.
18421         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
18422         automatically generated by gen-uni-tables.
18423
18424         New module 'unictype/property-changes-when-titlecased'.
18425         * modules/unictype/property-changes-when-titlecased: New file.
18426         * lib/unictype/pr_changes_when_titlecased.c: New file.
18427         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
18428         generated by gen-uni-tables.
18429         * modules/unictype/property-changes-when-titlecased-tests: New file.
18430         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
18431         automatically generated by gen-uni-tables.
18432
18433         New module 'unictype/property-changes-when-uppercased'.
18434         * modules/unictype/property-changes-when-uppercased: New file.
18435         * lib/unictype/pr_changes_when_uppercased.c: New file.
18436         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
18437         generated by gen-uni-tables.
18438         * modules/unictype/property-changes-when-uppercased-tests: New file.
18439         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
18440         automatically generated by gen-uni-tables.
18441
18442         New module 'unictype/property-changes-when-lowercased'.
18443         * modules/unictype/property-changes-when-lowercased: New file.
18444         * lib/unictype/pr_changes_when_lowercased.c: New file.
18445         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
18446         generated by gen-uni-tables.
18447         * modules/unictype/property-changes-when-lowercased-tests: New file.
18448         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
18449         automatically generated by gen-uni-tables.
18450
18451         New module 'unictype/property-case-ignorable'.
18452         * modules/unictype/property-case-ignorable: New file.
18453         * lib/unictype/pr_case_ignorable.c: New file.
18454         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
18455         by gen-uni-tables.
18456         * modules/unictype/property-case-ignorable-tests: New file.
18457         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
18458         generated by gen-uni-tables.
18459
18460         New module 'unictype/property-cased'.
18461         * modules/unictype/property-cased: New file.
18462         * lib/unictype/pr_cased.c: New file.
18463         * lib/unictype/pr_cased.h: New file, automatically generated by
18464         gen-uni-tables.
18465         * modules/unictype/property-cased-tests: New file.
18466         * tests/unictype/test-pr_cased.c: New file, automatically generated by
18467         gen-uni-tables.
18468
18469 2011-01-09  Bruno Haible  <bruno@clisp.org>
18470
18471         Update to Unicode 5.2.0.
18472         * lib/gen-uni-tables.c (output_predicate, output_category,
18473         output_combclass, output_bidi_category, output_decimal_digit_test,
18474         output_decimal_digit, output_digit_test, output_digit,
18475         output_numeric_test, output_numeric, output_mirror, output_scripts,
18476         output_scripts_byname, output_blocks, output_ident_category): Fix
18477         comment header.
18478         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
18479         get_wbp.
18480         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
18481         items.
18482         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
18483         Changes_When_Lowercased, Changes_When_Uppercased,
18484         Changes_When_Titlecased, Changes_When_Casefolded,
18485         Changes_When_Casemapped.
18486         (is_property_alphabetic, is_property_default_ignorable_code_point):
18487         Update for Unicode 5.2.0.
18488         (is_property_cased, is_property_case_ignorable,
18489         is_property_changes_when_lowercased,
18490         is_property_changes_when_uppercased,
18491         is_property_changes_when_titlecased,
18492         is_property_changes_when_casefolded,
18493         is_property_changes_when_casemapped): New functions.
18494         (output_properties): Output also the properties cased, case_ignorable,
18495         changes_when_lowercased, changes_when_uppercased,
18496         changes_when_titlecased, changes_when_casefolded,
18497         changes_when_casemapped.
18498         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
18499         Unicode TR#11 revision 17 -> 19.
18500         (LBP_CP): New enumeration value.
18501         (LBP_*): Adjust values accordingly.
18502         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
18503         TR#14 revision 22 -> 24.
18504         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
18505         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
18506         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
18507         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
18508         is_WBP_MIDLETTER.
18509         (output_composition_tables): Allow for 24 bits instead of 16 bits in
18510         the code1 and code2 of each composition rule.
18511         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
18512         * lib/unicase/ignorable.h: Likewise.
18513         * lib/unicase/tocasefold.h: Likewise.
18514         * lib/unicase/tolower.h: Likewise.
18515         * lib/unicase/totitle.h: Likewise.
18516         * lib/unicase/toupper.h: Likewise.
18517         * lib/unictype/bidi_of.h: Likewise.
18518         * lib/unictype/blocks.h: Likewise.
18519         * lib/unictype/categ_C.h: Likewise.
18520         * lib/unictype/categ_Cf.h: Likewise.
18521         * lib/unictype/categ_Cn.h: Likewise.
18522         * lib/unictype/categ_L.h: Likewise.
18523         * lib/unictype/categ_Ll.h: Likewise.
18524         * lib/unictype/categ_Lm.h: Likewise.
18525         * lib/unictype/categ_Lo.h: Likewise.
18526         * lib/unictype/categ_Lu.h: Likewise.
18527         * lib/unictype/categ_M.h: Likewise.
18528         * lib/unictype/categ_Mc.h: Likewise.
18529         * lib/unictype/categ_Mn.h: Likewise.
18530         * lib/unictype/categ_N.h: Likewise.
18531         * lib/unictype/categ_Nd.h: Likewise.
18532         * lib/unictype/categ_Nl.h: Likewise.
18533         * lib/unictype/categ_No.h: Likewise.
18534         * lib/unictype/categ_P.h: Likewise.
18535         * lib/unictype/categ_Pd.h: Likewise.
18536         * lib/unictype/categ_Po.h: Likewise.
18537         * lib/unictype/categ_S.h: Likewise.
18538         * lib/unictype/categ_Sc.h: Likewise.
18539         * lib/unictype/categ_So.h: Likewise.
18540         * lib/unictype/categ_of.h: Likewise.
18541         * lib/unictype/combining.h: Likewise.
18542         * lib/unictype/ctype_alnum.h: Likewise.
18543         * lib/unictype/ctype_alpha.h: Likewise.
18544         * lib/unictype/ctype_graph.h: Likewise.
18545         * lib/unictype/ctype_lower.h: Likewise.
18546         * lib/unictype/ctype_print.h: Likewise.
18547         * lib/unictype/ctype_punct.h: Likewise.
18548         * lib/unictype/ctype_upper.h: Likewise.
18549         * lib/unictype/decdigit.h: Likewise.
18550         * lib/unictype/digit.h: Likewise.
18551         * lib/unictype/numeric.h: Likewise.
18552         * lib/unictype/pr_alphabetic.h: Likewise.
18553         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
18554         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
18555         * lib/unictype/pr_bidi_european_digit.h: Likewise.
18556         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
18557         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
18558         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
18559         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
18560         * lib/unictype/pr_combining.h: Likewise.
18561         * lib/unictype/pr_composite.h: Likewise.
18562         * lib/unictype/pr_currency_symbol.h: Likewise.
18563         * lib/unictype/pr_dash.h: Likewise.
18564         * lib/unictype/pr_decimal_digit.h: Likewise.
18565         * lib/unictype/pr_deprecated.h: Likewise.
18566         * lib/unictype/pr_diacritic.h: Likewise.
18567         * lib/unictype/pr_extender.h: Likewise.
18568         * lib/unictype/pr_grapheme_base.h: Likewise.
18569         * lib/unictype/pr_grapheme_extend.h: Likewise.
18570         * lib/unictype/pr_grapheme_link.h: Likewise.
18571         * lib/unictype/pr_id_continue.h: Likewise.
18572         * lib/unictype/pr_id_start.h: Likewise.
18573         * lib/unictype/pr_ideographic.h: Likewise.
18574         * lib/unictype/pr_ignorable_control.h: Likewise.
18575         * lib/unictype/pr_logical_order_exception.h: Likewise.
18576         * lib/unictype/pr_lowercase.h: Likewise.
18577         * lib/unictype/pr_numeric.h: Likewise.
18578         * lib/unictype/pr_other_alphabetic.h: Likewise.
18579         * lib/unictype/pr_punctuation.h: Likewise.
18580         * lib/unictype/pr_sentence_terminal.h: Likewise.
18581         * lib/unictype/pr_terminal_punctuation.h: Likewise.
18582         * lib/unictype/pr_unassigned_code_value.h: Likewise.
18583         * lib/unictype/pr_unified_ideograph.h: Likewise.
18584         * lib/unictype/pr_uppercase.h: Likewise.
18585         * lib/unictype/pr_xid_continue.h: Likewise.
18586         * lib/unictype/pr_xid_start.h: Likewise.
18587         * lib/unictype/pr_zero_width.h: Likewise.
18588         * lib/unictype/scripts.h: Likewise.
18589         * lib/unictype/scripts_byname.gperf: Likewise.
18590         * lib/unictype/sy_java_ident.h: Likewise.
18591         * lib/unigbrk/gbrkprop.h: Likewise.
18592         * lib/unilbrk/lbrkprop1.h: Likewise.
18593         * lib/unilbrk/lbrkprop2.h: Likewise.
18594         * lib/unilbrk/lbrktables.h: Likewise.
18595         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
18596         LBP_CP. Implement rule LB30.
18597         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
18598         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
18599         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
18600         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
18601         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
18602         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
18603         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
18604         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
18605         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
18606         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
18607         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
18608         bits instead of 16 bits in the code1 and code2 of each composition
18609         rule.
18610         (uc_composition): Update for Unicode 5.2.0.
18611         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
18612         * lib/uninorm/decomposition-table2.h: Likewise.
18613         * lib/uniwbrk/wbrkprop.h: Likewise.
18614         * tests/unicase/test-cased.c: Likewise.
18615         * tests/unicase/test-ignorable.c: Likewise.
18616         * tests/unicase/test-uc_tolower.c: Likewise.
18617         * tests/unicase/test-uc_totitle.c: Likewise.
18618         * tests/unicase/test-uc_toupper.c: Likewise.
18619         * tests/unictype/test-categ_C.c: Likewise.
18620         * tests/unictype/test-categ_Cf.c: Likewise.
18621         * tests/unictype/test-categ_Cn.c: Likewise.
18622         * tests/unictype/test-categ_L.c: Likewise.
18623         * tests/unictype/test-categ_Ll.c: Likewise.
18624         * tests/unictype/test-categ_Lm.c: Likewise.
18625         * tests/unictype/test-categ_Lo.c: Likewise.
18626         * tests/unictype/test-categ_Lu.c: Likewise.
18627         * tests/unictype/test-categ_M.c: Likewise.
18628         * tests/unictype/test-categ_Mc.c: Likewise.
18629         * tests/unictype/test-categ_Mn.c: Likewise.
18630         * tests/unictype/test-categ_N.c: Likewise.
18631         * tests/unictype/test-categ_Nd.c: Likewise.
18632         * tests/unictype/test-categ_Nl.c: Likewise.
18633         * tests/unictype/test-categ_No.c: Likewise.
18634         * tests/unictype/test-categ_P.c: Likewise.
18635         * tests/unictype/test-categ_Pd.c: Likewise.
18636         * tests/unictype/test-categ_Po.c: Likewise.
18637         * tests/unictype/test-categ_S.c: Likewise.
18638         * tests/unictype/test-categ_Sc.c: Likewise.
18639         * tests/unictype/test-categ_So.c: Likewise.
18640         * tests/unictype/test-ctype_alnum.c: Likewise.
18641         * tests/unictype/test-ctype_alpha.c: Likewise.
18642         * tests/unictype/test-ctype_graph.c: Likewise.
18643         * tests/unictype/test-ctype_lower.c: Likewise.
18644         * tests/unictype/test-ctype_print.c: Likewise.
18645         * tests/unictype/test-ctype_punct.c: Likewise.
18646         * tests/unictype/test-ctype_upper.c: Likewise.
18647         * tests/unictype/test-decdigit.h: Likewise.
18648         * tests/unictype/test-digit.h: Likewise.
18649         * tests/unictype/test-numeric.h: Likewise.
18650         * tests/unictype/test-pr_alphabetic.c: Likewise.
18651         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
18652         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
18653         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
18654         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
18655         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
18656         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
18657         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
18658         * tests/unictype/test-pr_combining.c: Likewise.
18659         * tests/unictype/test-pr_composite.c: Likewise.
18660         * tests/unictype/test-pr_currency_symbol.c: Likewise.
18661         * tests/unictype/test-pr_dash.c: Likewise.
18662         * tests/unictype/test-pr_decimal_digit.c: Likewise.
18663         * tests/unictype/test-pr_deprecated.c: Likewise.
18664         * tests/unictype/test-pr_diacritic.c: Likewise.
18665         * tests/unictype/test-pr_extender.c: Likewise.
18666         * tests/unictype/test-pr_grapheme_base.c: Likewise.
18667         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
18668         * tests/unictype/test-pr_grapheme_link.c: Likewise.
18669         * tests/unictype/test-pr_id_continue.c: Likewise.
18670         * tests/unictype/test-pr_id_start.c: Likewise.
18671         * tests/unictype/test-pr_ideographic.c: Likewise.
18672         * tests/unictype/test-pr_ignorable_control.c: Likewise.
18673         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
18674         * tests/unictype/test-pr_lowercase.c: Likewise.
18675         * tests/unictype/test-pr_numeric.c: Likewise.
18676         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
18677         * tests/unictype/test-pr_punctuation.c: Likewise.
18678         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
18679         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
18680         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
18681         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
18682         * tests/unictype/test-pr_uppercase.c: Likewise.
18683         * tests/unictype/test-pr_xid_continue.c: Likewise.
18684         * tests/unictype/test-pr_xid_start.c: Likewise.
18685         * tests/unictype/test-pr_zero_width.c: Likewise.
18686         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
18687         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
18688         changed behaviour: line breaking is now disallowed between a letter
18689         or '=' and '('.
18690         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
18691         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
18692         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
18693         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
18694         * tests/uniwidth/test-uc_width2.sh: Same updates as in
18695         lib/uniwidth/width.c.
18696         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
18697         without comments, but with the original copyright notice.
18698         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
18699         changes.
18700         * lib/unictype/categ_Cc.h: Likewise.
18701         * lib/unictype/categ_Co.h: Likewise.
18702         * lib/unictype/categ_Cs.h: Likewise.
18703         * lib/unictype/categ_Lt.h: Likewise.
18704         * lib/unictype/categ_Me.h: Likewise.
18705         * lib/unictype/categ_Pc.h: Likewise.
18706         * lib/unictype/categ_Pe.h: Likewise.
18707         * lib/unictype/categ_Pf.h: Likewise.
18708         * lib/unictype/categ_Pi.h: Likewise.
18709         * lib/unictype/categ_Ps.h: Likewise.
18710         * lib/unictype/categ_Sk.h: Likewise.
18711         * lib/unictype/categ_Sm.h: Likewise.
18712         * lib/unictype/categ_Z.h: Likewise.
18713         * lib/unictype/categ_Zl.h: Likewise.
18714         * lib/unictype/categ_Zp.h: Likewise.
18715         * lib/unictype/categ_Zs.h: Likewise.
18716         * lib/unictype/ctype_blank.h: Likewise.
18717         * lib/unictype/ctype_cntrl.h: Likewise.
18718         * lib/unictype/ctype_digit.h: Likewise.
18719         * lib/unictype/ctype_space.h: Likewise.
18720         * lib/unictype/ctype_xdigit.h: Likewise.
18721         * lib/unictype/mirror.h: Likewise.
18722         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
18723         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
18724         * lib/unictype/pr_bidi_block_separator.h: Likewise.
18725         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
18726         * lib/unictype/pr_bidi_common_separator.h: Likewise.
18727         * lib/unictype/pr_bidi_control.h: Likewise.
18728         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
18729         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
18730         * lib/unictype/pr_bidi_pdf.h: Likewise.
18731         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
18732         * lib/unictype/pr_bidi_whitespace.h: Likewise.
18733         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
18734         * lib/unictype/pr_format_control.h: Likewise.
18735         * lib/unictype/pr_hex_digit.h: Likewise.
18736         * lib/unictype/pr_hyphen.h: Likewise.
18737         * lib/unictype/pr_ids_binary_operator.h: Likewise.
18738         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
18739         * lib/unictype/pr_iso_control.h: Likewise.
18740         * lib/unictype/pr_join_control.h: Likewise.
18741         * lib/unictype/pr_left_of_pair.h: Likewise.
18742         * lib/unictype/pr_line_separator.h: Likewise.
18743         * lib/unictype/pr_math.h: Likewise.
18744         * lib/unictype/pr_non_break.h: Likewise.
18745         * lib/unictype/pr_not_a_character.h: Likewise.
18746         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
18747         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
18748         * lib/unictype/pr_other_id_continue.h: Likewise.
18749         * lib/unictype/pr_other_id_start.h: Likewise.
18750         * lib/unictype/pr_other_lowercase.h: Likewise.
18751         * lib/unictype/pr_other_math.h: Likewise.
18752         * lib/unictype/pr_other_uppercase.h: Likewise.
18753         * lib/unictype/pr_paired_punctuation.h: Likewise.
18754         * lib/unictype/pr_paragraph_separator.h: Likewise.
18755         * lib/unictype/pr_pattern_syntax.h: Likewise.
18756         * lib/unictype/pr_pattern_white_space.h: Likewise.
18757         * lib/unictype/pr_private_use.h: Likewise.
18758         * lib/unictype/pr_quotation_mark.h: Likewise.
18759         * lib/unictype/pr_radical.h: Likewise.
18760         * lib/unictype/pr_soft_dotted.h: Likewise.
18761         * lib/unictype/pr_space.h: Likewise.
18762         * lib/unictype/pr_titlecase.h: Likewise.
18763         * lib/unictype/pr_variation_selector.h: Likewise.
18764         * lib/unictype/pr_white_space.h: Likewise.
18765         * lib/unictype/sy_c_ident.h: Likewise.
18766         * lib/unictype/sy_c_whitespace.h: Likewise.
18767         * lib/unictype/sy_java_whitespace.h: Likewise.
18768         * modules/uni*/*: Bump version number of expected libunistring version.
18769         Reported by Simon Josefsson.
18770
18771 2011-01-09  Karl Heuer  <kwzh@gnu.org>
18772
18773         useless-if-before-free: fix typo in --help and make the internal,
18774         automatic version date update process work once again.
18775         --help output contained a NUL character instead of the
18776         backslash-zero that was intended.  Also, the "must lie within
18777         the first 8 lines" line is on line 9, and hence not getting
18778         automatically updated.
18779         * build-aux/useless-if-before-free: Fix the former by adding a
18780         backslash, and the latter by condensing the three lines of what-it-does
18781         to a single line, leaving one line of slack for the future.
18782
18783 2011-01-09  Bruno Haible  <bruno@clisp.org>
18784
18785         uniwidth/width: Fix width of U+1D173..U+1D17A.
18786         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
18787         symbolic_width, output_width_property_test): New functions.
18788         (main): Invoke output_nonspacing_property, output_width_property_test.
18789         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
18790         U+1D173..U+1D17A.
18791         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
18792         1.
18793         * modules/uniwidth/*: Bump version number of expected libunistring
18794         version.
18795         * modules/unilbrk/*: Likewise.
18796
18797 2011-01-08  Bruno Haible  <bruno@clisp.org>
18798
18799         uninorm tests: Preserve copyright of Unicode data file.
18800         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
18801         Mention modifications.
18802
18803 2011-01-08  Bruno Haible  <bruno@clisp.org>
18804
18805         gen-uni-tables: Prepare for Unicode 5.2.0.
18806         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
18807         (debug_output_lbp, output_lbp): Update.
18808
18809 2011-01-08  Bruno Haible  <bruno@clisp.org>
18810
18811         unilbrk: Clarify gen-uni-tables.c code.
18812         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
18813         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
18814         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
18815
18816 2011-01-07  Bruno Haible  <bruno@clisp.org>
18817
18818         strtod: Restore errno when successfully parsing Infinity or NaN.
18819         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
18820         restore the original errno.
18821
18822 2011-01-07  Bruno Haible  <bruno@clisp.org>
18823
18824         remove test: Avoid failure on HP-UX 11.
18825         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
18826
18827 2011-01-07  Bruno Haible  <bruno@clisp.org>
18828
18829         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
18830         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
18831         error code.
18832
18833 2011-01-07  Pádraig Brady <P@draigBrady.com>
18834
18835         ignore-value: fixup comments, and add Eric Blake
18836         as an author since he rewrote the macros.
18837         * lib/ignore-value.h (ignore_value):  State that
18838         we now support aggregates.  Also specify exactly
18839         when the GCC warn_unused_result feature was added.
18840
18841 2011-01-06  Eric Blake  <eblake@redhat.com>
18842
18843         ignore-value: support aggregate types
18844         * lib/ignore-value.h (ignore_value): Provide separate gcc
18845         definition.
18846         * modules/ignore-value-tests: New test module.
18847         * tests/test-ignore-value.c: New test.
18848
18849         maint.mk: improve sc_prohibit_strcmp regex
18850         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
18851         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
18852         definition of STRNEQ.
18853
18854         signal: work around Haiku issue with SIGBUS
18855         * lib/siglist.h: Add comment.
18856         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
18857         strsignal's favoring of SIGSEGV.
18858         * tests/test-signal.c (main): Avoid test failure.
18859         * doc/posix-headers/signal.texi (signal.h): Document the issue.
18860         Reported by Scott McCreary.
18861
18862         maint.mk: add pre-release check to ensure submodule commits are public
18863         * top/maint.mk (public-submodule-commit): New rule.
18864         (submodule-checks): New variable.
18865         (alpha beta stable): Depend on the variable.
18866
18867 2011-01-05  Pádraig Brady <P@draigBrady.com>
18868         and Jim Meyering  <meyering@redhat.com>
18869
18870         ignore-value: make ignore_value more generic; deprecate ignore_ptr
18871         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
18872         (ATTRIBUTE_DEPRECATED): Define.
18873         (_ignore_case): New function.
18874         (ignore_value): New macro, to replace the old function.
18875         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
18876         * modules/ignore-value (Depends-on): Add stdint.
18877
18878 2011-01-04  Eric Blake  <eblake@redhat.com>
18879
18880         doc: regenerate INSTALL
18881         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
18882         @firstparagraphindent support, now that autoconf dropped it.
18883         (INSTALL_PRELUDE): Reinstate old macro.
18884         * doc/install.texi: Resync from autoconf.
18885         * doc/INSTALL: Reflect recent autoconf update.
18886         * doc/INSTALL.ISO: Likewise.
18887         * doc/INSTALL.UTF-8: Likewise.
18888         Reported by Karl Berry.
18889
18890 2011-01-04  Bruce Korb  <address@hidden>
18891
18892         git-version-gen: avoid a sub-shell
18893         * build-aux/git-version-gen: Redirect stderr in `...` via
18894         "exec 2>...", rather than via an added sub-shell.
18895
18896 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
18897
18898         git-version-gen: use (...) rather than sh -c '...'
18899         * build-aux/git-version-gen: Rather than hard-coding a shell's name
18900         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
18901
18902 2011-01-03  Jim Meyering  <meyering@redhat.com>
18903
18904         git-version-gen: convert leading TABs to spaces
18905         * build-aux/git-version-gen: Expand leading TABs.
18906
18907         git-version-gen: handle failed "git rev-list"
18908         * build-aux/git-version-gen: Rather than leaking a "fatal" error
18909         from git and proceeding as if it had succeeded but printed no SHA1
18910         checksums, suppress the diagnostic and handle the failure.
18911         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
18912
18913         git-version-gen: include command name in one more diagnostic
18914         * build-aux/git-version-gen: When the required .tarball-version file
18915         was missing or unreadable, you might see the diagnostic from "cat",
18916         but no trace of the name of the invoking script.  Now, you still see
18917         the diagnostic from cat, but also get one from "git-version-gen: ".
18918         Inspired by a patch from Bruce Korb.
18919
18920         update-copyright: adjust test to match changed code
18921         * tests/test-update-copyright.sh: Change test's expected output
18922         to match new actual output.
18923
18924 2011-01-02  Bruno Haible  <bruno@clisp.org>
18925
18926         getlogin_r: Avoid test failure on HP-UX 11.
18927         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
18928         ERANGE when the second argument is zero.
18929         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
18930         portability problem.
18931
18932 2011-01-02  Bruce Korb  <bkorb@gnu.org>
18933
18934         * build-aux/update-copyright: doc Simon's changes
18935
18936 2011-01-02  Simon Josefsson  <simon@josefsson.org>
18937
18938         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
18939         environment variable.
18940
18941 2011-01-02  Bruno Haible  <bruno@clisp.org>
18942
18943         unigbrk: Avoid gcc warnings.
18944         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
18945         unused variable.
18946         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
18947         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
18948         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
18949         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
18950         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
18951         Change type of first argument to 'const char *'.
18952         (main): Remove unused variable.
18953         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
18954         type of first argument to 'const char *'.
18955         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
18956         Likewise.
18957         (main): Change type of variable 's'.
18958         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
18959         to 'int'.
18960
18961 2011-01-02  Bruno Haible  <bruno@clisp.org>
18962
18963         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
18964         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
18965         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
18966         bug.
18967         * lib/pwrite.c: Undo 2010-12-31 patch.
18968         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
18969
18970 2011-01-02  Bruno Haible  <bruno@clisp.org>
18971
18972         pread: Fix test whether it works.
18973         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
18974
18975 2011-01-02  Bruno Haible  <bruno@clisp.org>
18976
18977         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
18978         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
18979         ends in "6". Don't require a specific month name. Try also the locale
18980         names found on HP-UX 11 and Solaris 7.
18981
18982 2011-01-02  Bruno Haible  <bruno@clisp.org>
18983
18984         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
18985         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
18986         C linkage.
18987         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
18988
18989 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
18990
18991         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
18992         for consistency, since the "cluster" term is not used elsewhere.
18993         * lib/unigbrk.in.h: Update name.
18994         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
18995         * lib/unigbrk/u16-grapheme-next.c: Update name.
18996         * lib/unigbrk/u16-grapheme-prev.c: Update name.
18997         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
18998         * lib/unigbrk/u32-grapheme-next.c: Update name.
18999         * lib/unigbrk/u32-grapheme-prev.c: Update name.
19000         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
19001         * lib/unigbrk/u8-grapheme-next.c: Update name.
19002         * lib/unigbrk/u8-grapheme-prev.c: Update name.
19003         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
19004         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
19005         Suggested by Bruno Haible.
19006
19007 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
19008
19009         Remove module 'u8-grapheme-len' as too redundant with
19010         'u8-grapheme-next'.
19011         * modules/unigbrk/u8-grapheme-len: Delete file.
19012         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
19013         * lib/unigbrk.in.h: Remove prototype for deleted function.
19014         * lib/unigbrk/u8-grapheme-len.c: Delete file.
19015         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
19016
19017         Remove module 'u16-grapheme-len' as too redundant with
19018         'u16-grapheme-next'.
19019         * modules/unigbrk/u16-grapheme-len: Delete file.
19020         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
19021         * lib/unigbrk.in.h: Remove prototype for deleted function.
19022         * lib/unigbrk/u16-grapheme-len.c: Delete file.
19023         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
19024
19025         Remove module 'u32-grapheme-len' as too redundant with
19026         'u32-grapheme-next'.
19027         * modules/unigbrk/u32-grapheme-len: Delete file.
19028         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
19029         * lib/unigbrk.in.h: Remove prototype for deleted function.
19030         * lib/unigbrk/u32-grapheme-len.c: Delete file.
19031         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
19032
19033         Suggested by Bruno Haible.
19034
19035 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
19036
19037         * unigbrk.in.h: Fix typo: "ben" => "been".
19038         Reported by Bruno Haible.
19039
19040 2011-01-01  Jim Meyering  <meyering@redhat.com>
19041
19042         maint: update almost all copyright ranges to include 2011
19043         Run the new "make update-copyright" rule.
19044
19045 2011-01-01  Jim Meyering  <meyering@redhat.com>
19046
19047         maint: update-copyright: exempt doc/INSTALL*
19048         * Makefile (update-copyright): Also exclude doc/INSTALL*,
19049         since they are generated.  Suggested by Bruno Haible.
19050
19051 2011-01-01  Jim Meyering  <meyering@redhat.com>
19052
19053         maint: refine the update-copyright rule
19054         * Makefile (update-copyright): Also exclude any file that includes
19055         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
19056         code that merely generates the comment.
19057
19058 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
19059
19060         New module 'u8-grapheme-len'.
19061         * modules/unigbrk/u8-grapheme-len: New file.
19062         * modules/unigbrk/u8-grapheme-len-tests: New file.
19063         * lib/unigbrk.in.h: Add prototype for new function.
19064         * lib/unigbrk/u8-grapheme-len.c: New file.
19065         * tests/unigbrk/test-u8-grapheme-len.c: New file.
19066
19067         New module 'u16-grapheme-len'.
19068         * modules/unigbrk/u16-grapheme-len: New file.
19069         * modules/unigbrk/u16-grapheme-len-tests: New file.
19070         * lib/unigbrk.in.h: Add prototype for new function.
19071         * lib/unigbrk/u16-grapheme-len.c: New file.
19072         * tests/unigbrk/test-u16-grapheme-len.c: New file.
19073
19074         New module 'u32-grapheme-len'.
19075         * modules/unigbrk/u32-grapheme-len: New file.
19076         * modules/unigbrk/u32-grapheme-len-tests: New file.
19077         * lib/unigbrk.in.h: Add prototype for new function.
19078         * lib/unigbrk/u32-grapheme-len.c: New file.
19079         * tests/unigbrk/test-u32-grapheme-len.c: New file.
19080
19081         New module 'u8-grapheme-next'.
19082         * modules/unigbrk/u8-grapheme-next: New file.
19083         * modules/unigbrk/u8-grapheme-next-tests: New file.
19084         * lib/unigbrk.in.h: Add prototype for new function.
19085         * lib/unigbrk/u8-grapheme-next.c: New file.
19086         * tests/unigbrk/test-u8-grapheme-next.c: New file.
19087
19088         New module 'u16-grapheme-next'.
19089         * modules/unigbrk/u16-grapheme-next: New file.
19090         * modules/unigbrk/u16-grapheme-next-tests: New file.
19091         * lib/unigbrk.in.h: Add prototype for new function.
19092         * lib/unigbrk/u16-grapheme-next.c: New file.
19093         * tests/unigbrk/test-u16-grapheme-next.c: New file.
19094
19095         New module 'u32-grapheme-next'.
19096         * modules/unigbrk/u32-grapheme-next: New file.
19097         * modules/unigbrk/u32-grapheme-next-tests: New file.
19098         * lib/unigbrk.in.h: Add prototype for new function.
19099         * lib/unigbrk/u32-grapheme-next.c: New file.
19100         * tests/unigbrk/test-u32-grapheme-next.c: New file.
19101
19102         New module 'u8-grapheme-prev'.
19103         * modules/unigbrk/u8-grapheme-prev: New file.
19104         * modules/unigbrk/u8-grapheme-prev-tests: New file.
19105         * lib/unigbrk.in.h: Add prototype for new function.
19106         * lib/unigbrk/u8-grapheme-prev.c: New file.
19107         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
19108
19109         New module 'u16-grapheme-prev'.
19110         * modules/unigbrk/u16-grapheme-prev: New file.
19111         * modules/unigbrk/u16-grapheme-prev-tests: New file.
19112         * lib/unigbrk.in.h: Add prototype for new function.
19113         * lib/unigbrk/u16-grapheme-prev.c: New file.
19114         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
19115
19116         New module 'u32-grapheme-prev'.
19117         * modules/unigbrk/u32-grapheme-prev: New file.
19118         * modules/unigbrk/u32-grapheme-prev-tests: New file.
19119         * lib/unigbrk.in.h: Add prototype for new function.
19120         * lib/unigbrk/u32-grapheme-prev.c: New file.
19121         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
19122
19123         New module 'u8-grapheme-breaks'.
19124         * modules/unigbrk/u8-grapheme-breaks: New file.
19125         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
19126         * lib/unigbrk.in.h: Add prototype for new function.
19127         * lib/unigbrk/u8-grapheme-breaks.c: New file.
19128         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
19129
19130         New module 'u16-grapheme-breaks'.
19131         * modules/unigbrk/u16-grapheme-breaks: New file.
19132         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
19133         * lib/unigbrk.in.h: Add prototype for new function.
19134         * lib/unigbrk/u16-grapheme-breaks.c: New file.
19135         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
19136
19137         New module 'u32-grapheme-breaks'.
19138         * modules/unigbrk/u32-grapheme-breaks: New file.
19139         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
19140         * lib/unigbrk.in.h: Add prototype for new function.
19141         * lib/unigbrk/u32-grapheme-breaks.c: New file.
19142         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
19143
19144         New module 'ulc-grapheme-breaks'.
19145         * modules/unigbrk/ulc-grapheme-breaks: New file.
19146         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
19147         * m4/locale-ar.m4: New file.
19148         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
19149         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
19150         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
19151
19152 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
19153
19154         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
19155         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
19156         modified how this file was generated before I initially submitted
19157         the module, but failed to regenerate it.  This meant that several
19158         of the level2 entries were wrong.
19159         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
19160         Remove the division-by-2 that is folded into the table now that
19161         gbrkprop.h has been regenerated properly.  Now -1 entries are
19162         handled correctly.
19163
19164         New module 'unigbrk/uc-gbrk-prop-tests'.
19165         * modules/unigbrk/uc-gbrk-prop-tests: New file.
19166         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
19167         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
19168         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
19169
19170 2011-01-01  Bruno Haible  <bruno@clisp.org>
19171
19172         Avoid use of hexadecimal escapes.
19173         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
19174         instead of hexadecimal escapes.
19175
19176 2011-01-01  Jim Meyering  <meyering@redhat.com>
19177
19178         maint: new rule to update copyright year ranges
19179         * Makefile (update-copyright): New rule.
19180
19181         maint: indent with TABs in Makefile
19182         * Makefile: Expand leading sequences of spaces to TABs
19183
19184         version-etc: update the copyright year it reports
19185         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
19186
19187 2010-12-31  Bruno Haible  <bruno@clisp.org>
19188
19189         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
19190         * lib/isfinite.c (zerof, zerod, zerol): New variables.
19191         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
19192         zero.
19193
19194 2010-12-31  Bruno Haible  <bruno@clisp.org>
19195
19196         pwrite: Work around HP-UX 11.11 bug.
19197         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
19198         works and set REPLACE_PWRITE if not.
19199         * lib/pwrite.c (pwrite): Add an implementation that uses the system
19200         function.
19201         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
19202
19203 2010-12-31  Bruno Haible  <bruno@clisp.org>
19204
19205         pread: Work around HP-UX 11 bugs.
19206         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
19207         and set REPLACE_PREAD if not.
19208         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
19209
19210 2010-12-31  Eric Blake  <eblake@redhat.com>
19211
19212         nl_langinfo: fix YESEXPR on Irix 6.5
19213         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
19214         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
19215         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
19216         it.
19217
19218 2010-12-31  Bruno Haible  <bruno@clisp.org>
19219
19220         iconv: Document HP-UX 11 bug.
19221         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
19222
19223 2010-12-31  Bruno Haible  <bruno@clisp.org>
19224
19225         ldexpl: Fix link error on HP-UX 11.
19226         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
19227         LDEXPL_LIBM, using $ISNANL_LIBM.
19228
19229 2010-12-31  Eric Blake  <eblake@redhat.com>
19230
19231         ftello: avoid compilation failure with SunStudio c89
19232         * lib/ftello.c (ftello): Use lseek, not llseek.
19233
19234         tests: avoid failing coreutils tests on cygwin
19235         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
19236         (create_exe_shims_): Return 0 when skipping.
19237
19238 2010-12-31  Bruno Haible  <bruno@clisp.org>
19239
19240         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
19241         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
19242
19243 2010-12-31  Bruno Haible  <bruno@clisp.org>
19244
19245         waitpid: Fix link error in C++ mode.
19246         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
19247
19248 2010-12-31  Bruno Haible  <bruno@clisp.org>
19249
19250         isnan: Use GCC built-ins when possible.
19251         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
19252         __builtin_isnan.
19253         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
19254         (isnan): Define using GCC built-ins for GCC >= 4.0.
19255
19256 2010-12-31  Bruno Haible  <bruno@clisp.org>
19257
19258         isnand: Fix mistake.
19259         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
19260         __builtin_isnand.
19261
19262 2010-12-31  Bruno Haible  <bruno@clisp.org>
19263
19264         open: Avoid C++ error on HP-UX 11.
19265         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
19266
19267 2010-12-31  Bruno Haible  <bruno@clisp.org>
19268
19269         time_r: Add missing declarations on HP-UX 11.
19270         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
19271         instead of HAVE_LOCALTIME_R.
19272         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
19273         HAVE_LOCALTIME_R always.
19274         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
19275         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
19276         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
19277         HAVE_LOCALTIME_R.
19278         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
19279         * doc/posix-functions/localtime_r.texi: Likewise.
19280
19281 2010-12-29  Eric Blake  <eblake@redhat.com>
19282
19283         mountlist: tweak previous commit
19284         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
19285         Reported by Paul Eggert.
19286
19287         mountlist: fix local drive detection on cygwin
19288         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
19289         that works for cygwin.
19290
19291 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
19292
19293         ftoastr, snprintf: ftoastr + snprintf module
19294         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
19295         since the snprintf module now should be good enough here.
19296         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
19297         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
19298         and gl_MODULE_INDICATOR([snprintf]), but the former enables
19299         GNULIB_SNPRINTF only for the test directory, and the latter
19300         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
19301         seems to suffice by itself.
19302
19303 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
19304
19305         alloca: one step towards thread-safety
19306         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
19307         need for a static variable.  All callers changed.  This does not
19308         make the alloca replacement thread-safe, but it's one step.
19309
19310         tests: minor indenting change
19311         * tests/init.sh: Sync from coreutils housekeeping patch
19312         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
19313         to keep lines within 80 columns.
19314
19315 2010-12-28  Jim Meyering  <meyering@redhat.com>
19316
19317         regex: don't infloop on persistent failing calloc
19318         * lib/regexec.c (build_trtable): Return failure indication upon
19319         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
19320         In glibc, this was fixed for version 2.13:
19321         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
19322
19323 2010-12-28  Bruno Haible  <bruno@clisp.org>
19324             Paul Eggert <eggert@cs.ucla.edu>
19325
19326         linkat: Make implementation robust against system behaviour variations.
19327         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
19328         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
19329         way, and to -2 if it needs a generic runtime test.
19330         * lib/linkat.c (solaris_optimized_link_immediate,
19331         solaris_optimized_link_follow): New functions.
19332         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
19333         (check_same_link): Use it.
19334
19335 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
19336
19337         New module 'unigbrk/base'.
19338         * modules/unigbrk/base: New file.
19339         * lib/unigbrk.in.h: New file.
19340
19341         New module 'unigbrk/uc-gbrk-prop'.
19342         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
19343         * modules/unigbrk/uc-gbrk-prop: New file.
19344         * lib/unigbrk/gbrkprop.h: New file.
19345         * lib/unigbrk/uc-gbrk-prop.c: New file.
19346
19347         New module 'unigbrk/uc-is-grapheme-break'.
19348         * modules/unigbrk/uc-is-grapheme-break: New file.
19349         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
19350         * lib/unigbrk/uc-is-grapheme-break.c: New file.
19351         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
19352         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
19353         * tests/unigbrk/GraphemeBreakTest.txt: New file.
19354
19355         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
19356
19357 2010-12-27  Bruno Haible  <bruno@clisp.org>
19358
19359         linkat test: Avoid failure on Solaris 11 2010-11.
19360         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
19361
19362 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
19363
19364         utimens: work around glibc rounding bug on more platforms
19365         * lib/utimens.c (fdutimens): Work around rounding bug even if
19366         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
19367         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
19368
19369 2010-12-27  Bruno Haible  <bruno@clisp.org>
19370
19371         select tests: Improve comments.
19372         * tests/test-select.c (do_select): Add comments.
19373
19374 2010-12-27  Bruno Haible  <bruno@clisp.org>
19375
19376         select tests: Safer way of handling timeout.
19377         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
19378         at every invocation.
19379
19380 2010-12-27  Bruno Haible  <bruno@clisp.org>
19381
19382         select tests: Use 'bool' where appropriate.
19383         * tests/test-select.c (connect_to_socket): Change argument type to
19384         'bool'.
19385
19386 2010-12-27  Bruno Haible  <bruno@clisp.org>
19387
19388         select tests: Use existing modules.
19389         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
19390         (configure.ac): Don't test for unistd.h.
19391         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
19392         declared in <unistd.h>.
19393
19394 2010-12-27  Bruno Haible  <bruno@clisp.org>
19395
19396         mbrtowc: Work around a Solaris 7 bug.
19397         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
19398         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
19399         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
19400         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
19401         MBRTOWC_NULL_ARG1_BUG.
19402         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
19403         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
19404         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
19405         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
19406
19407 2010-12-27  Jim Meyering  <meyering@redhat.com>
19408
19409         read-file.c: tweak syntax
19410         * lib/read-file.c (fread_file): Remove space after "*" in function
19411         definitions.
19412
19413 2010-12-27  Bruno Haible  <bruno@clisp.org>
19414
19415         times test: Avoid gcc warnings on OSF/1.
19416         * tests/test-times.c (main): Cast printf arguments from clock_t to
19417         'long int'.
19418
19419 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
19420
19421         utimens: work around glibc rounding bug on older Linux kernels
19422         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
19423         on Linux with a glibc whose utimes might not work, then work
19424         around a longstanding glibc bug involving rounding rather than
19425         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
19426         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
19427
19428 2010-12-26  Bruno Haible  <bruno@clisp.org>
19429
19430         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
19431         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
19432         _GL_CXXALIAS_SYS.
19433         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19434
19435 2010-12-26  Bruno Haible  <bruno@clisp.org>
19436
19437         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
19438         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
19439         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
19440         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
19441         looking for the declaration.
19442         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
19443         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
19444         problem.
19445         * doc/posix-functions/inet_pton.texi: Likewise.
19446
19447 2010-12-26  Bruno Haible  <bruno@clisp.org>
19448
19449         arpa_inet: Use the common idioms with C++ support.
19450         * lib/arpa_inet.in.h: Include c++defs.h.
19451         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
19452         support.
19453         * modules/arpa_inet (Depends-on): Add c++defs.
19454         (Makefile.am): Substitute the contents of c++defs.h.
19455         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
19456         * modules/arpa_inet-c++-tests: New file.
19457         * tests/test-arpa_inet-c++.cc: New file.
19458
19459 2010-12-25  Bruno Haible  <bruno@clisp.org>
19460
19461         Fix more C++ link errors on Solaris 8.
19462         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
19463         $(LIB_EACCESS).
19464         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
19465         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
19466         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
19467         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
19468         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
19469
19470 2010-12-25  Bruno Haible  <bruno@clisp.org>
19471
19472         printf-posix: Fix link error when a non-GCC compiler is used.
19473         * lib/stdio.in.h (printf): When not using GCC, override printf
19474         correctly.
19475         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19476
19477 2010-12-25  Bruno Haible  <bruno@clisp.org>
19478
19479         strerror_r-posix: Update doc.
19480         * doc/posix-functions/strerror_r.texi: Update doc about the return
19481         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
19482
19483 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
19484
19485         utimens: simplify the logic of the previous change
19486         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
19487         This should not affect whether the test succeeds or fails.
19488
19489         utimens: configure better on hosts with NFS clock skew
19490         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
19491         uses the clock of the local host.  It might use the clock of the
19492         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
19493         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
19494
19495 2010-12-25  Bruno Haible  <bruno@clisp.org>
19496
19497         ptsname test: Avoid failure on Solaris.
19498         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
19499         open a pseudo-terminal; don't use BSD-style ptys.
19500         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
19501
19502 2010-12-25  Bruno Haible  <bruno@clisp.org>
19503
19504         ptsname: Avoid ERANGE failure on some systems.
19505         * lib/ptsname.c (buffer): Increase size.
19506
19507 2010-12-25  Bruno Haible  <bruno@clisp.org>
19508
19509         rename, renameat: Avoid test failures at NFS mounted locations.
19510         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
19511         so that subsequent mkdir calls succeed.
19512
19513 2010-12-25  Bruno Haible  <bruno@clisp.org>
19514
19515         iswblank: Fix C++ link error on Solaris 8.
19516         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
19517         _GL_FUNCDECL_SYS.
19518
19519 2010-12-25  Bruno Haible  <bruno@clisp.org>
19520
19521         unistd: Fix C++ link error on Solaris 8.
19522         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
19523
19524 2010-12-25  Bruno Haible  <bruno@clisp.org>
19525
19526         readlink doc: Mention an old glibc bug.
19527         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
19528
19529 2010-12-25  Bruno Haible  <bruno@clisp.org>
19530
19531         fcntl-h: Fix for use of C++ on glibc systems.
19532         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
19533         also on glibc systems in C++ mode.
19534         Reported by Gary V. Vaughan <gary@gnu.org>.
19535
19536 2010-12-25  Bruno Haible  <bruno@clisp.org>
19537
19538         roundl-ieee: Make it work on OSF/1 5.1 with cc.
19539         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
19540
19541 2010-12-25  Bruno Haible  <bruno@clisp.org>
19542
19543         truncl-ieee: Make it work on OSF/1 5.1 with cc.
19544         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
19545         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
19546         test whether truncl works according to ISO C 99 with IEC 60559.
19547         * m4/truncl-ieee.m4: New file.
19548         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
19549         m4/signbit.m4.
19550         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
19551
19552 2010-12-25  Bruno Haible  <bruno@clisp.org>
19553
19554         ceill-ieee: Make it work on OSF/1 5.1 with cc.
19555         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
19556         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
19557         test whether ceill works according to ISO C 99 with IEC 60559.
19558         * m4/ceill-ieee.m4: New file.
19559         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
19560         m4/signbit.m4.
19561         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
19562
19563 2010-12-25  Bruno Haible  <bruno@clisp.org>
19564
19565         Ensure all prerequisites of <wchar.h> are included.
19566         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
19567         before <wchar.h>.
19568         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
19569         gl_MBRLEN_NUL_RETVAL): Likewise.
19570         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
19571         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
19572         AC_FUNC_MBRTOWC): Likewise.
19573         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
19574         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
19575         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
19576         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
19577         Likewise.
19578         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
19579         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
19580         (gl_WCHAR_H): Improve comments.
19581         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
19582
19583 2010-12-25  Bruno Haible  <bruno@clisp.org>
19584
19585         strtok_r: Fix C syntax error in autoconf macro.
19586         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
19587         characters in test program.
19588
19589 2010-12-24  Bruno Haible  <bruno@clisp.org>
19590
19591         ceil, trunc, round: Fix gcc warnings.
19592         * lib/ceil.c (MIN): Undefine before redefining.
19593         * lib/trunc.c (MIN): Likewise.
19594         * lib/round.c (MIN): Likewise.
19595         Include <math.h> first.
19596
19597 2010-12-24  Bruno Haible  <bruno@clisp.org>
19598
19599         select tests: Avoid failures on OSF/1 5.1.
19600         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
19601         failure of closing the last socket; it may fail with ECONNRESET.
19602
19603 2010-12-24  Eric Blake  <eblake@redhat.com>
19604
19605         stdint: avoid HP-UX 10.20 preprocessor bug
19606         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
19607         than #if.
19608         * tests/test-floor2.c (main): Likewise.
19609         Reported by Peter O'Gorman.
19610
19611         pipe: make obsoletion transition easier
19612         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
19613         * modules/pipe (Files): Include revived file.
19614         (Include): Drop reference, to mirror getdate's behavior.
19615
19616 2010-12-24  Bruno Haible  <bruno@clisp.org>
19617
19618         sys_socket: Hide mismatch of declarations on NonStop Kernel.
19619         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
19620         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
19621         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19622
19623 2010-12-24  Bruno Haible  <bruno@clisp.org>
19624
19625         gethostname: Ensure declaration on NonStop Kernel.
19626         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
19627         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19628
19629 2010-12-24  Bruno Haible  <bruno@clisp.org>
19630
19631         sys_select: Ensure all necessary types on NonStop Kernel.
19632         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
19633         include <sys/time.h>.
19634         * doc/posix-headers/sys_select.texi: Mention that it's missing on
19635         NonStop Kernel.
19636         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19637
19638 2010-12-24  Bruno Haible  <bruno@clisp.org>
19639
19640         sys_select: Remove unneeded include.
19641         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
19642         have <sys/select.h>.
19643
19644 2010-12-24  Bruno Haible  <bruno@clisp.org>
19645
19646         gethostname: Provide a fallback for HOST_NAME_MAX.
19647         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
19648         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
19649         instead.
19650         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19651
19652 2010-12-24  Bruno Haible  <bruno@clisp.org>
19653
19654         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
19655         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
19656         (SA_RESTART): Likewise.
19657         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19658
19659 2010-12-24  Bruno Haible  <bruno@clisp.org>
19660
19661         signal: Define NSIG.
19662         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
19663         * tests/test-signal.c (nsig): New variable.
19664         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19665
19666 2010-12-24  Bruno Haible  <bruno@clisp.org>
19667
19668         rename, renameat: Avoid test failures on OSF/1 5.1.
19669         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
19670         alternative error codes.
19671         * tests/test-renameat.c (main): Likewise.
19672
19673 2010-12-24  Bruno Haible  <bruno@clisp.org>
19674
19675         *printf: Detect large precisions bug on Solaris 10/SPARC.
19676         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
19677         by Paul Eggert.
19678         * tests/test-snprintf-posix.h (test_function): Add this test code here
19679         too.
19680         * tests/test-sprintf-posix.h (test_function): Likewise.
19681         * tests/test-vasnprintf-posix.c (test_function): Likewise.
19682         * tests/test-vasprintf-posix.c (test_function): Likewise.
19683         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
19684         around by gnulib.
19685         * doc/posix-functions/printf.texi: Likewise.
19686         * doc/posix-functions/snprintf.texi: Likewise.
19687         * doc/posix-functions/sprintf.texi: Likewise.
19688         * doc/posix-functions/vfprintf.texi: Likewise.
19689         * doc/posix-functions/vprintf.texi: Likewise.
19690         * doc/posix-functions/vsnprintf.texi: Likewise.
19691         * doc/posix-functions/vsprintf.texi: Likewise.
19692         * doc/posix-functions/dprintf.texi: Undo last commit.
19693         * doc/posix-functions/vdprintf.texi: Likewise.
19694
19695 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
19696
19697         tests: port test-fdutimensat.c to Solaris 8
19698         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
19699         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
19700         On Solaris 8, it fails with errno == ENOSYS, because there is no
19701         futimens (so it can't use the fd), and there is no lutimens (so it
19702         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
19703
19704         vsnprintf: make more consistent with snprintf; doc fixes
19705
19706         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
19707         the byte count return problem was promoted from the snprintf-posix
19708         to the snprintf module.
19709         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
19710         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
19711         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
19712         * tests/test-snprintf.c (main): Check the byte count returned.
19713         * tests/test-vsnprintf.c (main): Likewise.
19714
19715 2010-12-23  Eric Blake  <eblake@redhat.com>
19716
19717         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
19718         * modules/sigpipe (License): Relax license.
19719
19720 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
19721
19722         doc: document Solaris printf bug with large float precisions
19723         * doc/posix-functions/dprintf.texi (dprintf):
19724         * doc/posix-functions/fprintf.texi (fprintf):
19725         * doc/posix-functions/printf.texi (printf):
19726         * doc/posix-functions/snprintf.texi (snprintf):
19727         * doc/posix-functions/sprintf.texi (sprintf):
19728         * doc/posix-functions/vdprintf.texi (vdprintf):
19729         * doc/posix-functions/vfprintf.texi (vfprintf):
19730         * doc/posix-functions/vprintf.texi (vprintf):
19731         * doc/posix-functions/vsnprintf.texi (vsnprintf):
19732         * doc/posix-functions/vsprintf.texi (vsprintf):
19733         Mention that these functions mishandle large floating point
19734         precisions on Solaris 10.  The same bug is also present in Solaris
19735         8, and I assume earlier.  This causes "cd gnulib-tests; make
19736         check" to fail on Solaris 8 (and I assume, later) when building
19737         the latest coreutils, in test-vasprintf-posix's call to
19738         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
19739         the wide flavors (e.g., wprintf) so this patch just updates the
19740         documentation for the narrow ones.
19741
19742         test-posixtm.c: add two tests
19743         * tests/test-posixtm.c: Add two tests, to highlight the
19744         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
19745         around this bug; this is merely to document it.
19746
19747 2010-12-22  Bruno Haible  <bruno@clisp.org>
19748
19749         getlogin_r: Work around portability problem on OSF/1.
19750         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
19751         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
19752         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
19753         test for a truncated result.
19754         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
19755         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
19756         * modules/getlogin_r (Depends-on): Add memchr.
19757         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
19758
19759 2010-12-22  Bruno Haible  <bruno@clisp.org>
19760
19761         ptsname: Avoid test failure on OSF/1 5.1.
19762         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
19763         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
19764         (same_slave): New function.
19765         (main): Use it to compare ptsname's result with the expected file name.
19766
19767 2010-12-22  Bruno Haible  <bruno@clisp.org>
19768
19769         Port extended stdio modules to HP NonStop Kernel.
19770         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
19771         macros.
19772         * lib/fbufmode.c: Update comments.
19773         * lib/fflush.c: Likewise.
19774         * lib/fpurge.c: Likewise.
19775         * lib/freadable.c: Likewise.
19776         * lib/freadahead.c: Likewise.
19777         * lib/freading.c: Likewise.
19778         * lib/freadptr.c: Likewise.
19779         * lib/freadseek.c: Likewise.
19780         * lib/fseeko.c: Likewise.
19781         * lib/fseterr.c: Likewise.
19782         * lib/fwritable.c: Likewise.
19783         * lib/fwriting.c: Likewise.
19784         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19785
19786 2010-12-22  Bruno Haible  <bruno@clisp.org>
19787
19788         ttyname_r: Work around bug on OSF/1 5.1.
19789         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
19790         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
19791         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
19792         present.
19793         * lib/ttyname_r.c (ttyname_r): Update comments.
19794
19795 2010-12-22  Bruno Haible  <bruno@clisp.org>
19796
19797         round: Implement result sign according to IEEE 754.
19798         * lib/round.c (MIN, MINUS_ZERO): New macros.
19799         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
19800         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
19801         * tests/test-round-ieee.c (main): Likewise.
19802         * tests/test-roundl-ieee.c (main): Likewise.
19803
19804         trunc: Implement result sign according to IEEE 754.
19805         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
19806         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
19807         * tests/test-trunc2.c: Include minus-zero.h.
19808         (MINUS_ZERO): New macro.
19809         (trunc_reference): Keep in sync with lib/trunc.c.
19810         * tests/test-truncf2.c: Include minus-zero.h.
19811         (MINUS_ZERO): New macro.
19812         (truncf_reference): Keep in sync with lib/trunc.c.
19813         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
19814         * tests/test-trunc-ieee.c (main): Likewise.
19815         * tests/test-truncl-ieee.c (main): Likewise.
19816
19817         ceil: Implement result sign according to IEEE 754.
19818         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
19819         (FUNC): Return -0.0 for -1 < x < 0.
19820         * tests/test-ceil2.c: Include minus-zero.h.
19821         (MINUS_ZERO): New macro.
19822         (ceil_reference): Keep in sync with lib/ceil.c.
19823         * tests/test-ceilf2.c: Include minus-zero.h.
19824         (MINUS_ZERO): New macro.
19825         (ceilf_reference): Keep in sync with lib/ceil.c.
19826         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
19827         * tests/test-ceil-ieee.c (main): Likewise.
19828         * tests/test-ceill-ieee.c (main): Likewise.
19829
19830         floor: Implement result sign according to IEEE 754.
19831         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
19832         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
19833         * tests/test-floorf2.c (floorf_reference): Likewise.
19834         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
19835         * tests/test-floor-ieee.c (main): Likewise.
19836         * tests/test-floorl-ieee.c (main): Likewise.
19837
19838 2010-12-22  Bruno Haible  <bruno@clisp.org>
19839
19840         getaddrinfo: Update doc.
19841         * doc/posix-functions/gai_strerror.texi: Return type is also different
19842         on AIX and HP-UX.
19843
19844 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
19845
19846         getaddrinfo, inet_ntop: Update doc for Solaris.
19847         * doc/posix-functions/gai_strerror.texi: Return type is also an
19848         issue on Solaris 9 and earlier.
19849         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
19850         on Solaris 10 and earlier.
19851
19852 2010-12-21  Bruno Haible  <bruno@clisp.org>
19853
19854         New module 'roundl-ieee'.
19855         * modules/roundl-ieee: New file.
19856         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
19857         test whether roundl works according to ISO C 99 with IEC 60559.
19858         * m4/roundl-ieee.m4: New file.
19859         * modules/roundl-ieee-tests: New file.
19860         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
19861         * tests/test-roundl.c (main): Remove signbit tests.
19862         * modules/roundl-tests (Depends-on): Remove signbit.
19863         * doc/posix-functions/roundl.texi: Mention the new module.
19864
19865 2010-12-21  Bruno Haible  <bruno@clisp.org>
19866
19867         New module 'truncl-ieee'.
19868         * modules/truncl-ieee: New file.
19869         * modules/truncl-ieee-tests: New file.
19870         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
19871         * tests/test-truncl.c (main): Remove signbit tests.
19872         * modules/truncl-tests (Depends-on): Remove signbit.
19873         * doc/posix-functions/truncl.texi: Mention the new module.
19874
19875 2010-12-21  Bruno Haible  <bruno@clisp.org>
19876
19877         New module 'ceill-ieee'.
19878         * modules/ceill-ieee: New file.
19879         * modules/ceill-ieee-tests: New file.
19880         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
19881         * tests/test-ceill.c (main): Remove signbit tests.
19882         * modules/ceill-tests (Depends-on): Remove signbit.
19883         * doc/posix-functions/ceill.texi: Mention the new module.
19884
19885 2010-12-21  Bruno Haible  <bruno@clisp.org>
19886
19887         New module 'floorl-ieee'.
19888         * modules/floorl-ieee: New file.
19889         * modules/floorl-ieee-tests: New file.
19890         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
19891         * tests/test-floorl.c (main): Remove signbit tests.
19892         * modules/floorl-tests (Depends-on): Remove signbit.
19893         * doc/posix-functions/floorl.texi: Mention the new module.
19894
19895 2010-12-21  Bruno Haible  <bruno@clisp.org>
19896
19897         New module 'round-ieee'.
19898         * modules/round-ieee: New file.
19899         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
19900         whether round works according to ISO C 99 with IEC 60559.
19901         * m4/round-ieee.m4: New file.
19902         * modules/round-ieee-tests: New file.
19903         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
19904         * tests/test-round1.c (main): Remove signbit tests.
19905         * modules/round-tests (Depends-on): Remove 'signbit'.
19906         * doc/posix-functions/round.texi: Mention the new module.
19907
19908 2010-12-21  Bruno Haible  <bruno@clisp.org>
19909
19910         New module 'trunc-ieee'.
19911         * modules/trunc-ieee: New file.
19912         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
19913         whether trunc works according to ISO C 99 with IEC 60559.
19914         * m4/trunc-ieee.m4: New file.
19915         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
19916         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
19917         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
19918         * modules/trunc-ieee-tests: New file.
19919         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
19920         * tests/test-trunc1.c (main): Remove signbit tests.
19921         * modules/trunc-tests (Depends-on): Remove 'signbit'.
19922         * doc/posix-functions/trunc.texi: Mention the new module.
19923
19924 2010-12-21  Bruno Haible  <bruno@clisp.org>
19925
19926         New module 'ceil-ieee'.
19927         * modules/ceil-ieee: New file.
19928         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
19929         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
19930         ISO C 99 with IEC 60559.
19931         * m4/ceil-ieee.m4: New file.
19932         * modules/ceil (Files): Add lib/ceil.c.
19933         (Depends-on): Add 'float'.
19934         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19935         * lib/math.in.h (ceil): New declaration.
19936         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
19937         REPLACE_CEIL.
19938         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
19939         * modules/ceil-ieee-tests: New file.
19940         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
19941         * tests/test-math-c++.cc: Check the signature of 'ceil'.
19942         * doc/posix-functions/ceil.texi: Mention the new module.
19943
19944 2010-12-21  Bruno Haible  <bruno@clisp.org>
19945
19946         New module 'floor-ieee'.
19947         * modules/floor-ieee: New file.
19948         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
19949         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
19950         ISO C 99 with IEC 60559.
19951         * m4/floor-ieee.m4: New file.
19952         * modules/floor (Files): Add lib/floor.c.
19953         (Depends-on): Add 'float'.
19954         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19955         * lib/math.in.h (floor): New declaration.
19956         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
19957         REPLACE_FLOOR.
19958         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
19959         * modules/floor-ieee-tests: New file.
19960         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
19961         * tests/test-math-c++.cc: Check the signature of 'floor'.
19962         * doc/posix-functions/floor.texi: Mention the new module.
19963
19964 2010-12-21  Bruno Haible  <bruno@clisp.org>
19965
19966         New module 'roundf-ieee'.
19967         * modules/roundf-ieee: New file.
19968         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
19969         test whether roundf works according to ISO C 99 with IEC 60559.
19970         * m4/roundf-ieee.m4: New file.
19971         * modules/roundf-ieee-tests: New file.
19972         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
19973         * tests/test-roundf1.c (main): Remove signbit tests.
19974         * modules/roundf-tests (Depends-on): Remove 'signbit'.
19975         * doc/posix-functions/roundf.texi: Mention the new module.
19976
19977 2010-12-21  Bruno Haible  <bruno@clisp.org>
19978
19979         New module 'truncf-ieee'.
19980         * modules/truncf-ieee: New file.
19981         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
19982         test whether truncf works according to ISO C 99 with IEC 60559.
19983         * m4/truncf-ieee.m4: New file.
19984         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
19985         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
19986         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
19987         * modules/truncf-ieee-tests: New file.
19988         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
19989         * tests/test-truncf1.c (main): Remove signbit tests.
19990         * modules/truncf-tests (Depends-on): Remove 'signbit'.
19991         * doc/posix-functions/truncf.texi: Mention the new module.
19992
19993 2010-12-21  Bruno Haible  <bruno@clisp.org>
19994
19995         New module 'ceilf-ieee'.
19996         * modules/ceilf-ieee: New file.
19997         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
19998         test whether ceilf works according to ISO C 99 with IEC 60559.
19999         * m4/ceilf-ieee.m4: New file.
20000         * modules/ceilf-ieee-tests: New file.
20001         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
20002         * tests/test-ceilf1.c (main): Remove signbit tests.
20003         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
20004         * doc/posix-functions/ceilf.texi: Mention the new module.
20005
20006 2010-12-21  Bruno Haible  <bruno@clisp.org>
20007
20008         New module 'floorf-ieee'.
20009         * modules/floorf-ieee: New file.
20010         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
20011         test whether floorf works according to ISO C 99 with IEC 60559.
20012         * m4/floorf-ieee.m4: New file.
20013         * modules/floorf-ieee-tests: New file.
20014         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
20015         * tests/test-floorf1.c (main): Remove signbit tests.
20016         * modules/floorf-tests (Depends-on): Remove 'signbit'.
20017         * doc/posix-functions/floorf.texi: Mention the new module.
20018
20019 2010-12-21  Bruno Haible  <bruno@clisp.org>
20020
20021         Support for minus zero in autoconf macros.
20022         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
20023         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
20024         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
20025         * tests/minus-zero.h: Update comments.
20026
20027 2010-12-21  Bruno Haible  <bruno@clisp.org>
20028
20029         Tests for module 'ceil'.
20030         * modules/ceil-tests: New file.
20031         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
20032         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
20033
20034 2010-12-21  Bruno Haible  <bruno@clisp.org>
20035
20036         Tests for module 'floor'.
20037         * modules/floor-tests: New file.
20038         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
20039         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
20040
20041 2010-12-21  Bruno Haible  <bruno@clisp.org>
20042
20043         math: Fix indentation.
20044         * lib/math.in.h (floorf): Fix indentation.
20045
20046 2010-12-21  Bruno Haible  <bruno@clisp.org>
20047
20048         Fix cross-compilation guesses on Solaris.
20049         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
20050         not match "solaris2.10".
20051         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
20052         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
20053         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
20054
20055 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
20056
20057         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
20058         This fixes a problem observed with the latest coreutils snapshot
20059         that caused a test to fail on Solaris 8.  src/csplit.c's call
20060         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
20061         earlier, instead of returning the number of bytes that would have
20062         been generated; this causes csplit to incorrectly report memory
20063         exhaustion.
20064         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
20065         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
20066         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
20067         comments to match.
20068         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
20069         Fix typo in matching older versions of Solaris: "solaris2.10"
20070         is matched by the shell pattern "solaris2.[0-9]*".  This matters
20071         only for guessing while cross-compiling.
20072         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
20073
20074 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
20075
20076         ftoastr: fix comment again
20077         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
20078         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
20079         Also, simplify example a bit by using flags = 0.
20080
20081 2010-12-20  Bruno Haible  <bruno@clisp.org>
20082
20083         round*, trunc*: Update documentation regarding glibc.
20084         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
20085         * doc/posix-functions/round.texi: Likewise.
20086         * doc/posix-functions/roundl.texi: Likewise.
20087         * doc/posix-functions/truncf.texi: Likewise.
20088         * doc/posix-functions/trunc.texi: Likewise.
20089         * doc/posix-functions/truncl.texi: Likewise.
20090
20091 2010-12-20  Bruno Haible  <bruno@clisp.org>
20092
20093         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
20094         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
20095         * doc/posix-functions/round.texi: Likewise.
20096         * doc/posix-functions/roundl.texi: Likewise.
20097
20098 2010-12-20  Bruno Haible  <bruno@clisp.org>
20099
20100         ttyname_r: Add missing declaration on HP-UX 11.
20101         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
20102         HAVE_TTYNAME_R.
20103         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
20104         declared. Set HAVE_TTYNAME_R always.
20105         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20106         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
20107         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
20108         HAVE_TTYNAME_R.
20109         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
20110
20111 2010-12-20  Bruno Haible  <bruno@clisp.org>
20112
20113         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
20114         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
20115         * doc/posix-functions/getlogin_r.texi: Likewise.
20116         * tests/test-getlogin.c: Include <errno.h>.
20117         (main): Avoid test failure on HP-UX 11.11.
20118         * tests/test-getlogin_r.c (main): Likewise.
20119
20120 2010-12-20  Bruno Haible  <bruno@clisp.org>
20121
20122         getlogin_r: Add missing declaration on HP-UX 11.
20123         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
20124         declared also when it exists as a function.
20125         * doc/posix-functions/getlogin_r.texi: Document this workaround.
20126
20127 2010-12-20  Bruno Haible  <bruno@clisp.org>
20128
20129         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
20130         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
20131         through wcrtomb.
20132
20133 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
20134
20135         ftoastr: fix comment
20136         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
20137         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
20138
20139 2010-12-19  Bruno Haible  <bruno@clisp.org>
20140
20141         isnan: Ensure it is a macro.
20142         * lib/math.in.h (isnan): Define as a macro if not already a macro.
20143         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
20144         Solaris.
20145
20146 2010-12-19  Bruno Haible  <bruno@clisp.org>
20147
20148         ldexpl test: Fix link error on OSF/1 5.1.
20149         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
20150
20151 2010-12-19  Bruno Haible  <bruno@clisp.org>
20152
20153         wctype: Make it work in C++ mode on OSF/1 5.1.
20154         * lib/wctype.in.h (iswblank): Declare but not define here.
20155         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
20156         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
20157         * modules/wctype (Files): Add lib/iswblank.c.
20158
20159 2010-12-19  Bruno Haible  <bruno@clisp.org>
20160
20161         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
20162         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
20163         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
20164
20165 2010-12-19  Bruno Haible  <bruno@clisp.org>
20166
20167         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
20168         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
20169         _POSIX_PII_SOCKET.
20170         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
20171         * doc/posix-functions/recvfrom.texi: Likewise.
20172         * doc/posix-functions/send.texi: Likewise.
20173         * doc/posix-functions/sendto.texi: Likewise.
20174
20175 2010-12-19  Bruno Haible  <bruno@clisp.org>
20176
20177         tcgetsid: Add missing declaration on OSF/1 5.1.
20178         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
20179         HAVE_TCGETSID.
20180         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
20181         Don't set HAVE_TCGETSID.
20182         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
20183         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
20184         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
20185         HAVE_TCGETSID.
20186         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
20187
20188 2010-12-19  Bruno Haible  <bruno@clisp.org>
20189
20190         stdio: Fix problem with popen() declaration on OSF/1 5.1.
20191         * lib/stdio.in.h: During the include_next statement, let recursive
20192         includes of this file include only the system header file.
20193
20194 2010-12-19  Bruno Haible  <bruno@clisp.org>
20195
20196         iconv_open: Fix regression from 2010-12-04.
20197         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
20198         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
20199
20200 2010-12-19  Bruno Haible  <bruno@clisp.org>
20201
20202         stdbool test: Avoid a gcc warning.
20203         * tests/test-stdbool.c (main): Fail if e1 is false.
20204         Reported by Jim Meyering.
20205
20206 2010-12-19  Jim Meyering  <meyering@redhat.com>
20207
20208         setenv: restore to working order
20209         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
20210         mistakenly removed.
20211         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
20212         HAVE_SETENV.
20213         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
20214         HAVE_SETENV.
20215
20216 2010-12-19  Bruno Haible  <bruno@clisp.org>
20217
20218         Document some different function declarations on OSF/1 5.1.
20219         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
20220         * doc/posix-functions/inet_ntop.texi: Likewise.
20221         * doc/posix-functions/gethostname.texi: Likewise.
20222         * lib/unistd.in.h (gethostname): Update comment.
20223
20224 2010-12-19  Bruno Haible  <bruno@clisp.org>
20225
20226         doc: Mention vasprintf-posix module.
20227         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
20228         the 'vasprintf-posix' module.
20229         * doc/glibc-functions/vasprintf.texi: Likewise.
20230
20231 2010-12-19  Bruno Haible  <bruno@clisp.org>
20232
20233         unsetenv: Add missing declaration on OSF/1 5.1.
20234         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
20235         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
20236         Don't set HAVE_UNSETENV. In the test program, set _BSD.
20237         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
20238         not HAVE_UNSETENV.
20239         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
20240         HAVE_UNSETENV.
20241         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
20242
20243 2010-12-19  Bruno Haible  <bruno@clisp.org>
20244
20245         setenv: Add missing declaration on OSF/1 5.1.
20246         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
20247         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
20248         declared. Don't set HAVE_SETENV.
20249         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
20250         not HAVE_SETENV.
20251         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
20252         HAVE_SETENV.
20253         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
20254
20255 2010-12-19  Bruno Haible  <bruno@clisp.org>
20256
20257         nl_langinfo tests: Avoid gcc warning.
20258         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
20259
20260 2010-12-19  Bruno Haible  <bruno@clisp.org>
20261
20262         mknod: Avoid error in C++ mode on OSF/1 with GCC.
20263         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
20264         _GL_CXXALIAS_SYS.
20265
20266 2010-12-19  Bruno Haible  <bruno@clisp.org>
20267
20268         stdbool: Relax test.
20269         * tests/test-stdbool.c (e): Don't require that casts from a variable's
20270         address to 'bool' work in static initializer, for compilers other than
20271         GCC.
20272
20273 2010-12-19  Bruno Haible  <bruno@clisp.org>
20274
20275         ftello: Add missing declaration on OSF/1 5.1.
20276         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
20277         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
20278         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
20279         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
20280         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
20281
20282 2010-12-19  Bruno Haible  <bruno@clisp.org>
20283
20284         fseeko: Add missing declaration on OSF/1 5.1.
20285         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
20286         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
20287         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
20288         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
20289         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
20290
20291 2010-12-19  Bruno Haible  <bruno@clisp.org>
20292
20293         fchdir: Add missing declaration on OSF/1 5.1.
20294         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
20295         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
20296         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
20297         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
20298         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
20299
20300 2010-12-19  Bruno Haible  <bruno@clisp.org>
20301
20302         relocatable-prog-wrapper: Separate from relocatable-prog.
20303         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
20304         uninstall-relocwrapper rule here.
20305         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
20306         Reported by Ian Beckwith <ianb@erislabs.net>.
20307
20308 2010-12-19  Bruno Haible  <bruno@clisp.org>
20309
20310         unistr/u8-mbsnlen: Add missing dependency.
20311         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
20312         Reported by Ian Beckwith <ianb@erislabs.net>.
20313
20314 2010-12-19  Bruno Haible  <bruno@clisp.org>
20315
20316         iconv: Make it possible again to use this module without 'iconv-h'.
20317         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
20318         if it is not defined.
20319         Reported by Ian Beckwith <ianb@erislabs.net>.
20320
20321 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
20322
20323         acl: port to Solaris 8 when copying from tmpfs to ufs
20324         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
20325         error number.  Problem observed on Solaris 8 with latest
20326         coreutils, with "mv A B", where A is on a tmpfs file system and B
20327         is on a ufs file system.  This caused coreutils' mv/part-symlink
20328         test to fail.
20329
20330         tests: set fail=0 at start
20331         * tests/init.sh (setup_): Move fail=0 initialization here ...
20332         (mktempd_): ... from here, so that tests can rely on fail being
20333         set to 0 initially.  This fixes a problem in coreutils; see:
20334         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
20335
20336 2010-12-18  Bruno Haible  <bruno@clisp.org>
20337
20338         memmem-simple: Stylistic changes.
20339         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
20340         Fix preprocessor directive indentation.
20341
20342 2010-12-15  Pádraig Brady <P@draigBrady.com>
20343
20344         memmem, memmem-simple: reorganize and expand empty needle check
20345         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
20346         functional checks to memmem-simple so that one has a fully functional
20347         memmem by using just this module.
20348         Restrict the performance only check to the memmem module.
20349         Also expand the empty needle check to ensure the correct
20350         pointer is returned, not just a non NULL pointer.
20351         * doc/glibc-functions/memmem.texi: Rearrange the portability
20352         documentation to correlate with the rearranged checks.
20353         Clarify exactly how the memmem and memmem-simple modules
20354         relate to each other.
20355
20356 2010-12-15  Pádraig Brady <P@draigBrady.com>
20357             Bruno Haible  <bruno@clisp.org>
20358
20359         Improve cross-compilation guesses for uClibc.
20360         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
20361         that uClibc does not have the glibc bug.
20362         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
20363         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
20364
20365 2010-12-14  Eric Blake  <eblake@redhat.com>
20366
20367         configmake: provide fallbacks for oldest supported autotools
20368         * m4/configmake.m4: New file.
20369         * modules/configmake (Files): Ship it.
20370         (configure.ac): Use it to guarantee fallbacks.
20371
20372 2010-12-13  Pádraig Brady <P@draigBrady.com>
20373
20374         read-file: Improve handling of large files
20375         * lib/read-file.c (fread_file): Minimize realloc()s
20376         for regular files, and better manage sizes around SIZE_MAX.
20377
20378 2010-12-13  Eric Blake  <eblake@redhat.com>
20379
20380         cloexec, fcntl: relax license
20381         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
20382         consent from all contributors.
20383         * modules/fcntl (License): Likewise.
20384
20385 2010-12-10  Bruno Haible  <bruno@clisp.org>
20386
20387         Tests for module 'pipe-posix'.
20388         * modules/pipe-posix-tests: New file.
20389         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
20390
20391 2010-12-10  Bruno Haible  <bruno@clisp.org>
20392
20393         pipe-posix: Make it work in C++ mode.
20394         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
20395         (pipe): Use common idiom, not a macro definition.
20396         * lib/pipe.c: New file.
20397         * m4/pipe.m4: New file.
20398         * modules/pipe-posix (Description): Enhance.
20399         (Files): Add lib/pipe.c, m4/pipe.m4.
20400         (configure.ac): Invoke gl_FUNC_PIPE.
20401         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
20402         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
20403         * tests/test-unistd-c++.cc: Check the signature of pipe.
20404
20405 2010-12-10  Bruno Haible  <bruno@clisp.org>
20406
20407         Rename module 'pipe' to 'spawn-pipe'.
20408         * modules/spawn-pipe: New file, renamed from modules/pipe.
20409         (Files, configure.ac, Makefile.am): Update.
20410         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
20411         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
20412         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
20413         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
20414         "spawn-pipe.h" instead of "pipe.h".
20415         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
20416         to gl_SPAWN_PIPE.
20417         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
20418         (Files, Makefile.am): Update.
20419         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
20420         Update.
20421         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
20422         Include "spawn-pipe.h" instead of "pipe.h".
20423         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
20424         * lib/javacomp.c: Likewise.
20425         * lib/javaversion.c: Likewise.
20426         * lib/pipe-filter-gi.c: Likewise.
20427         * lib/pipe-filter-ii.c: Likewise.
20428         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
20429         * modules/javacomp (Depends-on): Likewise.
20430         * modules/javaversion (Depends-on): Likewise.
20431         * modules/pipe-filter-gi (Depends-on): Likewise.
20432         * modules/pipe-filter-ii (Depends-on): Likewise.
20433         * MODULES.html.sh (Executing programs): Update.
20434         * NEWS: Mention the change.
20435
20436 2010-12-10  Eric Blake  <eblake@redhat.com>
20437
20438         pipe-posix: new module
20439         * modules/pipe-posix: New file.
20440         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
20441         (gl_UNISTD_H): Check for declaration.
20442         * modules/unistd (Makefile.am): Substitute it.
20443         * lib/unistd.in.h (pipe): Provide it for mingw.
20444         * doc/posix-functions/pipe.texi (pipe): Update documentation.
20445         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
20446
20447 2010-12-07  Bruno Haible  <bruno@clisp.org>
20448
20449         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
20450         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
20451         u8_strcmp_gnu.
20452         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
20453
20454 2010-12-06  Bruno Haible  <bruno@clisp.org>
20455
20456         Update internal documentation.
20457         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
20458
20459 2010-12-04  Bruno Haible  <bruno@clisp.org>
20460
20461         Put more information about failed tests into the test return codes.
20462         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
20463         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
20464         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
20465         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
20466         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
20467         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
20468         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
20469         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
20470         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
20471         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
20472         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
20473         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
20474         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
20475         * m4/stdint.m4 (gl_STDINT_H): Likewise.
20476         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
20477         returns a bit mask.
20478         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
20479         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
20480         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
20481         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
20482         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
20483         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
20484         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
20485         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
20486         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
20487         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
20488         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
20489         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
20490         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
20491         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
20492         * m4/link.m4 (gl_FUNC_LINK): Likewise.
20493         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
20494         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
20495         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
20496         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
20497         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
20498         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
20499         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
20500         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
20501         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
20502         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
20503         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
20504         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
20505         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
20506         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
20507         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
20508         gl_PRINTF_PRECISION): Likewise.
20509         * m4/regex.m4 (gl_REGEX): Likewise.
20510         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
20511         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
20512         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
20513         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
20514         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
20515         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
20516         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
20517         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
20518         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
20519         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
20520         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
20521         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
20522         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
20523         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
20524         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
20525         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
20526         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
20527         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
20528         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
20529         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
20530         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
20531         enumerated value.
20532         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
20533
20534 2010-12-04  Bruno Haible  <bruno@clisp.org>
20535
20536         Update for Solaris 11 2010-11.
20537         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
20538         Express, released in November 2010.
20539
20540 2010-12-04  Bruno Haible  <bruno@clisp.org>
20541
20542         nproc: Relax license.
20543         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
20544         and Paul Eggert.
20545         Requested by Ludovic Courtès <ludo@gnu.org>.
20546
20547 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
20548
20549         utimecmp: fine-grained src to nearby coarse-grained dest
20550
20551         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
20552         and the source is on a file system with higher-resolution time
20553         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
20554         not work, and the time stamps are close together, the algorithm to
20555         determine the exact resolution from the read-back mtime was buggy:
20556         it had a "!=" where it should have had an "==".  This bug has been
20557         in the code ever since it was introduced to gnulib.
20558         Problem reported by Dan Jacobson in
20559         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
20560
20561 2010-11-30  Bruno Haible  <bruno@clisp.org>
20562
20563         strerror_r-posix: Fix autoconf test.
20564         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
20565
20566 2010-11-28  Bruno Haible  <bruno@clisp.org>
20567             Paul Eggert  <eggert@cs.ucla.edu>
20568
20569         Tests for module 'getdomainname'.
20570         * modules/getdomainname-tests: New file.
20571         * tests/test-getdomainname.c: New file, based on
20572         tests/test-gethostname.c.
20573
20574 2010-11-28  Bruno Haible  <bruno@clisp.org>
20575             Paul Eggert  <eggert@cs.ucla.edu>
20576
20577         getdomainname: Use the system function when possible.
20578         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
20579         (getdomainname): Replace if needed. Provide the declaration if it is
20580         missing. Don't use _GL_CXXALIAS_SYS_CAST.
20581         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
20582         (getdomainname): When the system has getdomainname, call the system
20583         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
20584         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
20585         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
20586         found in libnsl. Look for the declaration also in <netdb.h>. Replace
20587         the function if its second argument is of type 'int' or if it is found
20588         in libnsl.
20589         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
20590         <sys/systeminfo.h> and sysinfo().
20591         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
20592         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20593         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
20594         HAVE_GETDOMAINNAME.
20595         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
20596         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
20597         * doc/glibc-functions/getdomainname.texi: Document the problems with
20598         the getdomainname declaration.
20599
20600 2010-11-28  Bruno Haible  <bruno@clisp.org>
20601
20602         sys_socket: Ensure ss_family field on AIX.
20603         * lib/sys_socket.in.h (ss_family): New macro definition.
20604         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
20605         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
20606         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
20607         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
20608         * modules/sys_socket (Makefile.am): Substitute
20609         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
20610         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
20611
20612 2010-11-27  Bruno Haible  <bruno@clisp.org>
20613
20614         readline: Improve configure output.
20615         * m4/readline.m4 (gl_FUNC_READLINE): Make the
20616         "checking for readline..." result understandable.
20617
20618 2010-11-27  Bruno Haible  <bruno@clisp.org>
20619
20620         *printf-posix: Detect a bug on Solaris 10/x86.
20621         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
20622         for floating-point output.
20623         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
20624         directive.
20625         * tests/test-snprintf-posix.h (test_function): Likewise.
20626         * tests/test-sprintf-posix.h (test_function): Likewise.
20627         * tests/test-vasprintf-posix.c (test_function): Likewise.
20628         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
20629         * doc/posix-functions/printf.texi: Likewise.
20630         * doc/posix-functions/snprintf.texi: Likewise.
20631         * doc/posix-functions/sprintf.texi: Likewise.
20632         * doc/posix-functions/vfprintf.texi: Likewise.
20633         * doc/posix-functions/vprintf.texi: Likewise.
20634         * doc/posix-functions/vsnprintf.texi: Likewise.
20635         * doc/posix-functions/vsprintf.texi: Likewise.
20636         * doc/glibc-functions/obstack_printf.texi: Likewise.
20637         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
20638
20639 2010-11-27  Bruno Haible  <bruno@clisp.org>
20640
20641         Fix link error when module libunistring-optional is in use.
20642         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
20643         * modules/striconveha-tests (Makefile.am): Likewise.
20644
20645 2010-11-27  Bruno Haible  <bruno@clisp.org>
20646
20647         regex: Mention link dependencies.
20648         * modules/regex (Link): New section.
20649         * modules/rpmatch (Link): Likewise.
20650         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
20651
20652 2010-11-27  Bruno Haible  <bruno@clisp.org>
20653
20654         ftoastr: Fix compilation error on Solaris.
20655         * lib/ftoastr.c: Include <config.h>.
20656
20657 2010-11-27  Bruno Haible  <bruno@clisp.org>
20658
20659         getloadavg: Update documentation.
20660         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
20661
20662 2010-11-27  Bruno Haible  <bruno@clisp.org>
20663
20664         sys_socket: Fix test whether the functions are declared.
20665         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
20666         not <sys/select.h>.
20667
20668 2010-11-27  Bruno Haible  <bruno@clisp.org>
20669
20670         getpass: Make sure to get system declaration on some platforms.
20671         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
20672         gl_USE_SYSTEM_EXTENSIONS.
20673         * modules/getpass (Depends-on): Add extensions.
20674
20675 2010-11-26  Bruno Haible  <bruno@clisp.org>
20676
20677         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
20678         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
20679         'iconv' module is present.
20680         (ICONV_CONST): New macro.
20681         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
20682         ICONV_CONST.
20683         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
20684         set ICONV_CONST.
20685         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
20686         here.
20687         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
20688         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
20689         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
20690         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
20691         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
20692         present.
20693
20694 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
20695
20696         ftoastr: comment fix
20697         * lib/ftoastr.c: "little" -> "little or no" in comment
20698
20699 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
20700
20701         stdint: port to GCC 4.3 + OSX + Octave
20702         On this platform, stdint.h is buggy and defines int64_t to long
20703         long int.  The replacement defined it to long int, causing
20704         problems with C++ style name mangling.  Instead, trust the system
20705         definition if INT64_MAX is defined, and likewise for the unsigned
20706         variant.   Problem reported by Jarno Rajahalme in
20707         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
20708         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
20709         and don't mess with int64_t and INT64_MAX in this case.
20710         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
20711
20712 2010-11-24  Bruno Haible  <bruno@clisp.org>
20713
20714         doc: Corrections regarding MacOS X 10.4 and 10.5.
20715         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
20716         MacOS X.
20717         Reported by Simon Josefsson.
20718
20719 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
20720
20721         Uninstall ".bin" files installed by relocwrapper.
20722         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
20723         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
20724         unless it is already there.
20725
20726 2010-11-21  Bruno Haible  <bruno@clisp.org>
20727
20728         Update for NetBSD 5.0.
20729         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
20730         NetBSD; the test fails on NetBSD 5.0.
20731         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
20732         about NetBSD.
20733
20734 2010-11-21  Bruno Haible  <bruno@clisp.org>
20735
20736         Update for HP-UX 11.23 and HP-UX 11.31.
20737         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
20738         HP-UX.
20739
20740 2010-11-21  Bruno Haible  <bruno@clisp.org>
20741
20742         Update for MacOS X 10.5.
20743         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
20744         MacOS X; the test fails on MacOS X 10.5.8.
20745         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
20746         about MacOS X.
20747
20748 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
20749
20750         bootstrap: add bootstrap_sync option.
20751         See discussion at
20752         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
20753         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
20754         * build-aux/bootstrap: Accept --bootstrap-sync to update
20755         bootstrap if it is not identical to the local gnulib's
20756         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
20757         enable this by default.  Accept --no-bootstrap-sync to disable
20758         it.
20759
20760 2010-11-20  Bruno Haible  <bruno@clisp.org>
20761
20762         Ensure that <features.h> is included before __GLIBC__ is tested.
20763         * lib/printf-parse.h: Include <features.h>.
20764         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
20765         Reported by Mike Frysinger <vapier@gentoo.org>.
20766
20767         Ensure that <features.h> is included before __GLIBC__ is tested.
20768         * lib/wchar.in.h: Include <features.h>.
20769         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
20770         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
20771         Reported by Mike Frysinger <vapier@gentoo.org>.
20772
20773         Ensure that <features.h> is included before __GLIBC__ is tested.
20774         * lib/arpa_inet.in.h: Include <features.h>.
20775         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
20776         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
20777         Reported by Mike Frysinger <vapier@gentoo.org>.
20778
20779         Ensure that <features.h> is included before __GLIBC__ is tested.
20780         * build-aux/link-warning.h: Include <features.h>.
20781         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
20782         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
20783         Reported by Mike Frysinger <vapier@gentoo.org>.
20784
20785         Ensure that <features.h> is included before __GLIBC__ is tested.
20786         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
20787         Reported by Mike Frysinger <vapier@gentoo.org>.
20788
20789 2010-11-20  Bruno Haible  <bruno@clisp.org>
20790
20791         memmem: Fix autoconf test.
20792         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
20793
20794 2010-11-20  Bruno Haible  <bruno@clisp.org>
20795
20796         Port to uClibc.
20797         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
20798         * lib/fcntl.in.h: Likewise.
20799         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
20800         * lib/mbrtowc.c (mbrtowc): Likewise.
20801         * lib/relocatable.c (find_shared_library_fullname): Likewise.
20802         * lib/strerror_r.c: Likewise.
20803         * lib/unistr/u8-strnlen.c: Likewise.
20804         * lib/vasnprintf.c (decimal_point_char): Likewise.
20805         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
20806         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
20807         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
20808         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
20809         * tests/test-sigaction.c (handler, main): Likewise.
20810         * lib/freading.h: Treat uClibc like a non-glibc platform.
20811         * lib/freading.c: Likewise.
20812         * lib/gettext.h: Likewise.
20813         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
20814         Likewise.
20815         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
20816         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
20817         * lib/propername.c (proper_name_utf8): Likewise.
20818         * lib/spawn.in.h: Likewise.
20819         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
20820         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
20821         mem_cd_iconveh_internal): Likewise.
20822         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
20823         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
20824         strstr, strcasestr): Likewise.
20825         * lib/unicodeio.c (unicode_to_mb): Likewise.
20826         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
20827         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
20828         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
20829         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
20830         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
20831         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
20832         * lib/unistr/u8-stpncpy.c: Likewise.
20833         * lib/vasnprintf.c (VASNPRINTF): Likewise.
20834         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
20835         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
20836         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
20837         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
20838         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
20839         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
20840         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
20841         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
20842         Likewise.
20843         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
20844         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
20845         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
20846         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20847         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
20848         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20849         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
20850         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
20851         * tests/test-getopt.h (OPTIND_MIN): Likewise.
20852         * tests/test-striconveha.c (main): Likewise.
20853         * tests/test-vasnprintf-posix.c (test_function): Likewise.
20854         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
20855         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
20856         * doc/posix-functions/getline.texi: Likewise.
20857         Reported by Mike Frysinger <vapier@gentoo.org>.
20858
20859 2010-11-20  Bruno Haible  <bruno@clisp.org>
20860
20861         nproc: Fix condition.
20862         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
20863         HAVE_PTHREAD_AFFINITY_NP.
20864
20865 2010-11-20  Bruno Haible  <bruno@clisp.org>
20866
20867         Fix a comment.
20868         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
20869
20870 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
20871
20872         ftoastr: don't assume snprintf
20873         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
20874         Implement a subset of snprintf here, by using sprintf safely.
20875         * modules/ftoastr (Depends-on): Remove snprintf.
20876
20877 2010-11-19  Jim Meyering  <meyering@redhat.com>
20878
20879         test-rename.h: fix compilation failure
20880         * tests/test-rename.h (test_rename): Add omitted "}".
20881
20882 2010-11-17  Jim Meyering  <meyering@redhat.com>
20883
20884         maint.mk: add a URL discussing the no-@acronym policy
20885         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
20886
20887 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
20888
20889         ftoastr: depend on snprintf, improve comments
20890         * lib/ftoastr.c: Also mention Loitsch's draft.
20891         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
20892         needed in the current implementation, but it might simplify
20893         speeding up the code later.
20894         * modules/ftoastr: Depend on snprintf; this improves portability.
20895         Suggested by Bruno Haible in the same email.
20896
20897         ftoastr: port to hosts lacking strtof and strtold
20898         Problem reported by Bruno Haible in
20899         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
20900         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
20901         environment and strtold (and presumably strtof) are not available.
20902         * modules/ftoastr (Files): Add m4/c-strtod.m4.
20903         (configure.ac): Require gl_C99_STRTOLD.
20904
20905 2010-11-18  Bruno Haible  <bruno@clisp.org>
20906
20907         c-strtold: Avoid link error on AIX 7.
20908         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
20909         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
20910         (gl_C_STRTOLD): Test whether strtold_l exists.
20911         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20912
20913 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
20914
20915         intprops: new macro INT_BITS_STRLEN_BOUND
20916         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
20917         ftoastr.h.  This exposes an internal of intprops.h that was formerly
20918         not exposed.  Also, it uses a slightly tighter bound than before;
20919         though this makes no practical difference, we might as well be as
20920         tight as we easily can.
20921
20922         ftoastr: new module, for lossless conversion of floats to short strings
20923         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
20924         * modules/ftoastr: New files.
20925
20926 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
20927
20928         bootstrap: port to Solaris sed
20929         * build-aux/bootstrap (get_version): Port to Solaris sed.
20930         See Ralf Wildenhues's note in
20931         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
20932
20933 2010-11-14  Jim Meyering  <meyering@redhat.com>
20934
20935         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
20936         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
20937         and move definition closer to sole use.
20938
20939 2010-11-13  Jim Meyering  <meyering@redhat.com>
20940
20941         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
20942         Now we require at least autoconf-2.59, which means the work-around
20943         is no longer needed.
20944         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
20945         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
20946         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
20947         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
20948         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
20949
20950 2010-11-13  Bruno Haible  <bruno@clisp.org>
20951
20952         rename, renameat: Avoid test failures at NFS mounted locations.
20953         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
20954         functions.
20955         (test_rename): Use assert_nonexistent.
20956         * tests/test-rename.c: Include <dirent.h>.
20957         * tests/test-renameat.c: Likewise.
20958         Reported by Gary V. Vaughan <gary@gnu.org>.
20959
20960         rename, renameat: Document Linux bug with NFS
20961         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
20962         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
20963         * doc/posix-functions/renameat.texi: Likewise.
20964         Suggested by Eric Blake.
20965
20966 2010-11-13  Bruno Haible  <bruno@clisp.org>
20967
20968         rename test: Add comments.
20969         * tests/test-rename.h (test_rename): Add structure and comments.
20970
20971 2010-11-13  Eric Blake  <eblake@redhat.com>
20972
20973         maintainer-makefile: cover a few more files
20974         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
20975         scripts generated within C files, for libvirt.
20976
20977 2010-11-13  Bruno Haible  <bruno@clisp.org>
20978
20979         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
20980         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
20981         character, return the number of bytes that belong together, not always
20982         1.
20983         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
20984         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
20985         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
20986         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
20987         number of bytes of an invalid character.
20988         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
20989         (main): Invoke it.
20990         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
20991         results.
20992         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
20993         malformed byte sequences.
20994         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
20995         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
20996         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
20997         Reported by Ben Pfaff and Paolo Bonzini.
20998
20999 2010-11-13  Bruno Haible  <bruno@clisp.org>
21000
21001         openat: Work around glibc bug with fchownat() and empty file names.
21002         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
21003         (gl_FUNC_FCHOWNAT): Invoke it.
21004         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
21005         * doc/posix-functions/fchownat.texi: Document the glibc bug.
21006         Reported by Gary V. Vaughan <gary@gnu.org>.
21007
21008 2010-11-13  Bruno Haible  <bruno@clisp.org>
21009
21010         openat: Ensure autoconf macro ordering.
21011         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
21012         gl_USE_SYSTEM_EXTENSIONS.
21013         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
21014
21015 2010-11-13  Bruno Haible  <bruno@clisp.org>
21016
21017         Update comments.
21018         * lib/unistr/u8-check.c: Update file name in comments.
21019         * lib/unistr/u8-mblen.c: Likewise.
21020         * lib/unistr/u8-prev.c: Likewise.
21021         * lib/unistr/u8-strmblen.c: Likewise.
21022         * lib/unistr/u8-strmbtouc.c: Likewise.
21023
21024 2010-11-13  Jim Meyering  <meyering@redhat.com>
21025
21026         tests: avoid test failure on Solaris 10 due to lack of PATH export
21027         * tests/test-update-copyright.sh: Don't forget to export PATH.
21028
21029         init.sh: ensure that IFS is defined, just in case...
21030         * tests/init.sh (setup_): Ensure that IFS is defined,
21031         so that saving and restoring it works as expected.  This
21032         appears to be useful at least for an old version of dash
21033         from a long time ago (RH 6).  See here for details:
21034         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
21035
21036         maint.mk: tighten "test a == b" check
21037         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
21038         test to files that contain something like #!/bin/sh.
21039         Without this, coreutils would get two false positives in
21040         the comments of C source files.
21041
21042 2010-11-12  Eric Blake  <eblake@redhat.com>
21043
21044         bootstrap: fix typo in previous attempt
21045         * build-aux/bootstrap (buildreq): Correct the grouping.
21046         Reported by Paul Eggert.
21047
21048         maintainer-makefile: prohibit test x == x
21049         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
21050         Based on a report by Matthias Bolte.
21051
21052         bootstrap: allow FreeBSD gzip
21053         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
21054         which has no '.' and goes to stderr.
21055         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
21056         Reported by Matthias Bolte.
21057
21058         maintainer-makefile: check for i18n setup
21059         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
21060         will likely work.
21061
21062 2010-11-12  Bruno Haible  <bruno@clisp.org>
21063
21064         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
21065         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
21066         * lib/nanosleep.c (nanosleep): Likewise.
21067
21068 2010-11-11  Bruno Haible  <bruno@clisp.org>
21069
21070         fcntl-h: Fix for use of C++ on glibc systems.
21071         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
21072         also on glibc systems in C++ mode.
21073         Reported by Gary V. Vaughan <gary@gnu.org>.
21074
21075 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
21076
21077         mknod: avoid false failure with dash
21078         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
21079
21080 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
21081
21082         unlink: Fix "is it should" typo in diagnostic.
21083         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
21084         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
21085
21086 2010-11-11  Bruno Haible  <bruno@clisp.org>
21087
21088         Tests for module 'strerror_r-posix'.
21089         * modules/strerror_r-posix-tests: New file.
21090         * tests/test-strerror_r.c: New file.
21091         * tests/test-string-c++.cc: Check the signature of strerror_r.
21092
21093         New module 'strerror_r-posix'.
21094         * lib/string.in.h (strerror_r): New declaration.
21095         * lib/strerror_r.c: New file.
21096         * m4/strerror_r.m4: New file.
21097         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
21098         of strerror_r.
21099         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
21100         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
21101         * modules/strerror_r-posix: New file.
21102         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
21103         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
21104         * doc/posix-functions/strerror_r.texi: Mention the new module and the
21105         portability problems.
21106
21107 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
21108
21109         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
21110         line is also considered for output. Quoted function name in shell
21111         command, so temporary files for functions like MyClass::operator()
21112         are removed correctly without errors.
21113
21114 2010-11-09  Bruno Haible  <bruno@clisp.org>
21115
21116         * doc/posix-functions/strerror.texi: List more failing platforms.
21117
21118         * doc/posix-functions/strerror.texi: Add a comment.
21119
21120 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
21121
21122         fdopendir: fix bug on MacOS X when low on file descriptors
21123
21124         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
21125         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
21126         All callers changed.
21127         (fdopendir): Invoke save_cwd at the top level, not after using
21128         multiple dup() calls to use up file descriptors.  Then retry
21129         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
21130         less than the maximum number of open file descriptors, because
21131         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
21132         on Mac OS X 10.6.4 for tar 1.24
21133         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
21134         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
21135         and for tar 1.25
21136         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
21137
21138 2010-11-07  Bruno Haible  <bruno@clisp.org>
21139
21140         vasnprintf: Support I flag on glibc systems.
21141         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
21142         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
21143         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
21144         snprintf function.
21145         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
21146         glibc systems.
21147         * tests/test-vasnprintf-posix3.c: New file.
21148         * modules/vasnprintf-posix-tests (Files): Add it.
21149         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
21150
21151 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
21152
21153         [html] Fix copy/paste bug: Use unique name for compiler warnings.
21154         * MODULES.html.sh: For compiler warnings, use name
21155         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
21156
21157 2010-11-05  Eric Blake  <eblake@redhat.com>
21158
21159         ceil, floor: avoid spurious failure with icc
21160         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
21161         [denormals-as-zero] when optimizing without -mieee-fp option.
21162         * tests/test-floorf2.c (floorf_reference): Likewise.
21163         * tests/test-ceilf1.c (dummy): New function.
21164         (main): Use it to outsmart icc's optimization.
21165         * tests/test-floorf1.c (dummy, main): Likewise.
21166
21167         tests: require working signbit
21168         * modules/ceilf-tests (Depends-on): Add signbit.
21169         * modules/ceill-tests (Depends-on): Likewise.
21170         * modules/floorf-tests (Depends-on): Likewise.
21171         * modules/floorl-tests (Depends-on): Likewise.
21172         * modules/round-tests (Depends-on): Likewise.
21173         * modules/roundf-tests (Depends-on): Likewise.
21174         * modules/roundl-tests (Depends-on): Likewise.
21175         * modules/trunc-tests (Depends-on): Likewise.
21176         * modules/truncf-tests (Depends-on): Likewise.
21177         * modules/truncl-tests (Depends-on): Likewise.
21178
21179         strtod: work around icc bug
21180         * lib/strtod.c (minus_zero): Define to working value.
21181         (strtod): Use it to avoid icc bug.
21182
21183         copysign: enhance tests
21184         * modules/copysign-tests (Files): Add minus-zero.h.
21185         * tests/test-copysign.c (main): Also test zeros.
21186
21187 2010-11-04  Eric Blake  <eblake@redhat.com>
21188
21189         ceil, floor, round, trunc: enhance tests of -0
21190         * tests/test-ceilf1.c (main): Ensure correct sign of result.
21191         * tests/test-ceill.c (main): Likewise.
21192         * tests/test-floorf1.c (main): Likewise.
21193         * tests/test-floorl.c (main): Likewise.
21194         * tests/test-round1.c (main): Likewise.
21195         * tests/test-roundf1.c (main): Likewise.
21196         * tests/test-roundl.c (main): Likewise.
21197         * tests/test-trunc1.c (main): Likewise.
21198         * tests/test-truncf1.c (main): Likewise.
21199         * tests/test-truncl.c (main): Likewise.
21200
21201 2010-11-04  Eric Blake  <eblake@redhat.com>
21202
21203         frexp, tests: work around ICC bug with -zero
21204         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
21205         works with more compilers.
21206         * tests/minus-zero.h: New file.
21207         * modules/ceilf-tests (Files): Include it.
21208         * modules/ceill-tests (Files): Likewise.
21209         * modules/floorf-tests (Files): Likewise.
21210         * modules/floorl-tests (Files): Likewise.
21211         * modules/frexp-nolibm-tests (Files): Likewise.
21212         * modules/frexp-tests (Files): Likewise.
21213         * modules/frexpl-nolibm-tests (Files): Likewise.
21214         * modules/frexpl-tests (Files): Likewise.
21215         * modules/isnan-tests (Files): Likewise.
21216         * modules/isnand-nolibm-tests (Files): Likewise.
21217         * modules/isnand-tests (Files): Likewise.
21218         * modules/isnanf-nolibm-tests (Files): Likewise.
21219         * modules/isnanf-tests (Files): Likewise.
21220         * modules/isnanl-nolibm-tests (Files): Likewise.
21221         * modules/isnanl-tests (Files): Likewise.
21222         * modules/round-tests (Files): Likewise.
21223         * modules/roundf-tests (Files): Likewise.
21224         * modules/roundl-tests (Files): Likewise.
21225         * modules/ldexpl-tests (Files): Likewise.
21226         * modules/signbit-tests (Files): Likewise.
21227         * modules/snprintf-posix-tests (Files): Likewise.
21228         * modules/sprintf-posix-tests (Files): Likewise.
21229         * modules/strtod-tests (Files): Likewise.
21230         * modules/trunc-tests (Files): Likewise.
21231         * modules/truncf-tests (Files): Likewise.
21232         * modules/truncl-tests (Files): Likewise.
21233         * modules/vsnprintf-posix-tests (Files): Likewise.
21234         * modules/vsprintf-posix-tests (Files): Likewise.
21235         * modules/vasnprintf-posix-tests (Files): Likewise.
21236         * modules/vasprintf-posix-tests (Files): Likewise.
21237         * tests/test-ceilf1.c (main): Use it.
21238         * tests/test-ceill.c (main): Likewise.
21239         * tests/test-floorf1.c (main): Likewise.
21240         * tests/test-floorl.c (main): Likewise.
21241         * tests/test-frexp.c (main): Likewise.
21242         * tests/test-frexpl.c (main): Likewise.
21243         * tests/test-isnan.c (main): Likewise.
21244         * tests/test-isnand.h (main): Likewise.
21245         * tests/test-isnanf.h (main): Likewise.
21246         * tests/test-isnanl.h (main): Likewise.
21247         * tests/test-ldexpl.c (main): Likewise.
21248         * tests/test-round.c (main): Likewise.
21249         * tests/test-roundf.c (main): Likewise.
21250         * tests/test-roundl.c (main): Likewise.
21251         * tests/test-signbit.c (test_signbitf, test_signbitd)
21252         (test_signbitl): Likewise.
21253         * tests/test-snprintf-posix.h (test_function): Likewise.
21254         * tests/test-sprintf-posix.h (test_function): Likewise.
21255         * tests/test-strtod.c (main): Likewise.
21256         * tests/test-trunc1.c (main): Likewise.
21257         * tests/test-truncf1.c (main): Likewise.
21258         * tests/test-truncl.c (main): Likewise.
21259
21260         isnanl: work around icc bug
21261         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
21262
21263 2010-11-03  Eric Blake  <eblake@redhat.com>
21264
21265         tests: fix compiler warnings
21266         * tests/test-getopt.h (test_getopt): Fix condition.
21267         * tests/test-getopt_long.h (test_getopt_long): Likewise.
21268         * tests/test-pipe2.c (main): Likewise.
21269         * tests/test-quotearg-simple.c (main): Avoid icc warning.
21270
21271         utimens: fix broken m4 test
21272         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
21273
21274 2010-10-28  Bruno Haible  <bruno@clisp.org>
21275
21276         posix_spawn*, getdtablesize: Relax license.
21277         * modules/posix_spawn (License): Change to LGPLv2+.
21278         * modules/posix_spawnp (License): Likewise.
21279         * modules/posix_spawn-internal (License): Likewise.
21280         * modules/posix_spawnattr_init (License): Likewise.
21281         * modules/posix_spawnattr_getflags (License): Likewise.
21282         * modules/posix_spawnattr_setflags (License): Likewise.
21283         * modules/posix_spawnattr_getpgroup (License): Likewise.
21284         * modules/posix_spawnattr_setpgroup (License): Likewise.
21285         * modules/posix_spawnattr_getschedparam (License): Likewise.
21286         * modules/posix_spawnattr_setschedparam (License): Likewise.
21287         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
21288         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
21289         * modules/posix_spawnattr_getsigdefault (License): Likewise.
21290         * modules/posix_spawnattr_setsigdefault (License): Likewise.
21291         * modules/posix_spawnattr_getsigmask (License): Likewise.
21292         * modules/posix_spawnattr_setsigmask (License): Likewise.
21293         * modules/posix_spawnattr_destroy (License): Likewise.
21294         * modules/posix_spawn_file_actions_init (License): Likewise.
21295         * modules/posix_spawn_file_actions_addclose (License): Likewise.
21296         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
21297         * modules/posix_spawn_file_actions_addopen (License): Likewise.
21298         * modules/posix_spawn_file_actions_destroy (License): Likewise.
21299         * modules/getdtablesize (License): Likewise.
21300         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
21301
21302 2010-10-26  Bruno Haible  <bruno@clisp.org>
21303
21304         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
21305         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
21306         Cygwin and mingw.
21307         Suggested by Eric Blake.
21308
21309 2010-10-26  Bruno Haible  <bruno@clisp.org>
21310
21311         stdio: Work around compilation error due to renameat() on Solaris 10.
21312         * lib/stdio.in.h: Include <unistd.h> on Solaris.
21313         * lib/renameat.c: Don't include <unistd.h> here.
21314         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
21315         Reported by Paul Eggert and Eric Blake.
21316
21317 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
21318
21319         renameat: port to Solaris 10, which declares renameat in unistd.h
21320
21321         * lib/renameat.c: Include unistd.h before stdio.h, because
21322         Solaris 10 declares renameat in unistd.h.  Problem encountered
21323         when building GNU tar 1.24 on Solaris 10.
21324
21325 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
21326
21327         fdopendir: fix C89 compilation
21328         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
21329         compilers.
21330
21331 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
21332
21333         inttostr: simplify by removing unnecessary redundancy
21334         * lib/anytostr.c: Don't include verify.h.
21335         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
21336         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
21337         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
21338         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
21339         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
21340         Likewise.
21341         * modules/inttostr (Depends-on): Remove 'verify'.
21342
21343 2010-10-23  Bruno Haible  <bruno@clisp.org>
21344
21345         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
21346         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
21347         Reported by Eric Blake.
21348
21349 2010-10-23  Bruno Haible  <bruno@clisp.org>
21350
21351         Tests: Fix LOCALE_JA on MirBSD 10.
21352         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
21353         to an UTF-8 locale.
21354         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
21355         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
21356         Reported by Eric Blake.
21357
21358 2010-10-21  Bruno Haible  <bruno@clisp.org>
21359
21360         nl_langinfo test: Avoid test failure on NetBSD 5.
21361         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
21362         Reported by Eric Blake.
21363
21364 2010-10-21  Eric Blake  <eblake@redhat.com>
21365
21366         c-stack: work around libsigsegv 2.8 bug
21367         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
21368         overflow on at least PowerPC64.
21369
21370 2010-10-17  Bruno Haible  <bruno@clisp.org>
21371
21372         userspec: Drop redundant file.
21373         * modules/userspec (Files): Remove lib/inttostr.h.
21374
21375 2010-10-17  Bruno Haible  <bruno@clisp.org>
21376
21377         nl_langinfo tests: Silence some warnings.
21378         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
21379         Reported by Jim Meyering.
21380
21381 2010-10-17  Bruno Haible  <bruno@clisp.org>
21382
21383         Make use of GCC's attribute __alloc_size__.
21384         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
21385         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
21386         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
21387         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
21388         __alloc_size__.
21389         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
21390         Suggested by Jim Meyering.
21391
21392 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
21393
21394         bootstrap: anchor .gitignore entries.
21395         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
21396         with...
21397         (insert_vc_ignore): ... this new function, which prepends `/' to
21398         all .gitignore entries before passing them to
21399         insert_sorted_if_absent.
21400
21401 2010-10-16  Bruno Haible  <bruno@clisp.org>
21402
21403         nextafter: Fix configure check.
21404         * modules/nextafter (configure.ac): Correct expected prototype.
21405
21406 2010-10-16  Bruno Haible  <bruno@clisp.org>
21407
21408         termios: Update documentation.
21409         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
21410
21411 2010-10-16  Bruno Haible  <bruno@clisp.org>
21412
21413         tests: Make them compile with TinyCC.
21414         * tests/test-strstr.c (main): Remove parentheses around array
21415         initializer.
21416
21417 2010-10-15  Eric Blake  <eblake@redhat.com>
21418
21419         ignore-value: make header idempotent
21420         * lib/ignore-value.h: Add double-inclusion guards.
21421         Reported by Stefan Berger.
21422
21423 2010-10-15  Jim Meyering  <meyering@redhat.com>
21424
21425         GNUmakefile: handle "stable" target, not "major"
21426         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
21427         lists in maint.mk and announce-gen.  Without this, "make stable"
21428         would fail to ensure that $(VERSION) is up to date.
21429
21430 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
21431
21432         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
21433         & co.
21434
21435 2010-10-14  Bruno Haible  <bruno@clisp.org>
21436
21437         vasnprintf: Don't set errno to 0.
21438         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
21439         block that sets it to 0.
21440         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
21441
21442 2010-10-14  Bruno Haible  <bruno@clisp.org>
21443
21444         socketlib: Fix.
21445         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
21446         gl_PREREQ_SYS_H_WINSOCK2.
21447         Reported by Ian Beckwith <ianb@erislabs.net>.
21448
21449 2010-10-13  Jim Meyering  <meyering@redhat.com>
21450
21451         test-select-stdin.c: avoid warn_unused_result warnings
21452         * tests/test-select-stdin.c: Include "macros.h".
21453         ASSERT that read and fflush succeed.
21454
21455 2010-10-13  Jim Meyering  <meyering@redhat.com>
21456
21457         git-version-gen: do require git-VC'd files in cwd
21458         * build-aux/git-version-gen: Reject a git version string
21459         if there are no commits associated with the current directory.
21460         This avoids an unlikely false-positive (unrelated dir whose parent
21461         repository also contains a tag matching v*), as pointed out
21462         by Giuseppe Scrivano in
21463         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
21464
21465 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
21466
21467         argv-iter: omit nonconforming declaration
21468         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
21469         enum arg_iter_err declaration, which doesn't conform to C99.
21470         Solaris 10 cc warns about this.
21471
21472 2010-10-13  Eric Blake  <eblake@redhat.com>
21473
21474         termios: fix compilation on mingw
21475         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
21476         (gl_TERMIOS_H): Adjust it on mingw.
21477         * modules/termios (Makefile.am): Substitute new key.
21478         * lib/termios.in.h (includes): Make include_next conditional.
21479         * doc/posix-headers/termios.texi (termios.h): Update
21480         documentation.
21481         Reported by Daniel P. Berrange.
21482
21483 2010-10-13  Jim Meyering  <meyering@redhat.com>
21484
21485         git-version-gen: don't require that .git/ be in the current dir
21486         * build-aux/git-version-gen: Adjust this script so that it works
21487         when run from any working directory beneath the top-level .git/-
21488         containing directory.  Inspired by a patch from Giuseppe Scrivano,
21489         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
21490
21491         test-select: avoid warn_unused_result warnings
21492         * tests/test-select.c: Include "macros.h".
21493         ASSERT that each call to read, write, and pipe succeeds.
21494         While not technically required, also check each "close".
21495         * modules/select-tests (Files): Add tests/macros.h.
21496
21497         test-symlinkat: remove declaration of unused local
21498         * tests/test-symlinkat.c (main): Remove unused local, "buf".
21499
21500         test-inttostr: avoid shadowing warnings
21501         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
21502         and use malloc rather than the stack for the same reason as
21503         mentioned in the comment justifying the other allocation.
21504
21505 2010-10-11  Bruno Haible  <bruno@clisp.org>
21506
21507         stdlib: Allow multiple gnulib generated replacements to coexist.
21508         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
21509         Reported by Sam Steingold <sds@gnu.org>.
21510
21511 2010-10-11  Jim Meyering  <meyering@redhat.com>
21512
21513         fix a documentation typo
21514         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
21515
21516 2010-10-11  Eric Blake  <eblake@redhat.com>
21517
21518         futimens: work around Solaris 11 bug
21519         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
21520         * tests/test-futimens.h (test_futimens): Enhance, rather than
21521         weaken test.
21522         * doc/posix-functions/futimens.texi (futimens): Document the bug.
21523
21524 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
21525
21526         Indentation.
21527         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
21528         higher-level operators more to the left.
21529
21530 2010-10-11  Jim Meyering  <meyering@redhat.com>
21531
21532         test-futimens: avoid unwarranted test failure on Solaris 5.11
21533         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
21534         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
21535         because it tries to dereference the NULL name argument.
21536
21537 2010-10-11  Bruno Haible  <bruno@clisp.org>
21538
21539         Indentation.
21540         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
21541         indentation.
21542
21543 2010-10-11  Jim Meyering  <meyering@redhat.com>
21544
21545         spawn.in.h: make indentation consistent with parentheses
21546         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
21547         Make indentation consistent with parentheses.
21548
21549 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
21550
21551         Fix mismatched parens in previous commit
21552         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
21553         parens.
21554
21555 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
21556
21557         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
21558
21559         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
21560         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
21561         * lib/malloca.c: Include "verify.h".
21562         (verify1): Remove, replacing with a verify call.
21563         * lib/relocwrapper.c (verify1): Likewise.
21564         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
21565         Likewise.
21566         * modules/malloca (Depends-on): Add 'verify'.
21567         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
21568         * modules/vasnprintf (Depends-on): Add 'verify'.
21569         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
21570         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
21571         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
21572         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
21573         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
21574         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
21575         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
21576
21577         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
21578
21579         Formerly the style was sometimes 2*X - 1, because the C standard
21580         was wrongly thought to disallow ?: in integral constant expressions.
21581         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
21582         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
21583         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
21584         * lib/stdint.in.h (_verify_intmax_size): Likewise.
21585         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
21586         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
21587         verify that time_t cannot be floating.
21588
21589 2010-10-08  Eric Blake  <eblake@redhat.com>
21590
21591         time: enforce recent POSIX ruling that time_t is integral
21592         * lib/time.in.h (__time_t_must_be_integral): Detect any
21593         problematic systems, allowing the rest of gnulib to assume POSIX.
21594
21595 2010-10-08  Jim Meyering  <meyering@redhat.com>
21596
21597         fdopendir: fix a bug on systems lacking openat and /proc support
21598         OpenBSD 4.7 is one such system.  The most noticeable effect was
21599         failure of any application making nontrivial use of fts: rm, du,
21600         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
21601           ./rm: traversal failed: `a': Bad file descriptor
21602         Debugging that, you see that even though FD 6 was closed just
21603         prior to the opendir call in fd_clone_opendir, its resulting
21604         dir->dd_fd was 8, rather than the expected value of 6:
21605
21606         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
21607         93                close (fd);
21608         (gdb) n
21609         94                dir = fd_clone_opendir (dupfd);
21610         (gdb) n
21611         95                saved_errno = errno;
21612         (gdb) p dir->dd_fd
21613         $11 = 8
21614
21615         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
21616         The problem is that on OpenBSD, fd_clone_opendir has to resort
21617         to using the old-style save/restore CWD mechanism, due to its
21618         lack of openat/proc support, and *that* would steal the FD (6)
21619         that opendir was supposed to use.
21620
21621         The fix is to squirrel away the desired FD so that save_cwd uses a
21622         different one, and then free the dest FD right before calling opendir.
21623         That guarantees opendir will use the required file descriptor.
21624
21625         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
21626
21627 2010-10-08  Bruno Haible  <bruno@clisp.org>
21628
21629         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
21630         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
21631
21632 2010-10-08  Bruno Haible  <bruno@clisp.org>
21633
21634         nanosleep: Make replacement POSIX compliant.
21635         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
21636         is out of range.
21637         Reported by Jim Meyering.
21638
21639 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
21640
21641         bootstrap: add hook for altering gnulib.mk, for Bison
21642         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
21643         the Bison bootstrapping process can rewrite file names and variables
21644         in this file before later parts of 'bootstrap' use the file.
21645         Bison wants to include lib/gnulib.mk from the top-level makefile,
21646         so it needs the file names in this file to be relative to the top
21647         level, not relative to lib; plus it needs variable names to be
21648         rewritten.
21649         (slurp): Use the new function.
21650
21651         bootstrap: reformat for readability
21652         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
21653
21654 2010-10-08  Eric Blake  <eblake@redhat.com>
21655
21656         docs: update cygwin progress
21657         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
21658         1.7.7.
21659         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
21660         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
21661         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
21662         * doc/posix-functions/carg.texi (carg): Likewise.
21663         * doc/posix-functions/cargf.texi (cargf): Likewise.
21664         * doc/posix-functions/casin.texi (casin): Likewise.
21665         * doc/posix-functions/casinf.texi (casinf): Likewise.
21666         * doc/posix-functions/casinh.texi (casinh): Likewise.
21667         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
21668         * doc/posix-functions/catan.texi (catan): Likewise.
21669         * doc/posix-functions/catanf.texi (catanf): Likewise.
21670         * doc/posix-functions/catanh.texi (catanh): Likewise.
21671         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
21672         * doc/posix-functions/ccos.texi (ccos): Likewise.
21673         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
21674         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
21675         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
21676         * doc/posix-functions/cexp.texi (cexp): Likewise.
21677         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
21678         * doc/posix-functions/cimag.texi (cimag): Likewise.
21679         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
21680         * doc/posix-functions/clog.texi (clog): Likewise.
21681         * doc/posix-functions/clogf.texi (clogf): Likewise.
21682         * doc/posix-functions/conj.texi (conj): Likewise.
21683         * doc/posix-functions/conjf.texi (conjf): Likewise.
21684         * doc/posix-functions/cpow.texi (cpow): Likewise.
21685         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
21686         * doc/posix-functions/cproj.texi (cproj): Likewise.
21687         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
21688         * doc/posix-functions/creal.texi (creal): Likewise.
21689         * doc/posix-functions/crealf.texi (crealf): Likewise.
21690         * doc/posix-functions/csin.texi (csin): Likewise.
21691         * doc/posix-functions/csinf.texi (csinf): Likewise.
21692         * doc/posix-functions/csinh.texi (csinh): Likewise.
21693         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
21694         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
21695         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
21696         * doc/posix-functions/ctan.texi (ctan): Likewise.
21697         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
21698         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
21699         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
21700         * doc/posix-headers/complex.texi (complex.h): Likewise.
21701
21702 2010-10-07  Jim Meyering  <meyering@redhat.com>
21703
21704         parse-datetime: avoid compilation failure on OpenBSD 4.7
21705         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
21706         This works around a compilation failure on OpenBSD 4.7:
21707         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
21708
21709 2010-10-07  Eric Blake  <eblake@redhat.com>
21710
21711         docs: update cygwin progress
21712         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
21713         1.7.6.
21714         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
21715         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
21716         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
21717         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
21718         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
21719         Likewise.
21720         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
21721         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
21722         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
21723         Likewise.
21724         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
21725         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
21726         Likewise.
21727         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
21728         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
21729         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
21730         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
21731         Likewise.
21732         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
21733         Likewise.
21734         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
21735
21736         docs: update parse-datetime history
21737         * doc/parse-datetime.texi (Authors of parse_datetime): Better
21738         documentation of this function's history and alternatives.
21739
21740         cygwin: use more robust version check
21741         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
21742         exclude an eventual cygwin 1.9.1.
21743         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
21744         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
21745         (gl_FUNC_STRCASESTR): Likewise.
21746         Reported by Bruno Haible.
21747
21748 2010-10-06  Bruno Haible  <bruno@clisp.org>
21749
21750         string, sys_select: Avoid #including large headers unless necessary.
21751         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
21752         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
21753         OSF/1, BeOS, Haiku.
21754         Reported by Jim Meyering.
21755
21756 2010-10-05  Eric Blake  <eblake@redhat.com>
21757
21758         memmem, strstr, strcasestr: fix bug with long periodic needle
21759         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
21760         periodic needle having false positive.
21761         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
21762         and cygwin 1.7.7.
21763         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
21764         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
21765         (gl_FUNC_STRCASESTR): Likewise.
21766         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
21767         * tests/test-memmem.c (main): Expose the bug.
21768         * tests/test-strcasestr.c (main): Likewise.
21769         * tests/test-strstr.c (main): Likewise.
21770         * tests/test-c-strcasestr.c (main): Likewise.
21771         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
21772         * doc/posix-functions/strstr.texi (strstr): Likewise.
21773         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
21774         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
21775
21776 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
21777
21778         parse-datetime: do some more renaming
21779         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
21780         parse_datetime, not get_date.  Mention the renaming.
21781         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
21782         in comments.
21783         * m4/bison.m4: Likewise.
21784
21785 2010-10-05  Eric Blake  <eblake@redhat.com>
21786
21787         parse-datetime: better name than get_date
21788         * NEWS: Reword the deprecation notice.
21789         * modules/get_date: Rename to modules/parse-datetime.
21790         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
21791         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
21792         * lib/get_date.y: Rename to lib/parse-datetime.y.
21793         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
21794         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
21795         * doc/getdate.texi: Provide fallback wrapper.
21796         * lib/getdate.h: Move guts, and wrap...
21797         * lib/parse-datetime.h: ...new file.
21798         * lib/parse-datetime.y (get_date): Rename...
21799         (parse_datetime): ...to this.
21800         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
21801         (gl_PARSE_DATETIME): ...to this.
21802         * doc/posix-functions/getdate.texi (get_date): Provide fallback
21803         documentation.
21804         * modules/getdate (Files): Provide fallback docs and header.
21805         (Notice, Depends-on): Update references.
21806         * tests/test-parse-datetime.c: Likewise.
21807         * DEPENDENCIES: Likewise.
21808         * MODULES.html.sh (Date and time <time.h>): Likewise.
21809         * doc/parse-datetime.texi (Date input formats)
21810         (Authors of parse_datetime): Likewise.
21811         * modules/parse-datetime (Files, configure.ac, Makefile.am)
21812         (Include): Likewise.
21813         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
21814         * gnulib-tool: Likewise.
21815         * m4/bison.m4 (gl_BISON): Likewise.
21816         Suggested by Bruno Haible.
21817
21818 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
21819
21820         more ports to Solaris tr, which needs [] around ranges
21821         * gnulib-tool: Solaris tr needs [] around ranges.
21822         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
21823         * tests/test-pipe-filter-gi1.c (main): Likewise.
21824         * tests/test-pipe-filter-ii1.c (main): Likewise.
21825
21826 2010-10-05  Eric Blake  <eblake@redhat.com>
21827
21828         bootstrap: fix Solaris regression
21829         * build-aux/bootstrap (check_versions): Solaris tr still needs []
21830         around ranges.
21831         Reported by Pádraig Brady.
21832
21833         bootstrap: work with pkg-config
21834         * build-aux/bootstrap (check_versions): Also transliterate - in
21835         prerequisite name.
21836         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
21837         prerequisites that were already found, to avoid confusion.
21838         Reported by Justin Clift.
21839
21840         faccessat: remove unused wrappers
21841         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
21842         presence of these wrappers dragged in -lgen on Solaris.
21843         Reported by Clemens Brogi; fix suggested by Paul Eggert.
21844
21845 2010-10-05  Jim Meyering  <meyering@redhat.com>
21846
21847         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
21848         * Makefile (sc_pragma_columns): New syntax-check rule.
21849
21850 2010-10-04  Bruno Haible  <bruno@clisp.org>
21851
21852         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
21853         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
21854         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
21855         Reported by Bruce Korb and Eric Blake.
21856
21857 2010-10-04  Bruno Haible  <bruno@clisp.org>
21858
21859         threadlib: Make option --with-libpth-prefix work.
21860         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
21861         use $LIBPTH, not just -lpth.
21862
21863 2010-10-04  Bruno Haible  <bruno@clisp.org>
21864
21865         Avoid line length limitation from HP NonStop system header files.
21866         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
21867         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
21868         * lib/ctype.in.h: Likewise.
21869         * lib/dirent.in.h: Likewise.
21870         * lib/errno.in.h: Likewise.
21871         * lib/fcntl.in.h: Likewise.
21872         * lib/float.in.h: Likewise.
21873         * lib/getopt.in.h: Likewise.
21874         * lib/iconv.in.h: Likewise.
21875         * lib/inttypes.in.h: Likewise.
21876         * lib/langinfo.in.h: Likewise.
21877         * lib/locale.in.h: Likewise.
21878         * lib/math.in.h: Likewise.
21879         * lib/netdb.in.h: Likewise.
21880         * lib/netinet_in.in.h: Likewise.
21881         * lib/poll.in.h: Likewise.
21882         * lib/pthread.in.h: Likewise.
21883         * lib/pty.in.h: Likewise.
21884         * lib/sched.in.h: Likewise.
21885         * lib/se-selinux.in.h: Likewise.
21886         * lib/search.in.h: Likewise.
21887         * lib/signal.in.h: Likewise.
21888         * lib/spawn.in.h: Likewise.
21889         * lib/stdarg.in.h: Likewise.
21890         * lib/stddef.in.h: Likewise.
21891         * lib/stdint.in.h: Likewise.
21892         * lib/stdio.in.h: Likewise.
21893         * lib/stdlib.in.h: Likewise.
21894         * lib/string.in.h: Likewise.
21895         * lib/strings.in.h: Likewise.
21896         * lib/sys_file.in.h: Likewise.
21897         * lib/sys_ioctl.in.h: Likewise.
21898         * lib/sys_select.in.h: Likewise.
21899         * lib/sys_socket.in.h: Likewise.
21900         * lib/sys_stat.in.h: Likewise.
21901         * lib/sys_time.in.h: Likewise.
21902         * lib/sys_times.in.h: Likewise.
21903         * lib/sys_utsname.in.h: Likewise.
21904         * lib/sys_wait.in.h: Likewise.
21905         * lib/sysexits.in.h: Likewise.
21906         * lib/termios.in.h: Likewise.
21907         * lib/time.in.h: Likewise.
21908         * lib/unistd.in.h: Likewise.
21909         * lib/wchar.in.h: Likewise.
21910         * lib/wctype.in.h: Likewise.
21911         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
21912         * modules/ctype (Makefile.am): Likewise.
21913         * modules/dirent (Makefile.am): Likewise.
21914         * modules/errno (Makefile.am): Likewise.
21915         * modules/fcntl-h (Makefile.am): Likewise.
21916         * modules/float (Makefile.am): Likewise.
21917         * modules/getopt-posix (Makefile.am): Likewise.
21918         * modules/iconv-h (Makefile.am): Likewise.
21919         * modules/inttypes (Makefile.am): Likewise.
21920         * modules/langinfo (Makefile.am): Likewise.
21921         * modules/locale (Makefile.am): Likewise.
21922         * modules/math (Makefile.am): Likewise.
21923         * modules/netdb (Makefile.am): Likewise.
21924         * modules/netinet_in (Makefile.am): Likewise.
21925         * modules/poll-h (Makefile.am): Likewise.
21926         * modules/pthread (Makefile.am): Likewise.
21927         * modules/pty (Makefile.am): Likewise.
21928         * modules/sched (Makefile.am): Likewise.
21929         * modules/search (Makefile.am): Likewise.
21930         * modules/selinux-h (Makefile.am): Likewise.
21931         * modules/signal (Makefile.am): Likewise.
21932         * modules/spawn (Makefile.am): Likewise.
21933         * modules/stdarg (Makefile.am): Likewise.
21934         * modules/stddef (Makefile.am): Likewise.
21935         * modules/stdint (Makefile.am): Likewise.
21936         * modules/stdio (Makefile.am): Likewise.
21937         * modules/stdlib (Makefile.am): Likewise.
21938         * modules/string (Makefile.am): Likewise.
21939         * modules/strings (Makefile.am): Likewise.
21940         * modules/sys_file (Makefile.am): Likewise.
21941         * modules/sys_ioctl (Makefile.am): Likewise.
21942         * modules/sys_select (Makefile.am): Likewise.
21943         * modules/sys_socket (Makefile.am): Likewise.
21944         * modules/sys_stat (Makefile.am): Likewise.
21945         * modules/sys_time (Makefile.am): Likewise.
21946         * modules/sys_times (Makefile.am): Likewise.
21947         * modules/sys_utsname (Makefile.am): Likewise.
21948         * modules/sys_wait (Makefile.am): Likewise.
21949         * modules/sysexits (Makefile.am): Likewise.
21950         * modules/termios (Makefile.am): Likewise.
21951         * modules/time (Makefile.am): Likewise.
21952         * modules/unistd (Makefile.am): Likewise.
21953         * modules/wchar (Makefile.am): Likewise.
21954         * modules/wctype (Makefile.am): Likewise.
21955
21956 2010-10-04  Bruno Haible  <bruno@clisp.org>
21957
21958         read-file tests: Avoid a test failure on NonStop Kernel.
21959         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
21960         a regular file.
21961         Reported by Joachim Schmitz <schmitz@hp.com>.
21962
21963 2010-10-03  Bruno Haible  <bruno@clisp.org>
21964
21965         gnulib-tool: Fixes for --create-testdir with --libtool.
21966         * gnulib-tool (func_get_automake_snippet): Don't augment
21967         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
21968         an executable.
21969         (func_create_testdir): Handle module 'alloca' like func_import.
21970         Reported by Bruce Korb <bruce.korb@gmail.com>.
21971
21972 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
21973
21974         Avoid some lines longer than 80 characters.
21975         * lib/stdint.in.h: Break long comment lines.
21976         * lib/math.in.h: Likewise.
21977         (_GL_NUM_UINT_WORDS): New macro, for readability.
21978         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
21979         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
21980         * lib/stdlib.in.h: Likewise.
21981         * lib/spawn.in.h: Likewise.
21982         * lib/sys_socket.in.h: Update an URL.
21983         * lib/sys_stat.in.h: Break long line.
21984
21985 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
21986
21987         Improve pmccabe2html.
21988         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
21989         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
21990         when the sources change. Remove the line in the HTML about "Used
21991         ranges" (which implied that there might be other unused ranges),
21992         rename "Resume" to "Summary" (easier to understand for more users).
21993         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
21994         styles, and some unnecessary blank lines.
21995
21996 2010-10-03  Bruno Haible  <bruno@clisp.org>
21997             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
21998
21999         acl: Add support for ACLs on NonStop Kernel.
22000         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
22001         Check whether the function aclsort() exists.
22002         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
22003         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
22004         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
22005         (acl_nontrivial [HAVE_ACLSORT]: New function.
22006         (file_has_acl): Implement for NonStop Kernel.
22007         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
22008         (qset_acl): Implement for NonStop Kernel.
22009         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
22010         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
22011         (main): Implement for NonStop Kernel.
22012         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
22013         Kernel. Handle this flavor.
22014         * tests/test-set-mode-acl.sh: Likewise.
22015         * tests/test-copy-acl.sh: Likewise.
22016         * tests/test-copy-file.sh: Likewise.
22017
22018 2010-10-03  Bruno Haible  <bruno@clisp.org>
22019
22020         Info about ACLs on NonStop Kernel.
22021         * doc/acl-resources.txt: Add info about NonStop Kernel.
22022         References by Joachim Schmitz <schmitz@hp.com>.
22023
22024 2010-10-02  Bruno Haible  <bruno@clisp.org>
22025
22026         Define missing EDQUOT on NonStop Kernel.
22027         * lib/errno.in.h (EDQUOT): Assign a value if missing.
22028         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
22029         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
22030         missing.
22031         * doc/posix-headers/errno.texi: Mention the NSK bug.
22032         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
22033         Reported by Joachim Schmitz <schmitz@hp.com>.
22034
22035 2010-10-02  Bruno Haible  <bruno@clisp.org>
22036
22037         Update doc for POSIX:2008.
22038         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
22039         Update URL of POSIX specification.
22040
22041 2010-10-02  Bruno Haible  <bruno@clisp.org>
22042
22043         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
22044         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
22045         from gnulib, not from Automake.
22046
22047 2010-10-02  Bruno Haible  <bruno@clisp.org>
22048
22049         New module 'system-posix'.
22050         * modules/system-posix: New file.
22051         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
22052         module is present.
22053         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
22054         GNULIB_SYSTEM_POSIX.
22055         * modules/stdlib (Depends-on): Remove sys_wait.
22056         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
22057         * doc/posix-functions/system.texi: Mention the new module.
22058         * doc/posix-headers/stdlib.texi: Likewise.
22059         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
22060         define test_sys_wait_macros to a no-op.
22061         Reported by Sam Steingold <sds@gnu.org>.
22062
22063 2010-09-30  Bruno Haible  <bruno@clisp.org>
22064
22065         More renaming from 'getdate' to 'get_date'.
22066         * doc/get_date.texi: Renamed from doc/getdate.texi.
22067         * modules/get_date (Files): Update.
22068         * MODULES.html.sh (Date and time <time.h>): Update.
22069         * DEPENDENCIES: Update.
22070         * gnulib-tool: Update comment.
22071         * m4/bison.m4 (gl_BISON): Likewise.
22072         * m4/get_date.m4 (gl_GET_DATE): Likewise.
22073
22074 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
22075
22076         bootstrap: support ACLOCAL_FLAGS during aclocal
22077         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
22078         can add additional -I dir for third-party .m4 files.
22079
22080 2010-09-30  Eric Blake  <eblake@redhat.com>
22081
22082         bootstrap: use glibtoolize on MacOS
22083         * build-aux/bootstrap (check_versions): Convert libtool into
22084         libtoolize.
22085         (tool search): Move libtool check earlier, and look for
22086         glibtoolize for MacOS.
22087         (gnulib_tool_options): Auto-add --libtool when appropriate.
22088         Reported by Justin Clift.
22089
22090         poll: fix typo that broke test on MacOS
22091         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
22092         Reported by Justin Clift.
22093
22094         getdate: rename to get_date
22095         Note: getdate.h is not renamed, to minimize client impact.
22096         * modules/getdate: Mark obsolete.  Move old contents...
22097         * modules/get_date: ...to new module name.
22098         * modules/getdate-tests: Move...
22099         * modules/get_date-tests: ...here.
22100         * m4/getdate.m4: Move...
22101         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
22102         * lib/getdate.y: Move...
22103         * lib/get_date.y: ...here.
22104         * tests/test-getdate.c: Move...
22105         * tests/test-get_date.c: ...here.
22106         * doc/posix-functions/getdate.texi (getdate): Update name.
22107         * NEWS: Mention the change.
22108
22109 2010-09-29  Bruno Haible  <bruno@clisp.org>
22110
22111         Separate the module 'waitpid' from the module 'sys_wait'.
22112         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
22113         present.
22114         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
22115         gl_MODULE_INDICATOR_FOR_TESTS.
22116         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
22117         * modules/sys_wait (Depends-on): Remove waitpid.
22118         (Makefile.am): Substitute GNULIB_WAITPID.
22119         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
22120         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
22121         signature only if the 'waitpid' module is present.
22122         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
22123         * NEWS: Mention the change.
22124         * modules/grantpt (Depends-on): Add waitpid.
22125         * modules/wait-process (Depends-on): Likewise.
22126
22127 2010-09-29  Bruno Haible  <bruno@clisp.org>
22128
22129         More tests for module 'sys_wait'.
22130         * modules/sys_wait-c++-tests: New file.
22131         * tests/test-sys_wait-c++.cc: New file.
22132         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
22133         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
22134
22135 2010-09-29  Bruno Haible  <bruno@clisp.org>
22136
22137         New module 'waitpid'.
22138         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
22139         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
22140         Don't include <process.h>.
22141         (waitpid): Declare only, using modern idiom.
22142         * m4/waitpid.m4: New file.
22143         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
22144         * modules/waitpid: New file.
22145         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
22146         (Makefile.am): Update.
22147         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
22148
22149 2010-09-28  Bruno Haible  <bruno@clisp.org>
22150
22151         poll: Assume ANSI C.
22152         * lib/poll.c (poll): Use an ANSI C declaration.
22153
22154 2010-09-28  Bruno Haible  <bruno@clisp.org>
22155
22156         poll-h: Create poll.h on all platforms.
22157         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
22158         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
22159         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
22160         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
22161         (gl_REPLACE_POLL_H): Don't set POLL_H.
22162         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
22163         * modules/poll-h (Depends-on): Add include_next.
22164         (Makefile.am): Create poll.h unconditionally. Substitute also
22165         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
22166
22167 2010-09-28  Bruno Haible  <bruno@clisp.org>
22168
22169         Tests for module 'poll-h'.
22170         * modules/poll-h-c++-tests: New file.
22171         * tests/test-poll-h-c++.cc: New file.
22172
22173         Tests for module 'poll-h'.
22174         * modules/poll-h-tests: New file.
22175         * tests/test-poll-h.c: New file.
22176
22177 2010-09-28  Bruno Haible  <bruno@clisp.org>
22178
22179         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
22180         * modules/poll-h (Depends-on): Add 'extensions'.
22181
22182 2010-09-28  Bruno Haible  <bruno@clisp.org>
22183
22184         New module 'poll-h'.
22185         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
22186         (poll): Use modern idiom.
22187         * modules/poll-h: New file.
22188         * modules/poll (Files): Remove lib/poll.in.h.
22189         (Depends-on): Add poll-h.
22190         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
22191         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
22192         * m4/poll_h.m4: New file.
22193         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
22194         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
22195         and invoke gl_REPLACE_POLL_H.
22196         * lib/poll.c: Use common idiom.
22197         * tests/test-poll.c: Likewise.
22198         * doc/posix-headers/poll.texi: Mention the poll-h module.
22199         Suggested by Eric Blake.
22200
22201 2010-09-26  Bruno Haible  <bruno@clisp.org>
22202
22203         sys_wait: Implement WSTOPSIG.
22204         * lib/sys_wait.in.h (WSTOPSIG): New macro.
22205         Reported by Simon Josefsson.
22206
22207 2010-09-26  Simon Josefsson  <simon@josefsson.org>
22208
22209         stdlib, sys_wait: Avoid compilation error on mingw.
22210         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
22211
22212 2010-09-26  Bruno Haible  <bruno@clisp.org>
22213
22214         stdlib tests: Avoid code duplication.
22215         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
22216         * modules/sys_wait-tests (Files): Likewise.
22217         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
22218         * tests/test-stdlib.c: Include test-sys_wait.h.
22219         (main): Invoke test_sys_wait_macros.
22220         * tests/test-sys_wait.c: Include test-sys_wait.h.
22221         (main): Invoke test_sys_wait_macros.
22222
22223 2010-09-25  Simon Josefsson  <simon@josefsson.org>
22224
22225         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
22226         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
22227         sure Windows sockets are working before calling getaddrinfo.
22228         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
22229         * doc/gnulib.texi (Windows sockets): Fix typo.
22230
22231 2010-09-25  Bruno Haible  <bruno@clisp.org>
22232
22233         Tests for module 'regex-quote'.
22234         * modules/regex-quote-tests: New file.
22235         * tests/test-regex-quote.c: New file.
22236
22237         New module 'regex-quote'.
22238         * lib/regex-quote.h: New file.
22239         * lib/regex-quote.c: New file.
22240         * modules/regex-quote: New file.
22241         Suggested by Reuben Thomas <rrt@sc3d.org>.
22242
22243 2010-09-24  Bruno Haible  <bruno@clisp.org>
22244
22245         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
22246         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
22247
22248 2010-09-23  Bruno Haible  <bruno@clisp.org>
22249
22250         setenv: Relax license.
22251         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
22252         Blake.
22253         Requested by Eric Blake.
22254
22255 2010-09-22  Bruno Haible  <bruno@clisp.org>
22256
22257         termios: Relax license.
22258         * modules/termios (License): Change to LGPLv2+.
22259         Requested by Eric Blake.
22260
22261 2010-09-22  Bruno Haible  <bruno@clisp.org>
22262
22263         threadlib: Allow the package to change the default to 'no'.
22264         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
22265         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
22266         Reported by Paul Eggert.
22267
22268 2010-09-22  Pádraig Brady  <P@draigbrady.com>
22269             Bruno Haible  <bruno@clisp.org>
22270
22271         Fix endless loop in mbmemcasecoll.
22272         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
22273         byte.
22274         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
22275
22276 2010-09-22  Bruno Haible  <bruno@clisp.org>
22277
22278         Tests for module 'memcoll'.
22279         * modules/memcoll-tests: New file.
22280         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
22281
22282         memcoll, xmemcoll: Clarify size vs. length.
22283         * modules/memcoll.c (memcoll0): Clarify specification.
22284         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
22285         passed to collate_error.
22286
22287 2010-09-22  Bruno Haible  <bruno@clisp.org>
22288
22289         Tests for module 'memcasecmp'.
22290         * modules/memcasecmp-tests: New file.
22291         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
22292
22293 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
22294
22295         * lib/pthread.in.h: Add split double-inclusion guard, and include
22296         system <pthread.h> if there is one.  Use @@-style as in other
22297         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
22298         pthread.h doesn't.
22299         (pthread_mutexattr_destroy, pthread_mutexattr_init):
22300         (pthread_mutexattr_settype, pthread_mutex_trylock):
22301         New static inline functions, if there's no system <pthread.h>.
22302         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
22303         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
22304         Approximate with mutexes if the system lacks spinlocks, as in
22305         MacOS.
22306         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
22307         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
22308         @@-style.  Check for spinlocks separately.
22309         (gl_PTHREAD_DEFAULTS): New macro.
22310         * modules/pthread: Redo to use a more typical style for in.h files.
22311
22312 2010-09-21  Eric Blake  <eblake@redhat.com>
22313
22314         net_if: enhance tests
22315         * tests/test-net_if.c (main): Move signature checks earlier.
22316         Print failures to stderr.
22317         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
22318         Document the bug that we do not yet fix.
22319
22320 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
22321
22322         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
22323         about gnulib, not GSS.
22324
22325 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
22326
22327         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
22328         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
22329         for Emacs.
22330         * build-aux/pmccabe2html: Make Makefile.am example code more
22331         cut-and-paste friendly.
22332
22333 2010-09-21  Simon Josefsson  <simon@josefsson.org>
22334
22335         * tests/test-net_if.c: New file.
22336         * modules/net_if-tests: New file.
22337
22338 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
22339
22340         pthread: add pthread_spin_destroy
22341         * lib/pthread.in.h (pthread_spin_destroy): New function.
22342
22343 2010-09-19  Bruno Haible  <bruno@clisp.org>
22344
22345         gnulib-tool: Fix --help output.
22346         * gnulib-tool (func_usage): Fix help message.
22347         Reported by Reuben Thomas <rrt@sc3d.org>.
22348
22349 2010-09-18  Jim Meyering  <meyering@redhat.com>
22350
22351         maint.mk: avoid unexpanded \n in two diagnostics
22352         * top/maint.mk (sc_prohibit_always_true_header_tests):
22353         Don't use a literal \n in a halt=... assignment.  It would not be
22354         expanded, and the two \n bytes would appear in the diagnostic output
22355         rather than the desired newline.  Use halt=$$(printf ... instead.
22356         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
22357
22358 2010-09-18  Bruno Haible  <bruno@clisp.org>
22359
22360         netinet_in: Doc tweak.
22361         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
22362         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
22363
22364 2010-09-18  Jim Meyering  <meyering@redhat.com>
22365
22366         init.sh: correct an outdated comment
22367         * tests/init.sh (create_exe_shims_):  s/function/alias/
22368
22369         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
22370         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
22371         a file named "*.exe" is removed between the glob expansion and the
22372         processing of that oddly named file.
22373
22374 2010-09-17  Eric Blake  <eblake@redhat.com>
22375
22376         mirbsd: add some more support
22377         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
22378         in BSD family.
22379         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
22380         devices as OpenBSD.
22381         * m4/host-os.m4 (mirbsd): Add MirBSD.
22382
22383         tests: fix unportable assumption on sys/wait.h
22384         * tests/test-sys_wait.c (main): Relax test.
22385         * tests/test-stdlib.c (main): Likewise.
22386
22387         init.sh: accomodate directory with no .exes
22388         * tests/init.sh: Accomodate directory containing only scripts.
22389
22390         tests: avoid compiler warning
22391         * tests/test-stdlib.c (main): Use the variable.
22392
22393         fdutimens, fdutimensat: update signature, again
22394         * lib/utimens.h (gl_futimens): Delete, and move signature...
22395         (fdutimens): ...here.
22396         (fdutimensat): Rearrange signature.
22397         (lutimensat): Rename variable for clarity.
22398         * lib/fdutimensat.c (fdutimensat): Update signature.
22399         * lib/utimens.c (fdutimens): Likewise.
22400         (gl_futimens): Delete.
22401         (utimens, lutimens): Update callers.
22402         * lib/futimens.c (futimens): Likewise.
22403         * tests/test-fdutimensat.c: Likewise.
22404         * tests/test-utimens.c: Likewise.
22405         * tests/test-futimens.h: Update comment.
22406         * NEWS: Mention this.
22407         Suggested by Paul Eggert.
22408
22409 2010-09-17  Bruno Haible  <bruno@clisp.org>
22410
22411         Take over the maintenance of some older macros from Autoconf.
22412         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
22413         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
22414         GNU Autoconf.
22415         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
22416         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
22417
22418 2010-09-17  Eric Blake  <eblake@redhat.com>
22419
22420         fdutimensat: drop atflag validation
22421         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
22422         with valid fd, to close a race scenario where futimens is
22423         unsupported and FILE was replaced by a symlink.
22424         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
22425         accordingly.
22426         Suggested by Paul Eggert.
22427
22428 2010-09-16  Bruno Haible  <bruno@clisp.org>
22429
22430         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
22431         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
22432
22433 2010-09-16  Bruno Haible  <bruno@clisp.org>
22434
22435         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
22436         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
22437         login_tty exists.
22438         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
22439
22440 2010-09-16  Bruno Haible  <bruno@clisp.org>
22441
22442         login_tty: Make the replacement code work on BSD systems.
22443         * lib/login_tty.c: Include <sys/ioctl.h>.
22444         (login_tty): Use ioctl TIOCSCTTY when available.
22445         * modules/login_tty (Depends-on): Add sys_ioctl.
22446         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
22447
22448 2010-09-16  Bruno Haible  <bruno@clisp.org>
22449
22450         login_tty: Stricter unit test.
22451         * modules/login_tty-tests (Depends-on): Add tcgetsid.
22452         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
22453         and tcgetsid() after login_tty.
22454         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
22455
22456 2010-09-16  Bruno Haible  <bruno@clisp.org>
22457
22458         New module 'tcgetsid'.
22459         * lib/tcgetsid.c: New file.
22460         * m4/tcgetsid.m4: New file.
22461         * modules/tcgetsid: New file.
22462         * modules/termios (Depends-on): Add c++defs, warn-on-use.
22463         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
22464         GNULIB_TCGETSID, HAVE_TCGETSID.
22465         * lib/termios.in.h: Include <sys/types.h>.
22466         (tcgetsid): New declaration.
22467         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
22468         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
22469         * doc/posix-functions/tcgetsid.texi: Mention the new module.
22470         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
22471
22472 2010-09-16  Bruno Haible  <bruno@clisp.org>
22473
22474         Tests for module 'termios'.
22475         * modules/termios-c++-tests: New file.
22476         * modules/termios-tests: New file.
22477         * tests/test-termios-c++.cc: New file.
22478         * tests/test-termios.c: New file.
22479
22480         New module 'termios'.
22481         * modules/termios: New file.
22482         * lib/termios.in.h: New file.
22483         * m4/termios_h.m4: New file.
22484         * doc/posix-headers/termios.texi: Mention the new module.
22485
22486 2010-09-16  Eric Blake  <eblake@redhat.com>
22487
22488         fdutimensat: add an atflag parameter
22489         * lib/fdutimensat.c (fdutimensat): Add new parameter.
22490         * lib/utimens.h (fdutimensat): Update prototype.
22491         * tests/test-fdutimensat.c: Adjust test to match.
22492         * NEWS: Document the change.
22493         Suggested by Paul Eggert.
22494
22495 2010-09-16  Bruno Haible  <bruno@clisp.org>
22496
22497         Fix typos in comments.
22498         * lib/striconveh.h: Fix typo in comment.
22499         * lib/login_tty.c (login_tty): Likewise.
22500
22501 2010-09-15  Bruno Haible  <bruno@clisp.org>
22502
22503         stdlib: clarify MirBSD WEXITSTATUS bug
22504         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
22505         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
22506
22507 2010-09-15  Eric Blake  <eblake@redhat.com>
22508
22509         stdlib: work around MirBSD WEXITSTATUS bug
22510         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
22511         * modules/stdlib (Depends-on): Add sys_wait.
22512         * tests/test-sys_wait.c (main): Enhance test.
22513         * tests/test-stdlib.c (main): Likewise.
22514         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
22515
22516         docs: mention MacOS issue with WEXITSTATUS(constant)
22517         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
22518         issue.
22519         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
22520
22521         strnlen: add tests
22522         * modules/strnlen-tests: New file.
22523         * tests/test-strnlen.c: Likewise.
22524
22525 2010-09-14  Bruno Haible  <bruno@clisp.org>
22526
22527         unistr/base: Avoid link errors when module 'libunistring' is also used.
22528         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
22529         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
22530         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
22531         Declare also when HAVE_LIBUNISTRING is set.
22532         Reported by Pádraig Brady <P@draigbrady.com>.
22533
22534 2010-09-14  Eric Blake  <eblake@redhat.com>
22535
22536         test-rawmemchr: make more robust
22537         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
22538         (Depends-on, configure.ac): Add needed prerequisites to use it.
22539         * modules/memchr-tests (Files, Depends-on, configure.ac):
22540         Likewise, to avoid implicit reliance on memchr module prereqs.
22541         * tests/test-memchr.c (main): Ensure proper masking.
22542         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
22543         reads.
22544
22545         memchr: detect glibc Alpha bug
22546         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
22547         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
22548         Alpha.
22549         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
22550         * tests/test-memchr.c (main): Enhance test.
22551         Reported by Nelson H. F. Beebe.
22552
22553 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
22554
22555         fts, getcwd, glob: audit for dirfd returning -1
22556         * lib/fts.c (opendir): Remove #define; no longer used.
22557         (opendirat): New arg PDIR_FD.  All callers changed.
22558         (fts_build, _opendir2): Use new opendirat to avoid the need for
22559         dirfd, or for checking whether dirfd returns a negative value.
22560         Don't use opendir; always use openat followed by fdopendir.
22561         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
22562         it.
22563         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
22564         returns -1 here.
22565         * modules/fts (Depends-on): Remove dirfd.
22566         * modules/getcwd (Depends-on): Likewise.
22567
22568 2010-09-13  Eric Blake  <eblake@redhat.com>
22569
22570         float: fix broken MirBSD header
22571         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
22572         * doc/posix-headers/float.texi (float.h): Document it.
22573
22574 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
22575
22576         fts: use O_NOFOLLOW to avoid race condition when opening a directory
22577         * lib/fts.c (opendirat): New arg extra_flags.
22578         (__opendir2): Use it to avoid following symlinks when opening
22579         a directory, if symlinks are not supposed to be followed.  See
22580         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
22581
22582         fdopendir: preserve argument fd before returning
22583         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
22584         (fdopendir_with_dup, fd_clone_opendir): New static functions.
22585         (fdopendir): Use them, arranging for FD to be open to the same
22586         directory that it was when it started.  (It might be temporarily
22587         closed while fdopendir is running, so this not thread- or
22588         signal-safe.)  Be careful to do the right thing even when file
22589         descriptors are scarce and dup fails with errno == EMFILE.  See
22590         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
22591
22592 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
22593
22594         regex: Pass the system regex if its only problem is 32-bit regoff_t.
22595         * NEWS: Document change.
22596         * m4/regex.m4: Disable test for regoff_t size.
22597
22598 2010-09-13  Jim Meyering  <meyering@redhat.com>
22599
22600         fts: don't operate on an invalid file descriptor after failed dup
22601         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
22602         negative file descriptor.
22603
22604 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
22605
22606         savedir: add streamsavedir, deprecate fdsavedir
22607         * NEWS: Mention deprecation of fdsavedir.
22608         * lib/savedir.c (streamsavedir): New extern function, whose name
22609         ends in "savedir" to be consistent with the others.  This differs
22610         from savedirstream in that it doesn't close its argument.  The
22611         next version of GNU tar will use this instead of fdsavedir, to
22612         avoid some race conditions and conserve file descriptors.
22613         (savedirstream): Reimplement as a wrapper around streamsavedir.
22614         (fdsavedir): Add a comment deprecating this function.  As far as
22615         I know, only GNU tar used it, and GNU tar doesn't need it any more.
22616         * lib/savedir.h (streamsavedir): New decl.
22617         (fdsavedir): Add a comment deprecating this.
22618
22619 2010-09-10  Bruno Haible  <bruno@clisp.org>
22620
22621         langinfo: Fix last commit.
22622         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
22623         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
22624         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22625
22626 2010-09-10  Bruno Haible  <bruno@clisp.org>
22627
22628         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
22629         * lib/progreloc.c (O_EXEC): Define fallback.
22630
22631 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
22632
22633         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
22634         * NEWS: Document recent changes to fcntl-h.
22635         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
22636         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
22637         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
22638         Similarly for O_SEARCH; this last was already true, but not documented.
22639         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
22640         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
22641         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
22642         Likewise.
22643         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
22644         is zero, not whether it is defined.
22645         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
22646         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
22647         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
22648
22649 2010-09-10  Bruno Haible  <bruno@clisp.org>
22650
22651         langinfo, nl_langinfo: Fix for IRIX 5.3.
22652         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
22653         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
22654         HAVE_LANGINFO_YESEXPR.
22655         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
22656         HAVE_LANGINFO_YESEXPR.
22657         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
22658         HAVE_LANGINFO_T_FMT_AMPM is 0.
22659         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
22660         HAVE_LANGINFO_YESEXPR is 0.
22661         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
22662         NOEXPR.
22663         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
22664         * doc/posix-functions/nl_langinfo.texi: Likewise.
22665         Reported by Eric Blake.
22666
22667 2010-09-10  Bruno Haible  <bruno@clisp.org>
22668
22669         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
22670         * doc/glibc-functions/login_tty.texi: Mention the include file problem
22671         on FreeBSD 8.0 and OpenBSD 4.6.
22672         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
22673         * m4/pty_h.m4 (gl_PTY_H): Likewise.
22674         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
22675         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
22676         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
22677         ac_includes_default.
22678         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
22679
22680 2010-09-09  Eric Blake  <eblake@redhat.com>
22681
22682         strsignal: work around NetBSD bug
22683         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
22684         * lib/string.in.h (includes): Likewise.
22685         * doc/posix-functions/strsignal.texi (strsignal): Document the
22686         bug.
22687         Reported by Nelson H. F. Beebe.
22688
22689         gnulib-tool: work with NetBSD /bin/sh
22690         * gnulib-tool (func_cache_var, func_cache_lookup_module)
22691         (func_get_description, func_get_comment, func_get_status)
22692         (func_get_notice, func_get_applicability, func_get_filelist)
22693         (func_get_dependencies, func_get_autoconf_early_snippet)
22694         (func_get_autoconf_snippet, func_get_automake_snippet)
22695         (func_get_include_directive, func_get_link_directive)
22696         (func_get_license, func_get_maintainer, func_import): Avoid
22697         shell syntax errors from parsing syntax extensions.
22698
22699 2010-09-09  Bruno Haible  <bruno@clisp.org>
22700
22701         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
22702         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
22703         a reliable way to determine whether the 'alias' command works.
22704
22705 2010-09-08  Jim Meyering  <meyering@redhat.com>
22706
22707         init.sh: penalize a set-x-impaired shell; don't disqualify it
22708         * tests/init.sh: Too many shells corrupt application stderr when
22709         you set -x, so we can't afford to disqualify them, since at least
22710         on Irix-6.5, that would disqualify all bourne shells.
22711         Instead, use a two-pass approach.
22712         On the first pass, try to find a shell that meets the stricter
22713         condition that set -x does not corrupt stderr.
22714         If no shell meets the stricter condition, retest each candidate
22715         shell, but without that extra condition.  Finally, when
22716         VERBOSE=yes is requested and set -x might cause trouble, simply
22717         issue a warning and refrain from enabling debug output.
22718
22719 2010-09-08  Eric Blake  <eblake@redhat.com>
22720
22721         unsetenv: fix OpenBSD bug
22722         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
22723         * doc/posix-functions/unsetenv.texi (unsetenv): Update
22724         documentation.
22725         Reported by Jim Meyering.
22726
22727         strtod: work around IRIX 6.5 bug
22728         * lib/strtod.c (strtod): Reparse number on shorter string if
22729         exponent parse was invalid.
22730         * tests/test-strtod.c (main): Add check for "0x1p 2".
22731         Reported by Tom G. Christensen.
22732
22733         getopt: optimize previous patch
22734         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
22735         empty variable.  Speed up awk script.
22736         Reported by Paolo Bonzini.
22737
22738 2010-09-08  Jim Meyering  <meyering@redhat.com>
22739
22740         test.sh: disqualify shells for which set -x corrupts stderr
22741         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
22742         and OpenBSD 4.7.  They make it so with "set -x", environment settings
22743         appear in stderr output.  For example, this command:
22744             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
22745         prints "P=1" on those two systems:
22746
22747 2010-09-08  Bruno Haible  <bruno@clisp.org>
22748
22749         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
22750         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
22751         commands, because some shells ignore redirections when there is an
22752         error in the command lookup.
22753         Reported by Eric Blake.
22754
22755 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
22756
22757         * lib/regex.h: Fix a mention of `regex_compile' (should be
22758         `re_compile_pattern').
22759         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
22760         (re_set_registers): Correct name of parameter in comment.
22761
22762         * doc/regex.texi: Add documentation for missing syntax flags.
22763         Remove commented-out documentation of defunct syntax option
22764         RE_NO_EMPTY_ALTS.
22765         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
22766         Add documentation of re_set_registers.
22767         Document trick to re-use a pattern buffer by setting fastmap manually.
22768         Update documentation of struct re_pattern_buffer per public members.
22769         Uncomment documentation of equivalence class operators and
22770         collating symbol operators, since they are now implemented,
22771         Explain leftmost-longest matching in relation to alternatives.
22772         Tidy documentation of substring matching.
22773         Remove POSIX documentation, which is done better in
22774         glibc, and refer the reader there. Keep BSD API documentation, as
22775         that is not readily available elsewhere.
22776
22777 2010-09-07  Eric Blake  <eblake@redhat.com>
22778
22779         getopt: handle POSIXLY_CORRECT set but not exported
22780         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
22781         export state of POSIXLY_CORRECT, due to bash set -o posix.
22782         Reported by Dustin J. Mitchell.
22783
22784 2010-09-05  Bruno Haible  <bruno@clisp.org>
22785
22786         gnulib-tool: Highlight the changed options.
22787         * gnulib-tool (func_usage): Display the --import, --add-import,
22788         --remove-import explanations in bold font.
22789
22790 2010-09-06  Karl Berry  <karl@gnu.org>
22791
22792         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
22793
22794 2010-09-05  Bruno Haible  <bruno@clisp.org>
22795
22796         uniwidth/width: Update comment.
22797         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
22798         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
22799
22800 2010-09-05  Bruno Haible  <bruno@clisp.org>
22801
22802         isinf, isnan: Relax license.
22803         * modules/isinf (License): Change from GPL to LGPL, with consent from
22804         Ben Pfaff.
22805         * modules/isnan (License): Likewise.
22806         Requested by Ludovic Courtès.
22807
22808 2010-09-04  Bruno Haible  <bruno@clisp.org>
22809
22810         gnulib-tool: Help migration from --import to --add-import or --update.
22811         * gnulib-tool: Emit a verbose error message when --import is used
22812         without any module name.
22813
22814 2010-09-04  Bruno Haible  <bruno@clisp.org>
22815
22816         Update doc about gnulib-tool.
22817         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
22818         'gnulib-tool --update' in more detail.
22819         Reported by Eric Blake.
22820
22821 2010-09-04  Bruno Haible  <bruno@clisp.org>
22822
22823         gnulib-tool: Change --import. New options --add/remove-import.
22824         * gnulib-tool: New options --add-import, --remove-import.
22825         (func_usage): Document them.
22826         (have_associative): Define always.
22827         (func_import): In import mode, don't merge the specified settings with
22828         the cached settings. Implement remove-import mode.
22829         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
22830         Explain when to use them versus --import.
22831         (Simple update): Use --add-import instead of --import.
22832         * NEWS: Mention the change.
22833
22834 2010-09-04  Bruno Haible  <bruno@clisp.org>
22835
22836         * doc/gnulib-tool.texi (Initial import): Update paragraph about
22837         separate gnulib.mk.
22838
22839 2010-09-04  Bruno Haible  <bruno@clisp.org>
22840
22841         gnulib-tool: Don't talk about CVS any more.
22842         * gnulib-tool (func_usage, func_import): Write "version control"
22843         instead of CVS.
22844
22845 2010-09-04  Jim Meyering  <meyering@redhat.com>
22846
22847         maint.mk: avoid obscure sc_copyright_check failure in coreutils
22848         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
22849         false positives (whose names may be ill-chosen) when searching
22850         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
22851         would cause a false-positive.
22852
22853         avoid coreutils "make distcheck" failure
22854         Coreutils tests with an absolute build directory name that contains
22855         a space.  Not quoting this directory name caused a failure.
22856         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
22857         * tests/test-vc-list-files-cvs.sh: Likewise.
22858
22859 2010-09-04  Bruno Haible  <bruno@clisp.org>
22860
22861         gnulib-tool: Avoid error when run in a package without Makefile.am.
22862         * gnulib-tool: When collecting the m4dirs in a package that does not
22863         have a Makefile.am, eliminate those directories that contain no
22864         gnulib-cache.m4. Fix expression that counts these directories.
22865
22866 2010-09-04  Bruno Haible  <bruno@clisp.org>
22867
22868         update-copyright test: Improve output when perl is missing or too old.
22869         * tests/test-update-copyright.sh: Move test of Perl version down after
22870         the test whether Perl exists. Provide an explanation relating Perl's
22871         error message to Automake's SKIP: message.
22872
22873 2010-09-04  Bruno Haible  <bruno@clisp.org>
22874
22875         Don't augment PATH in TESTS_ENVIRONMENT.
22876         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
22877         set abs_aux_dir instead of augmenting PATH.
22878         * modules/vc-list-files-tests (Makefile.am): Likewise.
22879         * tests/test-update-copyright.sh: Augment PATH here.
22880         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
22881         path_prepend_.
22882         * tests/test-vc-list-files-git.sh: Likewise.
22883
22884 2010-09-04  Jim Meyering  <meyering@redhat.com>
22885
22886         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
22887         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
22888
22889 2010-09-04  Bruno Haible  <bruno@clisp.org>
22890
22891         strdup: Fix compilation error in C++ mode.
22892         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
22893         the macro.
22894
22895 2010-09-04  Bruno Haible  <bruno@clisp.org>
22896
22897         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
22898         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
22899         macro into a function.
22900         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
22901
22902 2010-09-04  Bruno Haible  <bruno@clisp.org>
22903
22904         Set PATH_SEPARATOR the same way autoconf does.
22905         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
22906         the value of PATH_SEPARATOR the same way autoconf-generated configure
22907         scripts do.
22908         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
22909         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
22910
22911 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
22912
22913         Set PATH_SEPARATOR the same way autoconf does.
22914         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
22915         the same way autoconf-generated configure scripts do.
22916         * posix-modules: Likewise.
22917
22918 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
22919
22920         hash: fix safe_hasher const typo
22921         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
22922         const; otherwise, there is a type error later.
22923
22924 2010-09-02  Jim Meyering  <meyering@redhat.com>
22925
22926         test-update-copyright.sh: require perl 5.8.0
22927         * tests/test-update-copyright.sh: Require 5.8.0,
22928         which Tom G. Christensen has confirmed is adequate,
22929         while 5.6.1 is not.
22930
22931 2010-09-02  Eric Blake  <eblake@redhat.com>
22932
22933         tests: init.sh improvements for re-exec'ing with zsh
22934         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
22935         -vx through shell re-exec.
22936         Reported by Tom G. Christensen.
22937
22938         wctype: fix typo in previous commit
22939         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
22940         Reported by Ludovic Courtès.
22941
22942 2010-09-02  Jim Meyering  <meyering@redhat.com>
22943
22944         test-update-copyright.sh: skip test if Perl is too old
22945         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
22946         Reported by Tom G. Christensen.
22947
22948 2010-09-02  Bruno Haible  <bruno@clisp.org>
22949
22950         wctype: Avoid compilation error on IRIX 6.5.30.
22951         * lib/wctype.in.h (iswblank): Declare with a replacement if
22952         REPLACE_ISWBLANK is set.
22953         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
22954         declared. Set REPLACE_ISWBLANK.
22955         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
22956         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
22957         * doc/posix-headers/wctype.texi: Likewise.
22958         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22959
22960 2010-09-01  Bruno Haible  <bruno@clisp.org>
22961
22962         New module 'socketlib'.
22963         * modules/socketlib: New file.
22964         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
22965         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
22966         * modules/sockets (Depends-on): Add socketlib.
22967         Suggested by Sam Steingold <sds@gnu.org>.
22968
22969 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
22970
22971         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
22972
22973         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
22974         when one needs search access to a directory but not read access.
22975         On systems where it is available, it works in some cases where
22976         O_RDONLY does not, namely on directories that are searchable but
22977         not readable, and which need only to be searchable.  If O_SEARCH
22978         is not available, fall back to the traditional method of using
22979         O_RDONLY.
22980
22981         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
22982         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
22983         when opening a directory that needs only to be searchable.
22984         * lib/chdir-safer.c (chdir_no_follow): Likewise.
22985         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
22986         * lib/openat-proc.c (openat_proc_name): Likewise.
22987         * lib/openat.c (openat_needs_fchdir): Likewise.
22988         * lib/save-cwd.c (save_cwd): Likewise.
22989         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
22990
22991 2010-08-28  Bruno Haible  <bruno@clisp.org>
22992
22993         New module 'host-cpu-c-abi'.
22994         * modules/host-cpu-c-abi: New file.
22995         * m4/host-cpu-c-abi.m4: New file, based on part of
22996         clisp/src/m4/general.m4.
22997         Requested by Sam Steingold <sds@gnu.org>.
22998
22999 2010-08-31  Eric Blake  <eblake@redhat.com>
23000         and Jim Meyering  <meyering@redhat.com>
23001
23002         hash: factor, and guard against misbehaving hasher function
23003         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
23004         of table->hasher's return value.  Also protect against a hash value
23005         so large that adding it to table->bucket results in a NULL pointer.
23006         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
23007         Use it in place of open-coded check-and-abort.
23008
23009 2010-08-30  Bruno Haible  <bruno@clisp.org>
23010
23011         hash: silence spurious clang warning
23012         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
23013         Reported by Eric Blake.
23014
23015 2010-08-30  Eric Blake  <eblake@redhat.com>
23016
23017         strstr, memmem, strcasestr: avoid leaked shell message
23018         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
23019         FreeBSD.
23020         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23021         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23022
23023         tests: silence clang warning
23024         * tests/test-malloca.c (do_allocation): Avoid dead store.
23025
23026 2010-08-29  Bruno Haible  <bruno@clisp.org>
23027
23028         gettext: Fix recent mistake.
23029         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
23030
23031 2010-08-29  Bruno Haible  <bruno@clisp.org>
23032
23033         selinux-h: Offer a --without-selinux option.
23034         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
23035         --without-selinux was specified, skip all tests and define
23036         HAVE_SELINUX_SELINUX_H to 0.
23037         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
23038         set LIB_SELINUX to empty.
23039         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
23040         gl_LIBSELINUX. If --without-selinux was specified, replace
23041         selinux/context.h.
23042         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
23043
23044 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23045             Bruno Haible  <bruno@clisp.org>
23046
23047         Make the module 'realloc-gnu' work again on AIX and OSF/1.
23048         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
23049         of HAVE_REALLOC.
23050         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
23051         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
23052         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
23053         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
23054
23055 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23056             Bruno Haible  <bruno@clisp.org>
23057
23058         Make the module 'calloc-gnu' work again on AIX and OSF/1.
23059         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
23060         HAVE_CALLOC.
23061         * lib/xmalloc.c: Update accordingly.
23062         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
23063         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
23064         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
23065
23066 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23067             Bruno Haible  <bruno@clisp.org>
23068
23069         Make the module 'malloc-gnu' work again on AIX and OSF/1.
23070         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
23071         HAVE_MALLOC.
23072         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
23073         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
23074         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
23075
23076 2010-08-29  Bruno Haible  <bruno@clisp.org>
23077
23078         Update modules list.
23079         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
23080         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
23081         (String handling <string.h>): Add astrxfrm.
23082         (File system functions): Add readlinkat.
23083
23084 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23085
23086         Tests for module 'realloc-gnu'.
23087         * modules/realloc-gnu-tests: New file.
23088         * tests/test-realloc-gnu.c: New file.
23089
23090         Tests for module 'calloc-gnu'.
23091         * modules/calloc-gnu-tests: New file.
23092         * tests/test-calloc-gnu.c: New file.
23093
23094         Tests for module 'malloc-gnu'.
23095         * modules/malloc-gnu-tests: New file.
23096         * tests/test-malloc-gnu.c: New file.
23097
23098 2010-08-28  Bruno Haible  <bruno@clisp.org>
23099
23100         Rename module 'realloc' -> 'realloc-gnu'.
23101         * modules/realloc-gnu: New file, copied from modules/realloc.
23102         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
23103         obsolete.
23104         * modules/mgetgroups (Depends-on): Update.
23105         * doc/posix-functions/realloc.texi: Update.
23106         * NEWS: Mention the change.
23107
23108         Rename module 'calloc' -> 'calloc-gnu'.
23109         * modules/calloc-gnu: New file, copied from modules/calloc.
23110         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
23111         obsolete.
23112         * doc/posix-functions/calloc.texi: Update.
23113         * NEWS: Mention the change.
23114
23115         Rename module 'malloc' -> 'malloc-gnu'.
23116         * modules/malloc-gnu: New file, copied from modules/malloc.
23117         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
23118         obsolete.
23119         * modules/argp (Depends-on): Update.
23120         * modules/regex (Depends-on): Update.
23121         * doc/posix-functions/malloc.texi: Update.
23122         * NEWS: Mention the change.
23123
23124 2010-08-28  Eric Blake  <eblake@redhat.com>
23125
23126         pread, pwrite: add missing dependency
23127         * modules/pread (Depends-on): Add extensions.
23128         * modules/pwrite (Depends-on): Likewise.
23129
23130 2010-08-28  Bruno Haible  <bruno@clisp.org>
23131
23132         unistr/u*-strchr: Fix tests dependencies.
23133         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
23134         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
23135         Reported by Ian Beckwith <ianb@erislabs.net>.
23136
23137 2010-08-28  Bruno Haible  <bruno@clisp.org>
23138
23139         read-file: Don't occupy too much unused memory.
23140         * lib/read-file.c (fread_file): Shrink the buffer at the end.
23141
23142 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
23143             Eric Blake  <eblake@redhat.com>
23144             Bruno Haible  <bruno@clisp.org>
23145
23146         read-file: Avoid memory reallocations with regular files.
23147         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
23148         (fread_file): With regular files, use the remaining length as the
23149         initial buffer size.  Check against overflow.
23150         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
23151         sys_stat.
23152
23153 2010-08-28  Bruno Haible  <bruno@clisp.org>
23154
23155         ftello: Relax license.
23156         * modules/ftello (License): Relax to LGPLv2+.
23157         Reported by Eric Blake.
23158
23159 2010-08-28  Bruno Haible  <bruno@clisp.org>
23160
23161         Avoid relocwrapper link errors due to gnulib replacement functions.
23162         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
23163         function.
23164         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23165
23166 2010-08-28  Bruno Haible  <bruno@clisp.org>
23167
23168         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
23169         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
23170         defined.
23171         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
23172         Suggested by Eric Blake.
23173
23174 2010-08-28  Bruno Haible  <bruno@clisp.org>
23175
23176         sys_socket, netdb: Ensure socklen_t gets defined.
23177         * modules/sys_socket (Depends-on): Add socklen.
23178         * modules/netdb (Depends-on): Likewise.
23179         * modules/getaddrinfo (Depends-on): Remove socklen.
23180         * modules/getsockopt (Depends-on): Likewise.
23181         * modules/setsockopt (Depends-on): Likewise.
23182         * tests/test-sys_socket.c: Check that socklen_t is defined.
23183         * tests/test-netdb.c: Likewise.
23184         * m4/socklen.m4: Update comments.
23185         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23186
23187 2010-08-27  Eric Blake  <eblake@redhat.com>
23188
23189         login_tty: add missing dependency
23190         * modules/login_tty (Depends-on): Add pty.
23191
23192 2010-08-26  Eric Blake  <eblake@redhat.com>
23193
23194         lib-symbol-versions: fix m4 quoting
23195         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
23196         format for AC_LINK_IFELSE.
23197
23198         glob: fix compile test
23199         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
23200
23201         btowc: fix missing file
23202         * modules/btowc (Files): Also ship locale-fr.m4.
23203
23204         lseek: fix link test
23205         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
23206         AC_LINK_IFELSE.
23207
23208         include_next: silence autoconf 2.68 warning
23209         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
23210         AC_COMPILE_IFELSE as special.
23211         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
23212         autoconf < 2.68.
23213
23214         acl: fix compilation test
23215         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
23216         AC_COMPILE_IFELSE.
23217
23218 2010-08-26  Bruno Haible  <bruno@clisp.org>
23219
23220         Modernize AC_TRY_RUN invocations.
23221         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
23222         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
23223         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
23224         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
23225         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
23226         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
23227         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
23228         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
23229         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
23230         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
23231         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
23232         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
23233         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
23234         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
23235         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
23236         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
23237         gl_MBRLEN_NUL_RETVAL): Likewise.
23238         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
23239         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
23240         Likewise.
23241         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
23242         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
23243         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
23244         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
23245         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
23246         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
23247         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
23248         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
23249         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
23250         Likewise.
23251         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
23252         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
23253         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
23254         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
23255         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
23256         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
23257         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
23258         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
23259         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
23260         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
23261
23262 2010-08-26  Bruno Haible  <bruno@clisp.org>
23263
23264         Modernize AC_TRY_LINK invocations.
23265         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
23266         AC_TRY_LINK.
23267         * m4/argp.m4 (gl_ARGP): Likewise.
23268         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
23269         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
23270         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
23271         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
23272         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
23273         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
23274         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
23275         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
23276         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
23277         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
23278         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
23279         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
23280         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
23281         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
23282         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
23283         * m4/hostent.m4 (gl_HOSTENT): Likewise.
23284         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
23285         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
23286         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
23287         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
23288         Likewise.
23289         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
23290         Likewise.
23291         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
23292         Likewise.
23293         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
23294         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
23295         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
23296         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
23297         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
23298         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
23299         * m4/servent.m4 (gl_SERVENT): Likewise.
23300         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
23301         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
23302         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
23303         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
23304         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
23305         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
23306         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
23307         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
23308         * modules/tsearch-tests (configure.ac): Likewise.
23309
23310 2010-08-26  Bruno Haible  <bruno@clisp.org>
23311
23312         Modernize AC_TRY_COMPILE invocations.
23313         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
23314         AC_TRY_COMPILE.
23315         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
23316         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
23317         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
23318         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
23319         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
23320         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
23321         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
23322         * m4/lock.m4 (gl_LOCK): Likewise.
23323         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
23324         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
23325         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
23326         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
23327         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
23328         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
23329         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
23330         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
23331         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
23332         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
23333         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
23334         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
23335         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
23336         extraneous semicolon.
23337
23338 2010-08-26  Jim Meyering  <meyering@redhat.com>
23339
23340         stat-time: relax license LGPL
23341         * modules/stat-time (License): Change from GPL to LGPL,
23342         with consent from all contributors, for use in libguile.
23343         Requested by Ludovic Courtès.
23344
23345 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
23346
23347         poll: return immediately on POLLHUP.
23348         * lib/poll.c (poll): Always set timeout before wait_timeout is
23349         computed.
23350
23351 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23352
23353         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
23354         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
23355         rmdir ("dir/.//"), unlinkat.
23356
23357 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
23358
23359         stdbool: avoid spurious failure with modern xlc
23360         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
23361
23362 2010-08-24  Bruno Haible  <bruno@clisp.org>
23363
23364         getloadavg: simplify code
23365         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
23366         gl_have_func. Update comments.
23367
23368 2010-08-24  Eric Blake  <eblake@redhat.com>
23369
23370         getloadavg: don't define SVR4 on cygwin
23371         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
23372         only define SVR4 when -lkvm is required.
23373         Reported by Yaakov Selkowitz.
23374
23375 2010-08-24  Bruno Haible  <bruno@clisp.org>
23376
23377         priv-set: fix comment
23378         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
23379
23380 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
23381
23382         priv-set: fix comments
23383         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
23384         to match code, as suggested by David Bartley in:
23385         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
23386
23387 2010-08-23  Eric Blake  <eblake@redhat.com>
23388
23389         stdbool: avoid rejecting clang
23390         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
23391         * tests/test-stdbool.c: Enable more tests if using the system
23392         <stdbool.h> instead of the gnulib replacement.
23393         (main): Move xlc bug test to a runtime test for all compilers.
23394         Reported by Anders Kaseorg.
23395
23396         argz: fix shell quoting issue
23397         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
23398         Reported by Charles Wilson.
23399
23400 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
23401             Erik Faye-Lund <kusmabite@gmail.com>
23402
23403         poll, select: handle ERROR_BROKEN_PIPE.
23404         * lib/poll.c (win32_compute_revents): Return POLLHUP when
23405         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
23406         * lib/select.c (win32_compute_revents): Do not mark a pipe
23407         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
23408
23409 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
23410
23411         fts: allow compilation with C++
23412         * lib/fts_.h: Specify extern "C" linkage with C++.
23413
23414 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23415
23416         Fix gnulib-tool sed script de-commentation for AIX sed.
23417         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
23418         sed.
23419
23420 2010-08-17  Eric Blake  <eblake@redhat.com>
23421
23422         test-stddef: test for (some) offsetof bugs
23423         * tests/test-stddef.c: Enhance test to ensure correct type of
23424         offsetof.
23425         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
23426         that we are not fixing at this time.
23427
23428 2010-08-15  Bruno Haible  <bruno@clisp.org>
23429
23430         stpncpy: Allow stpncpy to be defined as a macro.
23431         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
23432         if it's already correctly declared.
23433         * lib/string.in.h (stpncpy): Undefine before redefining.
23434         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
23435
23436 2010-08-14  Bruno Haible  <bruno@clisp.org>
23437
23438         Rename module 'memxfrm' to 'amemxfrm'.
23439         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
23440         (amemxfrm): Renamed from memxfrm.
23441         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
23442         (amemxfrm): Renamed from memxfrm.
23443         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
23444         * NEWS: Mention the change.
23445         * MODULES.html.sh (String handling <string.h>): Update.
23446         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
23447         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
23448         * lib/unicase/u16-casexfrm.c: Likewise.
23449         * lib/unicase/u32-casexfrm.c: Likewise.
23450         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
23451         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
23452         * lib/uninorm/u16-normxfrm.c: Likewise.
23453         * lib/uninorm/u32-normxfrm.c: Likewise.
23454         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
23455         memxfrm.
23456         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
23457         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
23458         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
23459         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
23460         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
23461         Suggested by Paul Eggert.
23462
23463 2010-08-14  Bruno Haible  <bruno@clisp.org>
23464
23465         Tests for module 'astrxfrm'.
23466         * modules/astrxfrm-tests: New file.
23467         * tests/test-astrxfrm.c: New file.
23468
23469         New module 'astrxfrm'.
23470         * lib/astrxfrm.h: New file.
23471         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
23472         * modules/astrxfrm: New file.
23473
23474 2010-08-14  Reuben Thomas <rrt@sc3d.org>
23475
23476         regex: Tweak doc.
23477         * doc/regex.texi (Overview): Don't mention regex.c.
23478         (GNU Regular Expression Compiling): Likewise.
23479         (Match-end-of-line Operator): Mention 'not_eol'.
23480
23481 2010-08-14  Brian Gough  <bjg@gnu.org>
23482             Bruno Haible  <bruno@clisp.org>
23483
23484         git-merge-changelog: add doc relating to use with bzr and hg.
23485         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
23486
23487 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
23488
23489         pthread: fix pthread.h creation for srcdir != builddir
23490         * modules/pthread (Makefile.am): Fix the rule to work also in a
23491         non-srcdir build.
23492
23493 2010-08-13  Karl Berry  <karl@gnu.org>
23494
23495         * doc/regex.texi (Predefined Syntaxes): @smallexample.
23496         * doc/posix-*/*: force line break before @url of POSIX
23497         specifications.
23498         Suggested by Werner Lemberg.
23499
23500 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
23501
23502         strtod: fix const diagnostic
23503         * lib/strtod.c (strtod): Don't assign const char * to char *,
23504         as this elicits a warning from GCC when warnings are enabled.
23505
23506 2010-08-10  Pádraig Brady <P@draigbrady.com>
23507         and Eric Blake  <eblake@redhat.com>
23508
23509         copy-acl: ignore ENOTSUP on HP-UX
23510         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
23511         so that it is available for HP-UX.
23512         * lib/copy-acl.c (qcopy_acl): Use it.
23513         Reported by Patrick M. Callahan.
23514
23515 2010-08-10  Eric Blake  <eblake@redhat.com>
23516
23517         open, chown: relax license
23518         * modules/open (License): Change to LGPLv2+, with consent by all
23519         authors, for use in augeas.
23520         * modules/chown (License): Likewise.
23521         * modules/lchown (Likewise): Likewise.
23522         Requested by Adam Stokes.
23523
23524 2010-08-09  Karl Berry  <karl@gnu.org>
23525
23526         * build-aux/ar-lib: new file, import from Automake.
23527         * config/srclist.txt: autocheck for updates.
23528
23529 2010-08-09  Eric Blake  <eblake@redhat.com>
23530
23531         readlinkat: adjust client modules
23532         * modules/areadlinkat (Depends-on): Use readlinkat, not
23533         symlinkat.
23534         * modules/areadlinkat-with-size (Depends-on): Likewise.
23535
23536         mknod: be more vocal about danger of running tests as root
23537         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
23538         root, since that is just asking for problems.
23539         Suggested by Bruno Haible, based on a report by Rainer Tammer.
23540
23541         readlinkat: split into its own module
23542         * modules/symlinkat: Split readlinkat...
23543         * modules/readlinkat: ...into separate module.
23544         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
23545         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
23546         * lib/symlinkat.c (readlinkat): Move...
23547         * lib/readlinkat.c: ...into new file.
23548         * modules/symlinkat-tests: Split readlinkat test...
23549         * modules/readlinkat-tests: ...into separate module.
23550         * tests/test-symlinkat.c: Split...
23551         * tests/test-readlinkat.c: ...into new file.
23552         * NEWS: Document the split.
23553         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
23554         * lib/unistd.in.h (readlinkat): Likewise.
23555         Suggested by Bruno Haible.
23556
23557 2010-08-08  Bruno Haible  <bruno@clisp.org>
23558
23559         memxfrm: Speed up.
23560         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
23561         that usually only one call to strxfrm is necessary for each string
23562         part.
23563         Reported by Paul Eggert <eggert@cs.ucla.edu>.
23564
23565 2010-08-07  Karl Berry  <karl@gnu.org>
23566
23567         * doc/posix-headers/limits.texi,
23568         * doc/posix-functions/malloc.texi,
23569         * doc/posix-functions/strsignal.texi: missing @item.
23570         * doc/ld-version-script.texi: spurious leading i.
23571         * doc/regex.texi (Interval Operators): no commas inside @var.
23572
23573 2010-08-01  Bruno Haible  <bruno@clisp.org>
23574
23575         Integrate the regex documentation.
23576         * doc/gnulib.texi: Define 'cn' index.
23577         (Regular expressions): New a chapter that includes regex.texi and
23578         regexprops-generic.texi.
23579         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
23580         syntax.
23581
23582         Whitespace cleanup.
23583         * doc/regex.texi: Remove trailing spaces.
23584
23585         Add regex documentation.
23586         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
23587         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
23588         Written by Kathy A. Hargreaves and Karl Berry.
23589
23590 2010-08-01  Bruno Haible  <bruno@clisp.org>
23591
23592         link: Update documentation.
23593         * doc/posix-functions/link.texi: Update regarding Solaris.
23594
23595 2010-07-31  Bruno Haible  <bruno@clisp.org>
23596
23597         Update modules list.
23598         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
23599         (String handling <string.h>): Add memcmp2, memxfrm.
23600         (Container data structures): Add xlist, xsublist, xoset.
23601         (Core language properties): Add alignof, unused-parameter.
23602         (Process control, Numeric conversion functions <stdlib.h>): Renamed
23603         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
23604         (Unibyte characters <ctype.h>): New section.
23605         (String handling <string.h>): New section.
23606         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
23607         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
23608         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
23609         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
23610         tan, tanh, tanl, y0, y1, yn.
23611         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
23612         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
23613         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
23614         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
23615         unlockpt, vdprintf, vdprintf-posix.
23616         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
23617         (File system functions): Add concat-filename, sys_file, sys_ioctl,
23618         xconcat-filename.
23619         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
23620         getdtablesize, pipe2, pipe2-safer.
23621         (Security): New section.
23622         (Networking functions): Add accept4.
23623         (Signal handling): Add sigpipe.
23624         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
23625         mbmemcasecoll.
23626         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
23627         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
23628         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
23629         pipe-filter-ii.
23630         (Misc): Add argp-version-etc, login_tty, parse-duration.
23631
23632 2010-07-31  Bruno Haible  <bruno@clisp.org>
23633
23634         Improve doc in MODULES.html.
23635         * modules/linkat (Description): Add the word "function".
23636         * modules/mkfifo (Description): Likewise.
23637         * modules/mknod (Description): Likewise.
23638         * modules/remove (Description): Likewise.
23639         * modules/renameat (Description): Likewise.
23640         * modules/stat (Description): Likewise.
23641         * modules/symlink (Description): Likewise.
23642         * modules/unlink (Description): Likewise.
23643
23644 2010-07-31  Bruno Haible  <bruno@clisp.org>
23645
23646         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
23647         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
23648         option --enable/disable-c++ instead of --enable/disable-cxx.
23649         * NEWS: Mention the change.
23650
23651 2010-07-31  Bruno Haible  <bruno@clisp.org>
23652
23653         readlink, areadlink: Relax test a bit.
23654         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
23655         alternative to ENOTDIR.
23656         * tests/test-areadlink.h (test_areadlink): Likewise.
23657         Reported by Rainer Tammer.
23658
23659 2010-07-31  Bruno Haible  <bruno@clisp.org>
23660
23661         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
23662         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
23663         character, perform the search using U_STRCHR.
23664         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
23665         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
23666         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
23667         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
23668         Suggested by Paolo Bonzini.
23669
23670 2010-07-31  Bruno Haible  <bruno@clisp.org>
23671
23672         unistr/u*-strstr: Fix dependencies.
23673         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
23674         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
23675         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
23676
23677 2010-07-31  Bruno Haible  <bruno@clisp.org>
23678
23679         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
23680         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
23681         the beginning of the loop.
23682         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
23683         cases in 'switch' statement.
23684
23685         unistr/u8-strchr: Fix several bugs.
23686         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
23687         the string. When not found, return NULL, not a pointer near the end.
23688
23689         More tests for unistr/u8-strchr.
23690         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
23691         that the function does not read past the first occurrence of the byte
23692         being searched.
23693         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
23694         * tests/unistr/test-u16-strchr.c (main): New function.
23695         * tests/unistr/test-u32-strchr.c (main): New function.
23696
23697 2010-07-31  Bruno Haible  <bruno@clisp.org>
23698
23699         posix-modules: Ignore backup files of documentation files.
23700         * posix-modules: grep only through files named *.texi.
23701
23702 2010-07-31  Bruno Haible  <bruno@clisp.org>
23703
23704         symlinkat: Fix documentation.
23705         * doc/posix-functions/readlinkat.texi: Fix module name.
23706
23707 2010-07-31  Bruno Haible  <bruno@clisp.org>
23708
23709         fchownat: Replace also when chown has the trailing slash bug.
23710         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
23711         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
23712         introduced on 2010-04-10.
23713         Reported by Rainer Tammer.
23714
23715 2010-07-31  Bruno Haible  <bruno@clisp.org>
23716
23717         linkat: Work around AIX 7.1 bug.
23718         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
23719         whether linkat handles trailing slash correctly. If not, replace linkat
23720         and define LINKAT_TRAILING_SLASH_BUG.
23721         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
23722         check whether (fd1,file1) points to a directory if file1 or file2 ends
23723         in a slash. Code taken from lib/link.c.
23724         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
23725         Reported by Rainer Tammer.
23726
23727 2010-07-31  Bruno Haible  <bruno@clisp.org>
23728
23729         Correctly determine whether pow is available in libc on AIX 7 with xlc.
23730         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
23731         This disables an xlc optimization that was causing wrong test results.
23732         Reported by Rainer Tammer.
23733
23734 2010-07-31  Bruno Haible  <bruno@clisp.org>
23735
23736         iconv: Work around AIX 6.1..7.1 bug.
23737         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
23738         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
23739         cross-compiling, guess no on all versions of AIX.
23740         Reported by Rainer Tammer.
23741
23742 2010-07-31  Bruno Haible  <bruno@clisp.org>
23743
23744         readlink: Relax test a bit.
23745         * tests/test-readlink.h (test_readlink): Allow different errno value
23746         when readlink is called with a file name that ends in / and refers to
23747         a file.
23748         Suggested by Eric Blake.
23749         Reported by Rainer Tammer.
23750
23751 2010-07-31  Bruno Haible  <bruno@clisp.org>
23752
23753         copysign: Does not require -lm on glibc systems.
23754         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
23755         gl_COMMON_DOUBLE_MATHFUNC.
23756         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
23757
23758 2010-07-31  Bruno Haible  <bruno@clisp.org>
23759
23760         duplocale: Work around AIX 7.1 bug.
23761         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
23762         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
23763         * lib/duplocale.c (rpl_duplocale): Update comment.
23764         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
23765         Reported by Rainer Tammer.
23766
23767 2010-07-30  Bruno Haible  <bruno@clisp.org>
23768
23769         dirfd: Avoid link error on AIX 7.1.
23770         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
23771         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
23772         exist, set REPLACE_DIRFD.
23773         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
23774         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
23775         * doc/posix-functions/dirfd.texi: Update.
23776         Reported by Rainer Tammer.
23777
23778 2010-07-30  Eric Blake  <eblake@redhat.com>
23779
23780         strtod: next round of AIX fixes
23781         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
23782         exponent.
23783         * tests/test-strtod.c (main): Enhance tests.
23784         * doc/posix-functions/strtod.texi (strtod): Document next bug.
23785         Reported by Rainer Tammer.
23786
23787         futimens: fix configure check
23788         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
23789         Reported by Bruno Haible.
23790
23791 2010-07-30  Bruno Haible  <bruno@clisp.org>
23792
23793         getline: Update regarding AIX.
23794         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
23795         Reported by Rainer Tammer.
23796
23797 2010-07-30  Bruno Haible  <bruno@clisp.org>
23798
23799         wcwidth: Drop replacement on AIX 7.
23800         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
23801         AIX 7.
23802         Reported by Rainer Tammer.
23803
23804 2010-07-30  Bruno Haible  <bruno@clisp.org>
23805
23806         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
23807         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
23808         a 'char *'.
23809         Reported by Rainer Tammer.
23810
23811 2010-07-30  Bruno Haible  <bruno@clisp.org>
23812
23813         unlink: Update regarding AIX.
23814         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
23815         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
23816         Reported by Rainer Tammer.
23817
23818 2010-07-30  Bruno Haible  <bruno@clisp.org>
23819
23820         symlink: Update regarding AIX.
23821         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
23822         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
23823         Reported by Rainer Tammer.
23824
23825 2010-07-30  Bruno Haible  <bruno@clisp.org>
23826
23827         strndup: Update regarding AIX.
23828         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
23829         AIX 7.
23830         Reported by Rainer Tammer.
23831
23832 2010-07-30  Bruno Haible  <bruno@clisp.org>
23833
23834         stat: Update regarding AIX.
23835         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
23836         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
23837         Reported by Rainer Tammer.
23838
23839 2010-07-30  Bruno Haible  <bruno@clisp.org>
23840
23841         truncl: Fix autoconf test.
23842         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
23843         whether truncl works.
23844         Reported by Rainer Tammer.
23845
23846 2010-07-30  Bruno Haible  <bruno@clisp.org>
23847
23848         round: Update regarding AIX.
23849         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
23850         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
23851         Reported by Rainer Tammer.
23852
23853 2010-07-30  Bruno Haible  <bruno@clisp.org>
23854
23855         rename: Update regarding AIX.
23856         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
23857         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
23858         Reported by Rainer Tammer.
23859
23860 2010-07-30  Bruno Haible  <bruno@clisp.org>
23861
23862         printf.m4: Update regarding AIX.
23863         * m4/printf.m4: Update comments regarding AIX.
23864         Reported by Rainer Tammer.
23865
23866 2010-07-30  Bruno Haible  <bruno@clisp.org>
23867
23868         iconv: Update regarding AIX.
23869         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
23870         AIX 7.
23871         Reported by Rainer Tammer.
23872
23873 2010-07-30  Bruno Haible  <bruno@clisp.org>
23874
23875         getopt: Update regarding AIX.
23876         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
23877         no on AIX.
23878         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
23879         Reported by Rainer Tammer.
23880
23881 2010-07-30  Bruno Haible  <bruno@clisp.org>
23882
23883         ldexpl; Update regarding AIX.
23884         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
23885         on AIX 7.
23886         Reported by Rainer Tammer.
23887
23888 2010-07-30  Bruno Haible  <bruno@clisp.org>
23889
23890         frexpl: Update regarding AIX.
23891         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
23892         on AIX 7.
23893         Reported by Rainer Tammer.
23894
23895 2010-07-30  Bruno Haible  <bruno@clisp.org>
23896
23897         open, fopen: Update regarding AIX.
23898         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
23899         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
23900         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
23901         * doc/posix-functions/fopen.texi: Likewise.
23902         Reported by Rainer Tammer.
23903
23904 2010-07-30  Bruno Haible  <bruno@clisp.org>
23905
23906         chown: Update doc regarding AIX.
23907         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
23908         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
23909         Reported by Rainer Tammer.
23910
23911 2010-07-30  Eric Blake  <eblake@redhat.com>
23912
23913         strtod: fix bug in replacement function on AIX
23914         * lib/strtod.c (strtod): Special case broken "0x" parse in
23915         underlying strtod.
23916         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
23917         * doc/posix-functions/strtod.texi (strtod): Likewise.
23918         Reported by Rainer Tammer.
23919
23920 2010-07-30  Bruno Haible  <bruno@clisp.org>
23921
23922         mbrlen: Fix cross-compilation guess for AIX.
23923         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
23924         guess. Leftover from 2008-12-22.
23925
23926 2010-07-30  Bruno Haible  <bruno@clisp.org>
23927
23928         mbrtowc: Fix cross-compilation guess for AIX.
23929         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
23930         guess. Leftover from 2008-12-21.
23931
23932 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
23933
23934         init.sh: work around trap limitation of some shells
23935         * tests/init.sh (setup_): Move exit trap outside of shell function.
23936
23937 2010-07-29  Eric Blake  <eblake@redhat.com>
23938
23939         strtod: aid debugging
23940         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
23941         understanding why strtod is rejected.
23942
23943 2010-07-28  Bruno Haible  <bruno@clisp.org>
23944
23945         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
23946         * lib/unistr/u8-chr.c: Include <string.h>.
23947         * tests/unistr/test-u8-chr.c: Likewise.
23948         * tests/unistr/test-u16-chr.c: Likewise.
23949         * tests/unistr/test-u32-chr.c: Likewise.
23950         * tests/unistr/test-u8-strchr.c: Likewise.
23951         * tests/unistr/test-u16-strchr.c: Likewise.
23952         * tests/unistr/test-u32-strchr.c: Likewise.
23953         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
23954         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
23955         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
23956         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
23957
23958 2010-07-28  Bruno Haible  <bruno@clisp.org>
23959
23960         Use spaces for indentation, not tabs.
23961         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
23962
23963 2010-07-27  Bruno Haible  <bruno@clisp.org>
23964
23965         mbspcasecmp: Fix function specification.
23966         * lib/string.in.h (mbspcasecmp): Fix specification comment.
23967         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
23968         Reported by Eric Blake <eblake@redhat.com>.
23969
23970 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
23971
23972         timespec: use cast and not conditional, as truncation isn't possible
23973         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
23974         instead of a conditional.  Comment about the situation in more detail.
23975         This undoes most of the 2009-10-29 patch.
23976
23977 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
23978
23979         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
23980         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
23981         * lib/unistr/u8-strchr.c: Likewise.
23982         * modules/unistr/u8-chr: Depend on memchr.
23983
23984         unistr/u*-strchr: add tests
23985         * modules/unistr/u8-strchr-tests: New file.
23986         * modules/unistr/u16-strchr-tests: New file.
23987         * modules/unistr/u32-strchr-tests: New file.
23988         * tests/unistr/test-strchr.h: New file.
23989         * tests/unistr/test-u8-strchr.c: New file.
23990         * tests/unistr/test-u16-strchr.c: New file.
23991         * tests/unistr/test-u32-strchr.c: New file.
23992
23993         unistr/u*-chr: test multibyte sequences more
23994         * tests/unistr/test-chr.h: Do complete testing of the characters in the
23995         test vector.
23996         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
23997         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
23998         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
23999
24000         unistr/u*-chr: test multibyte sequences
24001         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
24002
24003         unistr/u*-chr: prepare for multibyte tests
24004         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
24005         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
24006         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
24007         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
24008         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
24009         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
24010
24011 2010-07-18  Bruno Haible  <bruno@clisp.org>
24012
24013         unistr/u8-strchr: Optimize non-ASCII argument case.
24014         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
24015         because the first byte often matches anyway.
24016         Reported by Pádraig Brady <P@draigbrady.com>.
24017
24018 2010-07-15  Karl Berry  <karl@gnu.org>
24019
24020         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
24021
24022 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
24023
24024         getcwd: on Solaris, work better if ancestors are inaccessible
24025         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
24026         buffer and size, try again with a large buffer.  This works better
24027         on Solaris, since its getcwd succeeds even if the path to the root
24028         is inaccessible, and this is helpful in common cases such as .zfs
24029         hidden directories.  Problem reported by J Chapman Flack in
24030         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
24031         Use system getcwd if it's declared, not merely if it's partly
24032         working; use the partly-working test only to avoid needless effort
24033         if the system getcwd fails.
24034         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
24035         comment that was already obsolete and is now even more obsolete.
24036         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
24037         now might call strdup.
24038
24039 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
24040
24041         pthread: Add enough so that coreutils/src/sort.c compiles.
24042         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
24043         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
24044         gnulib. Include <sched.h> and <time.h>, as per POSIX.
24045         Include <sys/types.h>, in case it defines pthread_t.
24046         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
24047         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
24048         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
24049         (pthread_rwlockattr_t, pthread_spinlock_t):
24050         New typedefs, if HAVE_PTHREAD_T is not defined.
24051         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
24052         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
24053         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
24054         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
24055         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
24056         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
24057         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
24058         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
24059         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
24060         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
24061         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
24062         New macros.
24063         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
24064         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
24065         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
24066         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
24067         (pthread_spin_unlock): New dummy functions.
24068         (pthread_create): Return EAGAIN; don't set errno.
24069         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
24070         require AC_C_INLINE.
24071         * modules/pthread (Depends-on): Add sched, time.
24072         (pthread.h): Use AM_V_GEN.
24073
24074 2010-07-13  Bruno Haible  <bruno@clisp.org>
24075
24076         striconveh: Don't malloc memory if the result buffer is sufficient.
24077         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
24078         buffer if its size is sufficient.
24079         Reported by Ludovic Courtès <ludo@gnu.org>.
24080
24081 2010-07-13  Bruno Haible  <bruno@clisp.org>
24082
24083         strtod: Add safety check.
24084         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
24085
24086 2010-07-12  Bruno Haible  <bruno@clisp.org>
24087
24088         Unify tests that set gl_cv_func_ldexpl_no_libm.
24089         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
24090         gl_FUNC_LDEXPL.
24091         (gl_FUNC_LDEXPL): Invoke it.
24092         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
24093
24094 2010-07-12  Bruno Haible  <bruno@clisp.org>
24095
24096         Unify tests that set gl_cv_func_ldexp_no_libm.
24097         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
24098         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
24099         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
24100         (configure.ac): Simply invoke gl_FUNC_LDEXP.
24101         * modules/strtod (Files): Add m4/ldexp.m4.
24102
24103 2010-07-12  Bruno Haible  <bruno@clisp.org>
24104
24105         Unify tests that set gl_cv_func_frexpl_no_libm.
24106         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
24107         gl_FUNC_FREXPL_NO_LIBM.
24108         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
24109         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
24110
24111 2010-07-12  Bruno Haible  <bruno@clisp.org>
24112
24113         Unify tests that set gl_cv_func_frexp_no_libm.
24114         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
24115         gl_FUNC_FREXP_NO_LIBM.
24116         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
24117         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
24118
24119 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
24120
24121         memcoll: clarify sizes versus lengths, document better, and tweak perf
24122         * lib/memcoll.c (strcoll_loop, memcoll0):
24123         Improve quality of descriptive comments.  Name variables
24124         consistently as to whether they are lengths (which do not include
24125         terminating null) versus sizes (which do).
24126         * lib/xmemcoll.c (xmemcoll0): Likewise.
24127         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
24128         returned when s1size == 0; this is easier to compile and saves
24129         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
24130
24131 2010-07-12  Bruno Haible  <bruno@clisp.org>
24132
24133         Tests for module '_Exit'.
24134         * modules/_Exit-tests: New file.
24135         * tests/test-_Exit.sh: New file.
24136         * tests/test-_Exit.c: New file.
24137
24138         New module '_Exit'.
24139         * lib/stdlib.in.h (__attribute__): New macro.
24140         (_Exit): New declaration.
24141         * lib/_Exit.c: New file.
24142         * m4/_Exit.m4: New file.
24143         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
24144         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
24145         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
24146         * modules/_Exit: New file.
24147         * tests/test-stdlib-c++.cc (_Exit): Check signature.
24148         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
24149
24150 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
24151
24152         strtod: make it more-accurate typically, and don't require libm
24153         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
24154         Include limits.h.  Don't include string.h.
24155         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
24156         (locale_isspace): New function, so that no casts are needed to
24157         check whether *s is a space.
24158         (ldexp): Provide an unused dummy if not available.
24159         (scale_radix_exp, parse_number, underlying_strtod): New functions.
24160         (strtod): Use them.  This implementation prefers to use the
24161         underlying strtod if available, falling back on our own code
24162         only to fix known bugs.  This is more likely to produce an
24163         accurate result.  Also, it avoids the use of libm functions.
24164         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
24165         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
24166         was absent, but it caused a test failure with coreutils.
24167         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
24168         with libm.
24169         * modules/strtod (Makefile.am, Link): libm is no longer needed.
24170         * modules/strtod-tests (Makefile.am): Likewise.
24171
24172 2010-07-11  Pádraig Brady  <P@draigBrady.com>
24173             Bruno Haible  <bruno@clisp.org>
24174
24175         unistr/u8-strchr: Optimize ASCII argument case.
24176         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
24177
24178 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
24179
24180         (x)memcoll: minor tweaks
24181         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
24182         is after the type that it qualifies.
24183         (memcoll0): Likewise.
24184         * lib/memcoll.h (memcoll0): Likewise.
24185         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
24186         * lib/xmemcoll.h (xmemcoll0): Likewise.
24187         * lib/memcoll.c (memcoll0): Correct the comment.  This function
24188         differs from memcoll in that the NUL byte is part of the argument.
24189         Omit the abort-checks, as performance is a real issue here.  Plus,
24190         the checks were wrong anyway (an off-by-one error).  Omit local
24191         variable 'diff', as it's a bit clearer that way.
24192         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
24193         no longer needed.
24194
24195 2010-07-08  Chen Guo <chenguo4@yahoo.com>
24196
24197         (x)memcoll: speedup when input is known to be NUL delimited
24198         * lib/memcoll.c: Include stdlib.
24199         (memcoll0): New function.
24200         (strcoll_loop): New function, refactored for use in both memcoll
24201         and memcoll0.
24202         * lib/memcoll.h (memcoll0): Add prototype.
24203         * lib/xmemcoll.c (xmemcoll0): New function.
24204         (collate_error): New function, refactored for use in both xmemcoll
24205         and xmemcoll0.
24206         * lib/xmemcoll.h (xmemcoll0): Add prototype.
24207         * m4/memcoll.m4: add inline invocation.
24208
24209 2010-07-06  Pádraig Brady  <P@draigBrady.com>
24210
24211         * build-aux/bootstrap: Remove any local translations
24212         from the translation project synchronization directory,
24213         so that local only translations are not distributed.
24214
24215 2010-07-04  Bruno Haible  <bruno@clisp.org>
24216
24217         fsusage: Clarify which code applies to which platforms.
24218         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
24219         platform.
24220         * lib/fsusage.c (get_fs_usage): Likewise.
24221
24222 2010-07-04  Bruno Haible  <bruno@clisp.org>
24223
24224         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
24225         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
24226         Reported by Martin Lambers <marlam@marlam.de>.
24227
24228 2010-07-04  Jim Meyering  <meyering@redhat.com>
24229
24230         hash: once again explicitly disallow insertion of NULL
24231         * lib/hash.c (hash_insert0): Reinstate just-removed test:
24232         inserting a NULL pointer cannot work with these functions.
24233         Add a comment with details.
24234         This reverts part of the 2010-07-01 commit, 5bef1a35
24235         "hash: extend module to deal with non-pointer keys".
24236
24237 2010-07-01  Bruno Haible  <bruno@clisp.org>
24238
24239         stdbool: Update doc.
24240         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
24241         Info from Christian Weisgerber <naddy@mips.inka.de>.
24242
24243 2010-07-01  Jim Meyering  <meyering@redhat.com>
24244
24245         hash: extend module to deal with non-pointer keys
24246         * lib/hash.c (hash_insert0): New interface, much like hash_insert
24247         but that allows insertion of non-pointer entries.
24248         Do not disallow an ENTRY value of NULL.
24249         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
24250         * lib/hash.h (hash_insert0): Declare.
24251
24252 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
24253
24254         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
24255         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
24256         not present (i.e. with autoconf 2.59 and when using gettextize, not
24257         gnulib), require AC_GNU_SOURCE instead.
24258
24259 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
24260
24261         idpriv-drop: Fix tests.
24262         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
24263         not to the test-idpriv-droptemp program.
24264
24265 2010-06-29  Bruno Haible  <bruno@clisp.org>
24266
24267         string: Fix syntax error with g++ 2.96.
24268         * lib/string.in.h (__pure__): Remove definition.
24269         (_GL_ATTRIBUTE_PURE): New macro.
24270         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
24271         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
24272         Reported by Christian Weisgerber <naddy@mips.inka.de>.
24273
24274 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
24275
24276         unitypes: Fix bug introduced on 2010-05-18.
24277         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
24278
24279 2010-06-22  Eric Blake  <eblake@redhat.com>
24280
24281         memmem: slight optimization
24282         * lib/str-two-way.h (critical_factorization): Update comments.
24283         Reduce work during factorization phase.
24284         Reported by Carlos Bueno <carlos@bueno.org>.
24285
24286 2010-06-21  Bruno Haible  <bruno@clisp.org>
24287
24288         Fix HAVE_CALLOC_POSIX misnomer.
24289         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
24290         !HAVE_CALLOC_POSIX.
24291         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
24292         HAVE_CALLOC_POSIX.
24293         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
24294         instead of HAVE_CALLOC_POSIX.
24295         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
24296         HAVE_CALLOC_POSIX.
24297
24298         Use modern idiom for calloc() replacement.
24299         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
24300         AC_FUNC_CALLOC.
24301         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
24302         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
24303         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
24304         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
24305         (gl_REPLACE_CALLOC): New macro.
24306
24307 2010-06-21  Bruno Haible  <bruno@clisp.org>
24308
24309         Fix HAVE_REALLOC_POSIX misnomer.
24310         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
24311         !HAVE_REALLOC_POSIX.
24312         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
24313         HAVE_REALLOC_POSIX.
24314         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
24315         instead of HAVE_REALLOC_POSIX.
24316         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
24317         HAVE_REALLOC_POSIX.
24318
24319         Use modern idiom for realloc() replacement.
24320         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
24321         AC_FUNC_REALLOC.
24322         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
24323         Autoconf's AC_FUNC_REALLOC.
24324         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
24325         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
24326         (gl_REPLACE_REALLOC): New macro.
24327         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
24328
24329 2010-06-21  Bruno Haible  <bruno@clisp.org>
24330
24331         Fix HAVE_MALLOC_POSIX misnomer.
24332         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
24333         !HAVE_MALLOC_POSIX.
24334         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
24335         HAVE_MALLOC_POSIX.
24336         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
24337         instead of HAVE_MALLOC_POSIX.
24338         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
24339         HAVE_MALLOC_POSIX.
24340
24341         Use modern idiom for malloc() replacement.
24342         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
24343         AC_FUNC_MALLOC.
24344         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
24345         Autoconf's AC_FUNC_MALLOC.
24346         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
24347         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
24348         (gl_REPLACE_MALLOC): New macro.
24349         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
24350
24351 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
24352
24353         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
24354         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
24355         This macro takes 3 arguments, not 4.
24356
24357 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
24358
24359         ipv6: fix detection under mingw
24360         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
24361         in6_addr.
24362
24363 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
24364
24365         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
24366         that strtod() works when cross-compiling to a glibc version known
24367         to work.
24368
24369 2010-06-15  Bruno Haible  <bruno@clisp.org>
24370
24371         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
24372
24373 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
24374
24375         select: Correct timeout.
24376         * lib/select.c (rpl_select): Compute wait_timeout correctly.
24377
24378 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
24379
24380         git-version-gen: init shell var to avoid env var influence
24381         * build-aux/git-version-gen (v): Init shell var to empty.
24382
24383 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
24384
24385         priv-set: Don't assume that priv.h exists merely because getppriv does.
24386         See Jan Andersen's bug report about AIX 5L in
24387         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
24388         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
24389         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
24390         * lib/priv-set.h: Likewise.
24391         * tests/test-priv-set.c: Likewise.
24392
24393 2010-06-13  Bruno Haible  <bruno@clisp.org>
24394
24395         relocatable: Make it easier to test whether to install wrappers.
24396         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
24397         RELOCATABLE_VIA_WRAPPER.
24398
24399 2010-06-13  Bruno Haible  <bruno@clisp.org>
24400
24401         gnulib-tool: Display specified modules and dependencies differently.
24402         * gnulib-tool (func_show_module_list): New function.
24403         (func_import, func_create_testdir): Invoke it.
24404         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
24405
24406 2010-06-13  Bruno Haible  <bruno@clisp.org>
24407
24408         gnulib-tool: Align code of func_import and func_create_testdir.
24409         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
24410         specified_modules.
24411
24412 2010-06-12  Jim Meyering  <meyering@redhat.com>
24413
24414         test-inttostr: avoid spurious failure on Solaris 9
24415         * tests/test-inttostr.c (main): Skip the test when snprintf fails
24416         to accept "%ju".  Reported by Bruno Haible.
24417
24418 2010-06-11  Jim Meyering  <meyering@redhat.com>
24419
24420         test-sys_socket: mark variables as used more readably
24421         * tests/test-sys_socket.c (main): Mark otherwise unused variables
24422         as "used" explicitly via (void) statement casts.  This is more
24423         readable than using them in an artificial return expression.
24424         Suggestion from Bruno Haible.
24425
24426 2010-06-11  Bruno Haible  <bruno@clisp.org>
24427
24428         Avoid some more warnings from "gcc -Wwrite-strings".
24429         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
24430         to 'const char *'.
24431         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
24432         * tests/test-c-strcasestr.c (main): Likewise.
24433         * tests/test-mbscasestr1.c (main): Likewise.
24434         * tests/test-mbscasestr2.c (main): Likewise.
24435         * tests/test-memmem.c (main): Likewise.
24436         * tests/test-strstr.c (main): Likewise.
24437         * tests/test-strcasestr.c (main): Likewise.
24438
24439 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24440
24441         init.sh: change framework_failure_ to fail with status 99, not 1
24442         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
24443         automake's parallel-tests rule that this is an unexpected failure,
24444         even if the test is listed in XFAIL_TESTS.
24445
24446 2010-06-11  Jim Meyering  <meyering@redhat.com>
24447
24448         test-inttostr: avoid warnings about 4-6KB literal strings
24449         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
24450         Include "macros.h", for its definition of ASSERT.
24451         (CK): s/assert/ASSERT/
24452         * modules/inttostr-tests (Files): Add macros.h.
24453
24454         init.sh: don't use $ME_ or skip_ before they are defined
24455         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
24456         their first uses.  Also hoist their companions: warn_, fail_,
24457         framework_failure_, $stderr_fileno.  Prompted by a patch from
24458         Stefano Lattarini.
24459
24460         test-sys_socket: avoid set-but-not-used warnings from gcc
24461         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
24462         avoid warning about set-but-not-used variables.
24463
24464         test-xvasprintf: avoid 'const' discard warnings
24465         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
24466         "const" when assigning from literal strings.
24467         (test_xasprintf): Add "void" in function argument list to placate
24468         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
24469
24470         tests: avoid compilation warnings in argmatch and exclude tests...
24471         in packages that define ARGMATCH_DIE_DECL, like coreutils.
24472         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
24473         Since it always exits, declare with the "noreturn" attribute.
24474         * tests/test-argmatch.c: Likewise.
24475
24476         tests: avoid 'const' discard warnings in mbsstr tests
24477         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
24478         * tests/test-mbsstr2.c (main): Likewise.
24479
24480         test-verify: avoid warning from gcc's -Wmissing-declarations
24481         * tests/test-verify.c (function): Declare to be static.
24482
24483         test-inttostr.c: include <string.h> for use of strcmp
24484         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
24485
24486         test-linkat: avoid failed assertion on "other" architectures
24487         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
24488         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
24489         sparc: https://bugs.launchpad.net/bugs/591968
24490
24491 2010-06-11  Jim Meyering  <meyering@redhat.com>
24492
24493         printf.m4: avoid autoconf's "Expanded Before Required" warning
24494         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
24495         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
24496         autoconf warning.
24497
24498 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
24499
24500         Replacement header templates are now named with ".in", not "_".
24501         * doc/gnulib-intro.texi: Correct.
24502
24503 2010-06-10  Jim Meyering  <meyering@redhat.com>
24504
24505         inttostr-tests: depend on snprintf, not snprintf-posix
24506         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
24507         snprintf-posix, to avoid this aclocal failure:
24508           missing file gnulib-tests/vasnprintf.c
24509           configure.ac:45: error: expected source file, required through \
24510           AC_LIBSOURCES, not found
24511
24512 2010-06-10  Jim Meyering  <meyering@redhat.com>
24513
24514         inttostr: add a new function, inttostr, and tests
24515         The namesake function was not available.  The existence of the
24516         template file, inttostr.c makes its addition nontrivial.
24517         * lib/anytostr.c: Rename from inttostr.c.
24518         (anytostr): Rename from inttostr.
24519         * lib/inttostr.c: New file.
24520         * modules/inttostr (Files): Add anytostr.c.
24521         (Makefile.am): Set lib_SOURCES instead of ...
24522         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
24523         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
24524         * lib/offtostr.c: Likewise.
24525         * lib/uinttostr.c: Likewise.
24526         * lib/umaxtostr.c: Likewise.
24527         * modules/inttostr-tests: New file.
24528         * tests/test-inttostr.c: New file.  Test these functions.
24529
24530 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
24531             Bruno Haible  <bruno@clisp.org>
24532
24533         Add "Extending Gnulib" chapter to manual.
24534         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
24535         chapter.
24536         (Extending Gnulib): New chapter.
24537         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
24538         chapter.
24539
24540 2010-06-09  Bruno Haible  <bruno@clisp.org>
24541
24542         Avoid relocwrapper link errors due to gnulib replacement functions.
24543         * lib/areadlink.c: Use the system's malloc, realloc functions.
24544         (areadlink): Set errno to ENOMEM explicitly.
24545         * modules/areadlink (Depends-on): Remove malloc-posix.
24546         Reported by Ben Pfaff <blp@cs.stanford.edu>.
24547
24548 2010-06-09  Bruno Haible  <bruno@clisp.org>
24549
24550         Avoid relocwrapper link errors due to gnulib replacement functions.
24551         * lib/canonicalize-lgpl.c: Use the system's malloc function.
24552         * lib/malloca.c: Likewise.
24553         * lib/relocatable.c: Likewise.
24554         * lib/progreloc.c: Use the system's malloc, sprintf functions.
24555         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
24556         * lib/setenv.c: Use the system's malloc, realloc functions.
24557         * lib/strerror.c: Use the system's sprintf function.
24558         Reported by Ben Pfaff <blp@cs.stanford.edu>.
24559
24560 2010-06-04  Bruno Haible  <bruno@clisp.org>
24561
24562         Prefer documented low-level autoconf macro names.
24563         * m4/lib-link.m4: Use m4_translit instead of translit.
24564         * m4/environ.m4: Likewise.
24565         * m4/mathfunc.m4: Likewise.
24566         * m4/onceonly.m4: Likewise.
24567         * m4/stdint.m4: Likewise.
24568         Suggested by Eric Blake.
24569
24570 2010-06-04  Martin Lambers  <marlam@marlam.de>
24571             Bruno Haible  <bruno@clisp.org>
24572
24573         havelib: Allow library names with '+' characters.
24574         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
24575         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
24576
24577 2010-06-09  Bruno Haible  <bruno@clisp.org>
24578
24579         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
24580         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
24581         realloc failed.
24582
24583 2010-06-08  Peter Simons  <simons@cryp.to>
24584
24585         maint.mk: make the news-check rule more configurable
24586         * top/maint.mk (news-check-lines-spec): New variable.
24587         (news-check): Use "sed -n 1,10p" in place of "head".
24588
24589 2010-06-07  Jim Meyering  <meyering@redhat.com>
24590
24591         do-release-commit-and-tag: fix typo in --help
24592         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
24593
24594         regex: avoid new dead-code warning with gcc-4.6.0
24595         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
24596         if-block containing a while-loop.  It's been unused for at least
24597         5 years.
24598
24599 2010-06-05  Bruno Haible  <bruno@clisp.org>
24600
24601         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
24602         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
24603
24604 2010-06-04  Bruno Haible  <bruno@clisp.org>
24605
24606         Update to GNU gettext 0.18.1.
24607         * modules/gettext (configure.ac): Require gettext infrastructure from
24608         version 0.18.1.
24609
24610 2010-06-03  Bruno Haible  <bruno@clisp.org>
24611
24612         Don't use AC_LIBOBJ with file names in subdirectories.
24613         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
24614         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
24615         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
24616         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
24617         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
24618         gl_LIBUNISTRING_LIBSOURCE.
24619         (Makefile.am): Augment lib_SOURCES here, conditionally.
24620         * NEWS: Drop requirement for Automake option 'subdir-objects'.
24621
24622 2010-06-03  Bruno Haible  <bruno@clisp.org>
24623
24624         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
24625         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
24626         expansion does not end with a newline.
24627         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
24628         unnecessary newline.
24629
24630 2010-06-03  Bruno Haible  <bruno@clisp.org>
24631
24632         Reduce dependencies.
24633         * tests/test-quotearg.h: New file, extracted from
24634         tests/test-quotearg.c.
24635         * tests/test-quotearg-simple.c: New file, extracted from
24636         tests/test-quotearg.c.
24637         * tests/test-quotearg.c: Don't include <ctype.h>.
24638         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
24639         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
24640         use_quote_double_quotes, use_quotearg_colon): Moved to
24641         tests/test-quotearg.h.
24642         (results_g, flag_results, custom_quotes, custom_results): Moved
24643         to tests/test-quotearg-simple.c.
24644         (main): Moved the part that does not depend on gettext to
24645         tests/test-quotearg-simple.c. Return 77 if the test cannot be
24646         performed.
24647         * modules/quotearg-simple: New file.
24648         * modules/quotearg-simple-tests: New file.
24649         * modules/quotearg (Depends-on): Add quotearg-simple.
24650         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
24651         (Files): Add tests/test-quotearg.h.
24652         Reported by Paolo Bonzini.
24653
24654 2010-06-03  Bruno Haible  <bruno@clisp.org>
24655
24656         Reduce dependencies.
24657         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
24658
24659 2010-06-03  Bruno Haible  <bruno@clisp.org>
24660
24661         time: Undefine more broken macros.
24662         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
24663         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
24664         Reported by Eric Blake.
24665
24666 2010-06-03  Bruno Haible  <bruno@clisp.org>
24667
24668         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
24669         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
24670         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
24671         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
24672         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
24673         Reported by Ludovic Courtès <ludo@gnu.org>.
24674
24675 2010-06-02  Eric Blake  <eblake@redhat.com>
24676
24677         time: work with mingw + pthreads-win32 library
24678         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
24679         if timespec is defined only in pthread.h.
24680         * modules/time (Makefile.am): Substitute it.
24681         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
24682         <pthread.h>, when needed.
24683         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
24684         from the library.
24685
24686 2010-05-31  Bruno Haible  <bruno@clisp.org>
24687
24688         Avoid expanding two macros in the wrong order.
24689         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
24690         gl_LIBUNISTRING if it is defined.
24691         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
24692         autoconf >= 2.64.
24693         Reported by Ludovic Courtès <ludo@gnu.org>.
24694
24695 2010-05-27  Jim Meyering  <meyering@redhat.com>
24696
24697         maint.mk: also prohibit "#undef" of always-defined symbols
24698         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
24699         Allow more than one space before the symbol name.
24700         (sc_prohibit_always-defined_macros): Use grep's -E, now that
24701         the regexp uses alternation.
24702
24703 2010-05-26  Eric Blake  <eblake@redhat.com>
24704
24705         maint.mk: avoid echo -e
24706         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
24707         Convert all uses of echo -* to printf.
24708         Reported by Matthias Bolte.
24709
24710 2010-05-25  Bruno Haible  <bruno@clisp.org>
24711
24712         Update to GNU gettext 0.18, part 2.
24713         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
24714         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
24715
24716 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24717
24718         Add missing include in test-pwrite.c.
24719         * tests/test-pwrite.c: Include string.h, for strcmp.
24720
24721 2010-05-24  Bruno Haible  <bruno@clisp.org>
24722
24723         * NEWS: Mention requirement for Automake option 'subdir-objects'.
24724
24725 2010-05-24  Bruno Haible  <bruno@clisp.org>
24726
24727         Don't use conversion with transliteration in u{8,16,32}_strcoll.
24728         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
24729         iconveh_error argument.
24730         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
24731         U_STRCONV_TO_LOCALE.
24732         * lib/unistr/u16-strcoll.c: Likewise.
24733         * lib/unistr/u32-strcoll.c: Likewise.
24734         * modules/unistr/u8-strcoll (Depends-on): Add
24735         uniconv/u8-strconv-to-enc, localcharset. Remove
24736         uniconv/u8-strconv-to-locale.
24737         (configure.ac): Bump version number.
24738         * modules/unistr/u16-strcoll (Depends-on): Add
24739         uniconv/u16-strconv-to-enc, localcharset. Remove
24740         uniconv/u16-strconv-to-locale.
24741         (configure.ac): Bump version number.
24742         * modules/unistr/u32-strcoll (Depends-on): Add
24743         uniconv/u32-strconv-to-enc, localcharset. Remove
24744         uniconv/u32-strconv-to-locale.
24745         (configure.ac): Bump version number.
24746
24747 2010-05-24  Bruno Haible  <bruno@clisp.org>
24748
24749         Avoid a test failure on NetBSD 5.0.
24750         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
24751         an iconv() bug.
24752
24753 2010-05-24  Bruno Haible  <bruno@clisp.org>
24754
24755         Adjust #include directive style.
24756         * modules/regex (Includes): Recommend to write <regex.h>.
24757
24758 2010-05-24  Bruno Haible  <bruno@clisp.org>
24759
24760         regex: Don't require alloca.
24761         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
24762         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
24763         only inside if (0).
24764
24765 2010-05-23  Jim Meyering  <meyering@redhat.com>
24766
24767         test-renameat.c: include <sys/stat.h>
24768         * tests/test-renameat.c: Include <sys/stat.h>; required for
24769         definition of S_IS* macros.
24770
24771 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
24772
24773         Update maintainer documentation for 'relocatable-prog' module.
24774         * doc/relocatable-maint.texi: Update.
24775         Comments by Bruno Haible.
24776
24777 2010-05-23  Bruno Haible  <bruno@clisp.org>
24778
24779         git-merge-changelog: Enable --split-merged-entry by default.
24780         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
24781         (usage): Don't mention this option any more.
24782         Reported by Ralf Wildenhues.
24783
24784 2010-05-23  Jim Meyering  <meyering@redhat.com>
24785
24786         test-pwrite: do not leave behind a test file named "out"
24787         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
24788         The trivial-looking use of init.sh is really necessary.
24789         It ensures that the temporary file, "out", is created in
24790         a temporary directory, and removed upon termination.
24791         * tests/test-pwrite.sh: Re-add file.
24792         * modules/pwrite-tests: Reference it.
24793
24794 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24795
24796         Fix output redirection buglet in init.sh.
24797         * tests/init.sh: Fix redirection of stderr.
24798
24799 2010-05-20  Simon Josefsson  <simon@josefsson.org>
24800
24801         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
24802
24803 2010-05-17  Simon Josefsson  <simon@josefsson.org>
24804
24805         * modules/valgrind-tests: New file.
24806         * m4/valgrind-tests.m4: New file.
24807         * doc/valgrind-tests.texi: New file.
24808         * doc/gnulib.texi (Running self-tests under valgrind): New
24809         section.
24810
24811 2010-05-19  Bruno Haible  <bruno@clisp.org>
24812
24813         Clean up dead code in recent commit.
24814         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
24815         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
24816         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
24817         Suggested by Paolo Bonzini.
24818
24819 2010-05-19  Bruno Haible  <bruno@clisp.org>
24820
24821         Avoid valgrind error reports from libunistring.
24822         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
24823         * modules/libunistring (Files): Add it.
24824         * modules/libunistring-optional (Files): Likewise.
24825
24826 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
24827             Bruno Haible  <bruno@clisp.org>
24828
24829         New module 'libunistring-optional'.
24830         * modules/libunistring-optional: New file.
24831         * m4/libunistring-base.m4: New file.
24832         * m4/libunistring-optional.m4: New file.
24833         * lib/unicase.in.h: Renamed from lib/unicase.h.
24834         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
24835         * lib/unictype.in.h: Renamed from lib/unictype.h.
24836         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
24837         * lib/uniname.in.h: Renamed from lib/uniname.h.
24838         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
24839         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
24840         * lib/unistr.in.h: Renamed from lib/unistr.h.
24841         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
24842         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
24843         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
24844         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
24845         gl_LIBUNISTRING. If the library was found, determine the installed
24846         version and set LIBUNISTRING_VERSION.
24847         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
24848         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
24849         handle a configuration option --with-included-libunistring.
24850         * modules/libunistring (Files): Add m4/absolute-header.m4.
24851         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
24852         Add m4/libunistring-base.m4.
24853         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24854         (Makefile.am): Build unicase.h from unicase.in.h.
24855         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
24856         Add m4/libunistring-base.m4.
24857         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24858         (Makefile.am): Build uniconv.h from uniconv.in.h.
24859         * modules/unictype/base (Files): Use unictype.in.h instead of
24860         unictype.h. Add m4/libunistring-base.m4.
24861         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24862         (Makefile.am): Build unictype.h from unictype.in.h.
24863         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
24864         Add m4/libunistring-base.m4.
24865         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24866         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
24867         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
24868         Add m4/libunistring-base.m4.
24869         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24870         (Makefile.am): Build uniname.h from uniname.in.h.
24871         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
24872         Add m4/libunistring-base.m4.
24873         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24874         (Makefile.am): Build uninorm.h from uninorm.in.h.
24875         * modules/unistdio/base (Files): Use unistdio.in.h instead of
24876         unistdio.h. Add m4/libunistring-base.m4.
24877         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24878         (Makefile.am): Build unistdio.h from unistdio.in.h.
24879         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
24880         Add m4/libunistring-base.m4.
24881         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24882         (Makefile.am): Build unistr.h from unistr.in.h.
24883         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
24884         Add m4/libunistring-base.m4.
24885         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24886         (Makefile.am): Build unitypes.h from unitypes.in.h.
24887         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
24888         Add m4/libunistring-base.m4.
24889         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24890         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
24891         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
24892         uniwidth.h. Add m4/libunistring-base.m4.
24893         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24894         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
24895         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
24896         instead of augmenting lib_SOURCES.
24897         * modules/unicase/empty-suffix-context: Likewise.
24898         * modules/unicase/locale-language: Likewise.
24899         * modules/unicase/tolower: Likewise.
24900         * modules/unicase/totitle: Likewise.
24901         * modules/unicase/toupper: Likewise.
24902         * modules/unicase/u8-casecmp: Likewise.
24903         * modules/unicase/u8-casecoll: Likewise.
24904         * modules/unicase/u8-casefold: Likewise.
24905         * modules/unicase/u8-casexfrm: Likewise.
24906         * modules/unicase/u8-ct-casefold: Likewise.
24907         * modules/unicase/u8-ct-tolower: Likewise.
24908         * modules/unicase/u8-ct-totitle: Likewise.
24909         * modules/unicase/u8-ct-toupper: Likewise.
24910         * modules/unicase/u8-is-cased: Likewise.
24911         * modules/unicase/u8-is-casefolded: Likewise.
24912         * modules/unicase/u8-is-lowercase: Likewise.
24913         * modules/unicase/u8-is-titlecase: Likewise.
24914         * modules/unicase/u8-is-uppercase: Likewise.
24915         * modules/unicase/u8-prefix-context: Likewise.
24916         * modules/unicase/u8-suffix-context: Likewise.
24917         * modules/unicase/u8-tolower: Likewise.
24918         * modules/unicase/u8-totitle: Likewise.
24919         * modules/unicase/u8-toupper: Likewise.
24920         * modules/unicase/u16-casecmp: Likewise.
24921         * modules/unicase/u16-casecoll: Likewise.
24922         * modules/unicase/u16-casefold: Likewise.
24923         * modules/unicase/u16-casexfrm: Likewise.
24924         * modules/unicase/u16-ct-casefold: Likewise.
24925         * modules/unicase/u16-ct-tolower: Likewise.
24926         * modules/unicase/u16-ct-totitle: Likewise.
24927         * modules/unicase/u16-ct-toupper: Likewise.
24928         * modules/unicase/u16-is-cased: Likewise.
24929         * modules/unicase/u16-is-casefolded: Likewise.
24930         * modules/unicase/u16-is-lowercase: Likewise.
24931         * modules/unicase/u16-is-titlecase: Likewise.
24932         * modules/unicase/u16-is-uppercase: Likewise.
24933         * modules/unicase/u16-prefix-context: Likewise.
24934         * modules/unicase/u16-suffix-context: Likewise.
24935         * modules/unicase/u16-tolower: Likewise.
24936         * modules/unicase/u16-totitle: Likewise.
24937         * modules/unicase/u16-toupper: Likewise.
24938         * modules/unicase/u32-casecmp: Likewise.
24939         * modules/unicase/u32-casecoll: Likewise.
24940         * modules/unicase/u32-casefold: Likewise.
24941         * modules/unicase/u32-casexfrm: Likewise.
24942         * modules/unicase/u32-ct-casefold: Likewise.
24943         * modules/unicase/u32-ct-tolower: Likewise.
24944         * modules/unicase/u32-ct-totitle: Likewise.
24945         * modules/unicase/u32-ct-toupper: Likewise.
24946         * modules/unicase/u32-is-cased: Likewise.
24947         * modules/unicase/u32-is-casefolded: Likewise.
24948         * modules/unicase/u32-is-lowercase: Likewise.
24949         * modules/unicase/u32-is-titlecase: Likewise.
24950         * modules/unicase/u32-is-uppercase: Likewise.
24951         * modules/unicase/u32-prefix-context: Likewise.
24952         * modules/unicase/u32-suffix-context: Likewise.
24953         * modules/unicase/u32-tolower: Likewise.
24954         * modules/unicase/u32-totitle: Likewise.
24955         * modules/unicase/u32-toupper: Likewise.
24956         * modules/unicase/ulc-casecmp: Likewise.
24957         * modules/unicase/ulc-casecoll: Likewise.
24958         * modules/unicase/ulc-casexfrm: Likewise.
24959         * modules/uniconv/u8-conv-from-enc: Likewise.
24960         * modules/uniconv/u8-conv-to-enc: Likewise.
24961         * modules/uniconv/u8-strconv-from-enc: Likewise.
24962         * modules/uniconv/u8-strconv-from-locale: Likewise.
24963         * modules/uniconv/u8-strconv-to-enc: Likewise.
24964         * modules/uniconv/u8-strconv-to-locale: Likewise.
24965         * modules/uniconv/u16-conv-from-enc: Likewise.
24966         * modules/uniconv/u16-conv-to-enc: Likewise.
24967         * modules/uniconv/u16-strconv-from-enc: Likewise.
24968         * modules/uniconv/u16-strconv-from-locale: Likewise.
24969         * modules/uniconv/u16-strconv-to-enc: Likewise.
24970         * modules/uniconv/u16-strconv-to-locale: Likewise.
24971         * modules/uniconv/u32-conv-from-enc: Likewise.
24972         * modules/uniconv/u32-conv-to-enc: Likewise.
24973         * modules/uniconv/u32-strconv-from-enc: Likewise.
24974         * modules/uniconv/u32-strconv-from-locale: Likewise.
24975         * modules/uniconv/u32-strconv-to-enc: Likewise.
24976         * modules/uniconv/u32-strconv-to-locale: Likewise.
24977         * modules/unictype/bidicategory-byname: Likewise.
24978         * modules/unictype/bidicategory-name: Likewise.
24979         * modules/unictype/bidicategory-of: Likewise.
24980         * modules/unictype/bidicategory-test: Likewise.
24981         * modules/unictype/block-list: Likewise.
24982         * modules/unictype/block-test: Likewise.
24983         * modules/unictype/category-C: Likewise.
24984         * modules/unictype/category-Cc: Likewise.
24985         * modules/unictype/category-Cf: Likewise.
24986         * modules/unictype/category-Cn: Likewise.
24987         * modules/unictype/category-Co: Likewise.
24988         * modules/unictype/category-Cs: Likewise.
24989         * modules/unictype/category-L: Likewise.
24990         * modules/unictype/category-Ll: Likewise.
24991         * modules/unictype/category-Lm: Likewise.
24992         * modules/unictype/category-Lo: Likewise.
24993         * modules/unictype/category-Lt: Likewise.
24994         * modules/unictype/category-Lu: Likewise.
24995         * modules/unictype/category-M: Likewise.
24996         * modules/unictype/category-Mc: Likewise.
24997         * modules/unictype/category-Me: Likewise.
24998         * modules/unictype/category-Mn: Likewise.
24999         * modules/unictype/category-N: Likewise.
25000         * modules/unictype/category-Nd: Likewise.
25001         * modules/unictype/category-Nl: Likewise.
25002         * modules/unictype/category-No: Likewise.
25003         * modules/unictype/category-P: Likewise.
25004         * modules/unictype/category-Pc: Likewise.
25005         * modules/unictype/category-Pd: Likewise.
25006         * modules/unictype/category-Pe: Likewise.
25007         * modules/unictype/category-Pf: Likewise.
25008         * modules/unictype/category-Pi: Likewise.
25009         * modules/unictype/category-Po: Likewise.
25010         * modules/unictype/category-Ps: Likewise.
25011         * modules/unictype/category-S: Likewise.
25012         * modules/unictype/category-Sc: Likewise.
25013         * modules/unictype/category-Sk: Likewise.
25014         * modules/unictype/category-Sm: Likewise.
25015         * modules/unictype/category-So: Likewise.
25016         * modules/unictype/category-Z: Likewise.
25017         * modules/unictype/category-Zl: Likewise.
25018         * modules/unictype/category-Zp: Likewise.
25019         * modules/unictype/category-Zs: Likewise.
25020         * modules/unictype/category-and: Likewise.
25021         * modules/unictype/category-and-not: Likewise.
25022         * modules/unictype/category-byname: Likewise.
25023         * modules/unictype/category-name: Likewise.
25024         * modules/unictype/category-none: Likewise.
25025         * modules/unictype/category-of: Likewise.
25026         * modules/unictype/category-or: Likewise.
25027         * modules/unictype/category-test: Likewise.
25028         * modules/unictype/combining-class: Likewise.
25029         * modules/unictype/ctype-alnum: Likewise.
25030         * modules/unictype/ctype-alpha: Likewise.
25031         * modules/unictype/ctype-blank: Likewise.
25032         * modules/unictype/ctype-cntrl: Likewise.
25033         * modules/unictype/ctype-digit: Likewise.
25034         * modules/unictype/ctype-graph: Likewise.
25035         * modules/unictype/ctype-lower: Likewise.
25036         * modules/unictype/ctype-print: Likewise.
25037         * modules/unictype/ctype-punct: Likewise.
25038         * modules/unictype/ctype-space: Likewise.
25039         * modules/unictype/ctype-upper: Likewise.
25040         * modules/unictype/ctype-xdigit: Likewise.
25041         * modules/unictype/decimal-digit: Likewise.
25042         * modules/unictype/digit: Likewise.
25043         * modules/unictype/mirror: Likewise.
25044         * modules/unictype/numeric: Likewise.
25045         * modules/unictype/property-alphabetic: Likewise.
25046         * modules/unictype/property-ascii-hex-digit: Likewise.
25047         * modules/unictype/property-bidi-arabic-digit: Likewise.
25048         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
25049         * modules/unictype/property-bidi-block-separator: Likewise.
25050         * modules/unictype/property-bidi-boundary-neutral: Likewise.
25051         * modules/unictype/property-bidi-common-separator: Likewise.
25052         * modules/unictype/property-bidi-control: Likewise.
25053         * modules/unictype/property-bidi-embedding-or-override: Likewise.
25054         * modules/unictype/property-bidi-eur-num-separator: Likewise.
25055         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
25056         * modules/unictype/property-bidi-european-digit: Likewise.
25057         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
25058         * modules/unictype/property-bidi-left-to-right: Likewise.
25059         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
25060         * modules/unictype/property-bidi-other-neutral: Likewise.
25061         * modules/unictype/property-bidi-pdf: Likewise.
25062         * modules/unictype/property-bidi-segment-separator: Likewise.
25063         * modules/unictype/property-bidi-whitespace: Likewise.
25064         * modules/unictype/property-byname: Likewise.
25065         * modules/unictype/property-combining: Likewise.
25066         * modules/unictype/property-composite: Likewise.
25067         * modules/unictype/property-currency-symbol: Likewise.
25068         * modules/unictype/property-dash: Likewise.
25069         * modules/unictype/property-decimal-digit: Likewise.
25070         * modules/unictype/property-default-ignorable-code-point: Likewise.
25071         * modules/unictype/property-deprecated: Likewise.
25072         * modules/unictype/property-diacritic: Likewise.
25073         * modules/unictype/property-extender: Likewise.
25074         * modules/unictype/property-format-control: Likewise.
25075         * modules/unictype/property-grapheme-base: Likewise.
25076         * modules/unictype/property-grapheme-extend: Likewise.
25077         * modules/unictype/property-grapheme-link: Likewise.
25078         * modules/unictype/property-hex-digit: Likewise.
25079         * modules/unictype/property-hyphen: Likewise.
25080         * modules/unictype/property-id-continue: Likewise.
25081         * modules/unictype/property-id-start: Likewise.
25082         * modules/unictype/property-ideographic: Likewise.
25083         * modules/unictype/property-ids-binary-operator: Likewise.
25084         * modules/unictype/property-ids-trinary-operator: Likewise.
25085         * modules/unictype/property-ignorable-control: Likewise.
25086         * modules/unictype/property-iso-control: Likewise.
25087         * modules/unictype/property-join-control: Likewise.
25088         * modules/unictype/property-left-of-pair: Likewise.
25089         * modules/unictype/property-line-separator: Likewise.
25090         * modules/unictype/property-logical-order-exception: Likewise.
25091         * modules/unictype/property-lowercase: Likewise.
25092         * modules/unictype/property-math: Likewise.
25093         * modules/unictype/property-non-break: Likewise.
25094         * modules/unictype/property-not-a-character: Likewise.
25095         * modules/unictype/property-numeric: Likewise.
25096         * modules/unictype/property-other-alphabetic: Likewise.
25097         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
25098         * modules/unictype/property-other-grapheme-extend: Likewise.
25099         * modules/unictype/property-other-id-continue: Likewise.
25100         * modules/unictype/property-other-id-start: Likewise.
25101         * modules/unictype/property-other-lowercase: Likewise.
25102         * modules/unictype/property-other-math: Likewise.
25103         * modules/unictype/property-other-uppercase: Likewise.
25104         * modules/unictype/property-paired-punctuation: Likewise.
25105         * modules/unictype/property-paragraph-separator: Likewise.
25106         * modules/unictype/property-pattern-syntax: Likewise.
25107         * modules/unictype/property-pattern-white-space: Likewise.
25108         * modules/unictype/property-private-use: Likewise.
25109         * modules/unictype/property-punctuation: Likewise.
25110         * modules/unictype/property-quotation-mark: Likewise.
25111         * modules/unictype/property-radical: Likewise.
25112         * modules/unictype/property-sentence-terminal: Likewise.
25113         * modules/unictype/property-soft-dotted: Likewise.
25114         * modules/unictype/property-space: Likewise.
25115         * modules/unictype/property-terminal-punctuation: Likewise.
25116         * modules/unictype/property-test: Likewise.
25117         * modules/unictype/property-titlecase: Likewise.
25118         * modules/unictype/property-unassigned-code-value: Likewise.
25119         * modules/unictype/property-unified-ideograph: Likewise.
25120         * modules/unictype/property-uppercase: Likewise.
25121         * modules/unictype/property-variation-selector: Likewise.
25122         * modules/unictype/property-white-space: Likewise.
25123         * modules/unictype/property-xid-continue: Likewise.
25124         * modules/unictype/property-xid-start: Likewise.
25125         * modules/unictype/property-zero-width: Likewise.
25126         * modules/unictype/scripts: Likewise.
25127         * modules/unictype/syntax-c-ident: Likewise.
25128         * modules/unictype/syntax-c-whitespace: Likewise.
25129         * modules/unictype/syntax-java-ident: Likewise.
25130         * modules/unictype/syntax-java-whitespace: Likewise.
25131         * modules/unilbrk/u8-possible-linebreaks: Likewise.
25132         * modules/unilbrk/u8-width-linebreaks: Likewise.
25133         * modules/unilbrk/u16-possible-linebreaks: Likewise.
25134         * modules/unilbrk/u16-width-linebreaks: Likewise.
25135         * modules/unilbrk/u32-possible-linebreaks: Likewise.
25136         * modules/unilbrk/u32-width-linebreaks: Likewise.
25137         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
25138         * modules/unilbrk/ulc-width-linebreaks: Likewise.
25139         * modules/uniname/uniname: Likewise.
25140         * modules/uninorm/canonical-decomposition: Likewise.
25141         * modules/uninorm/composition: Likewise.
25142         * modules/uninorm/decomposing-form: Likewise.
25143         * modules/uninorm/decomposition: Likewise.
25144         * modules/uninorm/filter: Likewise.
25145         * modules/uninorm/nfc: Likewise.
25146         * modules/uninorm/nfd: Likewise.
25147         * modules/uninorm/nfkc: Likewise.
25148         * modules/uninorm/nfkd: Likewise.
25149         * modules/uninorm/u8-normalize: Likewise.
25150         * modules/uninorm/u8-normcmp: Likewise.
25151         * modules/uninorm/u8-normcoll: Likewise.
25152         * modules/uninorm/u8-normxfrm: Likewise.
25153         * modules/uninorm/u16-normalize: Likewise.
25154         * modules/uninorm/u16-normcmp: Likewise.
25155         * modules/uninorm/u16-normcoll: Likewise.
25156         * modules/uninorm/u16-normxfrm: Likewise.
25157         * modules/uninorm/u32-normalize: Likewise.
25158         * modules/uninorm/u32-normcmp: Likewise.
25159         * modules/uninorm/u32-normcoll: Likewise.
25160         * modules/uninorm/u32-normxfrm: Likewise.
25161         * modules/unistdio/u8-asnprintf: Likewise.
25162         * modules/unistdio/u8-asprintf: Likewise.
25163         * modules/unistdio/u8-snprintf: Likewise.
25164         * modules/unistdio/u8-sprintf: Likewise.
25165         * modules/unistdio/u8-u8-asnprintf: Likewise.
25166         * modules/unistdio/u8-u8-asprintf: Likewise.
25167         * modules/unistdio/u8-u8-snprintf: Likewise.
25168         * modules/unistdio/u8-u8-sprintf: Likewise.
25169         * modules/unistdio/u8-u8-vasnprintf: Likewise.
25170         * modules/unistdio/u8-u8-vasprintf: Likewise.
25171         * modules/unistdio/u8-u8-vsnprintf: Likewise.
25172         * modules/unistdio/u8-u8-vsprintf: Likewise.
25173         * modules/unistdio/u8-vasnprintf: Likewise.
25174         * modules/unistdio/u8-vasprintf: Likewise.
25175         * modules/unistdio/u8-vsnprintf: Likewise.
25176         * modules/unistdio/u8-vsprintf: Likewise.
25177         * modules/unistdio/u16-asnprintf: Likewise.
25178         * modules/unistdio/u16-asprintf: Likewise.
25179         * modules/unistdio/u16-snprintf: Likewise.
25180         * modules/unistdio/u16-sprintf: Likewise.
25181         * modules/unistdio/u16-u16-asnprintf: Likewise.
25182         * modules/unistdio/u16-u16-asprintf: Likewise.
25183         * modules/unistdio/u16-u16-snprintf: Likewise.
25184         * modules/unistdio/u16-u16-sprintf: Likewise.
25185         * modules/unistdio/u16-u16-vasnprintf: Likewise.
25186         * modules/unistdio/u16-u16-vasprintf: Likewise.
25187         * modules/unistdio/u16-u16-vsnprintf: Likewise.
25188         * modules/unistdio/u16-u16-vsprintf: Likewise.
25189         * modules/unistdio/u16-vasnprintf: Likewise.
25190         * modules/unistdio/u16-vasprintf: Likewise.
25191         * modules/unistdio/u16-vsnprintf: Likewise.
25192         * modules/unistdio/u16-vsprintf: Likewise.
25193         * modules/unistdio/u32-asnprintf: Likewise.
25194         * modules/unistdio/u32-asprintf: Likewise.
25195         * modules/unistdio/u32-snprintf: Likewise.
25196         * modules/unistdio/u32-sprintf: Likewise.
25197         * modules/unistdio/u32-u32-asnprintf: Likewise.
25198         * modules/unistdio/u32-u32-asprintf: Likewise.
25199         * modules/unistdio/u32-u32-snprintf: Likewise.
25200         * modules/unistdio/u32-u32-sprintf: Likewise.
25201         * modules/unistdio/u32-u32-vasnprintf: Likewise.
25202         * modules/unistdio/u32-u32-vasprintf: Likewise.
25203         * modules/unistdio/u32-u32-vsnprintf: Likewise.
25204         * modules/unistdio/u32-u32-vsprintf: Likewise.
25205         * modules/unistdio/u32-vasnprintf: Likewise.
25206         * modules/unistdio/u32-vasprintf: Likewise.
25207         * modules/unistdio/u32-vsnprintf: Likewise.
25208         * modules/unistdio/u32-vsprintf: Likewise.
25209         * modules/unistdio/ulc-asnprintf: Likewise.
25210         * modules/unistdio/ulc-asprintf: Likewise.
25211         * modules/unistdio/ulc-fprintf: Likewise.
25212         * modules/unistdio/ulc-snprintf: Likewise.
25213         * modules/unistdio/ulc-sprintf: Likewise.
25214         * modules/unistdio/ulc-vasnprintf: Likewise.
25215         * modules/unistdio/ulc-vasprintf: Likewise.
25216         * modules/unistdio/ulc-vfprintf: Likewise.
25217         * modules/unistdio/ulc-vsnprintf: Likewise.
25218         * modules/unistdio/ulc-vsprintf: Likewise.
25219         * modules/unistr/u8-check: Likewise.
25220         * modules/unistr/u8-chr: Likewise.
25221         * modules/unistr/u8-cmp: Likewise.
25222         * modules/unistr/u8-cmp2: Likewise.
25223         * modules/unistr/u8-cpy: Likewise.
25224         * modules/unistr/u8-cpy-alloc: Likewise.
25225         * modules/unistr/u8-endswith: Likewise.
25226         * modules/unistr/u8-mblen: Likewise.
25227         * modules/unistr/u8-mbsnlen: Likewise.
25228         * modules/unistr/u8-mbtouc: Likewise.
25229         * modules/unistr/u8-mbtouc-unsafe: Likewise.
25230         * modules/unistr/u8-mbtoucr: Likewise.
25231         * modules/unistr/u8-move: Likewise.
25232         * modules/unistr/u8-next: Likewise.
25233         * modules/unistr/u8-prev: Likewise.
25234         * modules/unistr/u8-set: Likewise.
25235         * modules/unistr/u8-startswith: Likewise.
25236         * modules/unistr/u8-stpcpy: Likewise.
25237         * modules/unistr/u8-stpncpy: Likewise.
25238         * modules/unistr/u8-strcat: Likewise.
25239         * modules/unistr/u8-strchr: Likewise.
25240         * modules/unistr/u8-strcmp: Likewise.
25241         * modules/unistr/u8-strcoll: Likewise.
25242         * modules/unistr/u8-strcpy: Likewise.
25243         * modules/unistr/u8-strcspn: Likewise.
25244         * modules/unistr/u8-strdup: Likewise.
25245         * modules/unistr/u8-strlen: Likewise.
25246         * modules/unistr/u8-strmblen: Likewise.
25247         * modules/unistr/u8-strmbtouc: Likewise.
25248         * modules/unistr/u8-strncat: Likewise.
25249         * modules/unistr/u8-strncmp: Likewise.
25250         * modules/unistr/u8-strncpy: Likewise.
25251         * modules/unistr/u8-strnlen: Likewise.
25252         * modules/unistr/u8-strpbrk: Likewise.
25253         * modules/unistr/u8-strrchr: Likewise.
25254         * modules/unistr/u8-strspn: Likewise.
25255         * modules/unistr/u8-strstr: Likewise.
25256         * modules/unistr/u8-strtok: Likewise.
25257         * modules/unistr/u8-to-u16: Likewise.
25258         * modules/unistr/u8-to-u32: Likewise.
25259         * modules/unistr/u8-uctomb: Likewise.
25260         * modules/unistr/u16-check: Likewise.
25261         * modules/unistr/u16-chr: Likewise.
25262         * modules/unistr/u16-cmp: Likewise.
25263         * modules/unistr/u16-cmp2: Likewise.
25264         * modules/unistr/u16-cpy: Likewise.
25265         * modules/unistr/u16-cpy-alloc: Likewise.
25266         * modules/unistr/u16-endswith: Likewise.
25267         * modules/unistr/u16-mblen: Likewise.
25268         * modules/unistr/u16-mbsnlen: Likewise.
25269         * modules/unistr/u16-mbtouc: Likewise.
25270         * modules/unistr/u16-mbtouc-unsafe: Likewise.
25271         * modules/unistr/u16-mbtoucr: Likewise.
25272         * modules/unistr/u16-move: Likewise.
25273         * modules/unistr/u16-next: Likewise.
25274         * modules/unistr/u16-prev: Likewise.
25275         * modules/unistr/u16-set: Likewise.
25276         * modules/unistr/u16-startswith: Likewise.
25277         * modules/unistr/u16-stpcpy: Likewise.
25278         * modules/unistr/u16-stpncpy: Likewise.
25279         * modules/unistr/u16-strcat: Likewise.
25280         * modules/unistr/u16-strchr: Likewise.
25281         * modules/unistr/u16-strcmp: Likewise.
25282         * modules/unistr/u16-strcoll: Likewise.
25283         * modules/unistr/u16-strcpy: Likewise.
25284         * modules/unistr/u16-strcspn: Likewise.
25285         * modules/unistr/u16-strdup: Likewise.
25286         * modules/unistr/u16-strlen: Likewise.
25287         * modules/unistr/u16-strmblen: Likewise.
25288         * modules/unistr/u16-strmbtouc: Likewise.
25289         * modules/unistr/u16-strncat: Likewise.
25290         * modules/unistr/u16-strncmp: Likewise.
25291         * modules/unistr/u16-strncpy: Likewise.
25292         * modules/unistr/u16-strnlen: Likewise.
25293         * modules/unistr/u16-strpbrk: Likewise.
25294         * modules/unistr/u16-strrchr: Likewise.
25295         * modules/unistr/u16-strspn: Likewise.
25296         * modules/unistr/u16-strstr: Likewise.
25297         * modules/unistr/u16-strtok: Likewise.
25298         * modules/unistr/u16-to-u32: Likewise.
25299         * modules/unistr/u16-to-u8: Likewise.
25300         * modules/unistr/u16-uctomb: Likewise.
25301         * modules/unistr/u32-check: Likewise.
25302         * modules/unistr/u32-chr: Likewise.
25303         * modules/unistr/u32-cmp: Likewise.
25304         * modules/unistr/u32-cmp2: Likewise.
25305         * modules/unistr/u32-cpy: Likewise.
25306         * modules/unistr/u32-cpy-alloc: Likewise.
25307         * modules/unistr/u32-endswith: Likewise.
25308         * modules/unistr/u32-mblen: Likewise.
25309         * modules/unistr/u32-mbsnlen: Likewise.
25310         * modules/unistr/u32-mbtouc: Likewise.
25311         * modules/unistr/u32-mbtouc-unsafe: Likewise.
25312         * modules/unistr/u32-mbtoucr: Likewise.
25313         * modules/unistr/u32-move: Likewise.
25314         * modules/unistr/u32-next: Likewise.
25315         * modules/unistr/u32-prev: Likewise.
25316         * modules/unistr/u32-set: Likewise.
25317         * modules/unistr/u32-startswith: Likewise.
25318         * modules/unistr/u32-stpcpy: Likewise.
25319         * modules/unistr/u32-stpncpy: Likewise.
25320         * modules/unistr/u32-strcat: Likewise.
25321         * modules/unistr/u32-strchr: Likewise.
25322         * modules/unistr/u32-strcmp: Likewise.
25323         * modules/unistr/u32-strcoll: Likewise.
25324         * modules/unistr/u32-strcpy: Likewise.
25325         * modules/unistr/u32-strcspn: Likewise.
25326         * modules/unistr/u32-strdup: Likewise.
25327         * modules/unistr/u32-strlen: Likewise.
25328         * modules/unistr/u32-strmblen: Likewise.
25329         * modules/unistr/u32-strmbtouc: Likewise.
25330         * modules/unistr/u32-strncat: Likewise.
25331         * modules/unistr/u32-strncmp: Likewise.
25332         * modules/unistr/u32-strncpy: Likewise.
25333         * modules/unistr/u32-strnlen: Likewise.
25334         * modules/unistr/u32-strpbrk: Likewise.
25335         * modules/unistr/u32-strrchr: Likewise.
25336         * modules/unistr/u32-strspn: Likewise.
25337         * modules/unistr/u32-strstr: Likewise.
25338         * modules/unistr/u32-strtok: Likewise.
25339         * modules/unistr/u32-to-u16: Likewise.
25340         * modules/unistr/u32-to-u8: Likewise.
25341         * modules/unistr/u32-uctomb: Likewise.
25342         * modules/uniwbrk/u8-wordbreaks: Likewise.
25343         * modules/uniwbrk/u16-wordbreaks: Likewise.
25344         * modules/uniwbrk/u32-wordbreaks: Likewise.
25345         * modules/uniwbrk/ulc-wordbreaks: Likewise.
25346         * modules/uniwbrk/wordbreak-property: Likewise.
25347         * modules/uniwidth/u8-strwidth: Likewise.
25348         * modules/uniwidth/u8-width: Likewise.
25349         * modules/uniwidth/u16-strwidth: Likewise.
25350         * modules/uniwidth/u16-width: Likewise.
25351         * modules/uniwidth/u32-strwidth: Likewise.
25352         * modules/uniwidth/u32-width: Likewise.
25353         * modules/uniwidth/width: Likewise.
25354         * modules/unicase/cased-tests (Makefile.am): Link all test programs
25355         with $(LIBUNISTRING).
25356         * modules/unicase/ignorable-tests: Likewise.
25357         * modules/unicase/locale-language-tests: Likewise.
25358         * modules/unicase/tolower-tests: Likewise.
25359         * modules/unicase/totitle-tests: Likewise.
25360         * modules/unicase/toupper-tests: Likewise.
25361         * modules/unicase/u8-casecmp-tests: Likewise.
25362         * modules/unicase/u8-casecoll-tests: Likewise.
25363         * modules/unicase/u8-casefold-tests: Likewise.
25364         * modules/unicase/u8-is-cased-tests: Likewise.
25365         * modules/unicase/u8-is-casefolded-tests: Likewise.
25366         * modules/unicase/u8-is-lowercase-tests: Likewise.
25367         * modules/unicase/u8-is-titlecase-tests: Likewise.
25368         * modules/unicase/u8-is-uppercase-tests: Likewise.
25369         * modules/unicase/u8-tolower-tests: Likewise.
25370         * modules/unicase/u8-totitle-tests: Likewise.
25371         * modules/unicase/u8-toupper-tests: Likewise.
25372         * modules/unicase/u16-casecmp-tests: Likewise.
25373         * modules/unicase/u16-casecoll-tests: Likewise.
25374         * modules/unicase/u16-casefold-tests: Likewise.
25375         * modules/unicase/u16-is-cased-tests: Likewise.
25376         * modules/unicase/u16-is-casefolded-tests: Likewise.
25377         * modules/unicase/u16-is-lowercase-tests: Likewise.
25378         * modules/unicase/u16-is-titlecase-tests: Likewise.
25379         * modules/unicase/u16-is-uppercase-tests: Likewise.
25380         * modules/unicase/u16-tolower-tests: Likewise.
25381         * modules/unicase/u16-totitle-tests: Likewise.
25382         * modules/unicase/u16-toupper-tests: Likewise.
25383         * modules/unicase/u32-casecmp-tests: Likewise.
25384         * modules/unicase/u32-casecoll-tests: Likewise.
25385         * modules/unicase/u32-casefold-tests: Likewise.
25386         * modules/unicase/u32-is-cased-tests: Likewise.
25387         * modules/unicase/u32-is-casefolded-tests: Likewise.
25388         * modules/unicase/u32-is-lowercase-tests: Likewise.
25389         * modules/unicase/u32-is-titlecase-tests: Likewise.
25390         * modules/unicase/u32-is-uppercase-tests: Likewise.
25391         * modules/unicase/u32-tolower-tests: Likewise.
25392         * modules/unicase/u32-totitle-tests: Likewise.
25393         * modules/unicase/u32-toupper-tests: Likewise.
25394         * modules/unicase/ulc-casecmp-tests: Likewise.
25395         * modules/unicase/ulc-casecoll-tests: Likewise.
25396         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
25397         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
25398         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
25399         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
25400         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
25401         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
25402         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
25403         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
25404         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
25405         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
25406         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
25407         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
25408         * modules/unictype/bidicategory-byname-tests: Likewise.
25409         * modules/unictype/bidicategory-name-tests: Likewise.
25410         * modules/unictype/bidicategory-of-tests: Likewise.
25411         * modules/unictype/bidicategory-test-tests: Likewise.
25412         * modules/unictype/block-list-tests: Likewise.
25413         * modules/unictype/block-of-tests: Likewise.
25414         * modules/unictype/block-test-tests: Likewise.
25415         * modules/unictype/category-C-tests: Likewise.
25416         * modules/unictype/category-Cc-tests: Likewise.
25417         * modules/unictype/category-Cf-tests: Likewise.
25418         * modules/unictype/category-Cn-tests: Likewise.
25419         * modules/unictype/category-Co-tests: Likewise.
25420         * modules/unictype/category-Cs-tests: Likewise.
25421         * modules/unictype/category-L-tests: Likewise.
25422         * modules/unictype/category-Ll-tests: Likewise.
25423         * modules/unictype/category-Lm-tests: Likewise.
25424         * modules/unictype/category-Lo-tests: Likewise.
25425         * modules/unictype/category-Lt-tests: Likewise.
25426         * modules/unictype/category-Lu-tests: Likewise.
25427         * modules/unictype/category-M-tests: Likewise.
25428         * modules/unictype/category-Mc-tests: Likewise.
25429         * modules/unictype/category-Me-tests: Likewise.
25430         * modules/unictype/category-Mn-tests: Likewise.
25431         * modules/unictype/category-N-tests: Likewise.
25432         * modules/unictype/category-Nd-tests: Likewise.
25433         * modules/unictype/category-Nl-tests: Likewise.
25434         * modules/unictype/category-No-tests: Likewise.
25435         * modules/unictype/category-P-tests: Likewise.
25436         * modules/unictype/category-Pc-tests: Likewise.
25437         * modules/unictype/category-Pd-tests: Likewise.
25438         * modules/unictype/category-Pe-tests: Likewise.
25439         * modules/unictype/category-Pf-tests: Likewise.
25440         * modules/unictype/category-Pi-tests: Likewise.
25441         * modules/unictype/category-Po-tests: Likewise.
25442         * modules/unictype/category-Ps-tests: Likewise.
25443         * modules/unictype/category-S-tests: Likewise.
25444         * modules/unictype/category-Sc-tests: Likewise.
25445         * modules/unictype/category-Sk-tests: Likewise.
25446         * modules/unictype/category-Sm-tests: Likewise.
25447         * modules/unictype/category-So-tests: Likewise.
25448         * modules/unictype/category-Z-tests: Likewise.
25449         * modules/unictype/category-Zl-tests: Likewise.
25450         * modules/unictype/category-Zp-tests: Likewise.
25451         * modules/unictype/category-Zs-tests: Likewise.
25452         * modules/unictype/category-and-not-tests: Likewise.
25453         * modules/unictype/category-and-tests: Likewise.
25454         * modules/unictype/category-byname-tests: Likewise.
25455         * modules/unictype/category-name-tests: Likewise.
25456         * modules/unictype/category-none-tests: Likewise.
25457         * modules/unictype/category-of-tests: Likewise.
25458         * modules/unictype/category-or-tests: Likewise.
25459         * modules/unictype/category-test-withtable-tests: Likewise.
25460         * modules/unictype/combining-class-tests: Likewise.
25461         * modules/unictype/ctype-alnum-tests: Likewise.
25462         * modules/unictype/ctype-alpha-tests: Likewise.
25463         * modules/unictype/ctype-blank-tests: Likewise.
25464         * modules/unictype/ctype-cntrl-tests: Likewise.
25465         * modules/unictype/ctype-digit-tests: Likewise.
25466         * modules/unictype/ctype-graph-tests: Likewise.
25467         * modules/unictype/ctype-lower-tests: Likewise.
25468         * modules/unictype/ctype-print-tests: Likewise.
25469         * modules/unictype/ctype-punct-tests: Likewise.
25470         * modules/unictype/ctype-space-tests: Likewise.
25471         * modules/unictype/ctype-upper-tests: Likewise.
25472         * modules/unictype/ctype-xdigit-tests: Likewise.
25473         * modules/unictype/decimal-digit-tests: Likewise.
25474         * modules/unictype/digit-tests: Likewise.
25475         * modules/unictype/mirror-tests: Likewise.
25476         * modules/unictype/numeric-tests: Likewise.
25477         * modules/unictype/property-alphabetic-tests: Likewise.
25478         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
25479         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
25480         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
25481         * modules/unictype/property-bidi-block-separator-tests: Likewise.
25482         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
25483         * modules/unictype/property-bidi-common-separator-tests: Likewise.
25484         * modules/unictype/property-bidi-control-tests: Likewise.
25485         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
25486         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
25487         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
25488         * modules/unictype/property-bidi-european-digit-tests: Likewise.
25489         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
25490         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
25491         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
25492         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
25493         * modules/unictype/property-bidi-pdf-tests: Likewise.
25494         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
25495         * modules/unictype/property-bidi-whitespace-tests: Likewise.
25496         * modules/unictype/property-byname-tests: Likewise.
25497         * modules/unictype/property-combining-tests: Likewise.
25498         * modules/unictype/property-composite-tests: Likewise.
25499         * modules/unictype/property-currency-symbol-tests: Likewise.
25500         * modules/unictype/property-dash-tests: Likewise.
25501         * modules/unictype/property-decimal-digit-tests: Likewise.
25502         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
25503         * modules/unictype/property-deprecated-tests: Likewise.
25504         * modules/unictype/property-diacritic-tests: Likewise.
25505         * modules/unictype/property-extender-tests: Likewise.
25506         * modules/unictype/property-format-control-tests: Likewise.
25507         * modules/unictype/property-grapheme-base-tests: Likewise.
25508         * modules/unictype/property-grapheme-extend-tests: Likewise.
25509         * modules/unictype/property-grapheme-link-tests: Likewise.
25510         * modules/unictype/property-hex-digit-tests: Likewise.
25511         * modules/unictype/property-hyphen-tests: Likewise.
25512         * modules/unictype/property-id-continue-tests: Likewise.
25513         * modules/unictype/property-id-start-tests: Likewise.
25514         * modules/unictype/property-ideographic-tests: Likewise.
25515         * modules/unictype/property-ids-binary-operator-tests: Likewise.
25516         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
25517         * modules/unictype/property-ignorable-control-tests: Likewise.
25518         * modules/unictype/property-iso-control-tests: Likewise.
25519         * modules/unictype/property-join-control-tests: Likewise.
25520         * modules/unictype/property-left-of-pair-tests: Likewise.
25521         * modules/unictype/property-line-separator-tests: Likewise.
25522         * modules/unictype/property-logical-order-exception-tests: Likewise.
25523         * modules/unictype/property-lowercase-tests: Likewise.
25524         * modules/unictype/property-math-tests: Likewise.
25525         * modules/unictype/property-non-break-tests: Likewise.
25526         * modules/unictype/property-not-a-character-tests: Likewise.
25527         * modules/unictype/property-numeric-tests: Likewise.
25528         * modules/unictype/property-other-alphabetic-tests: Likewise.
25529         * modules/unictype/property-other-default-ignorable-code-point-tests:
25530         Likewise.
25531         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
25532         * modules/unictype/property-other-id-continue-tests: Likewise.
25533         * modules/unictype/property-other-id-start-tests: Likewise.
25534         * modules/unictype/property-other-lowercase-tests: Likewise.
25535         * modules/unictype/property-other-math-tests: Likewise.
25536         * modules/unictype/property-other-uppercase-tests: Likewise.
25537         * modules/unictype/property-paired-punctuation-tests: Likewise.
25538         * modules/unictype/property-paragraph-separator-tests: Likewise.
25539         * modules/unictype/property-pattern-syntax-tests: Likewise.
25540         * modules/unictype/property-pattern-white-space-tests: Likewise.
25541         * modules/unictype/property-private-use-tests: Likewise.
25542         * modules/unictype/property-punctuation-tests: Likewise.
25543         * modules/unictype/property-quotation-mark-tests: Likewise.
25544         * modules/unictype/property-radical-tests: Likewise.
25545         * modules/unictype/property-sentence-terminal-tests: Likewise.
25546         * modules/unictype/property-soft-dotted-tests: Likewise.
25547         * modules/unictype/property-space-tests: Likewise.
25548         * modules/unictype/property-terminal-punctuation-tests: Likewise.
25549         * modules/unictype/property-test-tests: Likewise.
25550         * modules/unictype/property-titlecase-tests: Likewise.
25551         * modules/unictype/property-unassigned-code-value-tests: Likewise.
25552         * modules/unictype/property-unified-ideograph-tests: Likewise.
25553         * modules/unictype/property-uppercase-tests: Likewise.
25554         * modules/unictype/property-variation-selector-tests: Likewise.
25555         * modules/unictype/property-white-space-tests: Likewise.
25556         * modules/unictype/property-xid-continue-tests: Likewise.
25557         * modules/unictype/property-xid-start-tests: Likewise.
25558         * modules/unictype/property-zero-width-tests: Likewise.
25559         * modules/unictype/scripts-tests: Likewise.
25560         * modules/unictype/syntax-c-ident-tests: Likewise.
25561         * modules/unictype/syntax-c-whitespace-tests: Likewise.
25562         * modules/unictype/syntax-java-ident-tests: Likewise.
25563         * modules/unictype/syntax-java-whitespace-tests: Likewise.
25564         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
25565         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
25566         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
25567         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
25568         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
25569         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
25570         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
25571         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
25572         * modules/uniname/uniname-tests: Likewise.
25573         * modules/uninorm/canonical-decomposition-tests: Likewise.
25574         * modules/uninorm/compat-decomposition-tests: Likewise.
25575         * modules/uninorm/composition-tests: Likewise.
25576         * modules/uninorm/decomposing-form-tests: Likewise.
25577         * modules/uninorm/decomposition-tests: Likewise.
25578         * modules/uninorm/filter-tests: Likewise.
25579         * modules/uninorm/nfc-tests: Likewise.
25580         * modules/uninorm/nfd-tests: Likewise.
25581         * modules/uninorm/nfkc-tests: Likewise.
25582         * modules/uninorm/nfkd-tests: Likewise.
25583         * modules/uninorm/u8-normcmp-tests: Likewise.
25584         * modules/uninorm/u8-normcoll-tests: Likewise.
25585         * modules/uninorm/u16-normcmp-tests: Likewise.
25586         * modules/uninorm/u16-normcoll-tests: Likewise.
25587         * modules/uninorm/u32-normcmp-tests: Likewise.
25588         * modules/uninorm/u32-normcoll-tests: Likewise.
25589         * modules/unistdio/u8-asnprintf-tests: Likewise.
25590         * modules/unistdio/u8-vasnprintf-tests: Likewise.
25591         * modules/unistdio/u8-vasprintf-tests: Likewise.
25592         * modules/unistdio/u8-vsnprintf-tests: Likewise.
25593         * modules/unistdio/u8-vsprintf-tests: Likewise.
25594         * modules/unistdio/u16-asnprintf-tests: Likewise.
25595         * modules/unistdio/u16-vasnprintf-tests: Likewise.
25596         * modules/unistdio/u16-vasprintf-tests: Likewise.
25597         * modules/unistdio/u16-vsnprintf-tests: Likewise.
25598         * modules/unistdio/u16-vsprintf-tests: Likewise.
25599         * modules/unistdio/u32-asnprintf-tests: Likewise.
25600         * modules/unistdio/u32-vasnprintf-tests: Likewise.
25601         * modules/unistdio/u32-vasprintf-tests: Likewise.
25602         * modules/unistdio/u32-vsnprintf-tests: Likewise.
25603         * modules/unistdio/u32-vsprintf-tests: Likewise.
25604         * modules/unistdio/ulc-asnprintf-tests: Likewise.
25605         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
25606         * modules/unistdio/ulc-vasprintf-tests: Likewise.
25607         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
25608         * modules/unistdio/ulc-vsprintf-tests: Likewise.
25609         * modules/unistr/u8-check-tests: Likewise.
25610         * modules/unistr/u8-chr-tests: Likewise.
25611         * modules/unistr/u8-cmp-tests: Likewise.
25612         * modules/unistr/u8-cmp2-tests: Likewise.
25613         * modules/unistr/u8-cpy-alloc-tests: Likewise.
25614         * modules/unistr/u8-cpy-tests: Likewise.
25615         * modules/unistr/u8-mblen-tests: Likewise.
25616         * modules/unistr/u8-mbsnlen-tests: Likewise.
25617         * modules/unistr/u8-mbtouc-tests: Likewise.
25618         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
25619         * modules/unistr/u8-mbtoucr-tests: Likewise.
25620         * modules/unistr/u8-move-tests: Likewise.
25621         * modules/unistr/u8-next-tests: Likewise.
25622         * modules/unistr/u8-prev-tests: Likewise.
25623         * modules/unistr/u8-set-tests: Likewise.
25624         * modules/unistr/u8-stpcpy-tests: Likewise.
25625         * modules/unistr/u8-stpncpy-tests: Likewise.
25626         * modules/unistr/u8-strcat-tests: Likewise.
25627         * modules/unistr/u8-strcmp-tests: Likewise.
25628         * modules/unistr/u8-strcoll-tests: Likewise.
25629         * modules/unistr/u8-strcpy-tests: Likewise.
25630         * modules/unistr/u8-strdup-tests: Likewise.
25631         * modules/unistr/u8-strlen-tests: Likewise.
25632         * modules/unistr/u8-strmblen-tests: Likewise.
25633         * modules/unistr/u8-strmbtouc-tests: Likewise.
25634         * modules/unistr/u8-strncat-tests: Likewise.
25635         * modules/unistr/u8-strncmp-tests: Likewise.
25636         * modules/unistr/u8-strncpy-tests: Likewise.
25637         * modules/unistr/u8-strnlen-tests: Likewise.
25638         * modules/unistr/u8-to-u16-tests: Likewise.
25639         * modules/unistr/u8-to-u32-tests: Likewise.
25640         * modules/unistr/u8-uctomb-tests: Likewise.
25641         * modules/unistr/u16-check-tests: Likewise.
25642         * modules/unistr/u16-chr-tests: Likewise.
25643         * modules/unistr/u16-cmp-tests: Likewise.
25644         * modules/unistr/u16-cmp2-tests: Likewise.
25645         * modules/unistr/u16-cpy-alloc-tests: Likewise.
25646         * modules/unistr/u16-cpy-tests: Likewise.
25647         * modules/unistr/u16-mblen-tests: Likewise.
25648         * modules/unistr/u16-mbsnlen-tests: Likewise.
25649         * modules/unistr/u16-mbtouc-tests: Likewise.
25650         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
25651         * modules/unistr/u16-mbtoucr-tests: Likewise.
25652         * modules/unistr/u16-move-tests: Likewise.
25653         * modules/unistr/u16-next-tests: Likewise.
25654         * modules/unistr/u16-prev-tests: Likewise.
25655         * modules/unistr/u16-set-tests: Likewise.
25656         * modules/unistr/u16-stpcpy-tests: Likewise.
25657         * modules/unistr/u16-stpncpy-tests: Likewise.
25658         * modules/unistr/u16-strcat-tests: Likewise.
25659         * modules/unistr/u16-strcmp-tests: Likewise.
25660         * modules/unistr/u16-strcoll-tests: Likewise.
25661         * modules/unistr/u16-strcpy-tests: Likewise.
25662         * modules/unistr/u16-strdup-tests: Likewise.
25663         * modules/unistr/u16-strlen-tests: Likewise.
25664         * modules/unistr/u16-strmblen-tests: Likewise.
25665         * modules/unistr/u16-strmbtouc-tests: Likewise.
25666         * modules/unistr/u16-strncat-tests: Likewise.
25667         * modules/unistr/u16-strncmp-tests: Likewise.
25668         * modules/unistr/u16-strncpy-tests: Likewise.
25669         * modules/unistr/u16-strnlen-tests: Likewise.
25670         * modules/unistr/u16-to-u32-tests: Likewise.
25671         * modules/unistr/u16-to-u8-tests: Likewise.
25672         * modules/unistr/u16-uctomb-tests: Likewise.
25673         * modules/unistr/u32-check-tests: Likewise.
25674         * modules/unistr/u32-chr-tests: Likewise.
25675         * modules/unistr/u32-cmp-tests: Likewise.
25676         * modules/unistr/u32-cmp2-tests: Likewise.
25677         * modules/unistr/u32-cpy-alloc-tests: Likewise.
25678         * modules/unistr/u32-cpy-tests: Likewise.
25679         * modules/unistr/u32-mblen-tests: Likewise.
25680         * modules/unistr/u32-mbsnlen-tests: Likewise.
25681         * modules/unistr/u32-mbtouc-tests: Likewise.
25682         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
25683         * modules/unistr/u32-mbtoucr-tests: Likewise.
25684         * modules/unistr/u32-move-tests: Likewise.
25685         * modules/unistr/u32-next-tests: Likewise.
25686         * modules/unistr/u32-prev-tests: Likewise.
25687         * modules/unistr/u32-set-tests: Likewise.
25688         * modules/unistr/u32-stpcpy-tests: Likewise.
25689         * modules/unistr/u32-stpncpy-tests: Likewise.
25690         * modules/unistr/u32-strcat-tests: Likewise.
25691         * modules/unistr/u32-strcmp-tests: Likewise.
25692         * modules/unistr/u32-strcoll-tests: Likewise.
25693         * modules/unistr/u32-strcpy-tests: Likewise.
25694         * modules/unistr/u32-strdup-tests: Likewise.
25695         * modules/unistr/u32-strlen-tests: Likewise.
25696         * modules/unistr/u32-strmblen-tests: Likewise.
25697         * modules/unistr/u32-strmbtouc-tests: Likewise.
25698         * modules/unistr/u32-strncat-tests: Likewise.
25699         * modules/unistr/u32-strncmp-tests: Likewise.
25700         * modules/unistr/u32-strncpy-tests: Likewise.
25701         * modules/unistr/u32-strnlen-tests: Likewise.
25702         * modules/unistr/u32-to-u16-tests: Likewise.
25703         * modules/unistr/u32-to-u8-tests: Likewise.
25704         * modules/unistr/u32-uctomb-tests: Likewise.
25705         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
25706         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
25707         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
25708         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
25709         * modules/uniwidth/u8-strwidth-tests: Likewise.
25710         * modules/uniwidth/u8-width-tests: Likewise.
25711         * modules/uniwidth/u16-strwidth-tests: Likewise.
25712         * modules/uniwidth/u16-width-tests: Likewise.
25713         * modules/uniwidth/u32-strwidth-tests: Likewise.
25714         * modules/uniwidth/u32-width-tests: Likewise.
25715         * modules/uniwidth/width-tests: Likewise.
25716
25717 2010-05-18  Richard Jones  <rjones@redhat.com>
25718
25719         doc: users.txt: list hivex
25720         * users.txt: Add hivex.
25721
25722 2010-05-18  Richard Jones  <rjones@redhat.com>
25723
25724         doc: users.txt: list febootstrap
25725         * users.txt: Add febootstrap.
25726
25727 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
25728
25729         bootstrap: fix an error when gnulib is not used as a git submodule
25730         * build-aux/bootstrap (gnulib_path): If its length is zero then
25731         assign "gnulib" to it.
25732         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
25733
25734 2010-05-16  Bruno Haible  <bruno@clisp.org>
25735
25736         Avoid autoconf warnings about AM_ICONV.
25737         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
25738         2.64.
25739
25740 2010-05-16  Bruno Haible  <bruno@clisp.org>
25741
25742         absolute-header: Make the macro usable in more situations.
25743         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
25744         from gl_ABSOLUTE_HEADER.
25745         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
25746
25747 2010-05-16  James Youngman  <jay@gnu.org>
25748
25749         doc: update users.txt
25750         * users.txt: Add CSSC.
25751
25752 2010-05-16  Jim Meyering  <meyering@redhat.com>
25753
25754         init.sh: fix an error in the previous change; add more comments
25755         * tests/init.sh: Compare exit code in loop against 9, not 2.
25756         Patch by Bruno Haible.
25757         Make the two tests more similar by adding an empty "then" clause.
25758         Add comments.
25759
25760         init.sh: avoid unnecessary shell re-exec
25761         * tests/init.sh: Improve the re-exec-required check to first test the
25762         current shell.  If it passes the test, do not search for a shell that
25763         does pass, and do not re-exec.  This test is particularly contorted to
25764         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
25765         of $(...) evokes a syntax error and causes immediate shell exit with
25766         status 2.  Bruno Haible reported that the re-exec made it impossible
25767         to single-step through any init.sh-using script.
25768
25769 2010-05-16  Bruno Haible  <bruno@clisp.org>
25770
25771         Fix collision between gnulib's and libintl's printf replacements.
25772         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
25773         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
25774         (printf): When using GNU C, map the __printf__ function to rpl_printf
25775         via __asm__. When not using GNU C, define rpl_printf instead of
25776         __printf__.
25777         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
25778         commit.
25779         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
25780         commit.
25781         * m4/asm-underscore.m4: New file.
25782         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
25783         * modules/stdio (Files): Add m4/asm-underscore.m4.
25784         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
25785         Reported by Ben Pfaff.
25786
25787 2010-05-16  Bruno Haible  <bruno@clisp.org>
25788
25789         verify: Avoid skipping the test on openSUSE 11.0.
25790         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
25791
25792 2010-05-13  Bruno Haible  <bruno@clisp.org>
25793
25794         Avoid useless warnings from G++.
25795         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
25796         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
25797         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25798
25799 2010-05-11  Jim Meyering  <meyering@redhat.com>
25800
25801         maint.mk: tweak preceding change
25802         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
25803         regexps tighter by anchoring at EOL, and make the new group "shy"
25804         for slightly decreased overhead.
25805
25806 2010-05-11  Eric Blake  <eblake@redhat.com>
25807
25808         maint.mk: gnulib doesn't guarantee NSIG
25809         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
25810
25811 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
25812
25813         test-pwrite.c: Remove unused variable declaration.
25814         * tests/test-pwrite.c (main): Remove read_buf declaration.
25815
25816         Remove useless test-pwrite.sh file.
25817         * tests/test-pwrite.sh: Delete file.
25818         * modules/pwrite-tests: Remove references.
25819         Reported by Bruno Haible.
25820
25821 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
25822
25823         init.sh: fix a typo
25824         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
25825
25826 2010-05-10  Jim Meyering  <meyering@redhat.com>
25827
25828         maint.mk: avoid using a temporary file in the always-defined-macros check
25829         * top/maint.mk (.re-defmac): Remove rule.
25830         (gl_trap_): Remove definition.
25831         (sc_prohibit_always-defined_macros): Rewrite not to create and
25832         depend on a temporary file.  Instead, depend on GNU grep's ability
25833         to read a list of regular expressions from stdin when given "-f -".
25834
25835 2010-05-09  Bruno Haible  <bruno@clisp.org>
25836
25837         Update to GNU gettext 0.18, part 1.
25838         * m4/gettext.m4: Update to GNU gettext 0.18.
25839         * m4/intl.m4: Likewise.
25840         * m4/po.m4: Likewise.
25841         * modules/gettext (Files): Add m4/fcntl-o.m4.
25842         (configure.ac): Require gettext infrastructure from version 0.18.
25843
25844 2010-05-09  Jim Meyering  <meyering@redhat.com>
25845
25846         init.sh: enable MALLOC_PERTURB_
25847         * tests/init.sh: Enable glibc's malloc-perturbing option.
25848
25849         maint.mk: improve sc_cross_check_PATH_usage_in_tests
25850         With my recent change in init.sh from the two-line form:
25851             -#   : ${srcdir=.}
25852             -#   . "$srcdir/init.sh"; path_prepend_ .
25853             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
25854         I noticed that using the one-line form would cause this test
25855         to fail with a false-positive, or to stop working altogether,
25856         depending on whether help-version changed or all the tests did.
25857         * top/maint.mk (_hv_regex): Remove this definition.
25858         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
25859         (_hv_regex_strong): Use a stronger regex to check for conformance.
25860         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
25861         Give a separate diagnostic for lack of conforming use.
25862
25863         maint.mk: prohibit definition of symbols defined by gnulib
25864         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
25865         definition of symbols defined by gnulib.
25866
25867 2010-05-09  Bruno Haible  <bruno@clisp.org>
25868
25869         acl: Avoid test failure on Cygwin-hosted mingw.
25870         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
25871
25872 2010-05-09  Bruno Haible  <bruno@clisp.org>
25873
25874         error: Use system's fcntl function.
25875         * lib/error.c (fcntl): Undefine.
25876
25877 2010-05-09  Jim Meyering  <meyering@redhat.com>
25878
25879         verify: adjust formatting to be more consistent
25880         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
25881         argument-list '('s, and after one comma.
25882
25883 2010-05-09  Bruno Haible  <bruno@clisp.org>
25884
25885         error: More reliable output on mingw.
25886         * lib/error.c: Include <windows.h>.
25887         (is_open): New function.
25888         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
25889         defined.
25890
25891 2010-05-09  Bruno Haible  <bruno@clisp.org>
25892
25893         vasnprintf: Fix syntax errors in libintl build on mingw.
25894         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
25895         pad_ourselves and prec_ourselves after use.
25896
25897 2010-05-08  Bruno Haible  <bruno@clisp.org>
25898
25899         * lib/config.charset: Update comments for Cygwin 1.7.
25900         * lib/localcharset.c: Likewise.
25901
25902 2010-05-07  Jim Meyering  <meyering@redhat.com>
25903
25904         init.sh: improve comments
25905         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
25906         . "${srcdir=.}/init.sh"; path_prepend_ .
25907         Add a note about path_prepend_ and the alternative of using
25908         TESTS_ENVIRONMENT.
25909
25910 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
25911
25912         exclude: Unescape hashed patterns in wildcard mode.
25913         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
25914         to the hash list.
25915         * tests/test-exclude8.sh: New test case.
25916         * modules/exclude-tests: Add new test.
25917
25918 2010-05-05  Eric Blake  <eblake@redhat.com>
25919
25920         verify: automate tests
25921         * modules/verify-tests: New module.
25922         * tests/test-verify.sh: New file.
25923         * tests/test-verify.c: Guard each negative test with a unique id.
25924         Also avoid warning about unused left hand of comma expressions.
25925
25926 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
25927
25928         Further improvements to verify.h, suggested by Eric Blake.
25929         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
25930         the GL_* versions, to avoid collision with OpenGL.
25931         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
25932         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
25933         than testing merely whether it's defined.
25934
25935         Modify verify.h to pacify gcc -Wredundant_decls.
25936         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
25937         These use the prefix "GL_" since they're likely to be useful elsewhere.
25938         We may need to break them out into a different .h file.
25939         (__COUNTER__): Define to 0 if the compiler doesn't support it.
25940         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
25941         of verify_function__.
25942
25943 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
25944
25945         Tests for module pwrite.
25946         * modules/pwrite-tests: New file.
25947         * tests/test-pwrite.sh: New file.
25948         * tests/test-pwrite.c: New file.
25949
25950         New module pwrite.
25951         * lib/unistd.in.h (pwrite): New declaration.
25952         * lib/pwrite.c: New file, from glibc with modifications.
25953         * m4/pwrite.m4: New file.
25954         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
25955         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
25956         REPLACE_PWRITE.
25957         * modules/pwrite: New file.
25958         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
25959         REPLACE_PWRITE.
25960         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
25961         * doc/posix-functions/pwrite.texi: Mention the new module.
25962
25963 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
25964
25965         pread: Update documentation.
25966         * doc/posix-functions/pread.texi: Mention the 'pread' module.
25967
25968 2010-05-04  Eric Blake  <eblake@redhat.com>
25969
25970         docs: update cygwin progress
25971         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
25972         this bug.
25973         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
25974         Added in cygwin 1.7.2.
25975         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
25976         Likewise.
25977         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
25978         Likewise.
25979         * doc/glibc-functions/dup3.texi (dup3): Likewise.
25980         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
25981         * doc/glibc-functions/accept4.texi (accept4): Likewise.
25982         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
25983         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
25984         Mention nproc module.
25985         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
25986         bug in cygwin 1.7.5 addition.
25987         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
25988         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
25989         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
25990         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
25991         1.7.5.
25992         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
25993         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
25994         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
25995         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
25996         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
25997         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
25998         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
25999         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
26000         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
26001         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
26002         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
26003         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
26004         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
26005         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
26006         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
26007         Likewise.
26008         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
26009         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
26010         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
26011         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
26012         Likewise.
26013         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
26014         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
26015         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
26016         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
26017         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
26018         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
26019         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
26020         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
26021         Likewise.
26022         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
26023         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
26024         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
26025         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
26026         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
26027         Likewise.
26028         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
26029         Likewise.
26030         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
26031         Likewise.
26032         * doc/glibc-functions/xdrrec_endofrecord.texi
26033         (xdrrec_endofrecord): Likewise.
26034         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
26035         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
26036         Likewise.
26037         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
26038         Likewise.
26039
26040 2010-05-04  Jim Meyering  <meyering@redhat.com>
26041
26042         gendocs.sh: make its "-s FILE" option more useful
26043         * build-aux/gendocs.sh: When honoring the -s FILE option, update
26044         $PACKAGE to reflect the probably-different basename of "FILE".
26045
26046 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
26047
26048         bootstrap: don't ignore download_po_files failure
26049         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
26050         failure.
26051
26052 2010-05-03  Jim Meyering  <meyering@redhat.com>
26053
26054         maint.mk: allow to pass options to gendocs.sh
26055         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
26056         (gendocs_options_): New overridable variable.
26057
26058         gnu-web-doc-update: don't ignore configure or build failure
26059         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
26060
26061         announce-gen: backslash-escape '@'s in --help output
26062         * build-aux/announce-gen: Fix syntax errors.
26063
26064         maint.mk, announce-gen: allow project-specific announcement mail headers
26065         * top/maint.mk (translation_project_): Define default.
26066         (announcement_Cc_, announcement_mail_headers_): Likewise.
26067         (announcement): Invoke announce-gen with new --mail-headers option.
26068         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
26069
26070         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
26071         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
26072         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
26073         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
26074         line in the "err2" output file when running "make check" in verbose
26075         mode (i.e., with set -x enabled).
26076
26077 2010-05-03  Bruno Haible  <bruno@clisp.org>
26078
26079         wctob: Fix for weird platforms.
26080         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
26081         argument value.
26082
26083 2010-05-03  Jim Meyering  <meyering@redhat.com>
26084
26085         maint.mk: prohibit unwarranted use of <strings.h>
26086         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
26087         strings.h in a file that does not also use strcasecmp, strncasecmp,
26088         ffs or ffsll.
26089
26090         maint.mk: remove obsolete comments
26091         * top/maint.mk: Remove stale, commented-out rules.
26092
26093 2010-05-02  Bruno Haible  <bruno@clisp.org>
26094
26095         wcwidth: Declare also when it's aliased.
26096         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
26097         macro.
26098
26099 2010-05-02  Bruno Haible  <bruno@clisp.org>
26100
26101         Fix regression from 2010-04-25.
26102         * gnulib-tool (func_modules_transitive_closure): Check the status of
26103         all modules, not only of the tests that are of the form foo-tests where
26104         foo is a module.
26105
26106 2010-05-02  Bruno Haible  <bruno@clisp.org>
26107
26108         wctob: Work around nasty Cygwin 1.7.2 bug.
26109         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
26110         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
26111
26112 2010-05-01  Bruno Haible  <bruno@clisp.org>
26113
26114         fpurge: Sharper test.
26115         * tests/test-fpurge.c (main): Add one more ftell check.
26116         * modules/fpurge-tests (Depends-on): Add ftell.
26117         Suggested by Eric Blake.
26118
26119 2010-05-01  Bruno Haible  <bruno@clisp.org>
26120
26121         ftello: Another test.
26122         * tests/test-ftello3.c: New file.
26123         * modules/ftello-tests (Files): Add it.
26124         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
26125         MOSTLYCLEANFILES.
26126
26127         ftell: Another test.
26128         * tests/test-ftell3.c: New file.
26129         * modules/ftell-tests (Files): Add it.
26130         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
26131         MOSTLYCLEANFILES.
26132
26133 2010-05-01  Bruno Haible  <bruno@clisp.org>
26134
26135         ftell, ftello: Work around Solaris bug.
26136         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
26137         * lib/ftello.c: Include stdio-impl.h.
26138         (ftello): On Solaris, when _IOWRT is set, compute the result without
26139         looking at _IOREAD.
26140         * modules/ftello (Files): Add lib/stdio-impl.h.
26141         * doc/posix-functions/ftell.texi: Mention Solaris bug.
26142         * doc/posix-functions/ftello.texi: Likewise.
26143         Reported by Eric Blake.
26144
26145 2010-05-01  Bruno Haible  <bruno@clisp.org>
26146
26147         freading: Adapt to special meaning of _IOREAD flag on Solaris.
26148         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
26149         the _IOWRT flag is also set.
26150
26151 2010-05-01  Bruno Haible  <bruno@clisp.org>
26152
26153         Fix doc about a HP-UX stdio bug.
26154         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
26155         * doc/posix-functions/ftello.texi: Likewise.
26156
26157 2010-05-01  Bruno Haible  <bruno@clisp.org>
26158
26159         lseek test: Fix failure on Solaris.
26160         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
26161         output.
26162
26163 2010-04-30  Jim Meyering  <meyering@redhat.com>
26164
26165         bootstrap: don't ignore failure to generate po*/Makevars
26166         * build-aux/bootstrap (with_gettext): Don't ignore failure
26167         to create po/Makevars or runtime-po/Makevars.
26168
26169 2010-04-29  Eric Blake  <eblake@redhat.com>
26170
26171         headers: relax license to LGPLv2+
26172         * modules/fcntl-h (License): Relax license.
26173         * modules/getopt-posix (License): Likewise.
26174         * modules/locale (License): Likewise.
26175         * modules/math (License): Likewise.
26176         * modules/pty (License): Likewise.
26177         * modules/sched (License): Likewise.
26178         * modules/search (License): Likewise.
26179         * modules/spawn (License): Likewise.
26180         * modules/stdarg (License): Likewise.
26181         * modules/sysexits (License): Likewise.
26182
26183 2010-04-29  Jim Meyering  <meyering@redhat.com>
26184
26185         inttypes: relax license to LGPLv2+
26186         * modules/inttypes (License): Relax license.
26187
26188 2010-04-29  Simon Josefsson  <simon@josefsson.org>
26189
26190         * top/maint.mk (indent): Run twice to produce idempotent results.
26191
26192 2010-04-28  Bruno Haible  <bruno@clisp.org>
26193
26194         getdate: Generate getdate.c in the source directory.
26195         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
26196         MOSTLYCLEANFILES.
26197         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
26198
26199 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
26200
26201         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
26202         is not declared as a const *; avoid warnings in that case.
26203
26204 2010-04-28  Eric Blake  <eblake@redhat.com>
26205
26206         canonicalize-lgpl: avoid compiler warning
26207         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
26208         declaration' / 'extraneous semicolon' warning with some compilers.
26209         Reported by Andreas Gruenbacher.
26210
26211 2010-04-28  Jim Meyering  <meyering@redhat.com>
26212
26213         init.sh: ensure a more reliable exit status when exiting via trap
26214         * tests/init.sh (setup_): Don't rely on $? in signal handler.
26215         Inspired by patches from Dmitry V. Levin.
26216         Also trap on signal 3 (SIGQUIT).
26217
26218 2010-04-27  Bruno Haible  <bruno@clisp.org>
26219
26220         Update doc about utimes().
26221         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
26222         'utimens' module.
26223         Reported by Andreas Gruenbacher <agruen@suse.de>.
26224
26225 2010-04-27  Eric Blake  <eblake@redhat.com>
26226
26227         full-read, full-write: relax license
26228         * modules/full-read (License): Drop to LGPLv2+.
26229         * modules/full-write (License): Likewise.
26230         * modules/safe-read (License): Likewise.
26231         * modules/safe-write (License): Likewise.
26232
26233         pthread: mention library for linking
26234         * modules/pthread (Link): Mention $(LIB_PTHREAD).
26235
26236 2010-04-27  Jim Meyering  <meyering@redhat.com>
26237
26238         maint.mk: fix a bug introduced in last change
26239         * top/maint.mk (gl_assured_headers_): Now that all names are on
26240         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
26241         is not anchored to end of word, it should be adequate.
26242
26243         maint.mk: avoid side-effect in latest syntax-check
26244         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
26245         to run commands via $(shell...), and hence to incur cost only when
26246         the new rule is actually run.
26247
26248         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
26249         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
26250         and use that to create a regexp used to detect all #if HAVE_..._H uses.
26251         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
26252         (gl_assured_headers_, az_, AZ_): Define.
26253         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
26254
26255 2010-04-26  Jim Meyering  <jim@meyering.net>
26256             Bruno Haible  <bruno@clisp.org>
26257
26258         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
26259         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
26260         Prompted by an exchange with Gilles Espinasse.
26261
26262 2010-04-26  Jim Meyering  <meyering@redhat.com>
26263
26264         git-version-gen: aesthetic tweak
26265         * build-aux/git-version-gen: Use "$nl" rather than a literal,
26266         so that the command remains on a single line.
26267
26268 2010-04-26  Eric Blake  <eblake@redhat.com>
26269
26270         git-version-gen: allow use on EBCDIC hosts
26271         * build-aux/git-version-gen (dirty): Use literal rather than tying
26272         ourselves to ascii.
26273         Reported by Steve Goetze.
26274
26275 2010-04-25  Bruno Haible  <bruno@clisp.org>
26276
26277         netdb: Add support for GNULIB_POSIXCHECK.
26278         * lib/netdb.in.h: Include warn-on-use.h.
26279         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
26280         functions are used when GNULIB_POSIXCHECK is defined and the
26281         getaddrinfo module is not in use.
26282         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
26283         freeaddrinfo, gai_strerror, getnameinfo are declared.
26284         * modules/netdb (Depends-on): Add warn-on-use.
26285         (Makefile.am): Include warn-on-use.h in netdb.h.
26286
26287 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
26288
26289         build: avoid "make check" failure without .git/ directory
26290         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
26291         there is no .git/ directory.
26292
26293 2010-04-25  Bruno Haible  <bruno@clisp.org>
26294
26295         ptsname: Fix misuse of ttyname_r.
26296         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
26297         of errno.
26298
26299 2010-04-25  Bruno Haible  <bruno@clisp.org>
26300
26301         ttyname_r: Make it work on Solaris 10.
26302         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
26303         if the system function has the POSIX declaration. Test whether the
26304         function fails if the buffer is less than 128 bytes large.
26305         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
26306         system's ttyname_r function. Provide a reasonably large buffer.
26307         * modules/ttyname_r (Depends-on): Add extensions.
26308         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
26309
26310 2010-04-25  Bruno Haible  <bruno@clisp.org>
26311
26312         Use the 'extensions' module for some more functions on Solaris.
26313         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
26314         module.
26315         * doc/posix-functions/ctime_r.texi: Likewise.
26316         * doc/posix-functions/getgrgid_r.texi: Likewise.
26317         * doc/posix-functions/getgrnam_r.texi: Likewise.
26318         * doc/posix-functions/getpwnam_r.texi: Likewise.
26319         * doc/posix-functions/getpwuid_r.texi: Likewise.
26320         * doc/posix-functions/readdir_r.texi: Likewise.
26321         * doc/posix-functions/sigwait.texi: Likewise.
26322         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
26323         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
26324
26325 2010-04-25  Bruno Haible  <bruno@clisp.org>
26326
26327         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
26328         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
26329         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
26330         * lib/ttyname_r.c: Include <limits.h>.
26331         (ttyname_r): Define using the system's ttyname_r function, if it exists
26332         and not on Solaris.
26333         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
26334         set.
26335         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
26336         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
26337         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
26338         Reported by Simon Josefsson.
26339
26340 2010-04-25  Bruno Haible  <bruno@clisp.org>
26341
26342         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
26343         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
26344         * doc/posix-functions/ctime_r.texi: Likewise.
26345         * doc/posix-functions/getgrgid_r.texi: Likewise.
26346         * doc/posix-functions/getgrnam_r.texi: Likewise.
26347         * doc/posix-functions/getlogin_r.texi: Likewise.
26348         * doc/posix-functions/getpwnam_r.texi: Likewise.
26349         * doc/posix-functions/getpwuid_r.texi: Likewise.
26350         * doc/posix-functions/readdir_r.texi: Likewise.
26351         * doc/posix-functions/sigwait.texi: Likewise.
26352         * doc/posix-functions/ttyname_r.texi: Likewise.
26353         Reported by Simon Josefsson.
26354
26355 2010-04-25  Bruno Haible  <bruno@clisp.org>
26356
26357         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
26358         * gnulib-tool (func_usage): Document that --with-*-tests options apply
26359         also to --create-testdir.
26360         (func_acceptable): Don't consider the status of *-tests modules here.
26361         (func_modules_transitive_closure): Consider it here, before including a
26362         test module.
26363         (func_import, func_create_testdir): Set inc_all_direct_tests,
26364         inc_all_indirect_tests.
26365         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
26366         --create-testdir and --create-megatestdir.
26367
26368 2010-04-25  Bruno Haible  <bruno@clisp.org>
26369
26370         gnulib-tool: Add --without-*-tests options.
26371         * gnulib-tool (func_usage): Document the --without-*-tests options.
26372         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
26373         excl_unportable_tests): New variables.
26374         Fail if they are specified with --import or --update.
26375         (func_acceptable): Respect the excl_*_tests variables.
26376         (func_import): Set the excl_*_tests variables to empty.
26377
26378 2010-04-25  Simon Josefsson  <simon@josefsson.org>
26379             Bruno Haible  <bruno@clisp.org>
26380
26381         Work around a MacOS X 10.4 bug with openpty.
26382         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
26383         * tests/test-openpty.c (main): Close the master side explicitly.
26384
26385 2010-04-25  Bruno Haible  <bruno@clisp.org>
26386
26387         strnlen: Fix a C++ test error on MacOS X and Solaris.
26388         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
26389         the function is not declared.
26390         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
26391         Simon Josefsson.
26392
26393 2010-04-24  Bruno Haible  <bruno@clisp.org>
26394
26395         Avoid a gcc warning.
26396         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
26397         of correct type for %08lx directive.
26398         Reported by Eric Blake.
26399
26400 2010-04-24  Bruno Haible  <bruno@clisp.org>
26401
26402         vasnprintf: Correct errno value in case of out-of-memory.
26403         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
26404         or sprintf. Use the errno value from SNPRINTF or sprintf.
26405         Reported by Ian Beckwith <ianb@erislabs.net>.
26406
26407 2010-04-24  Bruno Haible  <bruno@clisp.org>
26408
26409         ansi-c++-opt: Find correct compiler when cross-compiling.
26410         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
26411         AC_CHECK_PROGS.
26412         Reported by Simon Josefsson.
26413
26414 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
26415
26416         vc-list-files: Add support for subversion
26417         * build-aux/vc-list-files: Use "svn list" to generate the list of
26418         files controlled by subversion.
26419
26420 2010-04-23  Jim Meyering  <meyering@redhat.com>
26421
26422         vc-list-files tests: convert to use init.sh
26423         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
26424         path_prepend_.
26425         Use Exit, not exit.
26426         Use skip_ rather than open coding it.
26427         Remove trap set-up and compare definitions.
26428         * tests/test-vc-list-files-git.sh: Likewise.
26429         * modules/vc-list-files-tests (Files): Add tests/init.sh.
26430
26431 2010-04-22  Simon Josefsson  <simon@josefsson.org>
26432
26433         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
26434         backup files.
26435
26436 2010-04-21  Simon Josefsson  <simon@josefsson.org>
26437
26438         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
26439
26440 2010-04-20  Eric Blake  <eblake@redhat.com>
26441
26442         tests: be robust to ignored SIGPIPE
26443         * tests/test-select-in.sh: Consume all output.
26444         * tests/test-lseek.sh: Check correct exit status, while avoiding
26445         EPIPE.
26446
26447 2010-04-20  Simon Josefsson  <simon@josefsson.org>
26448             Bruno Haible  <bruno@clisp.org>
26449
26450         visibility: Don't use -fvisibility if it leads to a warning.
26451         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
26452         yes, don't pretend that visibility works if it leads to a warning.
26453         Reported by Mike Gran <spk121@yahoo.com>.
26454
26455 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
26456
26457         * build-aux/bootstrap: Use "git -h" for testing for supported options
26458         instead of "git --help".  The short-form option only shows a summary,
26459         and doesn't layout the full man page.  Grep for the full option name
26460         in the summary, too.
26461
26462 2010-04-19  Bruno Haible  <bruno@clisp.org>
26463
26464         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
26465         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
26466         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
26467         mention of RELOCATABLE_STRIP.
26468         Reported by Sylvain Beucler <beuc@beuc.net>.
26469
26470 2010-04-19  Bruno Haible  <bruno@clisp.org>
26471
26472         * lib/diffseq.h: Fix typo in comment.
26473         Reported by Eric Blake.
26474
26475 2010-04-19  Bruno Haible  <bruno@clisp.org>
26476
26477         ioctl: Move autoconf macro to a .m4 file.
26478         * m4/ioctl.m4: New file, extracted from modules/ioctl.
26479         * modules/ioctl (Files): Add it.
26480         (configure.ac): Simply invoke gl_FUNC_IOCTL.
26481         Reported by Ian Beckwith <ianb@erislabs.net>.
26482
26483 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
26484             Bruno Haible  <bruno@clisp.org>
26485
26486         diffseq: Accommodate use-case with abstract arrays.
26487         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
26488         is not defined.
26489         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
26490         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
26491
26492 2010-04-18  Bruno Haible  <bruno@clisp.org>
26493
26494         * doc/posix-headers/stdbool.texi: More precise wording.
26495
26496 2010-04-17  Jim Meyering  <meyering@redhat.com>
26497
26498         maint.mk: use gnu-style indentation in an embedded perl script
26499         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
26500         Rename variable: s/two/last_two_bytes/
26501
26502 2010-04-16  Eric Blake  <eblake@redhat.com>
26503
26504         test-stdbool: skip test that fails with Solaris CC
26505         * tests/test-stdbool.c (f): Skip test that causes compilation
26506         error under buggy C++ compiler.
26507         * lib/stdbool.in.h: Document the limitation.
26508         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
26509
26510         setenv: allow compilation with C++
26511         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
26512         register keyword.
26513
26514         stdint: allow test to pass with C++
26515         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
26516
26517         getopt: allow compilation with C++
26518         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
26519         struct.
26520         * lib/getopt.c (_getopt_internal_r): Use correct type.
26521         Reported by Dagobert Michelson, via Joel E. Denny.
26522
26523 2010-04-16  Bruno Haible  <bruno@clisp.org>
26524
26525         Override netdb.h always.
26526         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
26527         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
26528         Reported by Ludovic Courtès <ludo@gnu.org>.
26529
26530 2010-04-15  Bruno Haible  <bruno@clisp.org>
26531
26532         openpty: Fix mistake from 2010-03-21.
26533         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
26534         Reported by Simon Josefsson.
26535
26536 2010-04-15  Eric Blake  <eblake@redhat.com>
26537
26538         test-forkpty: fix expected signature
26539         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
26540         Reported by Simon Josefsson.
26541
26542 2010-04-15  Jim Meyering  <meyering@redhat.com>
26543
26544         maint.mk: texinfo_suffix_re_: correct the default regexp
26545         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
26546
26547         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
26548         make it configurable via texinfo_suffix_re_.
26549
26550 2010-04-14  Eric Blake  <eblake@redhat.com>
26551
26552         strtok_r: relax license to LGPLv2+
26553         * modules/strtok_r (License): Relax license.
26554         Reported by Matthias Bolte.
26555
26556 2010-04-14  Simon Josefsson  <simon@josefsson.org>
26557
26558         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
26559         version 1.4.4 by default instead of requiring the libgcrypt
26560         version used during build.  This makes it possible to use the
26561         application with older but still binary compatible libgcrypt
26562         versions.
26563
26564 2010-04-13  Eric Blake  <eblake@redhat.com>
26565
26566         getopt-gnu: match recent glibc fixes and posix ruling
26567         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
26568         '+' handling, when requesting extensions.
26569         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
26570         'W;' handling.
26571         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
26572         * doc/posix-functions/getopt.texi (getopt): Document this.
26573         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
26574         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
26575         Likewise.
26576
26577         getopt: merge bug fixes from glibc
26578         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
26579         diagnostics.  Honor '+:' correctly.  Reject ';'.
26580
26581         getopt-posix: detect MacOS bug
26582         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
26583         optind when missing a required argument.
26584         * doc/posix-functions/getopt.texi (getopt): Document the bug.
26585         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
26586         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
26587         Likewise.
26588
26589         getopt-posix: avoid spurious failure on Solaris
26590         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
26591         an indicator that setting optind=1 is sufficient for reset.
26592
26593         getopt-posix: avoid spurious failure on FreeBSD
26594         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
26595         in POSIX mode, since the m4 test uses it.
26596
26597         gnulib-tool: silence warning on BSD sh
26598         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
26599
26600 2010-04-13  Jim Meyering  <meyering@redhat.com>
26601
26602         doc: users.txt: GNU patch now uses gnulib
26603         * users.txt: Add patch.
26604
26605 2010-04-12  Jim Meyering  <meyering@redhat.com>
26606
26607         maint.mk: generate more concise timing data for syntax-check rules
26608         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
26609         " done" from each line that reports a syntax-check test duration.
26610
26611 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
26612
26613         git-version-gen: use "git update-index..." rather than "git status"
26614         * build-aux/git-version-gen: Use git update-index --refresh, not
26615         "git status".  With some versions of git, "git status" would fail
26616         to update the index and result in an unwarranted "-dirty" suffix.
26617
26618 2010-04-11  Jim Meyering  <meyering@redhat.com>
26619
26620         openat: correct formatting (no semantic change)
26621         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
26622         Suggested by Bruno Haible.
26623
26624 2010-04-11  Bruno Haible  <bruno@clisp.org>
26625
26626         Stricter declaration checking in testdirs.
26627         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
26628         If for_tests is true, augment AM_CPPFLAGS to define
26629         GNULIB_STRICT_CHECKING.
26630         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
26631         GNULIB_STRICT_CHECKING is defined, verify that the function is
26632         declared.
26633
26634 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
26635             Bruno Haible  <bruno@clisp.org>
26636
26637         libunistring: Improve configure output.
26638         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
26639         Don't say "consider installing GNU libunistring" when checking again
26640         with libiconv.
26641
26642 2010-04-11  Bruno Haible  <bruno@clisp.org>
26643
26644         libunistring: Correct value of $LTLIBUNISTRING.
26645         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
26646         correct the value of $LTLIBUNISTRING.
26647
26648 2010-04-11  Bruno Haible  <bruno@clisp.org>
26649
26650         havelib: Add static libraries to LIBS in the right order.
26651         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
26652         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
26653
26654 2010-04-11  Bruno Haible  <bruno@clisp.org>
26655
26656         libunistring: Detect libunistring also when it depends on libiconv.
26657         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
26658         the second AC_LIB_HAVE_LINKFLAGS invocation.
26659
26660 2010-04-11  James Youngman  <jay@gnu.org>
26661
26662         close-stream: declare local scalars to be "const"
26663         * lib/close-stream.c (close_stream): Make boolean variables const
26664         to document the fact that we set but do not change them.
26665
26666 2010-04-11  Bruno Haible  <bruno@clisp.org>
26667
26668         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
26669
26670 2010-04-11  Jim Meyering  <meyering@redhat.com>
26671
26672         maint.mk: don't include dist-check.mk
26673         * top/maint.mk: Remove bogus include directive.
26674
26675         maint.mk: improve empty-line-at-EOF check
26676         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
26677         solution, rather than tail+Perl-based one.  The latter would read
26678         a few kilobytes from the end of each file, and did not handle empty
26679         files properly.
26680
26681         maint.mk: print the elapsed time for each syntax-check rule
26682         * top/maint.mk (sc_m_rules_): Save start time in a file.
26683         (sc_z_rules_): New rules: remove temp file and print elapsed time.
26684         (local-check): Interpose the .z rules
26685
26686 2010-04-11  Jim Meyering  <meyering@redhat.com>
26687
26688         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
26689         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
26690         empty file with one that ends in an empty line.
26691
26692 2010-04-10  Bruno Haible  <bruno@clisp.org>
26693
26694         mkdir: Make it work on mingw64.
26695         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
26696         * lib/mkdir.c: Update comment.
26697         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
26698
26699 2010-04-10  Bruno Haible  <bruno@clisp.org>
26700
26701         Don't override improved macro from newer autoconf.
26702         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
26703         autoconf >= 2.62.
26704         Reported by Joel E. Denny <jdenny@clemson.edu>.
26705
26706 2010-04-10  Jim Meyering  <meyering@redhat.com>
26707
26708         maint.mk: new syntax-check rule: prohibit empty lines at end of file
26709         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
26710
26711         maint.mk: correct a diagnostic
26712         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
26713         in diagnostic; now use $prohibit.
26714
26715 2010-04-10  Bruno Haible  <address@hidden>
26716
26717         fchownat: Fix a C++ test error on Solaris 8.
26718         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
26719         the function does not exist.
26720
26721 2010-04-10  Bruno Haible  <bruno@clisp.org>
26722
26723         vasnprintf: Add more tests.
26724         * tests/test-vasnprintf-posix.c: Include <errno.h>.
26725         (test_function): Test converting an invalid wide string.
26726
26727         vasnprintf: Correct handling of unconvertible wide string arguments.
26728         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
26729         VASNPRINTF.
26730         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
26731         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
26732         smaller than the expected maximum need for the directive. Set errno to
26733         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
26734         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
26735         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
26736         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
26737         * modules/vasnprintf (Files): Add m4/printf.m4.
26738         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26739
26740 2010-04-10  Bruno Haible  <bruno@clisp.org>
26741
26742         vasnprintf: Fix crash in %ls directive.
26743         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
26744         string is passed as argument to %ls, with no precision and no width.
26745         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26746
26747 2010-04-10  Bruno Haible  <bruno@clisp.org>
26748
26749         vasnprintf: Fix multiple test failures on mingw.
26750         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
26751         _snprintf, or snwprintf, not _snwprintf.
26752
26753 2010-04-10  Bruno Haible  <bruno@clisp.org>
26754
26755         write: Fix a C++ test error on mingw.
26756         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
26757
26758 2010-04-10  Bruno Haible  <bruno@clisp.org>
26759
26760         vasnprintf test: Reduce code duplication.
26761         * tests/test-vasnprintf.c (test_function): New function, extracted from
26762         test_vasnprintf.
26763         (test_vasnprintf, test_asnprintf): Invoke it.
26764
26765 2010-04-10  Bruno Haible  <bruno@clisp.org>
26766
26767         strnlen: Fix warning in C++ mode on MacOS X.
26768         * lib/string.in.h (strnlen): Use the modern idiom.
26769         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
26770         defining strnlen as a macro already in <config.h>.
26771         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26772         REPLACE_STRNLEN.
26773         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
26774         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26775
26776 2010-04-08  James Youngman  <jay@gnu.org>
26777
26778         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
26779         the example.
26780
26781 2010-04-09  Jim Meyering  <meyering@redhat.com>
26782
26783         maint.mk: print better diagnostic when there is no $(_hv_file)
26784         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
26785         announce that when $(_hv_file) (aka help-version) does not exist.
26786
26787         init.sh: run tr in the "C" locale to avoid multibyte interpretation
26788         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
26789         not try to interpret its random input bytes.  Jarno Rajahalme reported
26790         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
26791         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
26792         (mktempd_): Likewise, just in case.
26793
26794         ftruncate: add two years to projected module removal date: 2012
26795         * m4/ftruncate.m4: Adjust comments.
26796
26797         ftruncate: mark module as obsolete; even MinGW provides it, now
26798         * modules/ftruncate (Status): Obsolete.
26799         (Notice): Say that.
26800         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
26801         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
26802
26803 2010-04-08  Bruno Haible  <bruno@clisp.org>
26804
26805         Fix side effects from tests-related modules.
26806         * modules/dprintf-posix (Comment): New section.
26807         * modules/fprintf-posix (Comment): Likewise.
26808         * modules/obstack-printf-posix (Comment): Likewise.
26809         * modules/printf-posix (Comment): Likewise.
26810         * modules/snprintf-posix (Comment): Likewise.
26811         * modules/sprintf-posix (Comment): Likewise.
26812         * modules/vasnprintf-posix (Comment): Likewise.
26813         * modules/vasprintf-posix (Comment): Likewise.
26814         * modules/vdprintf-posix (Comment): Likewise.
26815         * modules/vfprintf-posix (Comment): Likewise.
26816         * modules/vprintf-posix (Comment): Likewise.
26817         * modules/vsnprintf-posix (Comment): Likewise.
26818         * modules/vsprintf-posix (Comment): Likewise.
26819         * modules/xprintf-posix (Comment): Likewise.
26820         * modules/xvasprintf-posix (Comment): Likewise.
26821         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
26822         * modules/floorf-tests (Depends-on): Likewise.
26823         * modules/round-tests (Depends-on): Likewise.
26824         * modules/roundf-tests (Depends-on): Likewise.
26825         * modules/trunc-tests (Depends-on): Likewise.
26826         * modules/truncf-tests (Depends-on): Likewise.
26827         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
26828         'fprintf-posix' module is not present.
26829         * tests/test-floorf2.c (check): Likewise.
26830         * tests/test-trunc2.c (check): Likewise.
26831         * tests/test-truncf2.c (check): Likewise.
26832         * tests/test-round2.c (equal): Likewise.
26833         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26834
26835 2010-04-07  Karl Berry  <karl@gnu.org>
26836
26837         * config/srclist.txt,
26838         * config/srclistvars.sh,
26839         * config/srclist-update: doc fixes.
26840
26841 2010-04-07  Jim Meyering  <meyering@redhat.com>
26842
26843         maint.mk: add a PATH crosschecking syntax-check rule
26844         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
26845         Useful if you use a test like the one in help-version (coreutils,
26846         diffutils, grep, gzip) that ensures $(VERSION) matches what is
26847         printed by prog --version.
26848
26849 2010-04-06  Bruno Haible  <bruno@clisp.org>
26850
26851         Fix link error on mingw.
26852         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
26853         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
26854
26855 2010-04-06  Bruno Haible  <bruno@clisp.org>
26856
26857         Assume rmdir exists.
26858         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
26859
26860 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
26861
26862         doc: update users.txt
26863         * users.txt: Add gcal.
26864
26865 2010-04-06  Jim Meyering  <meyering@redhat.com>
26866
26867         init.sh: simply unset TMPDIR rather than risking env -i
26868         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
26869         although it probably works fine on all Unix-based systems, some
26870         systems (Cygwin?) cannot tolerate a totally cleared environment.
26871         Suggestion from Eric Blake.
26872
26873 2010-04-06  Jim Meyering  <meyering@redhat.com>
26874
26875         init.sh: portability fix: use env's POSIX-specified -i option not -u
26876         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
26877         than unportable env -u.  Solaris 5.11's env lacks support for -u.
26878
26879 2010-04-05  Bruno Haible  <bruno@clisp.org>
26880
26881         btowc: Work around Cygwin 1.7.2 bug.
26882         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
26883         does not map NUL to 0.
26884         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
26885
26886 2010-04-05  Bruno Haible  <bruno@clisp.org>
26887
26888         Make the multithread modules work on Cygwin 1.7.2.
26889         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
26890         imported symbols can be declared weak, so that it returns "no" on
26891         Cygwin 1.7.2.
26892
26893 2010-04-05  Bruno Haible  <bruno@clisp.org>
26894
26895         Use the module 'strncat'.
26896         * modules/unistr/u8-strncat (Depends-on): Add strncat.
26897
26898         Tests for module 'strncat'.
26899         * modules/strncat-tests: New file.
26900         * tests/test-strncat.c: New file.
26901
26902         New module 'strncat'.
26903         * lib/string.in.h (strncat): New declaration.
26904         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
26905         * m4/strncat.m4: New file, based on m4/memchr.m4.
26906         * modules/strncat: New file.
26907         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
26908         is declared.
26909         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
26910         REPLACE_STRNCAT.
26911         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
26912         REPLACE_STRNCAT.
26913         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
26914         module.
26915         * tests/test-string-c++.cc: Check signature of strncat.
26916
26917 2010-04-05  Jim Meyering  <meyering@redhat.com>
26918
26919         xstrtoumax-tests: convert to use init.sh
26920         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
26921         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
26922         Use Exit, not exit.
26923         Remove uses of $EXEEXT and "./" to run a program in the current dir.
26924
26925         xstrtoimax-tests: convert to use init.sh
26926         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
26927         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
26928         Use Exit, not exit.
26929         Remove uses of $EXEEXT and "./" to run a program in the current dir.
26930
26931 2010-04-05  Bruno Haible  <bruno@clisp.org>
26932
26933         sys_socket: Avoid #define replacements in C++ mode.
26934         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
26935         warning to the function if possible, rather than #defining the symbol
26936         to a dysfunctional alias.
26937
26938 2010-04-05  Bruno Haible  <bruno@clisp.org>
26939
26940         fseeko: Fix C++ test error on mingw.
26941         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
26942         gl_FUNC_FSEEKO.
26943         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
26944         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
26945         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
26946         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
26947
26948 2010-04-05  Bruno Haible  <bruno@clisp.org>
26949
26950         duplocale: Improve test output.
26951         * tests/test-duplocale.c (main): Print reason for skipped test.
26952
26953 2010-04-05  Bruno Haible  <bruno@clisp.org>
26954
26955         Assume rmdir exists.
26956         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
26957         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
26958
26959 2010-04-05  Bruno Haible  <bruno@clisp.org>
26960
26961         Fix link error on Solaris 8 with cc.
26962         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
26963
26964 2010-04-05  Bruno Haible  <bruno@clisp.org>
26965
26966         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
26967         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
26968
26969 2010-04-05  Bruno Haible  <bruno@clisp.org>
26970
26971         vasprintf: Update documentation.
26972         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
26973
26974 2010-04-05  Bruno Haible  <bruno@clisp.org>
26975
26976         ptsname: Improve test.
26977         * tests/test-ptsname.c (main): Also try the various master names of BSD
26978         systems.
26979
26980 2010-04-05  Bruno Haible  <bruno@clisp.org>
26981
26982         memchr: Avoid a possible C++ test error.
26983         * lib/string.in.h (memchr): Provide declaration if function is missing.
26984         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
26985         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
26986         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
26987         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
26988
26989 2010-04-05  Bruno Haible  <bruno@clisp.org>
26990
26991         strtok_r: Improve idiom.
26992         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
26993         AC_LIBOBJ is used.
26994
26995 2010-04-05  Bruno Haible  <bruno@clisp.org>
26996
26997         strdup: Improve idiom.
26998         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
26999         AC_LIBOBJ is used.
27000         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
27001         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
27002         when AC_LIBOBJ is used.
27003
27004 2010-04-05  Bruno Haible  <bruno@clisp.org>
27005
27006         mbsinit, mbrtowc, wcrtomb: Improve idioms.
27007         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
27008         don't set REPLACE_MBSINIT to 1.
27009         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
27010         don't set REPLACE_MBRTOWC to 1.
27011         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
27012         exist, don't set REPLACE_MBSRTOWCS to 1.
27013         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
27014         exist, don't set REPLACE_MBSNRTOWCS to 1.
27015         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
27016         don't set REPLACE_WCRTOMB to 1.
27017         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
27018         exist, don't set REPLACE_WCSRTOMBS to 1.
27019         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
27020         exist, don't set REPLACE_WCSNRTOMBS to 1.
27021
27022 2010-04-05  Bruno Haible  <bruno@clisp.org>
27023
27024         ldexpl: Improve idiom.
27025         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
27026         make sure to set HAVE_DECL_LDEXPL to 0.
27027
27028 2010-04-05  Jim Meyering  <meyering@redhat.com>
27029
27030         xstrtol-tests: convert to use init.sh
27031         * modules/xstrtol-tests (Files): Add tests/init.sh.
27032         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
27033         Use Exit, not exit.
27034         Remove uses of $EXEEXT and "./" to run a program in the current dir.
27035
27036         atexit-tests: convert to use init.sh
27037         * modules/atexit-tests (Files): Add tests/init.sh.
27038         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
27039         Use Exit, not exit.
27040         Remove uses of $EXEEXT and "./" to run a program in the current dir.
27041
27042         init.sh: fix typo
27043         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
27044
27045         init.sh: make it easier for a test script to write to the tty, ...
27046         when using automake's parallel-tests mode.
27047         * tests/init.sh (stderr_fileno_): Define overridable variable.
27048         (warn_): New function, to use it.
27049         (fail_, skip_, framework_failure_): Use warn_.
27050
27051 2010-04-04  Bruno Haible  <bruno@clisp.org>
27052
27053         btowc: Avoid warning.
27054         * lib/btowc.c: Include <stdlib.h>.
27055         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
27056
27057 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
27058             Bruno Haible  <bruno@clisp.org>
27059
27060         wchar: Port to NetBSD 1.5.
27061         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
27062         * lib/wctype.in.h (WEOF): Likewise.
27063
27064 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
27065             Bruno Haible  <bruno@clisp.org>
27066
27067         Port extended stdio to NetBSD 1.5.
27068         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
27069         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
27070         older.
27071
27072 2010-04-04  Bruno Haible  <bruno@clisp.org>
27073
27074         string: Remove unused substitution.
27075         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
27076         HAVE_DECL_STRERROR.
27077         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
27078
27079 2010-04-04  Bruno Haible  <bruno@clisp.org>
27080
27081         strtod: Avoid a possible C++ test error.
27082         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
27083         set REPLACE_STRTOD.
27084
27085 2010-04-04  Bruno Haible  <bruno@clisp.org>
27086
27087         strerror: Update documentation.
27088         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
27089
27090 2010-04-04  Bruno Haible  <bruno@clisp.org>
27091
27092         stdio: Fix some C++ test errors on Solaris 8 with GCC.
27093         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
27094         _GL_CXXALIAS_SYS_CAST.
27095
27096 2010-04-04  Bruno Haible  <bruno@clisp.org>
27097
27098         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
27099         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
27100         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
27101         REPLACE_FREXPL to 1.
27102         * doc/posix-functions/frexpl.texi: Update documentation.
27103
27104 2010-04-04  Bruno Haible  <bruno@clisp.org>
27105
27106         math: Fix some C++ test errors on Solaris 8 and Cygwin.
27107         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
27108
27109 2010-04-04  Bruno Haible  <bruno@clisp.org>
27110
27111         Implement nanosleep for native Windows.
27112         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
27113
27114 2010-04-04  Bruno Haible  <bruno@clisp.org>
27115
27116         math: Fix some C++ test errors on Solaris 8.
27117         * lib/math.in.h (truncf, trunc): Use simpler idiom.
27118
27119 2010-04-04  Bruno Haible  <bruno@clisp.org>
27120
27121         math: Fix some C++ test errors on Cygwin.
27122         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
27123         truncl): Provide declaration if the system does not have it.
27124         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
27125         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
27126         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
27127         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
27128         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
27129         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
27130         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
27131         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
27132         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
27133         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
27134         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
27135         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
27136         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
27137         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
27138         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
27139         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
27140         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
27141         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
27142         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
27143         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
27144         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
27145         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
27146
27147 2010-04-04  Bruno Haible  <bruno@clisp.org>
27148
27149         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
27150         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
27151         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
27152         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
27153         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
27154         * m4/isinf.m4 (gl_ISINF): Likewise.
27155         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
27156
27157 2010-04-04  Bruno Haible  <bruno@clisp.org>
27158
27159         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
27160         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
27161
27162 2010-04-04  Bruno Haible  <bruno@clisp.org>
27163
27164         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
27165         * modules/tmpfile (configure.ac): Update.
27166
27167         tmpfile: Fix C++ test error on mingw.
27168         * lib/stdio.in.h (tmpfile): New declaration.
27169         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
27170         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
27171         * modules/tmpfile (Depends-on): Add stdio.
27172         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
27173         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
27174         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
27175         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
27176         REPLACE_TMPFILE.
27177         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
27178
27179 2010-04-04  Bruno Haible  <bruno@clisp.org>
27180
27181         ioctl: Fix C++ test error on mingw.
27182         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
27183         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
27184         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
27185
27186 2010-04-03  Bruno Haible  <bruno@clisp.org>
27187
27188         wcwidth: Fix C++ test error on mingw.
27189         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
27190         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
27191         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
27192
27193 2010-04-03  Bruno Haible  <bruno@clisp.org>
27194
27195         nanosleep: Fix C++ test error on mingw.
27196         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
27197         * lib/time.in.h (nanosleep): Use modern idiom.
27198         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
27199         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
27200         REPLACE_NANOSLEEP to 1.
27201         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
27202         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
27203
27204 2010-04-03  Bruno Haible  <bruno@clisp.org>
27205
27206         strptime: Fix C++ test error on mingw.
27207         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
27208         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
27209         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
27210         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
27211         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
27212         not REPLACE_STRPTIME.
27213         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
27214         REPLACE_STRPTIME.
27215
27216 2010-04-03  Bruno Haible  <bruno@clisp.org>
27217
27218         timegm: Fix C++ test error on mingw.
27219         * lib/time.in.h (timegm): Use modern idiom.
27220         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
27221         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
27222         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
27223         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
27224
27225 2010-04-03  Bruno Haible  <bruno@clisp.org>
27226
27227         timegm: Assume declaration if function exists.
27228         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
27229         if it exists. Don't clobber ac_cv_func_timegm.
27230
27231 2010-04-03  Bruno Haible  <bruno@clisp.org>
27232
27233         time_r: Fix C++ test error on mingw.
27234         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
27235         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
27236         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
27237         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
27238         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
27239
27240 2010-04-03  Bruno Haible  <bruno@clisp.org>
27241
27242         time_r: Minor updates.
27243         * modules/time_r (Description): Mention the provided functions.
27244         * lib/time_r.c: Don't include <string.h>.
27245         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
27246         * doc/posix-functions/localtime_r.texi: Likewise.
27247
27248 2010-04-03  Bruno Haible  <bruno@clisp.org>
27249
27250         time: Fix regression introduced on 2010-03-08.
27251         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
27252         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
27253
27254 2010-04-03  Jim Meyering  <meyering@redhat.com>
27255
27256         maint.mk: don't silently disable project-specific syntax-check rules
27257         * top/maint.mk (_prohibit_regexp): Define, to help people realize
27258         that they need to convert their project-specific syntax-check rules
27259         to use the new _sc_search_regexp.
27260
27261 2010-04-03  Bruno Haible  <bruno@clisp.org>
27262
27263         fchdir: Fix regression introduced on 2010-03-08.
27264         * lib/unistd.in.h (fchdir): Fix declaration.
27265         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
27266         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
27267         REPLACE_FCHDIR.
27268         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
27269         REPLACE_FCHDIR.
27270
27271 2010-04-03  Bruno Haible  <bruno@clisp.org>
27272
27273         getpagesize: Fix C++ test error on mingw.
27274         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
27275         system does not declare the function.
27276         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
27277         declared.
27278         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27279         HAVE_DECL_GETPAGESIZE.
27280         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
27281
27282 2010-04-03  Bruno Haible  <bruno@clisp.org>
27283
27284         stdio: Make C++ tests work on mingw.
27285         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
27286         does not declare the function.
27287
27288 2010-04-03  Bruno Haible  <bruno@clisp.org>
27289
27290         ftello: Fix C++ test error on mingw.
27291         * lib/stdio.in.h (ftello): Use modern idiom.
27292         * lib/ftello.c (ftello): Renamed from rpl_ftello.
27293         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
27294         is missing and that it needs to be replaced.
27295         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
27296         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
27297         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
27298
27299 2010-04-03  Bruno Haible  <bruno@clisp.org>
27300
27301         fseeko: Fix C++ test error on mingw.
27302         * lib/stdio.in.h (fseeko): Use modern idiom.
27303         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
27304         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
27305         is missing and that it needs to be replaced.
27306         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
27307         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
27308         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
27309
27310 2010-04-03  Bruno Haible  <bruno@clisp.org>
27311
27312         mkstemp: Fix C++ test error on mingw.
27313         * lib/stdlib.in.h (mkstemp): Use modern idiom.
27314         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
27315         function is missing and that it needs to be replaced.
27316         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
27317         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
27318
27319 2010-04-03  Bruno Haible  <bruno@clisp.org>
27320
27321         stpncpy: Fix C++ test error on mingw.
27322         * lib/string.in.h (stpncpy): Use modern idiom.
27323         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
27324         function is missing and that it needs to be replaced.
27325         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27326         REPLACE_STPNCPY.
27327         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
27328
27329 2010-04-03  Bruno Haible  <bruno@clisp.org>
27330
27331         sys_stat: Fix C++ test error on mingw.
27332         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
27333         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
27334
27335 2010-04-03  Bruno Haible  <bruno@clisp.org>
27336
27337         pty: Update doc.
27338         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
27339
27340 2010-04-03  Bruno Haible  <bruno@clisp.org>
27341
27342         unistd: Fix C++ test error on mingw.
27343         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
27344
27345 2010-04-03  Bruno Haible  <bruno@clisp.org>
27346
27347         Update doc regarding mingw.
27348         * doc/glibc-functions/openpty.texi: Update regarding mingw.
27349         * doc/glibc-functions/login_tty.texi: Likewise.
27350         * doc/glibc-functions/forkpty.texi: Likewise.
27351
27352 2010-04-03  Bruno Haible  <bruno@clisp.org>
27353
27354         stdlib: Avoid compilation failure of c-strtold on mingw.
27355         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
27356
27357 2010-04-03  Bruno Haible  <bruno@clisp.org>
27358
27359         locale: Make C++ tests work on Cygwin and mingw.
27360         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
27361         cannot provide the function.
27362         Reported by Simon Josefsson.
27363
27364 2010-04-03  Bruno Haible  <bruno@clisp.org>
27365
27366         localename: Port to MacOS X 10.6.
27367         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
27368         memory layout of the locales in MacOS X 10.6 as well.
27369         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
27370
27371 2010-04-02  Bruno Haible  <bruno@clisp.org>
27372
27373         gnulib-tool: Ensure that long-running tests are executed last.
27374         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
27375         running tests after the one for the other tests.
27376
27377 2010-04-02  Bruno Haible  <bruno@clisp.org>
27378
27379         gnulib-tool: Ensure the tests in the main directory are executed first.
27380         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
27381         start with the current directory.
27382
27383 2010-04-02  Bruno Haible  <bruno@clisp.org>
27384
27385         Tests for module 'havelib', moved here from GNU gettext.
27386         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
27387         modifications.
27388         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
27389         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
27390         with modifications.
27391         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
27392         modifications.
27393         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
27394         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
27395         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
27396         with modifications.
27397         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
27398         with modifications.
27399         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
27400         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
27401         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
27402         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
27403         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
27404         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
27405         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
27406         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
27407         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
27408         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
27409         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
27410         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
27411         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
27412         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
27413         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
27414         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
27415         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
27416         with modifications.
27417         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
27418         with modifications.
27419         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
27420         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
27421         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
27422         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
27423         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
27424         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
27425         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
27426         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
27427         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
27428         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
27429         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
27430         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
27431         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
27432         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
27433         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
27434         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
27435         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
27436         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
27437         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
27438         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
27439         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
27440         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
27441         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
27442         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
27443         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
27444         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
27445         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
27446         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
27447         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
27448         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
27449         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
27450         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
27451         * tests/havelib/rpathx/rpathx.c: New file, from
27452         gettext/autoconf-lib-link.
27453         * tests/havelib/rpathx/Makefile.am: New file, from
27454         gettext/autoconf-lib-link.
27455         * tests/havelib/rpathx/configure.ac: New file, from
27456         gettext/autoconf-lib-link with modifications.
27457         * tests/havelib/rpathy/rpathy.c: New file, from
27458         gettext/autoconf-lib-link.
27459         * tests/havelib/rpathy/Makefile.am: New file, from
27460         gettext/autoconf-lib-link.
27461         * tests/havelib/rpathy/configure.ac: New file, from
27462         gettext/autoconf-lib-link with modifications.
27463         * tests/havelib/rpathz/rpathz.c: New file, from
27464         gettext/autoconf-lib-link.
27465         * tests/havelib/rpathz/Makefile.am: New file, from
27466         gettext/autoconf-lib-link.
27467         * tests/havelib/rpathz/configure.ac: New file, from
27468         gettext/autoconf-lib-link with modifications.
27469         * tests/havelib/rpathlx/usex.c: New file, from
27470         gettext/autoconf-lib-link.
27471         * tests/havelib/rpathlx/Makefile.am: New file, from
27472         gettext/autoconf-lib-link.
27473         * tests/havelib/rpathlx/configure.ac: New file, from
27474         gettext/autoconf-lib-link with modifications.
27475         * tests/havelib/rpathly/usey.c: New file, from
27476         gettext/autoconf-lib-link.
27477         * tests/havelib/rpathly/Makefile.am: New file, from
27478         gettext/autoconf-lib-link.
27479         * tests/havelib/rpathly/configure.ac: New file, from
27480         gettext/autoconf-lib-link with modifications.
27481         * tests/havelib/rpathlz/usez.c: New file, from
27482         gettext/autoconf-lib-link.
27483         * tests/havelib/rpathlz/Makefile.am: New file, from
27484         gettext/autoconf-lib-link.
27485         * tests/havelib/rpathlz/configure.ac: New file, from
27486         gettext/autoconf-lib-link with modifications.
27487         * tests/havelib/rpathlyx/usey.c: New file, from
27488         gettext/autoconf-lib-link.
27489         * tests/havelib/rpathlyx/Makefile.am: New file, from
27490         gettext/autoconf-lib-link.
27491         * tests/havelib/rpathlyx/configure.ac: New file, from
27492         gettext/autoconf-lib-link with modifications.
27493         * tests/havelib/rpathlzyx/usez.c: New file, from
27494         gettext/autoconf-lib-link.
27495         * tests/havelib/rpathlzyx/Makefile.am: New file, from
27496         gettext/autoconf-lib-link.
27497         * tests/havelib/rpathlzyx/configure.ac: New file, from
27498         gettext/autoconf-lib-link with modifications.
27499         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
27500         with modifications.
27501
27502 2010-04-02  Bruno Haible  <bruno@clisp.org>
27503
27504         gnulib-tool: Create distributed built sources also for the tests.
27505         * gnulib-tool (func_create_testdir): Also generate distributed built
27506         sources in the tests directory.
27507
27508 2010-04-02  Bruno Haible  <bruno@clisp.org>
27509
27510         gnulib-tool: Obey user's environment variables.
27511         * gnulib-tool (func_create_testdir): When creating built sources,
27512         respect the environment variables for autoconf, automake, etc. given by
27513         the user.
27514
27515 2010-04-02  Bruno Haible  <bruno@clisp.org>
27516
27517         gnulib-tool: Provide the value of --m4-base to modules.
27518         * gnulib-tool (func_import, func_create_testdir): Emit a definition
27519         of gl_m4_base.
27520
27521 2010-04-02  Eric Blake  <eblake@redhat.com>
27522
27523         maint.mk: fix some fallout
27524         * NEWS: Document the incompatible change, and its effect on cfg.mk.
27525         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
27526
27527 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
27528
27529         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
27530         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
27531         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
27532         (sc_cast_of_x_alloc_return_value): Likewise.
27533         (sc_cast_of_alloca_return_value): Likewise.
27534         (sc_space_tab): Likewise.
27535         (sc_prohibit_atoi_atof): Likewise.
27536         (sc_prohibit_magic_number_exit): Likewise.
27537         (sc_error_exit_success): Likewise.
27538         (sc_file_system): Likewise.
27539         (sc_prohibit_have_config_h): Likewise.
27540         (sc_require_config_h): Likewise.
27541         (sc_prohibit_HAVE_MBRTOWC): Likewise.
27542         (sc_obsolete_symbols): Likewise.
27543         (sc_changelog): Likewise.
27544         (sc_program_name): Likewise.
27545         (sc_the_the): Likewise.
27546         (sc_trailing_blank): Likewise.
27547         (sc_two_space_separator_in_usage): Likewise.
27548         (sc_useless_cpp_parens): Likewise.
27549         (sc_GPL_version): Likewise.
27550         (sc_GFDL_version): Likewise.
27551         (sc_texinfo_acronym): Likewise.
27552         (sc_prohibit_cvs_keyword): Likewise.
27553         (sc_prohibit_stat_st_blocks): Likewise.
27554         (sc_prohibit_S_IS_definition): Likewise.
27555         (sc_redundant_const): Likewise.
27556         (sc_makefile_TAB_only_indentation): Likewise.
27557         (sc_m4_quote_check): Likewise.
27558         (sc_makefile_path_separator_check): Likewise.
27559         (sc_copyright_check): Likewise.
27560         (sc_Wundef_boolean): Likewise.
27561         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
27562
27563         maint.mk: match 0 or more whitespace-before-function-call '('
27564         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
27565         that have zero or two-and-more spaces between the function name
27566         and the open parenthesis.
27567         (sc_error_message_warn_fatal): Likewise.
27568         (sc_error_message_uppercase): Likewise.
27569         (sc_error_message_period): Likewise.
27570
27571 2010-03-31  Eric Blake  <eblake@redhat.com>
27572
27573         maint.mk: check for [ as well as test
27574         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
27575         Based on a libvirt report by Matthias Bolte.
27576
27577         gnumakefile: don't squelch _version output
27578         * top/GNUmakefile (_version): Create one-shot dependency rather
27579         than using $(shell) when version must be regenerated.
27580         (_autoreconf): Run verbosely, by default.
27581
27582         sys_time: avoid compiler warnings
27583         * lib/sys_time.in.h (includes): Ensure gcc pragma is
27584         unconditional, fixing regression from 2010-03-29.
27585         Reported by Simon Josefsson.
27586
27587 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
27588
27589         maint.mk: s/_header_without_use/_sc_header_without_use/
27590         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
27591         (sc_prohibit_assert_without_use): Use the new name.
27592         (sc_prohibit_close_stream_without_use): Likewise.
27593         (sc_prohibit_getopt_without_use): Likewise.
27594         (sc_prohibit_quotearg_without_use): Likewise.
27595         (sc_prohibit_quote_without_use): Likewise.
27596         (sc_prohibit_long_options_without_use): Likewise.
27597         (sc_prohibit_inttostr_without_use): Likewise.
27598         (sc_prohibit_ignore_value_without_use): Likewise.
27599         (sc_prohibit_error_without_use): Likewise.
27600         (sc_prohibit_xalloc_without_use): Likewise.
27601         (sc_prohibit_hash_without_use): Likewise.
27602         (sc_prohibit_hash_pjw_without_use): Likewise.
27603         (sc_prohibit_safe_read_without_use): Likewise.
27604         (sc_prohibit_argmatch_without_use): Likewise.
27605         (sc_prohibit_canonicalize_without_use): Likewise.
27606         (sc_prohibit_root_dev_ino_without_use): Likewise.
27607         (sc_prohibit_openat_without_use): Likewise.
27608         (sc_prohibit_c_ctype_without_use): Likewise.
27609         (sc_prohibit_signal_without_use): Likewise.
27610         (sc_prohibit_intprops_without_use): Likewise.
27611
27612 2010-03-30  Eric Blake  <eblake@redhat.com>
27613
27614         maint: improve module indicators
27615         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
27616         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
27617         columns, and avoid extra macro expansion.
27618
27619         fdopendir: work around FreeBSD bug
27620         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
27621         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
27622         * modules/dirent (Makefile.am): Substitute it.
27623         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
27624         declaration.
27625         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
27626         fix.
27627         Reported by Christian Weisgerber <naddy@mips.inka.de>.
27628
27629 2010-03-29  Bruno Haible  <bruno@clisp.org>
27630
27631         Emit #pragma system_header after the inclusion guard, not before.
27632         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
27633         guard that spans the entire file, not before. This enables an
27634         optimization in GCC's preprocessor.
27635         * lib/ctype.in.h: Likewise.
27636         * lib/dirent.in.h: Likewise.
27637         * lib/errno.in.h: Likewise.
27638         * lib/float.in.h: Likewise.
27639         * lib/getopt.in.h: Likewise.
27640         * lib/iconv.in.h: Likewise.
27641         * lib/langinfo.in.h: Likewise.
27642         * lib/locale.in.h: Likewise.
27643         * lib/math.in.h: Likewise.
27644         * lib/netdb.in.h: Likewise.
27645         * lib/netinet_in.in.h: Likewise.
27646         * lib/pty.in.h: Likewise.
27647         * lib/sched.in.h: Likewise.
27648         * lib/se-selinux.in.h: Likewise.
27649         * lib/search.in.h: Likewise.
27650         * lib/spawn.in.h: Likewise.
27651         * lib/stdarg.in.h: Likewise.
27652         * lib/stdint.in.h: Likewise.
27653         * lib/string.in.h: Likewise.
27654         * lib/strings.in.h: Likewise.
27655         * lib/sys_file.in.h: Likewise.
27656         * lib/sys_ioctl.in.h: Likewise.
27657         * lib/sys_time.in.h: Likewise.
27658         * lib/sys_times.in.h: Likewise.
27659         * lib/sys_utsname.in.h: Likewise.
27660         * lib/sys_wait.in.h: Likewise.
27661         * lib/sysexits.in.h: Likewise.
27662         * lib/wctype.in.h: Likewise.
27663
27664 2010-03-28  James Youngman  <jay@gnu.org>
27665
27666         save-cwd: don't leak a file descriptor when the caller execs.
27667         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
27668         saved file descriptor.
27669         * modules/save-cwd (Depends-on): Depend on cloexec.
27670
27671 2010-03-29  Bruno Haible  <bruno@clisp.org>
27672
27673         Remove vestiges of fts-lgpl module.
27674         * lib/fts_.h: Assume GNULIB_FTS is 1.
27675         * lib/fts.c: Likewise.
27676         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
27677
27678 2010-03-28  Bruno Haible  <bruno@clisp.org>
27679
27680         Fix definition of tests witness macro.
27681         * gnulib-tool (func_import): Fix definition of witness macro.
27682
27683 2010-03-28  Bruno Haible  <bruno@clisp.org>
27684
27685         Fix ioctl's protoype on glibc systems.
27686         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
27687         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
27688         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
27689         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
27690         signature. If not, arrange to replace the ioctl function.
27691         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
27692         REPLACE_IOCTL.
27693         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
27694         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
27695         Reported by Ludovic Courtès <ludo@gnu.org>.
27696
27697 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
27698
27699         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
27700         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
27701         made it so grep -r --include=GLOB* ... did not work.
27702
27703 2010-03-26  Jim Meyering  <meyering@redhat.com>
27704             Eric Blake  <eblake@redhat.com>
27705
27706         maint.mk: prohibit use of test's -o and -a operators
27707         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
27708
27709 2010-03-28  Bruno Haible  <bruno@clisp.org>
27710
27711         Remove unused GNULIB_XYZ macro definitions.
27712         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
27713         invocation.
27714
27715 2010-03-28  Bruno Haible  <bruno@clisp.org>
27716
27717         Mark privileged tests modules.
27718         * modules/idpriv-drop-tests (Status): New section.
27719         * modules/idpriv-droptemp-tests (Status): New section.
27720
27721 2010-03-28  Bruno Haible  <bruno@clisp.org>
27722
27723         Split C++ tests into separate tests modules.
27724         * modules/dirent-c++-tests: New file, extracted from
27725         modules/dirent-tests.
27726         * modules/dirent-tests: Depend on it.
27727         * modules/fcntl-h-c++-tests: New file, extracted from
27728         modules/fcntl-h-tests.
27729         * modules/fcntl-h-tests: Depend on it.
27730         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
27731         * modules/glob-tests: Depend on it.
27732         * modules/iconv-h-c++-tests: New file, extracted from
27733         modules/iconv-h-tests.
27734         * modules/iconv-h-tests: Depend on it.
27735         * modules/langinfo-c++-tests: New file, extracted from
27736         modules/langinfo-tests.
27737         * modules/langinfo-tests: Depend on it.
27738         * modules/locale-c++-tests: New file, extracted from
27739         modules/locale-tests.
27740         * modules/locale-tests: Depend on it.
27741         * modules/math-c++-tests: New file, extracted from modules/math-tests.
27742         * modules/math-tests: Depend on it.
27743         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
27744         * modules/pty-tests: Depend on it.
27745         * modules/search-c++-tests: New file, extracted from
27746         modules/search-tests.
27747         * modules/search-tests: Depend on it.
27748         * modules/signal-c++-tests: New file, extracted from
27749         modules/signal-tests.
27750         * modules/signal-tests: Depend on it.
27751         * modules/spawn-c++-tests: New file, extracted from
27752         modules/spawn-tests.
27753         * modules/spawn-tests: Depend on it.
27754         * modules/stdio-c++-tests: New file, extracted from
27755         modules/stdio-tests.
27756         * modules/stdio-tests: Depend on it.
27757         * modules/stdlib-c++-tests: New file, extracted from
27758         modules/stdlib-tests.
27759         * modules/stdlib-tests: Depend on it.
27760         * modules/string-c++-tests: New file, extracted from
27761         modules/string-tests.
27762         * modules/string-tests: Depend on it.
27763         * modules/sys_ioctl-c++-tests: New file, extracted from
27764         modules/sys_ioctl-tests.
27765         * modules/sys_ioctl-tests: Depend on it.
27766         * modules/sys_select-c++-tests: New file, extracted from
27767         modules/sys_select-tests.
27768         * modules/sys_select-tests: Depend on it.
27769         * modules/sys_socket-c++-tests: New file, extracted from
27770         modules/sys_socket-tests.
27771         * modules/sys_socket-tests: Depend on it.
27772         * modules/sys_stat-c++-tests: New file, extracted from
27773         modules/sys_stat-tests.
27774         * modules/sys_stat-tests: Depend on it.
27775         * modules/sys_time-c++-tests: New file, extracted from
27776         modules/sys_time-tests.
27777         * modules/sys_time-tests: Depend on it.
27778         * modules/time-c++-tests: New file, extracted from modules/time-tests.
27779         * modules/time-tests: Depend on it.
27780         * modules/unistd-c++-tests: New file, extracted from
27781         modules/unistd-tests.
27782         * modules/unistd-tests: Depend on it.
27783         * modules/wchar-c++-tests: New file, extracted from
27784         modules/wchar-tests.
27785         * modules/wchar-tests: Depend on it.
27786         * modules/wctype-c++-tests: New file, extracted from
27787         modules/wctype-tests.
27788         * modules/wctype-tests: Depend on it.
27789         Reported by Simon Josefsson.
27790
27791 2010-03-28  Bruno Haible  <bruno@clisp.org>
27792
27793         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
27794         * gnulib-tool (func_exists_module): New function, extracted from
27795         func_verify_module.
27796         (func_verify_module): Use it.
27797         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
27798         'foo' only if 'foo' exists.
27799         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
27800         module.
27801
27802 2010-03-28  Bruno Haible  <bruno@clisp.org>
27803
27804         gnulib-tool: Add support for special categories of tests.
27805         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
27806         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
27807         (func_usage): Document them.
27808         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
27809         inc_unportable_tests, inc_all_tests): New variables.
27810         (func_acceptable): Consider these variables.
27811         (func_modules_transitive_closure): Make it work when the 'Status' field
27812         consists of multiple words.
27813         (func_import): Store and restore the values of inc_cxx_tests,
27814         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
27815         inc_all_tests in gnulib-comp.m4.
27816         (func_create_testdir): Set inc_all_tests to true.
27817         * doc/gnulib.texi (Extra tests modules): New section.
27818         Suggested by Jim Meyering.
27819
27820 2010-03-28  Bruno Haible  <bruno@clisp.org>
27821
27822         ansi-c++-opt: Allow turning off the C++ build by default.
27823         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
27824         gl_CXX_CHOICE_DEFAULT_NO is defined.
27825         Requested by Eric Blake.
27826
27827 2010-03-28  Bruno Haible  <bruno@clisp.org>
27828
27829         unistd: Avoid #define replacements in C++ mode.
27830         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
27831         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
27832         setsockopt, shutdown, select): In C++, attach a warning to the function
27833         if possible, rather than #defining the symbol to a dysfunctional alias.
27834         Reported by John W. Eaton <jwe@gnu.org>.
27835
27836 2010-03-28  Bruno Haible  <bruno@clisp.org>
27837
27838         Fix link errors on mingw.
27839         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
27840         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
27841         $(LIBSOCKET).
27842         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
27843         $(LIBSOCKET).
27844
27845 2010-03-28  Bruno Haible  <bruno@clisp.org>
27846             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27847
27848         lib-ignore: Determine different options for different compilers.
27849         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
27850         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
27851         Add comments.
27852         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
27853         * NEWS: Mention the change.
27854
27855 2010-03-27  Bruno Haible  <bruno@clisp.org>
27856
27857         Remove unused GNULIB_XYZ macro definitions.
27858         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
27859         * modules/fseek (configure.ac): Likewise.
27860         * modules/ioctl (configure.ac): Likewise.
27861         * modules/open (configure.ac): Likewise.
27862         * modules/stdlib-safer (configure.ac): Likewise.
27863
27864 2010-03-27  Bruno Haible  <bruno@clisp.org>
27865
27866         Add a remark about certain modules.
27867         * modules/malloc (Comment): New section.
27868         * modules/realloc (Comment): Likewise.
27869         * modules/sigpipe (Comment): Likewise.
27870
27871 2010-03-27  Bruno Haible  <bruno@clisp.org>
27872
27873         Resolve conflict between the two kinds of module indicators.
27874         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
27875         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
27876         * modules/canonicalize (configure.ac): Invoke
27877         gl_MODULE_INDICATOR_FOR_TESTS.
27878         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
27879         GNULIB_XYZ.
27880         * tests/test-dirent-c++.cc: Likewise.
27881         * tests/test-dirent-safer.c: Likewise.
27882         * tests/test-dup2.c: Likewise.
27883         * tests/test-fchdir.c: Likewise.
27884         * tests/test-fcntl-h-c++.cc: Likewise.
27885         * tests/test-getopt.c: Likewise.
27886         * tests/test-getopt.h: Likewise.
27887         * tests/test-langinfo-c++.cc: Likewise.
27888         * tests/test-locale-c++.cc: Likewise.
27889         * tests/test-math-c++.cc: Likewise.
27890         * tests/test-pty-c++.cc: Likewise.
27891         * tests/test-search-c++.cc: Likewise.
27892         * tests/test-signal-c++.cc: Likewise.
27893         * tests/test-spawn-c++.cc: Likewise.
27894         * tests/test-stdio-c++.cc: Likewise.
27895         * tests/test-stdlib-c++.cc: Likewise.
27896         * tests/test-string-c++.cc: Likewise.
27897         * tests/test-sys_ioctl-c++.cc: Likewise.
27898         * tests/test-sys_select-c++.cc: Likewise.
27899         * tests/test-sys_socket-c++.cc: Likewise.
27900         * tests/test-sys_stat-c++.cc: Likewise.
27901         * tests/test-sys_time-c++.cc: Likewise.
27902         * tests/test-time-c++.cc: Likewise.
27903         * tests/test-unistd-c++.cc: Likewise.
27904         * tests/test-wchar-c++.cc: Likewise.
27905         * tests/uninorm/test-u8-nfc.c: Likewise.
27906         * tests/uninorm/test-u8-nfd.c: Likewise.
27907         * tests/uninorm/test-u8-nfkc.c: Likewise.
27908         * tests/uninorm/test-u8-nfkd.c: Likewise.
27909         * tests/uninorm/test-u16-nfc.c: Likewise.
27910         * tests/uninorm/test-u16-nfd.c: Likewise.
27911         * tests/uninorm/test-u16-nfkc.c: Likewise.
27912         * tests/uninorm/test-u16-nfkd.c: Likewise.
27913         * tests/uninorm/test-u32-nfc.c: Likewise.
27914         * tests/uninorm/test-u32-nfc-big.c: Likewise.
27915         * tests/uninorm/test-u32-nfd.c: Likewise.
27916         * tests/uninorm/test-u32-nfd-big.c: Likewise.
27917         * tests/uninorm/test-u32-nfkc.c: Likewise.
27918         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
27919         * tests/uninorm/test-u32-nfkd.c: Likewise.
27920         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
27921         * tests/uninorm/test-u32-normalize-big.c: Likewise.
27922
27923 2010-03-27  Bruno Haible  <bruno@clisp.org>
27924
27925         Distinguish two kinds of module indicators.
27926         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
27927         gl_MODULE_INDICATOR.
27928         (gl_MODULE_INDICATOR): New macro.
27929         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
27930         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
27931         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
27932         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
27933         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
27934         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
27935         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
27936         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
27937         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
27938         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
27939         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
27940         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
27941         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
27942         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
27943         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
27944         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
27945         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
27946         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
27947         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
27948         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
27949         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
27950         * modules/cloexec (configure.ac): Likewise.
27951         * modules/getopt-gnu (configure.ac): Likewise.
27952         * modules/uninorm/u8-normalize (configure.ac): Likewise.
27953         * modules/uninorm/u16-normalize (configure.ac): Likewise.
27954         * modules/uninorm/u32-normalize (configure.ac): Likewise.
27955         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
27956
27957 2010-03-27  Bruno Haible  <bruno@clisp.org>
27958
27959         New module description field 'Comment'.
27960         * gnulib-tool: New option --extract-comment.
27961         (func_usage): Document it.
27962         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
27963         (func_get_comment): New function.
27964         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
27965
27966 2010-03-27  Bruno Haible  <bruno@clisp.org>
27967
27968         Addendum to 2010-02-07 commit.
27969         * gnulib-tool (func_usage): Document --extract-applicability option.
27970
27971 2010-03-27  Bruno Haible  <bruno@clisp.org>
27972
27973         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
27974         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
27975         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
27976         rather than link errors.
27977
27978 2010-03-27  Bruno Haible  <bruno@clisp.org>
27979
27980         Avoid side effects from tests-related modules on the compilation of lib.
27981         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
27982         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
27983         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
27984         parameter. Emit into AM_CPPFLAGS a definition of the designated C
27985         macro.
27986         (func_import): Define a witness macro. Assign it a value that depends
27987         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
27988         tests-related modules.
27989         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
27990         Reported by Jim Meyering.
27991
27992 2010-03-27  Bruno Haible  <bruno@clisp.org>
27993
27994         Factorize common .m4 code.
27995         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
27996         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
27997         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
27998         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
27999         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
28000         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
28001         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
28002         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
28003         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
28004         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
28005         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
28006         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
28007         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
28008         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
28009         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
28010         * m4/stddef_h.m4 (gl_STDDEF_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/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
28015         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
28016         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
28017         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
28018         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
28019         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
28020         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
28021         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
28022         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
28023         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
28024         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
28025         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
28026         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
28027
28028 2010-03-27  Bruno Haible  <bruno@clisp.org>
28029
28030         Fix a compilation error on Cygwin with g++ >= 4.3.
28031         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
28032         if it is undefined or if we alias it to chmod.
28033         (lstat): Don't warn about the use of this function if it is undefined
28034         or if we alias it to stat.
28035         Reported by Simon Josefsson.
28036
28037 2010-03-27  Bruno Haible  <bruno@clisp.org>
28038
28039         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
28040         * modules/getlogin (configure.ac): Update.
28041
28042         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
28043         * modules/getlogin_r (configure.ac): Update.
28044
28045         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
28046         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
28047         * modules/inet_ntop (configure.ac): Update.
28048
28049         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
28050         * modules/inet_pton (configure.ac): Update.
28051
28052         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
28053         * modules/mbslen (configure.ac): Update.
28054
28055         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
28056         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
28057         * modules/forkpty (configure.ac): Update.
28058         * modules/openpty (configure.ac): Update.
28059
28060 2010-03-26  Simon Josefsson  <simon@josefsson.org>
28061
28062         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
28063         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
28064
28065 2010-03-25  Eric Blake  <eblake@redhat.com>
28066
28067         maint: use pragma consistently across replacement headers
28068         * lib/ctype.in.h (system_header): Hoist for consistent placement.
28069         * lib/dirent.in.h (system_header): Likewise.
28070         * lib/errno.in.h (system_header): Likewise.
28071         * lib/float.in.h (system_header): Likewise.
28072         * lib/getopt.in.h (system_header): Likewise.
28073         * lib/iconv.in.h (system_header): Likewise.
28074         * lib/inttypes.in.h (system_header): Likewise.
28075         * lib/langinfo.in.h (system_header): Likewise.
28076         * lib/locale.in.h (system_header): Likewise.
28077         * lib/math.in.h (system_header): Likewise.
28078         * lib/netdb.in.h (system_header): Likewise.
28079         * lib/netinet_in.in.h (system_header): Likewise.
28080         * lib/pty.in.h (system_header): Likewise.
28081         * lib/sched.in.h (system_header): Likewise.
28082         * lib/se-selinux.in.h (system_header): Likewise.
28083         * lib/search.in.h (system_header): Likewise.
28084         * lib/spawn.in.h (system_header): Likewise.
28085         * lib/stdarg.in.h (system_header): Likewise.
28086         * lib/stdint.in.h (system_header): Likewise.
28087         * lib/string.in.h (system_header): Likewise.
28088         * lib/strings.in.h (system_header): Likewise.
28089         * lib/sys_file.in.h (system_header): Likewise.
28090         * lib/sys_ioctl.in.h (system_header): Likewise.
28091         * lib/sys_socket.in.h (system_header): Likewise.
28092         * lib/sys_times.in.h (system_header): Likewise.
28093         * lib/sys_utsname.in.h (system_header): Likewise.
28094         * lib/sys_wait.in.h (system_header): Likewise.
28095         * lib/sysexits.in.h (system_header): Likewise.
28096         * lib/unistd.in.h (system_header): Likewise.
28097         * lib/wctype.in.h (system_header): Likewise.
28098
28099         arpa/inet: fix mingw compilation warning
28100         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
28101         Reported by Matthew Bolte.
28102
28103 2010-03-25  Bruno Haible  <bruno@clisp.org>
28104
28105         Avoid collision between gnulib wrapper and libintl wrapper.
28106         * lib/printf.c (printf): Don't define if a printf wrapper is already
28107         defined in intl/printf.c.
28108         Reported by Michel Boaventura <michel@michelboaventura.com>.
28109
28110 2010-03-25  Bruno Haible  <bruno@clisp.org>
28111
28112         Use ANSI C.
28113         * lib/readutmp.h (getutent): Provide ANSI C prototype.
28114
28115 2010-03-25  Bruno Haible  <bruno@clisp.org>
28116
28117         Minor formatting changes.
28118         * lib/acosl.c: Insert space before function argument list.
28119         * lib/argz.c: Likewise.
28120         * lib/asinl.c: Likewise.
28121         * lib/expl.c: Likewise.
28122         * lib/gen-uni-tables.c: Likewise.
28123         * lib/gettext.h: Likewise.
28124         * lib/glthread/lock.h: Likewise.
28125         * lib/tanl.c: Likewise.
28126         * lib/uniname/uniname.c: Likewise.
28127         * tests/test-idpriv-drop.c: Likewise.
28128         * tests/test-idpriv-droptemp.c: Likewise.
28129         * tests/test-lock.c: Likewise.
28130         * tests/test-tls.c: Likewise.
28131         * lib/argp-help.c: Insert space before function-like macro argument
28132         list.
28133         * lib/memcmp.c: Likewise.
28134         * tests/test-base64.c: Likewise.
28135         * lib/localename.c: Insert space before sizeof's argument list.
28136         * lib/safe-alloc.h: Likewise.
28137         * lib/file-set.h: Insert space before macro argument list.
28138         * tests/test-argp.c: Likewise.
28139         * lib/argp-namefrob.h: Insert space before function parameter list.
28140         * lib/getaddrinfo.c: Likewise.
28141         * lib/netdb.in.h: Likewise.
28142         * lib/parse-duration.h: Likewise.
28143         * lib/parse-duration.c: Likewise.
28144         * lib/poll.c: Likewise.
28145         * lib/select.c: Likewise.
28146         * lib/trim.h: Likewise.
28147         * tests/test-usleep.c: Likewise.
28148         * lib/ldexpl.c: Insert space before function parameter list and before
28149         function argument list.
28150         * lib/logl.c: Likewise.
28151         * lib/sqrtl.c: Likewise.
28152         * lib/trim.c: Likewise.
28153         * lib/cosl.c: Use GNU style indentation. Insert space before function
28154         argument list.
28155         * lib/sinl.c: Likewise.
28156         * lib/tsearch.c: Insert space after 'for'.
28157         Reported by Jim Meyering.
28158
28159 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
28160
28161         * maint.mk (sc_Wundef_boolean): Check for the presence of the
28162         config header before grepping, as it's not present before
28163         autoreconf/configure are run.  Reported by Simon Josefsson.
28164
28165 2010-03-23  Bruno Haible  <bruno@clisp.org>
28166
28167         pt_chown: Make it work with automake < 1.11.
28168         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
28169         Reported by Simon Josefsson.
28170
28171 2010-03-23  Bruno Haible  <bruno@clisp.org>
28172
28173         pt_chown: Don't depend on GPLed modules.
28174         * lib/pt_chown.c: Don't include idpriv.h.
28175         (main): Don't drop privileges.
28176         * modules/pt_chown (Depends-on): Remove idpriv-drop.
28177         Reported by Simon Josefsson.
28178
28179 2010-03-24  Simon Josefsson  <simon@josefsson.org>
28180
28181         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
28182         suggestions from karl@freefriends.org (Karl Berry).
28183
28184 2010-03-22  Eric Blake  <eblake@redhat.com>
28185
28186         gethostname: further tweaks
28187         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
28188         are overriding gethostname.
28189         Suggested by Bruno Haible.
28190
28191 2010-03-21  Bruno Haible  <bruno@clisp.org>
28192
28193         Fix comments.
28194         * lib/forkpty.c (rpl_forkpty): Fix comment.
28195         * lib/openpty.c (rpl_openpty): Likewise.
28196         Reported by Eric Blake.
28197
28198 2010-03-22  Eric Blake  <eblake@redhat.com>
28199
28200         gethostname: fix build on mingw
28201         * lib/unistd.in.h (includes): Work around fact that mingw
28202         <winsock2.h> re-includes <unistd.h>, by avoiding any
28203         redeclarations if we are being included by <winsock2.h>.
28204         Reported by Matthias Bolte.
28205
28206 2010-03-21  Bruno Haible  <bruno@clisp.org>
28207
28208         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
28209         * lib/forkpty.c (forkpty): New replacement function, from glibc with
28210         modifications.
28211         * lib/pty.in.h (forkpty): Update declaration. Add comments.
28212         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
28213         provide the replacement.
28214         * modules/forkpty (Depends-on): Add openpty, login_tty.
28215         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
28216         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
28217         * doc/glibc-functions/forkpty.texi: More supported platforms.
28218         * config/srclist.txt: Add forkpty.c (commented).
28219
28220 2010-03-21  Bruno Haible  <bruno@clisp.org>
28221
28222         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
28223         (Makefile.am): Verify that PTY_LIB is defined.
28224
28225         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
28226
28227 2010-03-21  Bruno Haible  <bruno@clisp.org>
28228
28229         Tests for module 'login_tty'.
28230         * modules/login_tty-tests: New file.
28231         * tests/test-login_tty.c: New file.
28232
28233         New module 'login_tty'.
28234         * lib/login_tty.c: New file.
28235         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
28236         * modules/login_tty: New file.
28237         * doc/glibc-functions/login_tty.texi: Mention the new module.
28238
28239 2010-03-21  Bruno Haible  <bruno@clisp.org>
28240
28241         login_tty: Documentation.
28242         * doc/glibc-functions/login_tty.texi: New file.
28243         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
28244
28245 2010-03-21  Bruno Haible  <bruno@clisp.org>
28246
28247         pty: Consistent macro naming.
28248         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
28249         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
28250         * modules/pty (configure.ac): Update.
28251
28252 2010-03-21  Bruno Haible  <bruno@clisp.org>
28253
28254         Tests for openpty: Make stricter.
28255         * tests/test-openpty.c (main): Add test of canonical processing and
28256         erase.
28257         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
28258
28259         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
28260         * lib/openpty.c (openpty): New replacement function.
28261         * lib/pty.in.h: Include <termios.h>.
28262         (openpty): Update declaration. Add comments.
28263         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
28264         is not declared, arrange to provide the replacement. Check for _getpty
28265         and posix_openpt.
28266         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
28267         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
28268         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
28269         * modules/pty-tests (test_pty_c___LDADD): New variable.
28270         * doc/glibc-functions/openpty.texi: More supported platforms.
28271
28272 2010-03-21  Bruno Haible  <bruno@clisp.org>
28273
28274         setenv: Tweaks.
28275         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
28276         the test program.
28277         * doc/posix-functions/setenv.texi: Update platforms list.
28278
28279 2010-03-21  Bruno Haible  <bruno@clisp.org>
28280
28281         New module 'unlockpt'.
28282         * lib/unlockpt.c: New file, from glibc with modifications.
28283         * m4/unlockpt.m4: New file.
28284         * modules/unlockpt: New file.
28285         * lib/stdlib.in.h (unlockpt): New declaration.
28286         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
28287         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
28288         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
28289         HAVE_UNLOCKPT.
28290         * doc/posix-functions/unlockpt.texi: Mention the new module.
28291         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
28292         * config/srclist.txt: Add unlockpt.c (commented).
28293
28294 2010-03-21  Jim Meyering  <meyering@redhat.com>
28295
28296         maint.mk: prohibit inclusion of "intprops.h" without use
28297         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
28298
28299 2010-03-21  Bruno Haible  <bruno@clisp.org>
28300
28301         New module 'grantpt'.
28302         * lib/grantpt.c: New file, from glibc with modifications.
28303         * m4/grantpt.m4: New file.
28304         * modules/grantpt: New file.
28305         * lib/stdlib.in.h (grantpt): New declaration.
28306         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
28307         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
28308         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
28309         HAVE_GRANTPT.
28310         * doc/posix-functions/grantpt.texi: Mention the new module.
28311         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
28312         * config/srclist.txt: Add grantpt.c (commented).
28313
28314 2010-03-21  Bruno Haible  <bruno@clisp.org>
28315
28316         New module 'pt_chown'.
28317         * lib/pt_chown.c: New file, from glibc with modifications.
28318         * lib/pty-private.h: New file, from glibc with modifications.
28319         * modules/pt_chown: New file.
28320         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
28321
28322 2010-03-21  Bruno Haible  <bruno@clisp.org>
28323
28324         Tests for module 'ptsname'.
28325         * modules/ptsname-tests: New file.
28326         * tests/test-ptsname.c: New file.
28327
28328         New module 'ptsname'.
28329         * lib/ptsname.c: New file, from glibc with modifications.
28330         * m4/ptsname.m4: New file.
28331         * modules/ptsname: New file.
28332         * lib/stdlib.in.h (ptsname): New declaration.
28333         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
28334         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
28335         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
28336         HAVE_PTSNAME.
28337         * doc/posix-functions/ptsname.texi: Mention the new module.
28338         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
28339         * config/srclist.txt: Add ptsname.c (commented).
28340
28341 2010-03-21  Bruno Haible  <bruno@clisp.org>
28342
28343         Tests for module 'ttyname_r'.
28344         * modules/ttyname_r-tests: New file.
28345         * tests/test-ttyname_r.c: New file.
28346
28347         New module 'ttyname_r'.
28348         * lib/ttyname_r.c: New file.
28349         * m4/ttyname_r.m4: New file.
28350         * modules/ttyname_r: New file.
28351         * lib/unistd.in.h (ttyname_r): New declaration.
28352         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
28353         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
28354         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
28355         HAVE_TTYNAME_R.
28356         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
28357         * doc/posix-functions/ttyname_r.texi: Mention the new module.
28358
28359 2010-03-20  Bruno Haible  <bruno@clisp.org>
28360
28361         signal: Undefine macro definitions in C++ mode.
28362         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
28363         sigfillset): Undefine macro definitions from the system header in C++
28364         mode.
28365         Reported by John W. Eaton <jwe@gnu.org>.
28366
28367 2010-03-20  Bruno Haible  <bruno@clisp.org>
28368
28369         Ensure no #include statements inside extern "C" { ... }.
28370         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
28371         contain #include statements.
28372         * lib/time.in.h: Likewise.
28373
28374 2010-03-20  Bruno Haible  <bruno@clisp.org>
28375
28376         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
28377         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
28378         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
28379         Reported by John W. Eaton <jwe@gnu.org>.
28380
28381 2010-03-20  Bruno Haible  <bruno@clisp.org>
28382
28383         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
28384         Reported by Jim Meyering.
28385
28386 2010-03-20  Bruno Haible  <bruno@clisp.org>
28387
28388         pipe: Set errno upon failure.
28389         * lib/pipe.h: Specify that when -1 is returned, errno is set.
28390         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
28391         errno value in error message.
28392
28393 2010-03-20  Bruno Haible  <bruno@clisp.org>
28394             Jim Meyering  <meyering@redhat.com>
28395
28396         lchown: Avoid "unused variable" warning.
28397         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
28398
28399 2010-03-20  Bruno Haible  <bruno@clisp.org>
28400
28401         Work around unlink() bug on MacOS X 10.5.6.
28402         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
28403         attempting to unlink a parent directory.
28404         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
28405         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
28406         activate for the replacement function.
28407         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
28408
28409 2010-03-20  Bruno Haible  <bruno@clisp.org>
28410
28411         Fix link errors on Solaris 8.
28412         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
28413         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
28414
28415 2010-03-19  Jim Meyering  <meyering@redhat.com>
28416
28417         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
28418         The _LIBC implementation of build_range_exp correctly honors the
28419         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
28420         However, the non-_LIBC implementation would ignore that syntax-bit
28421         flag and return REG_ERANGE unconditionally.
28422         This change makes it honor that flag.
28423         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
28424         Make two pointer parameters "const".
28425         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
28426         (parse_bracket_exp): Update caller.
28427
28428         regex.m4: correct the reversed range endpoint ([b-a]) test
28429         * m4/regex.m4: When requiring that [b-a] evoke failure,
28430         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
28431         test pass once again for x86-based systems.
28432
28433 2010-03-19  Bruno Haible  <bruno@clisp.org>
28434
28435         scandir: Fix link error on Solaris 8.
28436         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
28437         macros.
28438
28439 2010-03-19  Bruno Haible  <bruno@clisp.org>
28440
28441         getusershell: Fix documentation.
28442         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
28443         module.
28444         * doc/glibc-functions/setusershell.texi: Likewise.
28445
28446         getusershell: Provide declaration, missing on Solaris 9.
28447         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
28448         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
28449         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
28450         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
28451         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28452         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
28453         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
28454         HAVE_GETUSERSHELL.
28455         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
28456
28457 2010-03-19  Bruno Haible  <bruno@clisp.org>
28458
28459         wctype: Provide iswblank function.
28460         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
28461         exists and is fine.
28462         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
28463         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
28464         * tests/test-wctype.c (main): Re-enable the iswblank tests.
28465         * doc/posix-functions/iswblank.texi: Update.
28466
28467 2010-03-19  Bruno Haible  <bruno@clisp.org>
28468
28469         Tests of module 'pty' in C++ mode.
28470         * modules/pty-tests: New file.
28471         * tests/test-pty-c++.cc: New file.
28472         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
28473
28474 2010-03-19  Eric Blake  <eblake@redhat.com>
28475
28476         logb: fix documentation
28477         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
28478         1.5 declaration bug.
28479
28480         forkpty, openpty: prefer glibc's const-safe prototype
28481         * lib/forkpty.c (rpl_forkpty): New file.
28482         * lib/openpty.c (rpl_openpty): Likewise.
28483         * modules/forkpty (Files): Distribute it.
28484         * modules/openpty (Files): Likewise.
28485         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
28486         check...
28487         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
28488         replacement for for non-const BSD signature.
28489         * modules/pty (Makefile.am): Substitute witnesses.
28490         * lib/pty.in.h (forkpty, openpty): Declare replacements.
28491         * tests/test-forkpty.c: Update signature check.
28492         * tests/test-openpty.c: Likewise.
28493         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
28494         * doc/glibc-functions/openpty.texi (openpty): Likewise.
28495
28496         forkpty, openpty: split functions into new modules
28497         * modules/pty (Makefile.am): Substitute new witnesses.
28498         (Libraries): Move library detection...
28499         * modules/forkpty: ...into new module.
28500         * modules/openpty: Another new module.
28501         * modules/pty-tests: Rename and split...
28502         * modules/forkpty-tests: ...to this...
28503         * modules/openpty-tests: ...and this.
28504         * tests/test-pty.c: Rename and split...
28505         * tests/test-forkpty.c: ...to this...
28506         * tests/test-openpty.c: ...and this.
28507         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
28508         (gl_PTY): Split library searching...
28509         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
28510         (gl_FORKPTY, gl_OPENPTY): New macros.
28511         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
28512         * NEWS: Mention the split.
28513         * MODULES.html.sh (Misc): Document the modules.
28514         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
28515         * doc/glibc-functions/openpty.texi (openpty): Likewise.
28516
28517         pty: improve replacement header
28518         * lib/pty.in.h: New file.
28519         * modules/pty (Files): Ship it.
28520         (Makefile.am): Always build replacement.
28521         * m4/pty.m4: Rename...
28522         * m4/pty_h.m4: ...to this.
28523         (gl_PTY): Modernize setting of witness macros; update check of
28524         forkpty to take proper advantage of cache.
28525         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
28526
28527         getopt: avoid compiler warning
28528         * lib/getopt.c (attribute_hidden): Remove unused macro.
28529
28530 2010-03-18  Bruno Haible  <bruno@clisp.org>
28531
28532         Fix link errors on Solaris 8.
28533         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
28534         * modules/search-tests (test_search_c___LDADD): Likewise.
28535         * modules/signal-tests (test_signal_c___LDADD): Likewise.
28536         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
28537         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
28538         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
28539         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
28540         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
28541         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
28542
28543 2010-03-18  Bruno Haible  <bruno@clisp.org>
28544
28545         Fix bug introduced on 2010-03-14.
28546         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
28547         (gl_SPAWN_H): Require it.
28548         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
28549         Reported by Simon Josefsson.
28550
28551 2010-03-18  Bruno Haible  <bruno@clisp.org>
28552
28553         Fix typo introduced on 2009-12-31.
28554         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
28555         posix_spawn_file_actions_adddup2.
28556
28557 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
28558         and Eric Blake  <eblake@redhat.com>
28559
28560         test-vc-list-files-git: make more robust
28561         * tests/test-vc-list-files-git.sh: Unset problematic environment
28562         variables.  Chain commands together.
28563
28564 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
28565
28566         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
28567         `AC_CHECK_DECL' invocation.
28568
28569 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
28570
28571         * lib/inttostr.c (inttostr): Make sure the invocation of verify
28572         appears before executable statements. Suggested by Petr Sumbera
28573         <Petr.Sumbera@Sun.COM>.
28574
28575 2010-03-14  Bruno Haible  <bruno@clisp.org>
28576
28577         * tests/test-flock.c (test_exclusive): Comment out a test that causes
28578         portability problems. Instead use a simpler test.
28579         (main): Check that invalid arguments are rejected only on Linux.
28580
28581 2010-03-14  Bruno Haible  <bruno@clisp.org>
28582
28583         Fix bug introduced on 2009-12-31.
28584         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
28585         gl_PREREQ_SYS_H_WINSOCK2 always.
28586         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
28587         SYS_SOCKET_H variable.
28588         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
28589         Update comments.
28590         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
28591         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
28592         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
28593         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
28594         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
28595
28596 2010-03-14  Bruno Haible  <bruno@clisp.org>
28597
28598         Fix values returned by sinl, cosl.
28599         * lib/trigl.h: Add specification comments.
28600         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
28601         that combines the values from the precomputed table with the values of
28602         the Chebyshev polynomials.
28603
28604 2010-03-14  Bruno Haible  <bruno@clisp.org>
28605
28606         Fix compilation error when modules 'posix_spawn[p]' are not used.
28607         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
28608         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
28609
28610 2010-03-14  Bruno Haible  <bruno@clisp.org>
28611
28612         Fix compilation error on mingw when module 'time_r' is not used.
28613         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
28614         is 1.
28615         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
28616         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
28617         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
28618         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
28619
28620 2010-03-14  Bruno Haible  <bruno@clisp.org>
28621
28622         Fix compilation error with Sun C.
28623         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
28624         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
28625         instead of GCC specific ULONG_LONG_MAX.
28626         * lib/xstrtoll.c: Likewise.
28627         * lib/xstrtoull.c: Likewise.
28628
28629 2010-03-13  Bruno Haible  <bruno@clisp.org>
28630
28631         Allow the user to disable C++ code and tests.
28632         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
28633         (gl_PROG_ANSI_CXX): Require it.
28634
28635 2010-03-13  Bruno Haible  <bruno@clisp.org>
28636
28637         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
28638         cases.
28639
28640 2010-03-13  Bruno Haible  <bruno@clisp.org>
28641
28642         Test that gnulib does not break the standard C++ headers.
28643         * tests/test-locale-c++2.cc: New file.
28644         * modules/locale-tests (Files): Add it.
28645         (Makefile.am): Compile it for test-locale-c++.
28646         * tests/test-math-c++2.cc: New file.
28647         * modules/math-tests (Files): Add it.
28648         (Makefile.am): Compile it for test-math-c++.
28649         * tests/test-signal-c++2.cc: New file.
28650         * modules/signal-tests (Files): Add it.
28651         (Makefile.am): Compile it for test-signal-c++.
28652         * tests/test-stdio-c++2.cc: New file.
28653         * modules/stdio-tests (Files): Add it.
28654         (Makefile.am): Compile it for test-stdio-c++.
28655         * tests/test-stdlib-c++2.cc: New file.
28656         * modules/stdlib-tests (Files): Add it.
28657         (Makefile.am): Compile it for test-stdlib-c++.
28658         * tests/test-string-c++2.cc: New file.
28659         * modules/string-tests (Files): Add it.
28660         (Makefile.am): Compile it for test-string-c++.
28661         * tests/test-time-c++2.cc: New file.
28662         * modules/time-tests (Files): Add it.
28663         (Makefile.am): Compile it for test-time-c++.
28664         Reported by John W. Eaton <jwe@gnu.org>.
28665
28666 2010-03-13  Bruno Haible  <bruno@clisp.org>
28667
28668         * gnulib-tool (func_usage): Clarify which options are available for
28669         --create-testdir and --create-megatestdir.
28670
28671 2010-03-13  Bruno Haible  <bruno@clisp.org>
28672
28673         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
28674         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
28675         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
28676         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
28677         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
28678         when appropriate.
28679         Reported by Jim Meyering.
28680
28681 2010-03-12  Simon Josefsson  <simon@josefsson.org>
28682
28683         * gnulib-tool (func_import): Explain origin of code.
28684
28685 2010-03-12  Bruno Haible  <bruno@clisp.org>
28686
28687         Fix problem with automake's definition of CXXLINK.
28688         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
28689         Reported by Simon Josefsson and Ludovic Courtès.
28690
28691 2010-03-12  Bruno Haible  <bruno@clisp.org>
28692
28693         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
28694         stable releases.
28695
28696 2010-03-11  Bruno Haible  <bruno@clisp.org>
28697
28698         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
28699         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
28700         whether the system provides one variant or multiple variants of the
28701         function.
28702         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
28703         C++ compilers.
28704         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
28705         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
28706         Reported by Jim Meyering.
28707
28708 2010-03-09  Simon Josefsson  <simon@josefsson.org>
28709
28710         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
28711
28712 2010-03-08  Bruno Haible  <bruno@clisp.org>
28713
28714         gnulib-tool: Add support for --libtool in --create-testdir.
28715         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
28716         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
28717
28718 2010-03-08  Eric Blake  <eblake@redhat.com>
28719
28720         gnulib-tool.texi: mention possibility of git submodule
28721         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
28722         submodules.
28723         * doc/.gitignore: Ignore another generated file.
28724
28725 2010-03-08  Karl Berry  <karl@gnu.org>
28726
28727         * doc/gnulib-tool.texi (VCS Issues): Mention third option
28728         of committing gnulib files while skipping others.
28729
28730 2010-03-07  Bruno Haible  <bruno@clisp.org>
28731
28732         Tests of module 'wctype' in C++ mode.
28733         * tests/test-wctype-c++.cc: New file.
28734         * modules/wctype-tests (Files): Add it and tests/signature.h.
28735         (Depends-on): Add ansi-c++-opt.
28736         (Makefile.am): Arrange to compile and run test-wctype-c++.
28737
28738         Tests of module 'wchar' in C++ mode.
28739         * tests/test-wchar-c++.cc: New file.
28740         * modules/wchar-tests (Files): Add it and tests/signature.h.
28741         (Depends-on): Add ansi-c++-opt.
28742         (Makefile.am): Arrange to compile and run test-wchar-c++.
28743         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
28744         gl_MODULE_INDICATOR.
28745
28746         Tests of module 'unistd' in C++ mode.
28747         * tests/test-unistd-c++.cc: New file.
28748         * modules/unistd-tests (Files): Add it and tests/signature.h.
28749         (Depends-on): Add ansi-c++-opt.
28750         (Makefile.am): Arrange to compile and run test-unistd-c++.
28751         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
28752         gl_MODULE_INDICATOR.
28753
28754         Tests of module 'time' in C++ mode.
28755         * tests/test-time-c++.cc: New file.
28756         * modules/time-tests (Files): Add it and tests/signature.h.
28757         (Depends-on): Add ansi-c++-opt.
28758         (Makefile.am): Arrange to compile and run test-time-c++.
28759         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
28760
28761         Tests of module 'sys_time' in C++ mode.
28762         * tests/test-sys_time-c++.cc: New file.
28763         * modules/sys_time-tests (Files): Add it and tests/signature.h.
28764         (Depends-on): Add ansi-c++-opt.
28765         (Makefile.am): Arrange to compile and run test-sys_time-c++.
28766         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
28767         gl_MODULE_INDICATOR.
28768
28769         Tests of module 'sys_stat' in C++ mode.
28770         * tests/test-sys_stat-c++.cc: New file.
28771         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
28772         (Depends-on): Add ansi-c++-opt.
28773         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
28774         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
28775         gl_MODULE_INDICATOR.
28776
28777         Tests of module 'sys_socket' in C++ mode.
28778         * tests/test-sys_socket-c++.cc: New file.
28779         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
28780         (Depends-on): Add ansi-c++-opt.
28781         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
28782         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
28783         gl_MODULE_INDICATOR.
28784
28785         Tests of module 'sys_select' in C++ mode.
28786         * tests/test-sys_select-c++.cc: New file.
28787         * modules/sys_select-tests (Files): Add it and tests/signature.h.
28788         (Depends-on): Add ansi-c++-opt.
28789         (Makefile.am): Arrange to compile and run test-sys_select-c++.
28790         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
28791         gl_MODULE_INDICATOR.
28792
28793         Tests of module 'sys_ioctl' in C++ mode.
28794         * tests/test-sys_ioctl-c++.cc: New file.
28795         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
28796         (Depends-on): Add ansi-c++-opt.
28797         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
28798         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
28799         gl_MODULE_INDICATOR.
28800
28801         Tests of module 'string' in C++ mode.
28802         * tests/test-string-c++.cc: New file.
28803         * modules/string-tests (Files): Add it and tests/signature.h.
28804         (Depends-on): Add ansi-c++-opt.
28805         (Makefile.am): Arrange to compile and run test-string-c++.
28806         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
28807         gl_MODULE_INDICATOR.
28808
28809         Tests of module 'stdlib' in C++ mode.
28810         * tests/test-stdlib-c++.cc: New file.
28811         * modules/stdlib-tests (Files): Add it and tests/signature.h.
28812         (Depends-on): Add ansi-c++-opt.
28813         (Makefile.am): Arrange to compile and run test-stdlib-c++.
28814         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
28815         gl_MODULE_INDICATOR.
28816
28817         Tests of module 'stdio' in C++ mode.
28818         * tests/test-stdio-c++.cc: New file.
28819         * modules/stdio-tests (Files): Add it and tests/signature.h.
28820         (Depends-on): Add ansi-c++-opt.
28821         (Makefile.am): Arrange to compile and run test-stdio-c++.
28822         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
28823         gl_MODULE_INDICATOR.
28824
28825         Tests of module 'spawn' in C++ mode.
28826         * tests/test-spawn-c++.cc: New file.
28827         * modules/spawn-tests (Files): Add it and tests/signature.h.
28828         (Depends-on): Add ansi-c++-opt.
28829         (Makefile.am): Arrange to compile and run test-spawn-c++.
28830         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
28831         gl_MODULE_INDICATOR.
28832
28833         Tests of module 'signal' in C++ mode.
28834         * tests/test-signal-c++.cc: New file.
28835         * modules/signal-tests (Files): Add it and tests/signature.h.
28836         (Depends-on): Add ansi-c++-opt.
28837         (Makefile.am): Arrange to compile and run test-signal-c++.
28838         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
28839         gl_MODULE_INDICATOR.
28840
28841         Tests of module 'search' in C++ mode.
28842         * tests/test-search-c++.cc: New file.
28843         * modules/search-tests (Files): Add it and tests/signature.h.
28844         (Depends-on): Add ansi-c++-opt.
28845         (Makefile.am): Arrange to compile and run test-search-c++.
28846         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
28847         gl_MODULE_INDICATOR.
28848
28849         Tests of module 'math' in C++ mode.
28850         * tests/test-math-c++.cc: New file.
28851         * modules/math-tests (Files): Add it and tests/signature.h.
28852         (Depends-on): Add ansi-c++-opt.
28853         (Makefile.am): Arrange to compile and run test-math-c++.
28854         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
28855
28856         Tests of module 'locale' in C++ mode.
28857         * tests/test-locale-c++.cc: New file.
28858         * modules/locale-tests (Files): Add it and tests/signature.h.
28859         (Depends-on): Add ansi-c++-opt.
28860         (Makefile.am): Arrange to compile and run test-locale-c++.
28861         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
28862         gl_MODULE_INDICATOR.
28863
28864         Tests of module 'langinfo' in C++ mode.
28865         * tests/test-langinfo-c++.cc: New file.
28866         * modules/langinfo-tests (Files): Add it and tests/signature.h.
28867         (Depends-on): Add ansi-c++-opt.
28868         (Makefile.am): Arrange to compile and run test-langinfo-c++.
28869         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
28870         gl_MODULE_INDICATOR.
28871
28872         Tests of module 'iconv-h' in C++ mode.
28873         * tests/test-iconv-h-c++.cc: New file.
28874         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
28875         (Depends-on): Add ansi-c++-opt.
28876         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
28877
28878         Tests of module 'glob' in C++ mode.
28879         * tests/test-glob-c++.cc: New file.
28880         * modules/glob-tests (Files): Add it.
28881         (Depends-on): Add ansi-c++-opt.
28882         (Makefile.am): Arrange to compile and run test-glob-c++.
28883
28884         Tests of module 'fcntl-h' in C++ mode.
28885         * tests/test-fcntl-h-c++.cc: New file.
28886         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
28887         (Depends-on): Add ansi-c++-opt.
28888         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
28889         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
28890         gl_MODULE_INDICATOR.
28891
28892         Tests of module 'dirent' in C++ mode.
28893         * tests/test-dirent-c++.cc: New file.
28894         * modules/dirent-tests (Files): Add it and tests/signature.h.
28895         (Depends-on): Add ansi-c++-opt.
28896         (Makefile.am): Arrange to compile and run test-dirent-c++.
28897         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
28898         gl_MODULE_INDICATOR.
28899
28900         New module 'ansi-c++-opt'.
28901         * modules/ansi-c++-opt: New file.
28902         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
28903
28904         Document C++ namespace mode.
28905         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
28906
28907         wctype: Avoid #define replacements in C++ mode.
28908         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
28909         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
28910         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
28911         In C++, define a namespaced alias symbol.
28912         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
28913         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
28914         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
28915         rule.
28916
28917         wchar: Avoid #define replacements in C++ mode.
28918         * lib/wchar.in.h: Include c++defs.h.
28919         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
28920         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
28921         symbol.
28922         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
28923         * modules/wchar (Depends-on): Add c++defs.
28924         (Makefile.am): Update wchar.h rule.
28925
28926         unistd: Avoid #define replacements in C++ mode.
28927         * lib/unistd.in.h: Include c++defs.h.
28928         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
28929         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
28930         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
28931         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
28932         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
28933         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
28934         symbol.
28935         (environ): Update.
28936         * modules/unistd (Depends-on): Add c++defs.
28937         (Makefile.am): Update unistd.h rule.
28938
28939         time: Avoid #define replacements in C++ mode.
28940         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
28941         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
28942         define a namespaced alias symbol.
28943         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
28944         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
28945         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
28946         * modules/time (Depends-on): Add c++defs, warn-on-use.
28947         (Makefile.am): Update time.h rule.
28948         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
28949         * modules/nanosleep (configure.ac): Likewise.
28950         * modules/strptime (configure.ac): Likewise.
28951         * modules/timegm (configure.ac): Likewise.
28952
28953         sys_time: Avoid #define replacements in C++ mode.
28954         * lib/sys_time.in.h: Include c++defs.h.
28955         (gettimeofday): In C++, define a namespaced alias symbol.
28956         * modules/sys_time (Depends-on): Add c++defs.
28957         (Makefile.am): Update sys/time.h rule.
28958
28959         sys_stat: Avoid #define replacements in C++ mode.
28960         * lib/sys_stat.in.h: Include c++defs.h.
28961         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
28962         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
28963         namespaced alias symbol.
28964         In C++, define a namespaced alias symbol.
28965         * modules/sys_stat (Depends-on): Add c++defs.
28966         (Makefile.am): Update sys/stat.h rule.
28967
28968         sys_socket: Avoid #define replacements in C++ mode.
28969         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
28970         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
28971         definitions also when the system has a <sys/socket.h>.
28972         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
28973         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
28974         In C++, define a namespaced alias symbol.
28975         * modules/sys_socket (Depends-on): Add c++defs.
28976         (Makefile.am): Update sys/socket.h rule.
28977
28978         sys_select: Avoid #define replacements in C++ mode.
28979         * lib/sys_select.in.h: Include c++defs.h. Enable the function
28980         definitions also when the system has a <sys/select.h>.
28981         (select): In C++, define a namespaced alias symbol.
28982         * modules/sys_select (Depends-on): Add c++defs.
28983         (Makefile.am): Update sys/select.h rule.
28984
28985         sys_ioctl: Avoid #define replacements in C++ mode.
28986         * lib/sys_ioctl.in.h: Include c++defs.h.
28987         (ioctl): In C++, define a namespaced alias symbol.
28988         * modules/sys_ioctl (Depends-on): Add c++defs.
28989         (Makefile.am): Update sys/ioctl.h rule.
28990
28991         string: Avoid #define replacements in C++ mode.
28992         * lib/string.in.h: Include c++defs.h.
28993         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
28994         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
28995         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
28996         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
28997         strsignal, strverscmp): In C++, define a namespaced alias symbol.
28998         * modules/string (Depends-on): Add c++defs.
28999         (Makefile.am): Update string.h rule.
29000
29001         stdlib: Avoid #define replacements in C++ mode.
29002         * lib/stdlib.in.h: Include c++defs.h.
29003         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
29004         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
29005         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
29006         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
29007         symbol.
29008         * modules/stdlib (Depends-on): Add c++defs.
29009         (Makefile.am): Update stdlib.h rule.
29010
29011         stdio: Avoid #define replacements in C++ mode.
29012         * lib/stdio.in.h: Include c++defs.h.
29013         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
29014         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
29015         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
29016         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
29017         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
29018         namespaced alias symbol.
29019         * modules/stdio (Depends-on): Add c++defs.
29020         (Makefile.am): Update stdio.h rule.
29021
29022         spawn: Avoid #define replacements in C++ mode.
29023         * lib/spawn.in.h: Include c++defs.h.
29024         (posix_spawn, posix_spawnp, posix_spawnattr_init,
29025         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
29026         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
29027         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
29028         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
29029         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
29030         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
29031         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
29032         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
29033         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
29034         In C++, define a namespaced alias symbol.
29035         * modules/spawn (Depends-on): Add c++defs.
29036         (Makefile.am): Update spawn.h rule.
29037
29038         signal: Avoid #define replacements in C++ mode.
29039         * lib/signal.in.h: Include c++defs.h.
29040         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
29041         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
29042         namespaced alias symbol.
29043         * modules/signal (Depends-on): Add c++defs.
29044         (Makefile.am): Update signal.h rule.
29045
29046         search: Avoid #define replacements in C++ mode.
29047         * lib/search.in.h: Include c++defs.h.
29048         (_gl_search_compar_fn, _gl_search_action_fn): New types.
29049         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
29050         symbol.
29051         * modules/search (Depends-on): Add c++defs.
29052         (Makefile.am): Update search.h rule.
29053
29054         math: Avoid #define replacements in C++ mode.
29055         * lib/math.in.h: Include c++defs.h.
29056         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
29057         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
29058         trunc, truncl): In C++, define a namespaced alias symbol.
29059         * modules/math (Depends-on): Add c++defs.
29060         (Makefile.am): Update math.h rule.
29061
29062         locale: Avoid #define replacements in C++ mode.
29063         * lib/locale.in.h: Include c++defs.h.
29064         (duplocale): In C++, define a namespaced alias symbol.
29065         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
29066         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
29067         * modules/locale (Depends-on): Add c++defs.
29068         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
29069
29070         langinfo: Avoid #define replacements in C++ mode.
29071         * lib/langinfo.in.h: Include c++defs.h.
29072         (nl_langinfo): In C++, define a namespaced alias symbol.
29073         * modules/langinfo (Depends-on): Add c++defs.
29074         (Makefile.am): Update langinfo.h rule.
29075
29076         iconv-h: Avoid #define replacements in C++ mode.
29077         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
29078         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
29079         symbol.
29080         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
29081         whenever iconv is present.
29082         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
29083         (Makefile.am): Update iconv.h rule.
29084
29085         glob: Avoid #define replacements in C++ mode.
29086         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
29087         (_gl_glob_errfunc_fn): New type.
29088         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
29089         symbol.
29090         * modules/glob (Depends-on): Add c++defs, warn-on-use.
29091         (Makefile.am): Update glob.h rule.
29092
29093         fcntl-h: Avoid #define replacements in C++ mode.
29094         * lib/fcntl.in.h: Include c++defs.h.
29095         (fcntl, open, openat): In C++, define a namespaced alias symbol.
29096         * modules/fcntl-h (Depends-on): Add c++defs.
29097         (Makefile.am): Update fcntl.h rule.
29098
29099         dirent: Avoid #define replacements in C++ mode.
29100         * lib/dirent.in.h: Include c++defs.h.
29101         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
29102         namespaced alias symbol.
29103         (dirfd): Update declaration.
29104         * modules/dirent (Depends-on): Add c++defs.
29105         (Makefile.am): Update dirent.h rule.
29106
29107         ctype: Make it usable in C++ code.
29108         * lib/ctype.in.h: Include c++defs.h.
29109         (isblank): Declare as extern "C".
29110         * modules/ctype (Depends-on): Add c++defs.
29111         (Makefile.am): Update ctype.h rule.
29112
29113         New module 'c++defs'.
29114         * modules/c++defs: New file.
29115         * build-aux/c++defs.h: New file.
29116         Reported by John W. Eaton <jwe@gnu.org>.
29117
29118 2010-03-07  Bruno Haible  <bruno@clisp.org>
29119
29120         logb: Provide missing declaration for Cygwin.
29121         * lib/math.in.h (logb): New declaration.
29122         * m4/logb.m4: New file.
29123         * modules/logb (Files): Add m4/logb.m4.
29124         (Depends-on): Add math.
29125         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
29126         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
29127         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
29128         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
29129         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
29130
29131 2010-03-07  Bruno Haible  <bruno@clisp.org>
29132
29133         Fix test-cond link error.
29134         * tests/test-cond.c: Include <stdio.h>.
29135
29136 2010-03-07  Bruno Haible  <bruno@clisp.org>
29137
29138         Fix test-dirent-safer link error.
29139         * modules/dirent-safer-tests (Makefile.am): Define
29140         test_dirent_safer_LDADD.
29141
29142 2010-03-07  Bruno Haible  <bruno@clisp.org>
29143
29144         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
29145         among default module list.
29146
29147 2010-03-07  Bruno Haible  <bruno@clisp.org>
29148
29149         Fix link error on platforms with GNU libiconv.
29150         * modules/unistr/u8-strcoll-tests (Makefile): Define
29151         test_u8_strcoll_LDADD.
29152         * modules/unistr/u16-strcoll-tests (Makefile): Define
29153         test_u16_strcoll_LDADD.
29154         * modules/unistr/u32-strcoll-tests (Makefile): Define
29155         test_u32_strcoll_LDADD.
29156
29157 2010-03-07  Bruno Haible  <bruno@clisp.org>
29158
29159         Use POSIX declarations for socket functions.
29160         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
29161         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
29162         rpl_sendto): Change declaration to match POSIX.
29163         * lib/connect.c (rpl_connect): Likewise.
29164         * lib/accept.c (rpl_accept): Likewise.
29165         * lib/bind.c (rpl_bind): Likewise.
29166         * lib/getpeername.c (rpl_getpeername): Likewise.
29167         * lib/getsockname.c (rpl_getsockname): Likewise.
29168         * lib/recv.c (rpl_recv): Likewise.
29169         * lib/send.c (rpl_send): Likewise.
29170         * lib/recvfrom.c (rpl_recvfrom): Likewise.
29171         * lib/sendto.c (rpl_sendto): Likewise.
29172
29173 2010-03-06  Bruno Haible  <bruno@clisp.org>
29174
29175         Clarify access, euidaccess, faccessat.
29176         * doc/posix-functions/faccessat.texi: Mention security problem under
29177         "Other problems", not "Portability problems".
29178         * doc/posix-functions/access.texi: Likewise. Mention a related security
29179         problem.
29180         * doc/glibc-functions/euidaccess.texi: Mention security problems.
29181         * lib/euidaccess.c: Add comments about platforms.
29182         * lib/unistd.in.h (access, euidaccess): Add warnings.
29183
29184 2010-03-07  Bruno Haible  <bruno@clisp.org>
29185
29186         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
29187         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
29188         (POSIX_SPAWN_SETSCHEDULER): Likewise.
29189         (POSIX_SPAWN_USEVFORK): Define in a way that works when
29190         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
29191         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
29192         declare when POSIX_SPAWN_SETSCHEDULER is zero.
29193         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
29194         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
29195         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
29196         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
29197         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
29198         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
29199         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
29200         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
29201         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
29202         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
29203         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
29204         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
29205         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
29206         Likewise.
29207         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
29208         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
29209         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
29210         Likewise.
29211         * tests/test-spawn.c (main): Make it work when
29212         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
29213
29214 2010-03-07  Bruno Haible  <bruno@clisp.org>
29215
29216         Fix incorrect Makefile.am generation in German locale.
29217         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
29218         Execute sed command with character range in C locale.
29219
29220 2010-03-06  Bruno Haible  <bruno@clisp.org>
29221
29222         Tests for module 'iconv-h'.
29223         * modules/iconv-h-tests: New file.
29224         * tests/test-iconv-h.c: New file.
29225
29226         New module 'iconv-h'.
29227         * modules/iconv-h: New file.
29228         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
29229         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
29230         (configure.ac): Remove gl_ICONV_H.
29231         (Makefile.am): Remove rule for iconv.h.
29232
29233 2010-03-06  Bruno Haible  <bruno@clisp.org>
29234
29235         More consistent naming of *.m4 files.
29236         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
29237         * modules/wctype (Files): Update.
29238
29239         More consistent naming of *.m4 files.
29240         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
29241         * modules/wchar (Files): Update.
29242
29243 2010-03-06  Jim Meyering  <meyering@redhat.com>
29244
29245         euidaccess: relax license to LGPLv2+
29246         * modules/euidaccess (License): Relax to LGPLv2+.
29247
29248 2010-03-06  Bruno Haible  <bruno@clisp.org>
29249
29250         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
29251         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
29252         (Makefile.am): Augment lib_SOURCES instead.
29253
29254 2010-03-04  Jim Meyering  <meyering@redhat.com>
29255
29256         utime: remove obsolete module
29257         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
29258         unnecessary for years, and has been marked as obsolete for 10 months.
29259         * modules/utime: Remove file.
29260         * lib/utime.c: Remove file.
29261         * m4/utime.m4: Remove file.
29262         * m4/utimes-null.m4: Remove file.
29263         * doc/posix-functions/utime.texi (utime): Remove reference to
29264         the module.  Move the sole "fixed by gnulib" item into the
29265         "problems not fixed by Gnulib" list.
29266         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
29267
29268 2010-03-05  Simon Josefsson  <simon@josefsson.org>
29269
29270         * modules/exit (License): Relax license to LGPLv2+.
29271         (Status): Mark as obsolete.
29272         * NEWS: Mention deprecated 'exit' module.
29273         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
29274         of now obsolete 'exit'.
29275
29276 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29277
29278         fts-lgpl: remove unused module
29279         * modules/fts-lgpl: Remove.
29280         * MODULES.html.sh (func_all_modules): Adjust.
29281         * check-module (find_included_lib_files): Adjust.
29282         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
29283
29284 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
29285
29286         copy-acl: enhance Solaris ACL error handling
29287         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
29288         * lib/set-mode-acl.c (qset_acl): Likewise.
29289
29290 2010-03-02  Bruno Haible  <bruno@clisp.org>
29291
29292         spawn: Don't override the system defined values on FreeBSD 8.
29293         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
29294         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
29295         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
29296         if HAVE_POSIX_SPAWN is 1.
29297         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
29298
29299 2010-03-01  Bruno Haible  <bruno@clisp.org>
29300
29301         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
29302         regarding Automake.
29303
29304 2010-02-25  Bruno Haible  <bruno@clisp.org>
29305
29306         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
29307         * gnulib-tool: Define 'echo' as a function only before the ksh alias
29308         setting, not afterwards.
29309         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
29310
29311 2010-02-24  Eric Blake  <eblake@redhat.com>
29312
29313         bootstrap, git-version-gen: use timestamp
29314         * build-aux/git-version-gen (scriptversion): Force UTC.
29315         * build-aux/bootstrap (scriptversion): New variable.
29316
29317         bootstrap: allow older git
29318         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
29319         older than 1.6.4.  Requested by the libvirt project.
29320
29321 2010-02-23  Eric Blake  <eblake@redhat.com>
29322
29323         warn-on-use: work with old autoconf
29324         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
29325         AS_VAR semantics of autoconf 2.60.
29326         Reported by Bruno Haible.
29327
29328         bootstrap: improve some comments
29329         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
29330         clarification comments.
29331
29332         gettimeofday: provide correct function
29333         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
29334         when replacement is declared, otherwise provide gettimeofday.
29335         Reported by Michael Goffioul.
29336
29337 2010-02-23  Jim Meyering  <meyering@redhat.com>
29338
29339         lib-ignore: relax license to "unlimited", not LGPLv2+
29340         * modules/lib-ignore (License): Relax to "unlimited".
29341
29342 2010-02-23  Jim Meyering  <meyering@redhat.com>
29343
29344         lib-ignore: relax license to LGPLv2+
29345         * modules/lib-ignore (License): Relax to LGPLv2+.
29346
29347 2010-02-22  Eric Blake  <eblake@redhat.com>
29348
29349         lseek: avoid bash 3.2 broken pipe bug
29350         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
29351         warning from bash 3.2.
29352         Reported by Ben Pfaff, with analysis from Bruno Haible.
29353
29354         bootstrap: support non-FSF copyright holder
29355         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
29356         bootstrap.conf override of COPYRIGHT_HOLDER.
29357         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
29358
29359         bootstrap: interoperate with gettext 0.14.1
29360         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
29361
29362         bootstrap: allow for alternate submodule location
29363         * build-aux/bootstrap (gnulib_path): New variable; use instead of
29364         hardcoding submodule location.
29365         (gnulib_mk): Allow direct use of Makefile.am.
29366
29367         bootstrap: use GNULIB_SRCDIR to reduce disk usage
29368         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
29369         rather than reconfiguring where the submodule points.
29370
29371         gettimeofday: restore support for platforms that lack function
29372         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
29373         replacement if function is missing.
29374         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
29375         * modules/sys_time (Makefile.am): Substitute it.
29376         * lib/sys_time.in.h (gettimeofday): Check it.
29377         Reported by Michael Goffioul.
29378
29379 2010-02-21  Bruno Haible  <bruno@clisp.org>
29380
29381         * lib/stdio.in.h (obstack_printf): Fix typo.
29382
29383 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
29384
29385         vc-list-files: use bzr ls's -R option
29386         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
29387         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
29388
29389 2010-02-21  Jim Meyering  <meyering@redhat.com>
29390
29391         init.sh: fix EXEEXT shims to work also for names like test-prog
29392         * tests/init.sh: Re-exec a better shell, when needed.
29393         If the current shell lacks support for posix $(...), an init.sh-using
29394         test will now try to find a shell that supports that.  If EXEEXT is
29395         nonempty, we also require support for hyphen-in-alias-name and shell
29396         substitutions like ${var#glob}.  Failure to find such a shell results
29397         in a skipped test.
29398
29399 2010-02-21  Bruno Haible  <bruno@clisp.org>
29400
29401         Really work around around "broken pipe" error message from bash 3.2.
29402         * gnulib-tool (func_reset_sigpipe): Remove function.
29403         (echo): In bash 3.2, define to a function that uses printf.
29404         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
29405
29406 2010-02-20  Bruno Haible  <bruno@clisp.org>
29407
29408         Restore support for automake 1.9.6 with autoconf 2.61.
29409         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
29410         Reported by James Youngman <jay@gnu.org>.
29411
29412 2010-02-20  Bruno Haible  <bruno@clisp.org>
29413
29414         Improve *printf warning condition.
29415         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
29416         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
29417         and the function is overridden due to SIGPIPE emulation.
29418
29419 2010-02-20  Bruno Haible  <bruno@clisp.org>
29420
29421         * lib/stdio.in.h: Tweak comments.
29422
29423 2010-02-19  Bruno Haible  <bruno@clisp.org>
29424
29425         Make it easier to find modules. New gnulib-tool option '--find'.
29426         * gnulib-tool: New option --find.
29427         (func_usage): Document it.
29428         (func_sanitize_modulelist): New function, extracted from
29429         func_all_modules.
29430         (func_all_modules): Invoke it.
29431         * doc/gnulib-tool.texi (Which modules?): New node.
29432
29433 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
29434
29435         * lib/sys_select.in.h: Provide select replacement even if
29436         sys/select.h exists on a system, for Interix.
29437
29438 2010-02-18  Jim Meyering  <meyering@redhat.com>
29439
29440         init.sh: don't use $(...) just yet
29441         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
29442         to accommodate e.g., Solaris' /bin/sh.
29443
29444 2010-02-17  Bruno Haible  <bruno@clisp.org>
29445
29446         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
29447         Reported by Ludovic Courtès <ludo@gnu.org>.
29448
29449 2010-02-16  Simon Josefsson  <simon@josefsson.org>
29450
29451         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
29452         linking with -lintl.
29453
29454 2010-02-17  Simon Josefsson  <simon@josefsson.org>
29455
29456         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
29457         if not provided by the system's netdb.h.  Reported by
29458         ludo@gnu.org (Ludovic Courtès).
29459
29460 2010-02-15  Jim Meyering  <meyering@redhat.com>
29461
29462         init.sh: improve portability and efficiency
29463         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
29464         "dummy" in a for loop.
29465         Use '!', not '^' to select the complement of a character set used
29466         in a "case" statement.
29467         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
29468         Suggestions from Eric Blake.
29469
29470         init.sh: automatically accommodate programs with the .exe suffix
29471         Automatically arrange for an invocation of "prog" to execute the
29472         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
29473         may use the simpler "prog", yet still work when built on a system
29474         that requires specifying the added suffix.
29475         Do this by constructing a function named "prog" that invokes
29476         "prog.exe" for each .exe file in selected directories.
29477         * tests/init.sh (find_exe_basenames_): New function.
29478         (create_exe_shim_functions_): New function.
29479         (path_prepend_): Use it.
29480
29481         maint.mk: mark syntax-check sc_*.m rules as .PHONY
29482         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
29483         "make -t syntax-check" doesn't create a ton of sc_*.m files.
29484
29485 2010-02-14  Jim Meyering  <meyering@redhat.com>
29486
29487         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
29488         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
29489         (sc_prohibit_hash_pjw_without_use): New rule.
29490
29491         maint.mk: allow the default upload destination dir to be overridden
29492         * top/maint.mk (upload_dest_dir_): Define with a default that
29493         preserves the status quo.
29494         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
29495         Reported by Peter Simons.
29496
29497         maint.mk: prohibit inclusion of "hash.h" without_use
29498         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
29499
29500 2010-02-10  Jim Meyering  <meyering@redhat.com>
29501
29502         maint.mk: prohibit inclusion of "ignore-value.h" without_use
29503         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
29504
29505 2010-02-09  Eric Blake  <ebb9@byu.net>
29506         and Bruno Haible  <bruno@clisp.org>
29507
29508         obstack-printf-posix: ensure declaration
29509         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
29510         extracted from gl_FUNC_OBSTACK_PRINTF.
29511         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
29512         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
29513         Likewise.
29514         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
29515         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
29516         0.
29517
29518 2010-02-08  Bruno Haible  <bruno@clisp.org>
29519
29520         gnulib-tool: Fix typo in 2010-02-07 commit.
29521         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
29522         Reported by Eric Blake.
29523
29524 2010-02-07  Bruno Haible  <bruno@clisp.org>
29525
29526         gnulib-tool: Fix up caching patches.
29527         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
29528         option --no-cache. Use associative arrays when supported by the shell.
29529         (sed_comments): New variable.
29530         (modcache): Renamed from do_cache.
29531         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
29532         abbreviate unnecessarily.
29533         (have_associative): New variable.
29534         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
29535         way also for ksh and zsh.
29536         (func_init_sed_convert_to_cache_statements): New function, extracted
29537         from func_cache_lookup_module. Add support for associative arrays.
29538         Don't set the c_MODULE_cached variable here. Ignore all lines before
29539         the first field header. Remove only the final newline, not all trailing
29540         newlines. Support empty fields correctly. Limit the use of 'eval' to
29541         assignments.
29542         (func_get_description, func_get_status, func_get_notice,
29543         func_get_applicability, func_get_filelist, func_get_dependencies,
29544         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
29545         func_get_automake_snippet, func_get_include_directive,
29546         func_get_link_directive, func_get_license, func_get_maintainer):
29547         Update documentation. List the unoptimized code first. Add support for
29548         associative arrays. Limit the use of 'eval' to assignments.
29549         (func_get_applicability): Undo stylistic pessimisations.
29550         (func_get_automake_snippet, func_get_include_directive): Reduce code
29551         duplication.
29552         (func_modules_transitive_closure, func_modules_add_dummy,
29553         func_modules_notice, func_modules_to_filelist, func_add_file,
29554         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
29555         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
29556         func_create_testdir, func_create_megatestdir): Update documentation.
29557
29558 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29559
29560         * gnulib-tool (func_cache_lookup_module): Store the module name
29561         belonging to the cache variable; error out if two different
29562         module names map to the same cache variable name.
29563
29564 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29565
29566         gnulib-tool: Make caching optional.
29567         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
29568         Update matching short versions of --no-changelog.
29569         (func_usage): Update.
29570         (sed_extract_cache_prog): Renamed from ...
29571         (sed_extract_prog): ... this; revert to old extraction script.
29572         (func_get_description, func_get_status)
29573         (func_get_notice, func_get_applicability, func_get_filelist)
29574         (func_get_dependencies, func_get_autoconf_early_snippet)
29575         (func_get_autoconf_snippet, func_get_automake_snippet)
29576         (func_get_include_directive, func_get_link_directive)
29577         (func_get_license, func_get_maintainer): If $do_cache is false,
29578         use old, non-caching extraction scripts.
29579         Suggestion by Bruno Haible.
29580
29581 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29582
29583         gnulib-tool: cache module metainformation.
29584         * gnulib-tool (sed_extract_prog): Match newline before each
29585         header, and rewrite header to a shell variable suffix.
29586         (func_cache_var, func_cache_lookup_module): New functions,
29587         to turn a module name into a cache variable prefix, and to
29588         look up and cache module metainformation.
29589         (func_get_description, func_get_status)
29590         (func_get_notice, func_get_applicability, func_get_filelist)
29591         (func_get_dependencies, func_get_autoconf_early_snippet)
29592         (func_get_autoconf_snippet, func_get_automake_snippet)
29593         (func_get_include_directive, func_get_link_directive)
29594         (func_get_license, func_get_maintainer): Use
29595         func_cache_lookup_module.
29596
29597 2010-02-07  Bruno Haible  <bruno@clisp.org>
29598
29599         fnctl: Fix missing dependency.
29600         * modules/fcntl (Depends-on): Add getdtablesize.
29601         Reported by John W. Eaton <jwe@gnu.org>.
29602
29603 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
29604
29605         Argp: fix recognition of short alias options.
29606
29607         * lib/argp-parse.c (convert_options): Fix improper use of
29608         `|' between character values.
29609         * tests/test-argp.c (group1_option): New alias option
29610         --read (-r).
29611         (group1_parser): Special handling for 'r'.
29612         (test15): New test case.
29613         (test_fun): Add test15.
29614         * tests/test-argp-2.sh: Update expected --help and --usage
29615         outputs.
29616
29617 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
29618
29619         * tests/test-argp.c: Fix indentation.
29620
29621 2010-02-04  Eric Blake  <ebb9@byu.net>
29622
29623         gettimeofday: expose type of second argument
29624         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
29625         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
29626         * tests/test-gettimeofday.c: Use it to silence warning.
29627         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
29628         the issue.
29629
29630 2010-02-03  Jim Meyering  <meyering@redhat.com>
29631
29632         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
29633         * lib/regcomp.c (TYPE_SIGNED): Define.
29634         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
29635
29636         regcomp.c: avoid a new -Wshadow warning
29637         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
29638
29639 2010-02-01  Jim Meyering  <meyering@redhat.com>
29640
29641         removing useless parentheses in cpp #define directives
29642         For motivation, see commit c0221df4, "define STREQ(a,b)
29643         consistently, removing useless parentheses"
29644         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
29645         * lib/mountlist.c (MNT_IGNORE): Likewise.
29646         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
29647
29648 2010-02-01  Eric Blake  <ebb9@byu.net>
29649
29650         sys_time: use link-warning
29651         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
29652         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
29653         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
29654         * modules/sys_time (Depends-on): Add warn-on-use.
29655         (Makefile.am): Always build replacement.
29656         (configure.ac): Update substitutions.
29657         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
29658         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
29659         bother with SYS_TIME_H.
29660         * modules/gettimeofday (configure.ac): Declare indicator.
29661         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
29662         in use.
29663
29664         closein-tests: silence compiler warning
29665         * tests/test-closein.c (main): Ignore fread result.
29666         * modules/closein-tests (Depends-on): Add ignore-value.
29667
29668         tests: silence warning about system return
29669         * tests/test-areadlink-with-size.c (main): Ignore system result.
29670         * tests/test-areadlink.c (main): Likewise.
29671         * tests/test-areadlinkat-with-size.c (main): Likewise.
29672         * tests/test-areadlinkat.c (main): Likewise.
29673         * tests/test-canonicalize-lgpl.c (main): Likewise.
29674         * tests/test-canonicalize.c (main): Likewise.
29675         * tests/test-chown.c (main): Likewise.
29676         * tests/test-fchownat.c (main): Likewise.
29677         * tests/test-fdutimensat.c (main): Likewise.
29678         * tests/test-fstatat.c (main): Likewise.
29679         * tests/test-futimens.c (main): Likewise.
29680         * tests/test-lchown.c (main): Likewise.
29681         * tests/test-link.c (main): Likewise.
29682         * tests/test-linkat.c (main): Likewise.
29683         * tests/test-lstat.c (main): Likewise.
29684         * tests/test-mkdir.c (main): Likewise.
29685         * tests/test-mkdirat.c (main): Likewise.
29686         * tests/test-mkfifo.c (main): Likewise.
29687         * tests/test-mkfifoat.c (main): Likewise.
29688         * tests/test-mknod.c (main): Likewise.
29689         * tests/test-readlink.c (main): Likewise.
29690         * tests/test-remove.c (main): Likewise.
29691         * tests/test-rename.c (main): Likewise.
29692         * tests/test-renameat.c (main): Likewise.
29693         * tests/test-rmdir.c (main): Likewise.
29694         * tests/test-symlink.c (main): Likewise.
29695         * tests/test-symlinkat.c (main): Likewise.
29696         * tests/test-unlink.c (main): Likewise.
29697         * tests/test-unlinkat.c (main): Likewise.
29698         * tests/test-utimens.c (main): Likewise.
29699         * tests/test-utimensat.c (main): Likewise.
29700         * modules/areadlink-tests (Depends-on): Add ignore-value.
29701         * modules/areadlink-with-size-tests (Depends-on): Likewise.
29702         * modules/areadlinkat-tests (Depends-on): Likewise.
29703         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
29704         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
29705         * modules/canonicalize-tests (Depends-on): Likewise.
29706         * modules/chown-tests (Depends-on): Likewise.
29707         * modules/fdutimensat-tests (Depends-on): Likewise.
29708         * modules/futimens-tests (Depends-on): Likewise.
29709         * modules/lchown-tests (Depends-on): Likewise.
29710         * modules/link-tests (Depends-on): Likewise.
29711         * modules/linkat-tests (Depends-on): Likewise.
29712         * modules/lstat-tests (Depends-on): Likewise.
29713         * modules/mkdir-tests (Depends-on): Likewise.
29714         * modules/mkfifo-tests (Depends-on): Likewise.
29715         * modules/mkfifoat-tests (Depends-on): Likewise.
29716         * modules/mknod-tests (Depends-on): Likewise.
29717         * modules/openat-tests (Depends-on): Likewise.
29718         * modules/readlink-tests (Depends-on): Likewise.
29719         * modules/remove-tests (Depends-on): Likewise.
29720         * modules/rename-tests (Depends-on): Likewise.
29721         * modules/renameat-tests (Depends-on): Likewise.
29722         * modules/rmdir-tests (Depends-on): Likewise.
29723         * modules/symlink-tests (Depends-on): Likewise.
29724         * modules/symlinkat-tests (Depends-on): Likewise.
29725         * modules/unlink-tests (Depends-on): Likewise.
29726         * modules/utimens-tests (Depends-on): Likewise.
29727         * modules/utimensat-tests (Depends-on): Likewise.
29728
29729 2010-01-31  Bruno Haible  <bruno@clisp.org>
29730
29731         Perform the same test for many <math.h> functions.
29732         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
29733         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
29734         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
29735         of gl_MATHFUNC.
29736         * modules/acos (configure.ac): Likewise.
29737         * modules/asin (configure.ac): Likewise.
29738         * modules/atan (configure.ac): Likewise.
29739         * modules/atan2 (configure.ac): Likewise.
29740         * modules/cbrt (configure.ac): Likewise.
29741         * modules/copysign (configure.ac): Likewise.
29742         * modules/cos (configure.ac): Likewise.
29743         * modules/cosh (configure.ac): Likewise.
29744         * modules/erf (configure.ac): Likewise.
29745         * modules/erfc (configure.ac): Likewise.
29746         * modules/exp (configure.ac): Likewise.
29747         * modules/fmod (configure.ac): Likewise.
29748         * modules/hypot (configure.ac): Likewise.
29749         * modules/j0 (configure.ac): Likewise.
29750         * modules/j1 (configure.ac): Likewise.
29751         * modules/jn (configure.ac): Likewise.
29752         * modules/lgamma (configure.ac): Likewise.
29753         * modules/log (configure.ac): Likewise.
29754         * modules/log10 (configure.ac): Likewise.
29755         * modules/log1p (configure.ac): Likewise.
29756         * modules/pow (configure.ac): Likewise.
29757         * modules/remainder (configure.ac): Likewise.
29758         * modules/sin (configure.ac): Likewise.
29759         * modules/sinh (configure.ac): Likewise.
29760         * modules/tan (configure.ac): Likewise.
29761         * modules/tanh (configure.ac): Likewise.
29762         * modules/y0 (configure.ac): Likewise.
29763         * modules/y1 (configure.ac): Likewise.
29764         * modules/yn (configure.ac): Likewise.
29765         Suggested by Paolo Bonzini.
29766
29767 2010-01-31  Bruno Haible  <bruno@clisp.org>
29768
29769         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
29770
29771 2010-01-31  Bruno Haible  <bruno@clisp.org>
29772
29773         Work around getdelim() bug on FreeBSD 8.0.
29774         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
29775         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
29776         not work.
29777         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
29778         is 1.
29779         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
29780         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
29781         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
29782         a non-zero size.
29783         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
29784
29785 2010-01-31  Bruno Haible  <bruno@clisp.org>
29786
29787         Work around getline() bug on FreeBSD 8.0.
29788         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
29789         and a non-zero size.
29790         * tests/test-getline.c (main): Likewise.
29791         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
29792         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
29793
29794 2010-01-28  Eric Blake  <ebb9@byu.net>
29795
29796         regex: fix build failure
29797         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
29798         platforms.
29799
29800 2010-01-28  Jim Meyering  <meyering@redhat.com>
29801
29802         regex: do not ignore memory allocation failure
29803         * lib/regex_internal.c (create_cd_newstate): Detect
29804         re_node_set_init_copy failure.   Extracted from glibc commit
29805         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
29806
29807         regex: sync more white-space changes from libc
29808         * lib/regex_internal.c: White-space only changes.
29809         * lib/regexec.c: Likewise.
29810
29811         regex: add many uses of __attribute_warn_unused_result__
29812         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
29813         * lib/regexec.c: Likewise.
29814         Extracted from a messy glibc commit.
29815
29816         regcomp.c: spelling and merge-artifact from glibc
29817         * lib/regcomp.c: Merge remainder of glibc's
29818         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
29819
29820         regcomp.c: sync white-space changes from glibc
29821         * lib/regcomp.c: Merge to accommodate white space
29822         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
29823
29824         regcomp.c: do not ignore internal return values
29825         * lib/regcomp.c: Do not ignore internal return values.
29826         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
29827         but without its white-space changes and spelling fixes.
29828
29829         regex_internal.h: define __attribute_warn_unused_result__
29830         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
29831
29832         maint: add a syntax-check rule to check for vulnerable Makefile.in
29833         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
29834
29835 2010-01-27  Jim Meyering  <meyering@redhat.com>
29836
29837         ncftpput-ftp: clean up spaces
29838         * build-aux/ncftpput-ftp: Make Copyright line consistent.
29839         Remove trailing blanks.
29840
29841 2010-01-27  Simon Josefsson  <simon@josefsson.org>
29842
29843         * build-aux/git-version-gen: Fix copyright statement.
29844         * build-aux/gnupload: Likewise.
29845         * tests/test-arcfour.c: Likewise.
29846         * tests/test-arctwo.c: Likewise.
29847         * tests/test-count-one-bits.c: Likewise.
29848         * tests/test-crc.c: Likewise.
29849         * tests/test-des.c: Likewise.
29850         * tests/test-gc-arcfour.c: Likewise.
29851         * tests/test-gc-arctwo.c: Likewise.
29852         * tests/test-gc-des.c: Likewise.
29853         * tests/test-gc-hmac-md5.c: Likewise.
29854         * tests/test-gc-hmac-sha1.c: Likewise.
29855         * tests/test-gc-md2.c: Likewise.
29856         * tests/test-gc-md4.c: Likewise.
29857         * tests/test-gc-md5.c: Likewise.
29858         * tests/test-gc-pbkdf2-sha1.c: Likewise.
29859         * tests/test-gc-rijndael.c: Likewise.
29860         * tests/test-gc-sha1.c: Likewise.
29861         * tests/test-gc.c: Likewise.
29862         * tests/test-gethostname.c: Likewise.
29863         * tests/test-gettimeofday.c: Likewise.
29864         * tests/test-hash.c: Likewise.
29865         * tests/test-hmac-md5.c: Likewise.
29866         * tests/test-hmac-sha1.c: Likewise.
29867         * tests/test-md2.c: Likewise.
29868         * tests/test-md4.c: Likewise.
29869         * tests/test-md5.c: Likewise.
29870         * tests/test-memchr.c: Likewise.
29871         * tests/test-memchr2.c: Likewise.
29872         * tests/test-memcmp.c: Likewise.
29873         * tests/test-memmem.c: Likewise.
29874         * tests/test-memrchr.c: Likewise.
29875         * tests/test-rawmemchr.c: Likewise.
29876         * tests/test-read-file.c: Likewise.
29877         * tests/test-rijndael.c: Likewise.
29878         * tests/test-sockets.c: Likewise.
29879         * tests/test-strchrnul.c: Likewise.
29880         * tests/test-strstr.c: Likewise.
29881         * tests/test-strtod.c: Likewise.
29882         * build-aux/ncftpput-ftp: Likewise.
29883
29884 2010-01-26  Eric Blake  <ebb9@byu.net>
29885
29886         ignore-value: update recommended header name
29887         * modules/ignore-value (Include): Only use <> for headers that
29888         exist in glibc.
29889
29890 2010-01-26  Jim Meyering  <meyering@redhat.com>
29891
29892         test-userspec.c: avoid compiler warnings
29893         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
29894         and "initialization discards qualifiers..." warnings.
29895         Put the first "uid" in its own scope, and make char* members "const".
29896
29897 2010-01-25  Bruno Haible  <bruno@clisp.org>
29898
29899         gnulib-tool: Make warning diagnostics consistent.
29900         * gnulib-tool (func_warning): New function.
29901         Use it everywhere where gnulib-tool produces output to stderr and it is
29902         not a fatal error.
29903
29904 2010-01-25  Bruno Haible  <bruno@clisp.org>
29905
29906         Fix test dependencies.
29907         * modules/xstrtol-tests (Depends-on): Add inttypes.
29908         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
29909
29910 2010-01-25 Pádraig Brady <P@draigBrady.com>
29911
29912         syntax-check: detect incorrect boolean macro values in config.h
29913         * modules/maintainer-makefile (configure.ac): Parameterize the location
29914         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
29915         The logic is from Eric Blake and the location indicated by Jim Meyering.
29916         Note the more natural CONFIG_HEADER name is prohibited by automake
29917         for backwards compatibility reasons.
29918         * top/maint.mk (sc_Wundef_boolean): New rule.
29919
29920 2010-01-25  Jim Meyering  <meyering@redhat.com>
29921
29922         bootstrap: detect MacOS 10.6's shasum, too
29923         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
29924         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
29925
29926 2010-01-23  Jim Meyering  <meyering@redhat.com>
29927
29928         xstrtoll: new module
29929         * modules/xstrtoll: New file.
29930         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
29931         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
29932         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
29933         ./configure fails if you use this module and lack "long long".
29934         * modules/xstrtoll-tests: New module.
29935         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
29936         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
29937         new init.sh-based test framework.
29938
29939 2010-01-24  Bruno Haible  <bruno@clisp.org>
29940
29941         Tests for module 'yn'.
29942         * modules/yn-tests: New file.
29943         * tests/test-yn.c: New file.
29944
29945         Tests for module 'y1'.
29946         * modules/y1-tests: New file.
29947         * tests/test-y1.c: New file.
29948
29949         Tests for module 'y0'.
29950         * modules/y0-tests: New file.
29951         * tests/test-y0.c: New file.
29952
29953         Tests for module 'tanh'.
29954         * modules/tanh-tests: New file.
29955         * tests/test-tanh.c: New file.
29956
29957         Tests for module 'tan'.
29958         * modules/tan-tests: New file.
29959         * tests/test-tan.c: New file.
29960
29961         Tests for module 'sqrt'.
29962         * modules/sqrt-tests: New file.
29963         * tests/test-sqrt.c: New file.
29964
29965         Tests for module 'sinh'.
29966         * modules/sinh-tests: New file.
29967         * tests/test-sinh.c: New file.
29968
29969         Tests for module 'sin'.
29970         * modules/sin-tests: New file.
29971         * tests/test-sin.c: New file.
29972
29973         Tests for module 'rint'.
29974         * modules/rint-tests: New file.
29975         * tests/test-rint.c: New file.
29976
29977         Tests for module 'remainder'.
29978         * modules/remainder-tests: New file.
29979         * tests/test-remainder.c: New file.
29980
29981         Tests for module 'pow'.
29982         * modules/pow-tests: New file.
29983         * tests/test-pow.c: New file.
29984
29985         Tests for module 'nextafter'.
29986         * modules/nextafter-tests: New file.
29987         * tests/test-nextafter.c: New file.
29988
29989         Tests for module 'modf'.
29990         * modules/modf-tests: New file.
29991         * tests/test-modf.c: New file.
29992
29993         Tests for module 'logb'.
29994         * modules/logb-tests: New file.
29995         * tests/test-logb.c: New file.
29996
29997         Tests for module 'log1p'.
29998         * modules/log1p-tests: New file.
29999         * tests/test-log1p.c: New file.
30000
30001         Tests for module 'log10'.
30002         * modules/log10-tests: New file.
30003         * tests/test-log10.c: New file.
30004
30005         Tests for module 'log'.
30006         * modules/log-tests: New file.
30007         * tests/test-log.c: New file.
30008
30009         Tests for module 'lgamma'.
30010         * modules/lgamma-tests: New file.
30011         * tests/test-lgamma.c: New file.
30012
30013         Tests for module 'ldexp'.
30014         * modules/ldexp-tests: New file.
30015         * tests/test-ldexp.c: New file.
30016
30017         Tests for module 'jn'.
30018         * modules/jn-tests: New file.
30019         * tests/test-jn.c: New file.
30020
30021         Tests for module 'j1'.
30022         * modules/j1-tests: New file.
30023         * tests/test-j1.c: New file.
30024
30025         Tests for module 'j0'.
30026         * modules/j0-tests: New file.
30027         * tests/test-j0.c: New file.
30028
30029         Tests for module 'hypot'.
30030         * modules/hypot-tests: New file.
30031         * tests/test-hypot.c: New file.
30032
30033         Tests for module 'fmod'.
30034         * modules/fmod-tests: New file.
30035         * tests/test-fmod.c: New file.
30036
30037         Tests for module 'fabs'.
30038         * modules/fabs-tests: New file.
30039         * tests/test-fabs.c: New file.
30040
30041         Tests for module 'exp'.
30042         * modules/exp-tests: New file.
30043         * tests/test-exp.c: New file.
30044
30045         Tests for module 'erfc'.
30046         * modules/erfc-tests: New file.
30047         * tests/test-erfc.c: New file.
30048
30049         Tests for module 'erf'.
30050         * modules/erf-tests: New file.
30051         * tests/test-erf.c: New file.
30052
30053         Tests for module 'cosh'.
30054         * modules/cosh-tests: New file.
30055         * tests/test-cosh.c: New file.
30056
30057         Tests for module 'cos'.
30058         * modules/cos-tests: New file.
30059         * tests/test-cos.c: New file.
30060
30061         Tests for module 'copysign'.
30062         * modules/copysign-tests: New file.
30063         * tests/test-copysign.c: New file.
30064
30065         Tests for module 'cbrt'.
30066         * modules/cbrt-tests: New file.
30067         * tests/test-cbrt.c: New file.
30068
30069         Tests for module 'atan2'.
30070         * modules/atan2-tests: New file.
30071         * tests/test-atan2.c: New file.
30072
30073         Tests for module 'atan'.
30074         * modules/atan-tests: New file.
30075         * tests/test-atan.c: New file.
30076
30077         Tests for module 'asin'.
30078         * modules/asin-tests: New file.
30079         * tests/test-asin.c: New file.
30080
30081         Tests for module 'acos'.
30082         * modules/acos-tests: New file.
30083         * tests/test-acos.c: New file.
30084
30085 2010-01-24  Bruno Haible  <bruno@clisp.org>
30086
30087         Fix tests for common <math.h> functions.
30088         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
30089         code snippet that references the function pointer, rather than merely
30090         calling the function. Substitute the FUNC_LIBM variable.
30091         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
30092         * modules/acos (configure.ac): Likewise.
30093         * modules/asin (configure.ac): Likewise.
30094         * modules/atan (configure.ac): Likewise.
30095         * modules/atan2 (configure.ac): Likewise.
30096         * modules/cbrt (configure.ac): Likewise.
30097         * modules/copysign (configure.ac): Likewise.
30098         * modules/cos (configure.ac): Likewise.
30099         * modules/cosh (configure.ac): Likewise.
30100         * modules/erf (configure.ac): Likewise.
30101         * modules/erfc (configure.ac): Likewise.
30102         * modules/exp (configure.ac): Likewise.
30103         * modules/fabs (configure.ac): Likewise.
30104         * modules/fmod (configure.ac): Likewise.
30105         * modules/hypot (configure.ac): Likewise.
30106         * modules/j0 (configure.ac): Likewise.
30107         * modules/j1 (configure.ac): Likewise.
30108         * modules/jn (configure.ac): Likewise.
30109         * modules/ldexp (configure.ac): Likewise.
30110         * modules/lgamma (configure.ac): Likewise.
30111         * modules/log (configure.ac): Likewise.
30112         * modules/log10 (configure.ac): Likewise.
30113         * modules/log1p (configure.ac): Likewise.
30114         * modules/logb (configure.ac): Likewise.
30115         * modules/modf (configure.ac): Likewise.
30116         * modules/nextafter (configure.ac): Likewise.
30117         * modules/pow (configure.ac): Likewise.
30118         * modules/remainder (configure.ac): Likewise.
30119         * modules/rint (configure.ac): Likewise.
30120         * modules/sin (configure.ac): Likewise.
30121         * modules/sinh (configure.ac): Likewise.
30122         * modules/tan (configure.ac): Likewise.
30123         * modules/tanh (configure.ac): Likewise.
30124         * modules/y0 (configure.ac): Likewise.
30125         * modules/y1 (configure.ac): Likewise.
30126         * modules/yn (configure.ac): Likewise.
30127
30128 2010-01-24  Bruno Haible  <bruno@clisp.org>
30129
30130         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
30131         * tests/test-acosl.c (x): New variable.
30132         (main): Store argument in x and fetch it from x.
30133         * tests/test-asinl.c (x): New variable.
30134         (main): Store argument in x and fetch it from x.
30135         * tests/test-atanl.c (x): New variable.
30136         (main): Store argument in x and fetch it from x.
30137         * tests/test-cosl.c (x): New variable.
30138         (main): Store argument in x and fetch it from x.
30139         * tests/test-expl.c (x): New variable.
30140         (main): Store argument in x and fetch it from x.
30141         * tests/test-logl.c (x): New variable.
30142         (main): Store argument in x and fetch it from x.
30143         * tests/test-sinl.c (x): New variable.
30144         (main): Store argument in x and fetch it from x.
30145         * tests/test-sqrtl.c (x): New variable.
30146         (main): Store argument in x and fetch it from x.
30147         * tests/test-tanl.c (x): New variable.
30148         (main): Store argument in x and fetch it from x.
30149
30150 2010-01-24  Bruno Haible  <bruno@clisp.org>
30151
30152         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
30153         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
30154         assignments to the initial TESTS_ENVIRONMENT.
30155         * doc/gnulib.texi (Unit test modules): Document it.
30156         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
30157         TESTS_ENVIRONMENT.
30158         * modules/btowc-tests (Makefile.am): Likewise.
30159         * modules/c-stack-tests (Makefile.am): Likewise.
30160         * modules/c-strcase-tests (Makefile.am): Likewise.
30161         * modules/copy-file-tests (Makefile.am): Likewise.
30162         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
30163         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
30164         * modules/mbrtowc-tests (Makefile.am): Likewise.
30165         * modules/mbscasecmp-tests (Makefile.am): Likewise.
30166         * modules/mbscasestr-tests (Makefile.am): Likewise.
30167         * modules/mbschr-tests (Makefile.am): Likewise.
30168         * modules/mbscspn-tests (Makefile.am): Likewise.
30169         * modules/mbsinit-tests (Makefile.am): Likewise.
30170         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
30171         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
30172         * modules/mbspbrk-tests (Makefile.am): Likewise.
30173         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
30174         * modules/mbsrchr-tests (Makefile.am): Likewise.
30175         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
30176         * modules/mbsspn-tests (Makefile.am): Likewise.
30177         * modules/mbsstr-tests (Makefile.am): Likewise.
30178         * modules/nl_langinfo-tests (Makefile.am): Likewise.
30179         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
30180         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
30181         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
30182         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
30183         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
30184         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
30185         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
30186         * modules/wcrtomb-tests (Makefile.am): Likewise.
30187         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
30188         * modules/wcsrtombs-tests (Makefile.am): Likewise.
30189         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
30190         assignments from TESTS_ENVIRONMENT.
30191         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
30192         augmentation.
30193         * modules/argp-version-etc-tests (Makefile.am): Likewise.
30194         * modules/atexit-tests (Makefile.am): Likewise.
30195         * modules/binary-io-tests (Makefile.am): Likewise.
30196         * modules/closein-tests (Makefile.am): Likewise.
30197         * modules/dprintf-posix-tests (Makefile.am): Likewise.
30198         * modules/exclude-tests (Makefile.am): Likewise.
30199         * modules/fflush-tests (Makefile.am): Likewise.
30200         * modules/fpending-tests (Makefile.am): Likewise.
30201         * modules/fprintf-posix-tests (Makefile.am): Likewise.
30202         * modules/freadahead-tests (Makefile.am): Likewise.
30203         * modules/freadptr-tests (Makefile.am): Likewise.
30204         * modules/freadseek-tests (Makefile.am): Likewise.
30205         * modules/fseek-tests (Makefile.am): Likewise.
30206         * modules/fseeko-tests (Makefile.am): Likewise.
30207         * modules/ftell-tests (Makefile.am): Likewise.
30208         * modules/ftello-tests (Makefile.am): Likewise.
30209         * modules/idpriv-drop-tests (Makefile.am): Likewise.
30210         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
30211         * modules/lseek-tests (Makefile.am): Likewise.
30212         * modules/parse-duration-tests (Makefile.am): Likewise.
30213         * modules/perror-tests (Makefile.am): Likewise.
30214         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
30215         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
30216         * modules/pipe-tests (Makefile.am): Likewise.
30217         * modules/pread-tests (Makefile.am): Likewise.
30218         * modules/printf-posix-tests (Makefile.am): Likewise.
30219         * modules/select-tests (Makefile.am): Likewise.
30220         * modules/sigpipe-tests (Makefile.am): Likewise.
30221         * modules/tsearch-tests (Makefile.am): Likewise.
30222         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
30223         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
30224         * modules/uniname/uniname-tests (Makefile.am): Likewise.
30225         * modules/uniwidth/width-tests (Makefile.am): Likewise.
30226         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
30227         * modules/version-etc-tests (Makefile.am): Likewise.
30228         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
30229         * modules/vprintf-posix-tests (Makefile.am): Likewise.
30230         * modules/xalloc-die-tests (Makefile.am): Likewise.
30231         * modules/xprintf-posix-tests (Makefile.am): Likewise.
30232         * modules/xstrtoimax-tests (Makefile.am): Likewise.
30233         * modules/xstrtol-tests (Makefile.am): Likewise.
30234         * modules/xstrtoumax-tests (Makefile.am): Likewise.
30235         * modules/yesno-tests (Makefile.am): Likewise.
30236         Suggested by Jim Meyering.
30237
30238 2010-01-24  Bruno Haible  <bruno@clisp.org>
30239
30240         More documentation.
30241         * doc/gnulib.texi (Writing modules): New chapter.
30242         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
30243         the new chapter.
30244
30245 2010-01-24  Jim Meyering  <meyering@redhat.com>
30246
30247         maint.mk: do not prepend "./" after filtering
30248         * top/maint.mk (_prepend_srcdir_prefix): New variable
30249         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
30250         "./" when $(srcdir) is ".".
30251
30252         define STREQ(a,b) consistently, removing useless parentheses
30253         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
30254         since the only risk is that "a" or "b" contains an unparenthesized
30255         comma, but if either did that, STREQ would have 3 or more arguments.
30256         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
30257         * lib/fts.c (STREQ): Remove unnecessary parentheses.
30258         * lib/hash-triple.c (STREQ): Likewise.
30259         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
30260         * lib/getugroups.c (STREQ): Likewise.
30261
30262 2010-01-23  Jim Meyering  <meyering@redhat.com>
30263
30264         maint.mk: fix syntax-check in a non-srcdir build directory
30265         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
30266         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
30267
30268 2010-01-22  Jim Meyering  <meyering@redhat.com>
30269
30270         userspec: add unit tests
30271         * tests/test-userspec.c: New file.
30272         * modules/userspec-tests: Likewise.
30273
30274 2010-01-21  Jim Meyering  <meyering@redhat.com>
30275
30276         maint.mk: handle source file names containing "." robustly
30277         * top/maint.mk (_dot_escaped_srcdir): Define.
30278         (VC_LIST): Use it in LHS of sed substitution.
30279
30280 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
30281
30282         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
30283         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
30284         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
30285         from a non-srcdir build.
30286
30287 2010-01-20  Eric Blake  <ebb9@byu.net>
30288
30289         warn-on-use: use instead of link-warning
30290         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
30291         * modules/unistd (Depends-on, Makefile.am): Likewise.
30292         * modules/arpa_inet (Depends-on): Replace link-warning with
30293         warn-on-use.
30294         (Makefile.am): Update rules accordingly.
30295         * modules/ctype (Depends-on, Makefile.am): Likewise.
30296         * modules/dirent (Depends-on, Makefile.am): Likewise.
30297         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
30298         * modules/inttypes (Depends-on, Makefile.am): Likewise.
30299         * modules/langinfo (Depends-on, Makefile.am): Likewise.
30300         * modules/locale (Depends-on, Makefile.am): Likewise.
30301         * modules/math (Depends-on, Makefile.am): Likewise.
30302         * modules/search (Depends-on, Makefile.am): Likewise.
30303         * modules/signal (Depends-on, Makefile.am): Likewise.
30304         * modules/spawn (Depends-on, Makefile.am): Likewise.
30305         * modules/stdlib (Depends-on, Makefile.am): Likewise.
30306         * modules/string (Depends-on, Makefile.am): Likewise.
30307         * modules/strings (Depends-on, Makefile.am): Likewise.
30308         * modules/sys_file (Depends-on, Makefile.am): Likewise.
30309         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
30310         * modules/sys_select (Depends-on, Makefile.am): Likewise.
30311         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
30312         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
30313         * modules/sys_times (Depends-on, Makefile.am): Likewise.
30314         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
30315         * modules/wchar (Depends-on, Makefile.am): Likewise.
30316         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
30317         should be poisoned.
30318         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
30319         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
30320         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
30321         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
30322         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
30323         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
30324         * m4/math_h.m4 (gl_MATH_H): Likewise.
30325         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
30326         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
30327         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
30328         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
30329         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
30330         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
30331         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
30332         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
30333         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
30334         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30335         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
30336         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
30337         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
30338         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
30339         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
30340         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
30341         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
30342         GL_LINK_WARNING.
30343         * lib/ctype.in.h: Likewise.
30344         * lib/dirent.in.h: Likewise.
30345         * lib/fcntl.in.h: Likewise.
30346         * lib/inttypes.in.h: Likewise.
30347         * lib/langinfo.in.h: Likewise.
30348         * lib/locale.in.h: Likewise.
30349         * lib/math.in.h: Likewise.
30350         * lib/search.in.h: Likewise.
30351         * lib/signal.in.h: Likewise.
30352         * lib/spawn.in.h: Likewise.
30353         * lib/stdio.in.h: Likewise.
30354         * lib/stdlib.in.h: Likewise.
30355         * lib/string.in.h: Likewise.
30356         * lib/strings.in.h: Likewise.
30357         * lib/sys_file.in.h: Likewise.
30358         * lib/sys_ioctl.in.h: Likewise.
30359         * lib/sys_select.in.h: Likewise.
30360         * lib/sys_socket.in.h: Likewise.
30361         * lib/sys_stat.in.h: Likewise.
30362         * lib/sys_times.in.h: Likewise.
30363         * lib/sys_utsname.in.h: Likewise.
30364         * lib/unistd.in.h: Likewise.
30365         * lib/wchar.in.h: Likewise.
30366
30367 2010-01-20  Bruno Haible  <bruno@clisp.org>
30368
30369         Avoid duplicate -lm.
30370         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
30371         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
30372         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
30373         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
30374         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
30375         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
30376         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
30377         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
30378         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
30379         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
30380         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
30381         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
30382         Reported by Paolo Bonzini.
30383
30384 2010-01-19  Bruno Haible  <bruno@clisp.org>
30385
30386         langinfo, nl_langinfo: Relicense under LGPLv2+.
30387         * modules/langinfo (License): Change to LGPLv2+.
30388         * modules/nl_langinfo (License): Likewise.
30389         Patch by David Lutterkort <lutter@redhat.com>.
30390
30391 2010-01-19  Bruno Haible  <bruno@clisp.org>
30392
30393         Avoid compilation error with cc on OSF/1 5.1.
30394         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
30395         statement, not before.
30396         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30397
30398 2010-01-18  Bruno Haible  <bruno@clisp.org>
30399
30400         Avoid a link error due to the __printf__ symbol.
30401         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
30402         and 2.6.x.
30403         (__format__, __printf__): Remove definitions.
30404         * lib/argp-fmtstream.h: Likewise.
30405         * lib/argp.h: Likewise.
30406         * lib/error.h: Likewise.
30407         * lib/vasnprintf.h: Likewise.
30408         * lib/xprintf.h: Likewise.
30409         * lib/xvasprintf.h: Likewise.
30410         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30411
30412 2010-01-18  Bruno Haible  <bruno@clisp.org>
30413
30414         Tests for module 'tanl'.
30415         * modules/tanl-tests: New file.
30416         * tests/test-tanl.c: New file.
30417
30418         Tests for module 'sqrtl'.
30419         * modules/sqrtl-tests: New file.
30420         * tests/test-sqrtl.c: New file.
30421
30422         Tests for module 'sinl'.
30423         * modules/sinl-tests: New file.
30424         * tests/test-sinl.c: New file.
30425
30426         Tests for module 'logl'.
30427         * modules/logl-tests: New file.
30428         * tests/test-logl.c: New file.
30429
30430         Tests for module 'expl'.
30431         * modules/expl-tests: New file.
30432         * tests/test-expl.c: New file.
30433
30434         Tests for module 'cosl'.
30435         * modules/cosl-tests: New file.
30436         * tests/test-cosl.c: New file.
30437
30438         Tests for module 'atanl'.
30439         * modules/atanl-tests: New file.
30440         * tests/test-atanl.c: New file.
30441
30442         Tests for module 'asinl'.
30443         * modules/asinl-tests: New file.
30444         * tests/test-asinl.c: New file.
30445
30446         Tests for module 'acosl'.
30447         * modules/acosl-tests: New file.
30448         * tests/test-acosl.c: New file.
30449
30450         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
30451         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
30452         tanl): Use the standard gnulib idiom.
30453         * lib/cosl.c: Don't include trigl.c and sincosl.c.
30454         * lib/sinl.c: Likewise.
30455         * lib/tanl.c: Don't include trigl.c.
30456         (kernel_tanl): Make static.
30457         * lib/sincosl.c: Include trigl.h first.
30458         * lib/trigl.c: Likewise.
30459         * m4/acosl.m4: New file.
30460         * m4/asinl.m4: New file.
30461         * m4/atanl.m4: New file.
30462         * m4/cosl.m4: New file.
30463         * m4/expl.m4: New file.
30464         * m4/logl.m4: New file.
30465         * m4/sinl.m4: New file.
30466         * m4/sqrtl.m4: New file.
30467         * m4/tanl.m4: New file.
30468         * m4/mathl.m4: Remove file.
30469         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
30470         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
30471         Don't initialize GNULIB_MATHL.
30472         * modules/acosl: New file.
30473         * modules/asinl: New file.
30474         * modules/atanl: New file.
30475         * modules/cosl: New file.
30476         * modules/expl: New file.
30477         * modules/logl: New file.
30478         * modules/sinl: New file.
30479         * modules/sqrtl: New file.
30480         * modules/tanl: New file.
30481         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
30482         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
30483         substitute GNULIB_MATHL.
30484         * modules/mathl: Rewritten.
30485         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
30486         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
30487         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
30488         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
30489         * doc/posix-functions/expl.texi: Mention the 'expl' module.
30490         * doc/posix-functions/logl.texi: Mention the 'logl' module.
30491         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
30492         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
30493         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
30494
30495 2010-01-18  Bruno Haible  <bruno@clisp.org>
30496
30497         sqrt: Make gl_FUNC_SQRT requirable.
30498         * m4/sqrt.m4: New file.
30499         * modules/sqrt (Files): Add it.
30500         (configure.ac): Invoke gl_FUNC_SQRT.
30501
30502 2010-01-18  Bruno Haible  <bruno@clisp.org>
30503
30504         New modules for common <math.h> functions.
30505         * m4/mathfunc.m4: New file.
30506         * modules/acos: New file.
30507         * modules/asin: New file.
30508         * modules/atan: New file.
30509         * modules/atan2: New file.
30510         * modules/cbrt: New file.
30511         * modules/copysign: New file.
30512         * modules/cos: New file.
30513         * modules/cosh: New file.
30514         * modules/erf: New file.
30515         * modules/erfc: New file.
30516         * modules/exp: New file.
30517         * modules/fabs: New file.
30518         * modules/fmod: New file.
30519         * modules/hypot: New file.
30520         * modules/j0: New file.
30521         * modules/j1: New file.
30522         * modules/jn: New file.
30523         * modules/ldexp: New file.
30524         * modules/lgamma: New file.
30525         * modules/log: New file.
30526         * modules/log10: New file.
30527         * modules/log1p: New file.
30528         * modules/logb: New file.
30529         * modules/modf: New file.
30530         * modules/nextafter: New file.
30531         * modules/pow: New file.
30532         * modules/remainder: New file.
30533         * modules/rint: New file.
30534         * modules/sin: New file.
30535         * modules/sinh: New file.
30536         * modules/sqrt: New file.
30537         * modules/tan: New file.
30538         * modules/tanh: New file.
30539         * modules/y0: New file.
30540         * modules/y1: New file.
30541         * modules/yn: New file.
30542         * doc/posix-functions/acos.texi: Mention the 'acos' module.
30543         * doc/posix-functions/asin.texi: Mention the 'asin' module.
30544         * doc/posix-functions/atan.texi: Mention the 'atan' module.
30545         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
30546         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
30547         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
30548         * doc/posix-functions/cos.texi: Mention the 'cos' module.
30549         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
30550         * doc/posix-functions/erf.texi: Mention the 'erf' module.
30551         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
30552         * doc/posix-functions/exp.texi: Mention the 'exp' module.
30553         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
30554         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
30555         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
30556         * doc/posix-functions/j0.texi: Mention the 'j0' module.
30557         * doc/posix-functions/j1.texi: Mention the 'j1' module.
30558         * doc/posix-functions/jn.texi: Mention the 'jn' module.
30559         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
30560         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
30561         * doc/posix-functions/log.texi: Mention the 'log' module.
30562         * doc/posix-functions/log10.texi: Mention the 'log10' module.
30563         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
30564         * doc/posix-functions/logb.texi: Mention the 'logb' module.
30565         * doc/posix-functions/modf.texi: Mention the 'modf' module.
30566         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
30567         * doc/posix-functions/pow.texi: Mention the 'pow' module.
30568         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
30569         * doc/posix-functions/rint.texi: Mention the 'rint' module.
30570         * doc/posix-functions/sin.texi: Mention the 'sin' module.
30571         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
30572         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
30573         * doc/posix-functions/tan.texi: Mention the 'tan' module.
30574         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
30575         * doc/posix-functions/y0.texi: Mention the 'y0' module.
30576         * doc/posix-functions/y1.texi: Mention the 'y1' module.
30577         * doc/posix-functions/yn.texi: Mention the 'yn' module.
30578
30579 2010-01-18  Jim Meyering  <meyering@redhat.com>
30580
30581         ignore-value: relax license to LGPLv2+
30582         * modules/ignore-value (License): Relax to LGPLv2+.
30583
30584         getdate: don't leak when TZ contains two or more '"'s
30585         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
30586         double quote in TZ after the first one.
30587
30588         readtokens: do not leak internal token_lengths buffer
30589         * lib/readtokens.c (readtokens): Free the local, lengths,
30590         when the supplied "token_lengths" parameter is NULL.
30591
30592 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30593
30594         Fix a couple of missing LIBTHREAD link failures on AIX.
30595         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
30596         $(LIBTHREAD).
30597         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
30598
30599         Link test-poll against INET_PTON_LIB.
30600         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
30601         for inet_pton on Solaris 10.
30602
30603 2010-01-17  Bruno Haible  <bruno@clisp.org>
30604
30605         unistdio/*-sprintf: Fix typo in module description.
30606         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
30607         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
30608         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
30609         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
30610         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
30611         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
30612         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
30613         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30614
30615 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30616
30617         gnulib-tool: fix filelist for AIX, HP-UX ksh.
30618         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
30619         variables in shell case patterns, for AIX and HP-UX ksh.
30620
30621         Split large sed scripts, for HP-UX sed.
30622         * modules/stdio: Split sed scripts around 50 sed commands,
30623         to avoid HP-UX limit of 99 commands, in the near future.
30624         * modules/string: Likewise.
30625         * modules/unistd: Likewise.
30626
30627         gnulib-tool: avoid writing in the current directory.
30628         * gnulib-tool (func_emit_lib_Makefile_am)
30629         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
30630         not in the current directory, so concurrent gnulib-tool
30631         instances do not interfere.
30632
30633 2010-01-16  Jim Meyering  <meyering@redhat.com>
30634
30635         doc: update users.txt
30636         * users.txt: Add grep.
30637         (diffutils, gzip): Update URLs.
30638
30639 2010-01-12  Bruno Haible  <bruno@clisp.org>
30640
30641         posix_spawn: Avoid test failure on Cygwin.
30642         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
30643         characters.
30644         Reported by Simon Josefsson.
30645
30646 2010-01-12  Bruno Haible  <bruno@clisp.org>
30647
30648         * tests/test-cond.c (main): When skipping the test, show the reason.
30649
30650 2010-01-12  Simon Josefsson  <simon@josefsson.org>
30651
30652         * lib/striconv.c (str_cd_iconv): Avoid if before free.
30653
30654 2010-01-12  Simon Josefsson  <simon@josefsson.org>
30655
30656         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
30657         VC_LIST_ALWAYS_EXCLUDE_REGEX.
30658
30659 2010-01-12  Eric Blake  <ebb9@byu.net>
30660
30661         build: guarantee AS_VAR_IF
30662         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
30663         (gl_AS_VAR_IF): Move...
30664         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
30665         Reported by Simon Josefsson.
30666
30667 2010-01-12  Simon Josefsson  <simon@josefsson.org>
30668
30669         * lib/stdio.in.h: Fix typo.
30670
30671 2010-01-12  Simon Josefsson  <simon@josefsson.org>
30672
30673         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
30674         libgpg-error.
30675
30676 2010-01-12  Simon Josefsson  <simon@josefsson.org>
30677
30678         * tests/test-xalloc-die.sh: Use $EXEEXT.
30679
30680 2010-01-12  Simon Josefsson  <simon@josefsson.org>
30681             Bruno Haible  <bruno@clisp.org>
30682
30683         getlogin, getlogin_r: Avoid test failure.
30684         * tests/test-getlogin.c: Include <stdio.h>.
30685         (main): Skip the test when the function fails because stdin is not a
30686         tty.
30687         * tests/test-getlogin_r.c: Include <stdio.h>.
30688         (main): Skip the test when the function fails because stdin is not a
30689         tty.
30690
30691 2010-01-11  Eric Blake  <ebb9@byu.net>
30692
30693         tests: avoid more large file warnings
30694         * tests/test-fflush.c: Avoid warning about ftell use.
30695         * tests/test-fseek.c: Avoid warning about fseek use.
30696
30697 2010-01-10  Bruno Haible  <bruno@clisp.org>
30698
30699         nproc: Work better on Linux when /proc and /sys are not mounted.
30700         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
30701         as lower bound when, on glibc/Linux systems,
30702         sysconf (_SC_NPROCESSORS_CONF) returns 1.
30703         Suggested by Pádraig Brady <P@draigbrady.com>.
30704         Reported by Dmitry V. Levin <ldv@altlinux.org>.
30705
30706         nproc: Refactor.
30707         * lib/nproc.c (num_processors_via_affinity_mask): New function,
30708         extracted from num_processors.
30709         (num_processors): Call it.
30710
30711 2010-01-11  Jim Meyering  <meyering@redhat.com>
30712
30713         utimecmp: avoid new warning from upcoming gcc-4.5.0
30714         * lib/utimecmp.c (BILLION): Define using #define rather than an
30715         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
30716
30717 2010-01-11  Eric Blake  <ebb9@byu.net>
30718
30719         math: add portability warnings for classification macros
30720         * modules/math (Depends-on): Add warn-on-use.
30721         (Makefile.am): Provide new substitutions.
30722         * m4/math_h.m4 (gl_MATH_H): Require inline.
30723         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
30724         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
30725         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
30726         implement warnings.
30727
30728         unistd: warn on use of environ without module
30729         * modules/unistd (Depends-on): Add warn-on-use.
30730         (Makefile.am): Provide new substitutions.
30731         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
30732         * lib/unistd.in.h (environ): Wrap with a warning helper function.
30733
30734         stdio: warn on suspicious uses
30735         * modules/stdio (Depends-on): Add warn-on-use.
30736         (Makefile.am): Provide new substitutions.
30737         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
30738         fseeko.
30739         * lib/stdio.in.h (gets): Always warn on use.
30740         (fseek, ftell): Adjust when warnings are issued, and honor
30741         _GL_NO_LARGE_FILES as a way to silence the warning.
30742         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
30743         any warning about large file offsets.
30744         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
30745         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
30746         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
30747         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
30748         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
30749         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
30750         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
30751         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
30752
30753         warn-on-use: new module
30754         * modules/warn-on-use: New file.
30755         * build-aux/warn-on-use.h: Likewise.
30756         * m4/warn-on-use.m4: Likewise.
30757         * MODULES.html.sh (Support for building): Mention it.
30758
30759 2010-01-10  Bruno Haible  <bruno@clisp.org>
30760
30761         Tests for module 'unistr/u32-strdup'.
30762         * modules/unistr/u32-strdup-tests: New file.
30763         * tests/unistr/test-u32-strdup.c: New file.
30764
30765         Tests for module 'unistr/u16-strdup'.
30766         * modules/unistr/u16-strdup-tests: New file.
30767         * tests/unistr/test-u16-strdup.c: New file.
30768
30769         Tests for module 'unistr/u8-strdup'.
30770         * modules/unistr/u8-strdup-tests: New file.
30771         * tests/unistr/test-u8-strdup.c: New file.
30772         * tests/unistr/test-strdup.h: New file.
30773
30774         Tests for module 'unistr/u32-strncmp'.
30775         * modules/unistr/u32-strncmp-tests: New file.
30776         * tests/unistr/test-u32-strncmp.c: New file.
30777
30778         Tests for module 'unistr/u16-strncmp'.
30779         * modules/unistr/u16-strncmp-tests: New file.
30780         * tests/unistr/test-u16-strncmp.c: New file.
30781
30782         Tests for module 'unistr/u8-strncmp'.
30783         * modules/unistr/u8-strncmp-tests: New file.
30784         * tests/unistr/test-u8-strncmp.c: New file.
30785         * tests/unistr/test-strncmp.h: New file.
30786
30787         Tests for module 'unistr/u32-strcoll'.
30788         * modules/unistr/u32-strcoll-tests: New file.
30789         * tests/unistr/test-u32-strcoll.c: New file.
30790
30791         Tests for module 'unistr/u16-strcoll'.
30792         * modules/unistr/u16-strcoll-tests: New file.
30793         * tests/unistr/test-u16-strcoll.c: New file.
30794
30795         Tests for module 'unistr/u8-strcoll'.
30796         * modules/unistr/u8-strcoll-tests: New file.
30797         * tests/unistr/test-u8-strcoll.c: New file.
30798
30799         Tests for module 'unistr/u32-strcmp'.
30800         * modules/unistr/u32-strcmp-tests: New file.
30801         * tests/unistr/test-u32-strcmp.c: New file.
30802         * tests/unistr/test-u32-strcmp.h: New file.
30803
30804         Tests for module 'unistr/u16-strcmp'.
30805         * modules/unistr/u16-strcmp-tests: New file.
30806         * tests/unistr/test-u16-strcmp.c: New file.
30807         * tests/unistr/test-u16-strcmp.h: New file.
30808
30809         Tests for module 'unistr/u8-strcmp'.
30810         * modules/unistr/u8-strcmp-tests: New file.
30811         * tests/unistr/test-u8-strcmp.c: New file.
30812         * tests/unistr/test-u8-strcmp.h: New file.
30813         * tests/unistr/test-strcmp.h: New file.
30814
30815         Tests for module 'unistr/u32-strncat'.
30816         * modules/unistr/u32-strncat-tests: New file.
30817         * tests/unistr/test-u32-strncat.c: New file.
30818
30819         Tests for module 'unistr/u16-strncat'.
30820         * modules/unistr/u16-strncat-tests: New file.
30821         * tests/unistr/test-u16-strncat.c: New file.
30822
30823         Tests for module 'unistr/u8-strncat'.
30824         * modules/unistr/u8-strncat-tests: New file.
30825         * tests/unistr/test-u8-strncat.c: New file.
30826         * tests/unistr/test-strncat.h: New file.
30827
30828         Tests for module 'unistr/u32-strcat'.
30829         * modules/unistr/u32-strcat-tests: New file.
30830         * tests/unistr/test-u32-strcat.c: New file.
30831
30832         Tests for module 'unistr/u16-strcat'.
30833         * modules/unistr/u16-strcat-tests: New file.
30834         * tests/unistr/test-u16-strcat.c: New file.
30835
30836         Tests for module 'unistr/u8-strcat'.
30837         * modules/unistr/u8-strcat-tests: New file.
30838         * tests/unistr/test-u8-strcat.c: New file.
30839         * tests/unistr/test-strcat.h: New file.
30840
30841         Tests for module 'unistr/u32-stpncpy'.
30842         * modules/unistr/u32-stpncpy-tests: New file.
30843         * tests/unistr/test-u32-stpncpy.c: New file.
30844
30845         Tests for module 'unistr/u16-stpncpy'.
30846         * modules/unistr/u16-stpncpy-tests: New file.
30847         * tests/unistr/test-u16-stpncpy.c: New file.
30848
30849         Tests for module 'unistr/u8-stpncpy'.
30850         * modules/unistr/u8-stpncpy-tests: New file.
30851         * tests/unistr/test-u8-stpncpy.c: New file.
30852         * tests/unistr/test-stpncpy.h: New file.
30853
30854         Tests for module 'unistr/u32-strncpy'.
30855         * modules/unistr/u32-strncpy-tests: New file.
30856         * tests/unistr/test-u32-strncpy.c: New file.
30857
30858         Tests for module 'unistr/u16-strncpy'.
30859         * modules/unistr/u16-strncpy-tests: New file.
30860         * tests/unistr/test-u16-strncpy.c: New file.
30861
30862         Tests for module 'unistr/u8-strncpy'.
30863         * modules/unistr/u8-strncpy-tests: New file.
30864         * tests/unistr/test-u8-strncpy.c: New file.
30865         * tests/unistr/test-strncpy.h: New file.
30866
30867         Tests for module 'unistr/u32-stpcpy'.
30868         * modules/unistr/u32-stpcpy-tests: New file.
30869         * tests/unistr/test-u32-stpcpy.c: New file.
30870
30871         Tests for module 'unistr/u16-stpcpy'.
30872         * modules/unistr/u16-stpcpy-tests: New file.
30873         * tests/unistr/test-u16-stpcpy.c: New file.
30874
30875         Tests for module 'unistr/u8-stpcpy'.
30876         * modules/unistr/u8-stpcpy-tests: New file.
30877         * tests/unistr/test-u8-stpcpy.c: New file.
30878         * tests/unistr/test-stpcpy.h: New file.
30879
30880         Tests for module 'unistr/u32-strcpy'.
30881         * modules/unistr/u32-strcpy-tests: New file.
30882         * tests/unistr/test-u32-strcpy.c: New file.
30883
30884         Tests for module 'unistr/u16-strcpy'.
30885         * modules/unistr/u16-strcpy-tests: New file.
30886         * tests/unistr/test-u16-strcpy.c: New file.
30887
30888         Tests for module 'unistr/u8-strcpy'.
30889         * modules/unistr/u8-strcpy-tests: New file.
30890         * tests/unistr/test-u8-strcpy.c: New file.
30891         * tests/unistr/test-strcpy.h: New file.
30892
30893         Tests for module 'unistr/u32-strnlen'.
30894         * modules/unistr/u32-strnlen-tests: New file.
30895         * tests/unistr/test-u32-strnlen.c: New file.
30896
30897         Tests for module 'unistr/u16-strnlen'.
30898         * modules/unistr/u16-strnlen-tests: New file.
30899         * tests/unistr/test-u16-strnlen.c: New file.
30900
30901         Tests for module 'unistr/u8-strnlen'.
30902         * modules/unistr/u8-strnlen-tests: New file.
30903         * tests/unistr/test-u8-strnlen.c: New file.
30904         * tests/unistr/test-strnlen.h: New file.
30905
30906         Tests for module 'unistr/u32-strlen'.
30907         * modules/unistr/u32-strlen-tests: New file.
30908         * tests/unistr/test-u32-strlen.c: New file.
30909
30910         Tests for module 'unistr/u16-strlen'.
30911         * modules/unistr/u16-strlen-tests: New file.
30912         * tests/unistr/test-u16-strlen.c: New file.
30913
30914         Tests for module 'unistr/u8-strlen'.
30915         * modules/unistr/u8-strlen-tests: New file.
30916         * tests/unistr/test-u8-strlen.c: New file.
30917
30918         Tests for module 'unistr/u32-prev'.
30919         * modules/unistr/u32-prev-tests: New file.
30920         * tests/unistr/test-u32-prev.c: New file.
30921
30922         Tests for module 'unistr/u16-prev'.
30923         * modules/unistr/u16-prev-tests: New file.
30924         * tests/unistr/test-u16-prev.c: New file.
30925
30926         Tests for module 'unistr/u8-prev'.
30927         * modules/unistr/u8-prev-tests: New file.
30928         * tests/unistr/test-u8-prev.c: New file.
30929
30930         Tests for module 'unistr/u32-next'.
30931         * modules/unistr/u32-next-tests: New file.
30932         * tests/unistr/test-u32-next.c: New file.
30933
30934         Tests for module 'unistr/u16-next'.
30935         * modules/unistr/u16-next-tests: New file.
30936         * tests/unistr/test-u16-next.c: New file.
30937
30938         Tests for module 'unistr/u8-next'.
30939         * modules/unistr/u8-next-tests: New file.
30940         * tests/unistr/test-u8-next.c: New file.
30941
30942         Tests for module 'unistr/u32-strmbtouc'.
30943         * modules/unistr/u32-strmbtouc-tests: New file.
30944         * tests/unistr/test-u32-strmbtouc.c: New file.
30945
30946         Tests for module 'unistr/u16-strmbtouc'.
30947         * modules/unistr/u16-strmbtouc-tests: New file.
30948         * tests/unistr/test-u16-strmbtouc.c: New file.
30949
30950         Tests for module 'unistr/u8-strmbtouc'.
30951         * modules/unistr/u8-strmbtouc-tests: New file.
30952         * tests/unistr/test-u8-strmbtouc.c: New file.
30953
30954         Tests for module 'unistr/u32-strmblen'.
30955         * modules/unistr/u32-strmblen-tests: New file.
30956         * tests/unistr/test-u32-strmblen.c: New file.
30957
30958         Tests for module 'unistr/u16-strmblen'.
30959         * modules/unistr/u16-strmblen-tests: New file.
30960         * tests/unistr/test-u16-strmblen.c: New file.
30961
30962         Tests for module 'unistr/u8-strmblen'.
30963         * modules/unistr/u8-strmblen-tests: New file.
30964         * tests/unistr/test-u8-strmblen.c: New file.
30965
30966         Tests for module 'unistr/u32-cpy-alloc'.
30967         * modules/unistr/u32-cpy-alloc-tests: New file.
30968         * tests/unistr/test-u32-cpy-alloc.c: New file.
30969
30970         Tests for module 'unistr/u16-cpy-alloc'.
30971         * modules/unistr/u16-cpy-alloc-tests: New file.
30972         * tests/unistr/test-u16-cpy-alloc.c: New file.
30973
30974         Tests for module 'unistr/u8-cpy-alloc'.
30975         * modules/unistr/u8-cpy-alloc-tests: New file.
30976         * tests/unistr/test-u8-cpy-alloc.c: New file.
30977         * tests/unistr/test-cpy-alloc.h: New file.
30978
30979         Tests for module 'unistr/u32-mbsnlen'.
30980         * modules/unistr/u32-mbsnlen-tests: New file.
30981         * tests/unistr/test-u32-mbsnlen.c: New file.
30982
30983         Tests for module 'unistr/u16-mbsnlen'.
30984         * modules/unistr/u16-mbsnlen-tests: New file.
30985         * tests/unistr/test-u16-mbsnlen.c: New file.
30986
30987         Tests for module 'unistr/u8-mbsnlen'.
30988         * modules/unistr/u8-mbsnlen-tests: New file.
30989         * tests/unistr/test-u8-mbsnlen.c: New file.
30990
30991         Tests for module 'unistr/u32-chr'.
30992         * modules/unistr/u32-chr-tests: New file.
30993         * tests/unistr/test-u32-chr.c: New file.
30994
30995         Tests for module 'unistr/u16-chr'.
30996         * modules/unistr/u16-chr-tests: New file.
30997         * tests/unistr/test-u16-chr.c: New file.
30998
30999         Tests for module 'unistr/u8-chr'.
31000         * modules/unistr/u8-chr-tests: New file.
31001         * tests/unistr/test-u8-chr.c: New file.
31002         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
31003
31004         Tests for module 'unistr/u32-cmp2'.
31005         * modules/unistr/u32-cmp2-tests: New file.
31006         * tests/unistr/test-u32-cmp2.c: New file.
31007
31008         Tests for module 'unistr/u16-cmp2'.
31009         * modules/unistr/u16-cmp2-tests: New file.
31010         * tests/unistr/test-u16-cmp2.c: New file.
31011
31012         Tests for module 'unistr/u8-cmp2'.
31013         * modules/unistr/u8-cmp2-tests: New file.
31014         * tests/unistr/test-u8-cmp2.c: New file.
31015         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
31016
31017         Tests for module 'unistr/u32-cmp'.
31018         * modules/unistr/u32-cmp-tests: New file.
31019         * tests/unistr/test-u32-cmp.c: New file.
31020
31021         Tests for module 'unistr/u16-cmp'.
31022         * modules/unistr/u16-cmp-tests: New file.
31023         * tests/unistr/test-u16-cmp.c: New file.
31024
31025         Tests for module 'unistr/u8-cmp'.
31026         * modules/unistr/u8-cmp-tests: New file.
31027         * tests/unistr/test-u8-cmp.c: New file.
31028         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
31029
31030         Tests for module 'unistr/u32-set'.
31031         * modules/unistr/u32-set-tests: New file.
31032         * tests/unistr/test-u32-set.c: New file.
31033
31034         Tests for module 'unistr/u16-set'.
31035         * modules/unistr/u16-set-tests: New file.
31036         * tests/unistr/test-u16-set.c: New file.
31037
31038         Tests for module 'unistr/u8-set'.
31039         * modules/unistr/u8-set-tests: New file.
31040         * tests/unistr/test-u8-set.c: New file.
31041         * tests/unistr/test-set.h: New file.
31042
31043         Tests for module 'unistr/u32-move'.
31044         * modules/unistr/u32-move-tests: New file.
31045         * tests/unistr/test-u32-move.c: New file.
31046
31047         Tests for module 'unistr/u16-move'.
31048         * modules/unistr/u16-move-tests: New file.
31049         * tests/unistr/test-u16-move.c: New file.
31050
31051         Tests for module 'unistr/u8-move'.
31052         * modules/unistr/u8-move-tests: New file.
31053         * tests/unistr/test-u8-move.c: New file.
31054         * tests/unistr/test-move.h: New file.
31055
31056         Tests for module 'unistr/u32-cpy'.
31057         * modules/unistr/u32-cpy-tests: New file.
31058         * tests/unistr/test-u32-cpy.c: New file.
31059
31060         Tests for module 'unistr/u16-cpy'.
31061         * modules/unistr/u16-cpy-tests: New file.
31062         * tests/unistr/test-u16-cpy.c: New file.
31063
31064         Tests for module 'unistr/u8-cpy'.
31065         * modules/unistr/u8-cpy-tests: New file.
31066         * tests/unistr/test-u8-cpy.c: New file.
31067         * tests/unistr/test-cpy.h: New file.
31068
31069 2010-01-09  Bruno Haible  <bruno@clisp.org>
31070
31071         Tests for module 'unistr/u32-uctomb'.
31072         * modules/unistr/u32-uctomb-tests: New file.
31073         * tests/unistr/test-u32-uctomb.c: New file.
31074
31075         Tests for module 'unistr/u16-uctomb'.
31076         * modules/unistr/u16-uctomb-tests: New file.
31077         * tests/unistr/test-u16-uctomb.c: New file.
31078
31079         Tests for module 'unistr/u8-uctomb'.
31080         * modules/unistr/u8-uctomb-tests: New file.
31081         * tests/unistr/test-u8-uctomb.c: New file.
31082
31083         Tests for module 'unistr/u32-mbtoucr'.
31084         * modules/unistr/u32-mbtoucr-tests: New file.
31085         * tests/unistr/test-u32-mbtoucr.c: New file.
31086
31087         Tests for module 'unistr/u16-mbtoucr'.
31088         * modules/unistr/u16-mbtoucr-tests: New file.
31089         * tests/unistr/test-u16-mbtoucr.c: New file.
31090
31091         Tests for module 'unistr/u8-mbtoucr'.
31092         * modules/unistr/u8-mbtoucr-tests: New file.
31093         * tests/unistr/test-u8-mbtoucr.c: New file.
31094
31095         Tests for module 'unistr/u32-mbtouc'.
31096         * modules/unistr/u32-mbtouc-tests: New file.
31097         * tests/unistr/test-u32-mbtouc.c: New file.
31098
31099         Tests for module 'unistr/u16-mbtouc'.
31100         * modules/unistr/u16-mbtouc-tests: New file.
31101         * tests/unistr/test-u16-mbtouc.c: New file.
31102
31103         Tests for module 'unistr/u8-mbtouc'.
31104         * modules/unistr/u8-mbtouc-tests: New file.
31105         * tests/unistr/test-u8-mbtouc.c: New file.
31106
31107         Tests for module 'unistr/u32-mbtouc-unsafe'.
31108         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
31109         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
31110         * tests/unistr/test-u32-mbtouc.h: New file.
31111
31112         Tests for module 'unistr/u16-mbtouc-unsafe'.
31113         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
31114         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
31115         * tests/unistr/test-u16-mbtouc.h: New file.
31116
31117         Tests for module 'unistr/u8-mbtouc-unsafe'.
31118         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
31119         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
31120         * tests/unistr/test-u8-mbtouc.h: New file.
31121
31122         Tests for module 'unistr/u32-mblen'.
31123         * modules/unistr/u32-mblen-tests: New file.
31124         * tests/unistr/test-u32-mblen.c: New file.
31125
31126         Tests for module 'unistr/u16-mblen'.
31127         * modules/unistr/u16-mblen-tests: New file.
31128         * tests/unistr/test-u16-mblen.c: New file.
31129
31130         Tests for module 'unistr/u8-mblen'.
31131         * modules/unistr/u8-mblen-tests: New file.
31132         * tests/unistr/test-u8-mblen.c: New file.
31133
31134         Tests for module 'unistr/u32-to-u16'.
31135         * modules/unistr/u32-to-u16-tests: New file.
31136         * tests/unistr/test-u32-to-u16.c: New file.
31137
31138         Tests for module 'unistr/u32-to-u8'.
31139         * modules/unistr/u32-to-u8-tests: New file.
31140         * tests/unistr/test-u32-to-u8.c: New file.
31141
31142         Tests for module 'unistr/u16-to-u32'.
31143         * modules/unistr/u16-to-u32-tests: New file.
31144         * tests/unistr/test-u16-to-u32.c: New file.
31145
31146         Tests for module 'unistr/u16-to-u8'.
31147         * modules/unistr/u16-to-u8-tests: New file.
31148         * tests/unistr/test-u16-to-u8.c: New file.
31149
31150         Tests for module 'unistr/u8-to-u32'.
31151         * modules/unistr/u8-to-u32-tests: New file.
31152         * tests/unistr/test-u8-to-u32.c: New file.
31153
31154         Tests for module 'unistr/u8-to-u16'.
31155         * modules/unistr/u8-to-u16-tests: New file.
31156         * tests/unistr/test-u8-to-u16.c: New file.
31157
31158         Tests for module 'unistr/u32-check'.
31159         * modules/unistr/u32-check-tests: New file.
31160         * tests/unistr/test-u32-check.c: New file.
31161
31162         Tests for module 'unistr/u16-check'.
31163         * modules/unistr/u16-check-tests: New file.
31164         * tests/unistr/test-u16-check.c: New file.
31165
31166         Tests for module 'unistr/u8-check'.
31167         * modules/unistr/u8-check-tests: New file.
31168         * tests/unistr/test-u8-check.c: New file.
31169
31170         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
31171         (category_equals): New function.
31172         (main): Add more tests.
31173         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
31174
31175         * tests/unictype/test-bidi_byname.c (main): Add more tests.
31176
31177 2010-01-10  Bruno Haible  <bruno@clisp.org>
31178
31179         unistr/u*-strcoll: Try harder to distinguish different strings.
31180         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
31181         compare s1 and s2 to see if they are different.
31182
31183 2010-01-10  Bruno Haible  <bruno@clisp.org>
31184
31185         unistr/u*-stpncpy: Fix the return value.
31186         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
31187         description of the return value consistent with stpncpy in glibc.
31188         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
31189         written non-NUL unit.
31190
31191 2010-01-10  Bruno Haible  <bruno@clisp.org>
31192
31193         unistr/u*-next: Add missing dependencies.
31194         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
31195         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
31196         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
31197
31198 2010-01-10  Bruno Haible  <bruno@clisp.org>
31199
31200         unistr/u8-mbsnlen: Fix return value for incomplete character.
31201         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
31202         u8_mblen.
31203         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
31204         Remove unistr/u8-mblen.
31205         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
31206         u16_mblen.
31207         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
31208         Remove unistr/u16-mblen.
31209
31210 2010-01-10  Bruno Haible  <bruno@clisp.org>
31211
31212         wchar: Fix compilation error when <wchar.h> is used from coreutils.
31213         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
31214         Reported by Brian Gough <bjg@gnu.org> and
31215         Chris Clayton <chris2553@googlemail.com> via
31216         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
31217
31218 2010-01-09  Bruno Haible  <bruno@clisp.org>
31219
31220         unistr/u16-to-u32: Reject invalid input.
31221         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
31222         u16_mbtouc.
31223         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
31224         Remove unistr/u16-mbtouc.
31225
31226         unistr/u16-to-u8: Reject invalid input.
31227         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
31228         u16_mbtouc.
31229         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
31230         Remove unistr/u16-mbtouc.
31231
31232         unistr/u8-to-u32: Reject invalid input.
31233         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
31234         u8_mbtouc.
31235         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
31236         Remove unistr/u8-mbtouc.
31237
31238         unistr/u8-to-u16: Reject invalid input.
31239         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
31240         u8_mbtouc.
31241         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
31242         Remove unistr/u8-mbtouc.
31243
31244 2010-01-09  Bruno Haible  <bruno@clisp.org>
31245
31246         Tests for module 'getlogin'.
31247         * modules/getlogin-tests: New file.
31248         * tests/test-getlogin.c: New file.
31249
31250         New module 'getlogin'.
31251         * lib/unistd.in.h (getlogin): New declaration.
31252         * lib/getlogin.c: New file.
31253         * m4/getlogin.m4: New file.
31254         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
31255         HAVE_GETLOGIN.
31256         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
31257         HAVE_GETLOGIN.
31258         * modules/getlogin: New file.
31259         * doc/posix-functions/getlogin.texi: Mention the new module.
31260         Reported by John W. Eaton <jwe@gnu.org>.
31261
31262 2010-01-09  Bruno Haible  <bruno@clisp.org>
31263
31264         getlogin_r: Support for native Windows.
31265         * lib/getlogin_r.c: Include <windows.h>
31266         (getlogin_r): Implement for native Windows.
31267         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
31268         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
31269         via John W. Eaton <jwe@gnu.org>.
31270
31271 2010-01-09  Bruno Haible  <bruno@clisp.org>
31272
31273         getlogin_r: Small fixes.
31274         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
31275         succeeds.
31276         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
31277         before testing whether getlogin_r is declared. No need to set
31278         HAVE_DECL_GETLOGIN_R to 1.
31279         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
31280
31281 2010-01-09  Bruno Haible  <bruno@clisp.org>
31282
31283         * lib/unistd.in.h (getlogin_r): Add comment.
31284
31285 2010-01-09  Bruno Haible  <bruno@clisp.org>
31286
31287         Tests for module 'getlogin_r'.
31288         * modules/getlogin_r-tests: New file.
31289         * tests/test-getlogin_r.c: New file.
31290
31291 2010-01-09  Jim Meyering  <meyering@redhat.com>
31292
31293         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
31294         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
31295         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
31296
31297 2010-01-08  Simon Josefsson  <simon@josefsson.org>
31298
31299         * lib/dup2.c (rpl_dup2): Improve comment.
31300
31301 2010-01-08  Eric Blake  <ebb9@byu.net>
31302
31303         maint.mk: allow packages to add makefile @@ exceptions
31304         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
31305         (sc_makefile_check): Rename...
31306         (sc_makefile_at_at_check): ...to this, and use hook.
31307
31308         dup2: work around mingw bug
31309         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
31310         Reported by Simon Josefsson.
31311
31312 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
31313
31314         glob: Fix C++ compilation.
31315         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
31316         C++.
31317
31318 2010-01-07  Bruno Haible  <bruno@clisp.org>
31319
31320         Fix indentation of wctype.in.h, broken since 2007-01-06.
31321         * lib/wctype.in.h: Fix indentation of preprocessor directives.
31322
31323 2010-01-07  Bruno Haible  <bruno@clisp.org>
31324
31325         mbslen: Avoid collision with system function.
31326         * lib/string.in.h [MirBSD]: Include <wchar.h>.
31327         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
31328         * m4/mbslen.m4: New file.
31329         * modules/mbslen (Files): Add it.
31330         (configure.ac): Invoke gl_MBSLEN.
31331         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
31332         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
31333         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
31334         via Ian Beckwith <ianb@erislabs.net>.
31335
31336 2010-01-07  Bruno Haible  <bruno@clisp.org>
31337
31338         dirent: Document the last fix.
31339         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
31340
31341 2010-01-07  Bruno Haible  <bruno@clisp.org>
31342
31343         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
31344         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
31345         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
31346         va_list are defined.
31347         * doc/posix-headers/stdio.texi: Document the bug of missing types.
31348         Reported by Eric Blake.
31349
31350 2010-01-07  Bruno Haible  <bruno@clisp.org>
31351
31352         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
31353         * modules/xlist (Depends-on): Add 'list',
31354         * modules/xoset (Depends-on): Add 'oset'.
31355         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31356
31357 2010-01-07  Bruno Haible  <bruno@clisp.org>
31358
31359         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
31360         * doc/posix-functions/strncasecmp.texi: Likewise.
31361
31362 2010-01-07  Bruno Haible  <bruno@clisp.org>
31363
31364         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
31365
31366 2010-01-07  John W. Eaton  <jwe@octave.org>
31367
31368         wctype: allow C++ use
31369         * lib/wctype.in.h: Add extern "C" block for C++.
31370
31371 2010-01-06  Eric Blake  <ebb9@byu.net>
31372
31373         maint.mk: detect incorrect GFDL usage
31374         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
31375
31376 2010-01-06  Jim Meyering  <meyering@redhat.com>
31377         and Eric Blake  <ebb9@byu.net>
31378
31379         maint.mk: ignore multi-line copyright in NEWS
31380         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
31381
31382 2010-01-06  Eric Blake  <ebb9@byu.net>
31383
31384         select: add missing dependency
31385         * modules/select-tests (Depends-on): Move sockets dependency...
31386         * modules/select (Depends-on): ...here.
31387         Reported by Ian Beckwith.
31388
31389         doc: regenerate INSTALL
31390         * doc/INSTALL: Reflect recent autoconf update.
31391         * doc/INSTALL.ISO: Likewise.
31392         * doc/INSTALL.UTF-8: Likewise.
31393
31394         pread: fix compilation on glibc
31395         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
31396         Reported by Ralf Wildenhues.
31397
31398         dirent: fix test failure
31399         * lib/dirent.in.h (includes): Guarantee ino_t.
31400         Reported by Ralf Wildenhues.
31401
31402 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
31403
31404         linkat, renameat: avoid bad free
31405         * lib/at-func2.c (at_func2): Fix typo.
31406         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
31407
31408 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31409
31410         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
31411         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
31412         to avoid failure of symlink test later.
31413
31414 2010-01-06  Eric Blake  <ebb9@byu.net>
31415
31416         stdio, unistd: guarantee ssize_t
31417         * lib/unistd.in.h (includes): Ensure that types required by POSIX
31418         2008 are exposed when needed.
31419         * lib/stdio.in.h (includes): Likewise.
31420         Reported by Ralf Wildenhues.
31421
31422 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
31423
31424         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
31425         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
31426         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
31427
31428 2010-01-06  Jim Meyering  <meyering@redhat.com>
31429
31430         readtokens: this module *does* require xalloc.h
31431         It uses only functions that were omitted by the old syntax-check rule.
31432         * lib/readtokens.c: Include "xalloc.h" once again.
31433         * modules/readtokens (Depends-on): Add xalloc.
31434         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
31435
31436 2010-01-05  Eric Blake  <ebb9@byu.net>
31437
31438         maint: support 'make announcement' from a VPATH build
31439         * top/maint.mk (announcement): Look for correct NEWS file.
31440
31441 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
31442
31443         utimens (fdutimens): ignore a negative FD, per contract
31444         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
31445         when we have a valid file descriptor.  Otherwise, using a brand
31446         new glibc (with just-patched futimens that now fails with EBADF)
31447         would cause this function to fail with ENOSYS.
31448         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
31449         See also http://bugzilla.redhat.com/552320.
31450
31451 2010-01-05  Eric Blake  <ebb9@byu.net>
31452
31453         strcase: document what it provides
31454         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
31455         gnulib module.
31456         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
31457         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
31458
31459 2010-01-05  Jim Meyering  <meyering@redhat.com>
31460
31461         maint: remove useless inclusions of "xalloc.h"
31462         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
31463         * lib/readtokens.c: Likewise.
31464         * lib/same.c: Likewise.
31465         * modules/getloadavg (Depends-on): Remove xalloc.
31466         * modules/readtokens: Likewise.
31467         * modules/same: Likewise.
31468
31469         maint.mk: include 4 more function names in alloca.h-checking regexp
31470         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
31471         regexp.  Before, we would give a false-positive (saying alloca.h
31472         is included unnecessarily) when the only uses involved omitted symbols.
31473
31474         xalloc.h: use consistent formatting
31475         * lib/xalloc.h: Move declarations to start in the first column.
31476
31477 2010-01-05  Eric Blake  <ebb9@byu.net>
31478
31479         mkdir: avoid xalloc
31480         * lib/mkdir.c (includes): Drop unused header.
31481         Reported by John W. Eaton.
31482
31483 2010-01-04  Jim Meyering  <meyering@redhat.com>
31484
31485         nl_langinfo: avoid configure-time syntax error
31486         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
31487         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
31488         the empty string.  Don't let that provoke a shell syntax error.
31489
31490         regcomp, regexec, fnmatch: avoid array bounds read error
31491         * lib/regcomp.c (build_equiv_class): From glibc:
31492         Use only the low 24 bits of a findidx return value as an index
31493         into the weights array.  Patch by Ulrich Drepper:
31494         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
31495         * lib/regexec.c (check_node_accept_bytes): Likewise.
31496         * lib/fnmatch_loop.c (FCT): Likewise.
31497
31498         regcomp: skip collseq lookup when there are no rules
31499         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
31500         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
31501
31502         regcomp: recognize ill-formed { } expressions
31503         * lib/regcomp.c (parse_dup_op): From glibc:
31504         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
31505
31506         regcomp: fix typo in comment
31507         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
31508         s/satisfy/satisfies/.
31509
31510         regcomp: sync from glibc: remove dead store
31511         * lib/regcomp.c (duplicate_node_closure): Remove useless
31512         search_duplicated_node call and dead store.
31513
31514         regcomp: sync from glibc; always use nl_langinfo
31515         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
31516         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
31517         * modules/regex (Depends-on): Add nl_langinfo.
31518
31519 2010-01-04  Eric Blake  <ebb9@byu.net>
31520
31521         fdopendir: fix configure test
31522         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
31523
31524 2010-01-01  Bruno Haible  <bruno@clisp.org>
31525
31526         wchar: Remove unused configure check.
31527         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
31528
31529 2010-01-01  Eric Blake  <ebb9@byu.net>
31530
31531         headers: make check of system header explicit
31532         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
31533         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
31534         ourselves.
31535         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
31536         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
31537         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
31538         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
31539         internals.
31540         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
31541         missing.
31542         Suggested by Bruno Haible.
31543
31544 2010-01-01  Jim Meyering  <meyering@redhat.com>
31545
31546         ChangeLog: tweak to eliminate unnecessary copyright line
31547         * ChangeLog: Remove a copyright line that was mistakenly updated
31548         by today's update-copyright run.  Reported by Eric Blake.
31549
31550         test-update-copyright: don't let envvar setting cause test failure
31551         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
31552
31553 2010-01-01  Bruno Haible  <bruno@clisp.org>
31554
31555         localename: Avoid gcc warning.
31556         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
31557         function if it is not used.
31558
31559 2010-01-01  Jim Meyering  <meyering@redhat.com>
31560
31561         update nearly all FSF copyright year lists to include 2010
31562         Use the same procedure as for 2009, outlined in
31563         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
31564
31565         version-etc: set COPYRIGHT_YEAR to 2010
31566         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
31567
31568 2009-12-31  Eric Blake  <ebb9@byu.net>
31569
31570         doc: correct availability of cygwin 1.5.x getopt
31571         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
31572         variables.
31573         * doc/posix-functions/opterr.texi (opterr): Likewise.
31574         * doc/posix-functions/optind.texi (optind): Likewise.
31575         * doc/posix-functions/optopt.texi (optopt): Likewise.
31576         * doc/posix-functions/tzname.texi (tzname): Likewise.
31577
31578         openat: update maintainer
31579         * modules/openat (Maintainer): Add myself.
31580
31581         utimens: avoid shadowing warning
31582         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
31583         buffers into one, to avoid shadowing, as well as avoiding a
31584         redundant stat.
31585         Reported by Jim Meyering.
31586
31587         test-dup2: avoid compiler warning
31588         * tests/test-dup2.c (is_inheritable): Only define if used.
31589
31590 2010-01-01  Bruno Haible  <bruno@clisp.org>
31591
31592         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
31593         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
31594         defined, use wctomb instead of wcrtomb.
31595
31596 2010-01-01  Bruno Haible  <bruno@clisp.org>
31597
31598         iconv: Reject native Solaris iconv.
31599         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
31600         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
31601
31602 2009-12-31  Bruno Haible  <bruno@clisp.org>
31603
31604         * tests/test-signal.c (main): Remove test of 'SIG'.
31605
31606 2009-12-31  Bruno Haible  <bruno@clisp.org>
31607
31608         spawn: Fix incomplete fix.
31609         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
31610         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
31611         warnings for GNULIB_POSIXCHECK again.
31612         Reported by Eric Blake.
31613
31614 2009-12-31  Bruno Haible  <bruno@clisp.org>
31615
31616         Avoid namespace pollution on glibc systems.
31617         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
31618         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
31619         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
31620         glibc systems.
31621
31622 2009-12-31  Bruno Haible  <bruno@clisp.org>
31623
31624         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
31625         (gl_REPLACE_WCHAR_H): Turn into a no-op.
31626         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
31627         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
31628         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
31629         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
31630         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
31631
31632 2009-12-31  Bruno Haible  <bruno@clisp.org>
31633
31634         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
31635         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
31636         afterwards.
31637
31638 2009-12-31  Bruno Haible  <bruno@clisp.org>
31639
31640         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
31641         SYS_UTSNAME_H.
31642
31643 2009-12-31  Bruno Haible  <bruno@clisp.org>
31644
31645         spawn: Fix misapplied patch.
31646         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
31647         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
31648         warnings for GNULIB_POSIXCHECK.
31649
31650 2009-12-31  Bruno Haible  <bruno@clisp.org>
31651
31652         times: Update after sys_times changed.
31653         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
31654         * modules/times (Files): Add it.
31655         (configure.ac): Invoke gl_FUNC_TIMES.
31656
31657 2009-12-31  Bruno Haible  <bruno@clisp.org>
31658
31659         Use AC_C_INLINE where necessary.
31660         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
31661         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
31662         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
31663         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
31664         * m4/mbfile.m4 (gl_MBFILE): Likewise.
31665         * m4/mbiter.m4 (gl_MBITER): Likewise.
31666         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
31667         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
31668         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
31669         * modules/u64 (configure.ac): Likewise.
31670
31671 2009-12-31  Bruno Haible  <bruno@clisp.org>
31672
31673         Use AC_C_INLINE instead of module 'inline' where possible.
31674         * modules/inline (Description): Clarify purpose.
31675         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
31676         * modules/count-one-bits (Depends-on): Remove inline.
31677         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
31678         * modules/openat (Depends-on): Remove inline.
31679         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
31680         instead of depending on module 'inline'.
31681         * modules/filevercmp (Depends-on, configure.ac): Likewise.
31682         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
31683         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
31684         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
31685         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
31686         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
31687         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
31688         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
31689         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
31690         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
31691         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
31692         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
31693         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
31694         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
31695         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
31696         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
31697         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
31698         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
31699         Likewise.
31700         * modules/unictype/property-ascii-hex-digit (Depends-on,
31701         configure.ac): Likewise.
31702         * modules/unictype/property-bidi-arabic-digit (Depends-on,
31703         configure.ac): Likewise.
31704         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
31705         configure.ac): Likewise.
31706         * modules/unictype/property-bidi-block-separator (Depends-on,
31707         configure.ac): Likewise.
31708         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
31709         configure.ac): Likewise.
31710         * modules/unictype/property-bidi-common-separator (Depends-on,
31711         configure.ac): Likewise.
31712         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
31713         Likewise.
31714         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
31715         configure.ac): Likewise.
31716         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
31717         configure.ac): Likewise.
31718         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
31719         configure.ac): Likewise.
31720         * modules/unictype/property-bidi-european-digit (Depends-on,
31721         configure.ac): Likewise.
31722         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
31723         configure.ac): Likewise.
31724         * modules/unictype/property-bidi-left-to-right (Depends-on,
31725         configure.ac): Likewise.
31726         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
31727         configure.ac): Likewise.
31728         * modules/unictype/property-bidi-other-neutral (Depends-on,
31729         configure.ac): Likewise.
31730         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
31731         Likewise.
31732         * modules/unictype/property-bidi-segment-separator (Depends-on,
31733         configure.ac): Likewise.
31734         * modules/unictype/property-bidi-whitespace (Depends-on,
31735         configure.ac): Likewise.
31736         * modules/unictype/property-combining (Depends-on, configure.ac):
31737         Likewise.
31738         * modules/unictype/property-composite (Depends-on, configure.ac):
31739         Likewise.
31740         * modules/unictype/property-currency-symbol (Depends-on,
31741         configure.ac): Likewise.
31742         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
31743         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
31744         Likewise.
31745         * modules/unictype/property-default-ignorable-code-point (Depends-on,
31746         configure.ac): Likewise.
31747         * modules/unictype/property-deprecated (Depends-on, configure.ac):
31748         Likewise.
31749         * modules/unictype/property-diacritic (Depends-on, configure.ac):
31750         Likewise.
31751         * modules/unictype/property-extender (Depends-on, configure.ac):
31752         Likewise.
31753         * modules/unictype/property-format-control (Depends-on, configure.ac):
31754         Likewise.
31755         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
31756         Likewise.
31757         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
31758         Likewise.
31759         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
31760         Likewise.
31761         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
31762         Likewise.
31763         * modules/unictype/property-hyphen (Depends-on, configure.ac):
31764         Likewise.
31765         * modules/unictype/property-id-continue (Depends-on, configure.ac):
31766         Likewise.
31767         * modules/unictype/property-id-start (Depends-on, configure.ac):
31768         Likewise.
31769         * modules/unictype/property-ideographic (Depends-on, configure.ac):
31770         Likewise.
31771         * modules/unictype/property-ids-binary-operator (Depends-on,
31772         configure.ac): Likewise.
31773         * modules/unictype/property-ids-trinary-operator (Depends-on,
31774         configure.ac): Likewise.
31775         * modules/unictype/property-ignorable-control (Depends-on,
31776         configure.ac): Likewise.
31777         * modules/unictype/property-iso-control (Depends-on, configure.ac):
31778         Likewise.
31779         * modules/unictype/property-join-control (Depends-on, configure.ac):
31780         Likewise.
31781         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
31782         Likewise.
31783         * modules/unictype/property-line-separator (Depends-on, configure.ac):
31784         Likewise.
31785         * modules/unictype/property-logical-order-exception (Depends-on,
31786         configure.ac): Likewise.
31787         * modules/unictype/property-lowercase (Depends-on, configure.ac):
31788         Likewise.
31789         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
31790         * modules/unictype/property-non-break (Depends-on, configure.ac):
31791         Likewise.
31792         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
31793         Likewise.
31794         * modules/unictype/property-numeric (Depends-on, configure.ac):
31795         Likewise.
31796         * modules/unictype/property-other-alphabetic (Depends-on,
31797         configure.ac): Likewise.
31798         * modules/unictype/property-other-default-ignorable-code-point
31799         (Depends-on, configure.ac): Likewise.
31800         * modules/unictype/property-other-grapheme-extend (Depends-on,
31801         configure.ac): Likewise.
31802         * modules/unictype/property-other-id-continue (Depends-on,
31803         configure.ac): Likewise.
31804         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
31805         Likewise.
31806         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
31807         Likewise.
31808         * modules/unictype/property-other-math (Depends-on, configure.ac):
31809         Likewise.
31810         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
31811         Likewise.
31812         * modules/unictype/property-paired-punctuation (Depends-on,
31813         configure.ac): Likewise.
31814         * modules/unictype/property-paragraph-separator (Depends-on,
31815         configure.ac): Likewise.
31816         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
31817         Likewise.
31818         * modules/unictype/property-pattern-white-space (Depends-on,
31819         configure.ac): Likewise.
31820         * modules/unictype/property-private-use (Depends-on, configure.ac):
31821         Likewise.
31822         * modules/unictype/property-punctuation (Depends-on, configure.ac):
31823         Likewise.
31824         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
31825         Likewise.
31826         * modules/unictype/property-radical (Depends-on, configure.ac):
31827         Likewise.
31828         * modules/unictype/property-sentence-terminal (Depends-on,
31829         configure.ac): Likewise.
31830         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
31831         Likewise.
31832         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
31833         * modules/unictype/property-terminal-punctuation (Depends-on,
31834         configure.ac): Likewise.
31835         * modules/unictype/property-titlecase (Depends-on, configure.ac):
31836         Likewise.
31837         * modules/unictype/property-unassigned-code-value (Depends-on,
31838         configure.ac): Likewise.
31839         * modules/unictype/property-unified-ideograph (Depends-on,
31840         configure.ac): Likewise.
31841         * modules/unictype/property-uppercase (Depends-on, configure.ac):
31842         Likewise.
31843         * modules/unictype/property-variation-selector (Depends-on,
31844         configure.ac): Likewise.
31845         * modules/unictype/property-white-space (Depends-on, configure.ac):
31846         Likewise.
31847         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
31848         Likewise.
31849         * modules/unictype/property-xid-start (Depends-on, configure.ac):
31850         Likewise.
31851         * modules/unictype/property-zero-width (Depends-on, configure.ac):
31852         Likewise.
31853         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
31854         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
31855         Likewise.
31856
31857 2009-12-31  Bruno Haible  <bruno@clisp.org>
31858
31859         Remove unnecessary AC_C_INLINE invocation.
31860         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
31861         since 2009-08-21.
31862
31863 2009-12-31  Jim Meyering  <meyering@redhat.com>
31864
31865         maint.mk: don't require explicit gpg_key_ID in cfg.mk
31866         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
31867         With this change, we can all remove the gpg_key_ID = ... definition
31868         from our respective cfg.mk files.
31869
31870         maint.mk: create announcement template in ~/, not in /tmp
31871         * top/maint.mk (emit_upload_commands): Adjust.
31872         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
31873         Remove temporary file, .ci-msg.
31874
31875 2009-12-31  Eric Blake  <ebb9@byu.net>
31876
31877         link-warning: always build headers with link warnings
31878         * modules/arpa_inet (Makefile.am): Always build replacement
31879         header.
31880         * modules/ctype (Makefile.am): Likewise.
31881         * modules/dirent (Makefile.am): Likewise.
31882         * modules/inttypes (Makefile.am): Likewise.
31883         * modules/langinfo (Makefile.am): Likewise.
31884         * modules/locale (Makefile.am): Likewise.
31885         * modules/spawn (Makefile.am): Likewise.
31886         * modules/sys_file (Makefile.am): Likewise.
31887         * modules/sys_ioctl (Makefile.am): Likewise.
31888         * modules/sys_select (Makefile.am): Likewise.
31889         * modules/sys_socket (Makefile.am): Likewise.
31890         * modules/sys_times (Makefile.am): Likewise.
31891         * modules/sys_utsname (Makefile.am): Likewise.
31892         * modules/sys_wait (Makefile.am): Likewise.
31893         * modules/wchar (Makefile.am): Likewise.
31894         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
31895         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
31896         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
31897         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
31898         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
31899         Likewise.
31900         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
31901         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
31902         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
31903         Likewise.
31904         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
31905         Likewise.
31906         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
31907         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
31908         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
31909         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
31910         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
31911         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
31912         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
31913         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
31914         (gl_WCHAR_H_DEFAULTS): Likewise.
31915
31916 2009-12-31  Eric Blake  <ebb9@byu.net>
31917
31918         signal, spawn: use link warnings
31919         * lib/signal.in.h (sigset_t): Make unconditional.
31920         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
31921         (sigpending, sigprocmask, sigaction): Add link warnings.
31922         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
31923         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
31924         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
31925         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
31926         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
31927         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
31928         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
31929         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
31930         (posix_spawn_file_actions_destroy)
31931         (posix_spawn_file_actions_addopen)
31932         (posix_spawn_file_actions_addclose)
31933         (posix_spawn_file_actions_adddup2): Likewise.
31934         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
31935         * tests/test-signal.c (main): Enhance test.
31936
31937         spawn: improve wrapper support
31938         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
31939         (gl_SPAWN_H_DEFAULTS): New defaults.
31940         * modules/spawn (Makefile.am): Substitute them.
31941         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
31942         Only declare if missing or broken.
31943
31944         sys_times, sys_utsname: use include_next
31945         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
31946         header.
31947         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
31948         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
31949         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
31950         * modules/sys_times (Depends-on): Add include_next.
31951         (Makefile.am): Substitute additional values.
31952         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
31953         * lib/sys_times.in.h (includes): Include native header, if
31954         available.
31955         * lib/sys_utsname.in.h (includes): Likewise.
31956         * tests/test-sys_times.c (main): Enhance test.
31957
31958         fdutimensat: revert prior patch
31959         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
31960         utimens.h.
31961         Reported by Bruno Haible.
31962
31963 2009-12-30  Eric Blake  <ebb9@byu.net>
31964
31965         sys_wait: drop link-warning dependency
31966         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
31967         link-warning efforts.
31968         * lib/sys_wait.in.h: Likewise.
31969
31970         fdutimensat: remove bogus dependency
31971         * modules/fdutimensat (Depends-on): Drop inline.
31972
31973         unistd: fix typo
31974         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
31975
31976 2009-12-30  Bruno Haible  <bruno@clisp.org>
31977
31978         Fix compilation error with Solaris cc.
31979         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
31980         * lib/unicase/u16-is-invariant.c: Likewise.
31981         * lib/unicase/u32-is-invariant.c: Likewise.
31982         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
31983
31984 2009-12-30  Bruno Haible  <bruno@clisp.org>
31985
31986         Fix test crash.
31987         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
31988         locales.
31989         Reported by Simon Josefsson <simon@josefsson.org>.
31990
31991 2009-12-30  Bruno Haible  <bruno@clisp.org>
31992
31993         Fix compilation error on most platforms.
31994         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
31995         Reported by Simon Josefsson <simon@josefsson.org>
31996         and Nelson H. F. Beebe <beebe@math.utah.edu>.
31997
31998 2009-12-30  Eric Blake  <ebb9@byu.net>
31999
32000         futimens, utimensat: work around ntfs-3g bug
32001         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
32002         a ctime bug is present, and expand workaround to cover ntfs-3g.
32003         * lib/utimens.c (fdutimens, lutimens): Likewise.
32004         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
32005         (validate_timespec): Adjust return value.
32006         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
32007         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
32008         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
32009
32010 2009-12-29  Eric Blake  <ebb9@byu.net>
32011
32012         link-warning: make usage consistent
32013         * modules/ctype (Depends-on): Add link-warning.
32014         (Makefile.am): Update rules accordingly.
32015         * modules/langinfo (Depends-on, Makefile.am): Likewise.
32016         * modules/locale (Depends-on, Makefile.am): Likewise.
32017         * modules/sys_file (Makefile.am): Likewise.
32018         * modules/getopt-posix (Makefile.am): Delete unused link warning
32019         efforts.
32020         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
32021         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
32022         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
32023         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
32024
32025         stdio: remove unused variables
32026         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
32027         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
32028         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
32029
32030         tests: test more substitute headers
32031         * modules/ctype-tests: New file.
32032         * modules/dirent-tests: Likewise.
32033         * modules/spawn-tests: Likewise.
32034         * modules/sys_file-tests: Likewise.
32035         * modules/sys_ioctl-tests: Likewise.
32036         * modules/sys_wait-tests: Likewise.
32037         * tests/test-ctype.c: Likewise.
32038         * tests/test-dirent.c: Likewise.
32039         * tests/test-spawn.c: Likewise.
32040         * tests/test-sys_file.c: Likewise.
32041         * tests/test-sys_ioctl.c: Likewise.
32042         * tests/test-sys_wait.c: Likewise.
32043         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
32044         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
32045         whether or not flock is in use.
32046
32047         tests: remove License section from module
32048         * modules/arpa_inet-tests: Remove unneeded section.
32049         * modules/byteswap-tests: Likewise.
32050         * modules/ceilf-tests: Likewise.
32051         * modules/ceill-tests: Likewise.
32052         * modules/crypto/des-tests: Likewise.
32053         * modules/crypto/gc-arcfour-tests: Likewise.
32054         * modules/crypto/gc-arctwo-tests: Likewise.
32055         * modules/crypto/gc-des-tests: Likewise.
32056         * modules/crypto/gc-hmac-md5-tests: Likewise.
32057         * modules/crypto/gc-hmac-sha1-tests: Likewise.
32058         * modules/crypto/gc-md2-tests: Likewise.
32059         * modules/crypto/gc-md4-tests: Likewise.
32060         * modules/crypto/gc-md5-tests: Likewise.
32061         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
32062         * modules/crypto/gc-rijndael-tests: Likewise.
32063         * modules/crypto/gc-sha1-tests: Likewise.
32064         * modules/crypto/gc-tests: Likewise.
32065         * modules/crypto/md2-tests: Likewise.
32066         * modules/crypto/md4-tests: Likewise.
32067         * modules/fcntl-h-tests: Likewise.
32068         * modules/floorf-tests: Likewise.
32069         * modules/floorl-tests: Likewise.
32070         * modules/frexp-nolibm-tests: Likewise.
32071         * modules/frexp-tests: Likewise.
32072         * modules/frexpl-nolibm-tests: Likewise.
32073         * modules/frexpl-tests: Likewise.
32074         * modules/getaddrinfo-tests: Likewise.
32075         * modules/inttypes-tests: Likewise.
32076         * modules/isfinite-tests: Likewise.
32077         * modules/isinf-tests: Likewise.
32078         * modules/ldexpl-tests: Likewise.
32079         * modules/locale-tests: Likewise.
32080         * modules/math-tests: Likewise.
32081         * modules/netdb-tests: Likewise.
32082         * modules/netinet_in-tests: Likewise.
32083         * modules/printf-frexp-tests: Likewise.
32084         * modules/printf-frexpl-tests: Likewise.
32085         * modules/priv-set-tests: Likewise.
32086         * modules/random_r-tests: Likewise.
32087         * modules/round-tests: Likewise.
32088         * modules/roundf-tests: Likewise.
32089         * modules/roundl-tests: Likewise.
32090         * modules/search-tests: Likewise.
32091         * modules/select-tests: Likewise.
32092         * modules/signal-tests: Likewise.
32093         * modules/stdbool-tests: Likewise.
32094         * modules/stddef-tests: Likewise.
32095         * modules/stdint-tests: Likewise.
32096         * modules/stdio-tests: Likewise.
32097         * modules/stdlib-tests: Likewise.
32098         * modules/string-tests: Likewise.
32099         * modules/strings-tests: Likewise.
32100         * modules/sys_select-tests: Likewise.
32101         * modules/sys_socket-tests: Likewise.
32102         * modules/sys_stat-tests: Likewise.
32103         * modules/sys_time-tests: Likewise.
32104         * modules/sys_utsname-tests: Likewise.
32105         * modules/sysexits-tests: Likewise.
32106         * modules/time-tests: Likewise.
32107         * modules/trunc-tests: Likewise.
32108         * modules/truncf-tests: Likewise.
32109         * modules/truncl-tests: Likewise.
32110         * modules/tsearch-tests: Likewise.
32111         * modules/unistd-tests: Likewise.
32112         * modules/wchar-tests: Likewise.
32113         * modules/wctype-tests: Likewise.
32114
32115         tests: fix license on several tests
32116         * tests/test-des.c: Update to GPLv3+.
32117         * tests/test-flock.c: Likewise.
32118         * tests/test-fsync.c: Likewise.
32119         * tests/test-futimens.h: Likewise.
32120         * tests/test-gc-arcfour.c: Likewise.
32121         * tests/test-gc-arctwo.c: Likewise.
32122         * tests/test-gc-des.c: Likewise.
32123         * tests/test-gc-hmac-md5.c: Likewise.
32124         * tests/test-gc-hmac-sha1.c: Likewise.
32125         * tests/test-gc-md2.c: Likewise.
32126         * tests/test-gc-md4.c: Likewise.
32127         * tests/test-gc-md5.c: Likewise.
32128         * tests/test-gc-pbkdf2-sha1.c: Likewise.
32129         * tests/test-gc-rijndael.c: Likewise.
32130         * tests/test-gc-sha1.c: Likewise.
32131         * tests/test-gc.c: Likewise.
32132         * tests/test-getcwd.c: Likewise.
32133         * tests/test-link.c: Likewise.
32134         * tests/test-link.h: Likewise.
32135         * tests/test-lutimens.h: Likewise.
32136         * tests/test-md2.c: Likewise.
32137         * tests/test-md4.c: Likewise.
32138         * tests/test-mkdir.h: Likewise.
32139         * tests/test-rename.c: Likewise.
32140         * tests/test-rename.h: Likewise.
32141         * tests/test-safe-alloc.c: Likewise.
32142         * tests/test-utimens-common.h: Likewise.
32143         * tests/test-utimens.h: Likewise.
32144
32145         maint: sync license texts
32146         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
32147         * doc/gpl-3.0.texi: Revert copyright year update.
32148         * doc/lgpl-3.0.texi: Likewise.
32149
32150 2009-12-29  Jim Meyering  <meyering@redhat.com>
32151
32152         update nearly all FSF copyright year lists to include 2009
32153         The files named by the following are exempted:
32154             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
32155               test -f "$dst" && { echo "$dst"; continue; }
32156               test -d "$dst" || continue
32157               echo "$dst"/$(basename "$src")
32158             done > exempt
32159             git ls-files tests/unictype >> exempt
32160         In the remaining files, convert to all-interval notation if
32161         - there is already at least one year interval like 2000-2003
32162         - the file is maintained by me
32163         - the file is in lib/uni*/, where that style already prevails
32164         Otherwise, use update-copyright's default.
32165
32166 2009-12-29  Simon Josefsson  <simon@josefsson.org>
32167         and Eric Blake  <ebb9@byu.net>
32168
32169         tests: don't require debug system() to pass
32170         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
32171         * tests/test-rmdir.h (test_rmdir_func): Likewise.
32172         * tests/test-unlink.h (test_unlink_func): Likewise.
32173         * tests/test-fstatat.c (main): ...into callers.
32174         * tests/test-lstat.c (main): Likewise.
32175         * tests/test-rmdir.c (main): Likewise.
32176         * tests/test-unlink.c (main): Likewise.
32177         * tests/test-unlinkat.c (main): Likewise.
32178         * tests/test-areadlink-with-size.c (main): Don't require a
32179         debug-only system call to pass, aiding cross-testing to mingw.
32180         * tests/test-areadlink.c (main): Likewise.
32181         * tests/test-areadlinkat-with-size.c (main): Likewise.
32182         * tests/test-areadlinkat.c (main): Likewise.
32183         * tests/test-canonicalize-lgpl.c (main): Likewise.
32184         * tests/test-canonicalize.c (main): Likewise.
32185         * tests/test-chown.c (main): Likewise.
32186         * tests/test-fchownat.c (main): Likewise.
32187         * tests/test-lchown.c (main): Likewise.
32188         * tests/test-fdutimensat.c (main): Likewise.
32189         * tests/test-futimens.c (main): Likewise.
32190         * tests/test-link.c (main): Likewise.
32191         * tests/test-linkat.c (main): Likewise.
32192         * tests/test-mkdir.c (main): Likewise.
32193         * tests/test-mkdirat.c (main): Likewise.
32194         * tests/test-mkfifo.c (main): Likewise.
32195         * tests/test-mkfifoat.c (main): Likewise.
32196         * tests/test-mknod.c (main): Likewise.
32197         * tests/test-readlink.c (main): Likewise.
32198         * tests/test-remove.c (main): Likewise.
32199         * tests/test-rename.c (main): Likewise.
32200         * tests/test-renameat.c (main): Likewise.
32201         * tests/test-symlink.c (main): Likewise.
32202         * tests/test-symlinkat.c (main): Likewise.
32203         * tests/test-utimens.c (main): Likewise.
32204         * tests/test-utimensat.c (main): Likewise.
32205
32206 2009-12-29  Simon Josefsson  <simon@josefsson.org>
32207
32208         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
32209         on $(UNUSED_PARAMETER_H) to avoid build failure.
32210
32211 2009-12-28  Jim Meyering  <meyering@redhat.com>
32212
32213         update-copyright: you may specify a max. line length other than 72
32214         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
32215
32216         maint: use consistent FSF copyright line syntax
32217         * lib/posixtm.c: Add missing comma in FSF copyright line.
32218         * lib/posixtm.h: Likewise.
32219         * lib/getugroups.c: Add missing ", Inc.".
32220
32221         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
32222         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
32223         FSF copyright line.  Remove trailing blanks.
32224
32225 2009-12-28  Eric Blake  <ebb9@byu.net>
32226
32227         test-dup2: reduce dependencies
32228         * modules/cloexec (Configure.ac): Set witness.
32229         * modules/dup2-tests (Depends-on): Drop cloexec.
32230         * tests/test-dup2.c (main): Skip portion of test if cloexec module
32231         not present.
32232         Suggested by Bruno Haible.
32233
32234 2009-12-26  Bruno Haible  <bruno@clisp.org>
32235
32236         Remove an unneeded dependency.
32237         * modules/fseterr (Depends-on): Remove dup2.
32238
32239 2009-12-26  Eric Blake  <ebb9@byu.net>
32240
32241         tests: use macros.h in more places
32242         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
32243         (ASSERT_STREAM): Provide default of stderr.
32244         * tests/test-dirent-safer.c: Include macros.h, using alternate
32245         stream for assertions.
32246         * tests/test-dup-safer.c: Likewise.
32247         * tests/test-freopen-safer.c: Likewise.
32248         * tests/test-getopt.c: Likewise.
32249         * tests/test-openat-safer.c: Likewise.
32250         * tests/test-pipe.c: Likewise.
32251         * tests/test-popen-safer.c: Likewise.
32252         * modules/dirent-safer-tests (Files): Include macros.h.
32253         * modules/unistd-safer-tests (Files): Likewise.
32254         * modules/freopen-safer-tests (Files): Likewise.
32255         * modules/getopt-posix-tests (Files): Likewise.
32256         * modules/openat-safer-tests (Files): Likewise.
32257         * modules/pipe-tests (Files): Likewise.
32258
32259 2009-12-26  Bruno Haible  <bruno@clisp.org>
32260
32261         javacomp: Portability fix.
32262         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
32263         that it also works on Solaris.
32264
32265 2009-12-26  Bruno Haible  <bruno@clisp.org>
32266
32267         localename: Fix storage allocation of gl_locale_name_thread's result.
32268         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
32269         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
32270         all platforms that have 'uselocale'.
32271         (gl_locale_name_thread_unsafe): New function, extracted from
32272         gl_locale_name_thread.
32273         (gl_locale_name_thread): Call struniq on all platforms that have
32274         'uselocale'.
32275         * tests/test-localename.c (test_locale_name_thread): Check that the
32276         resulting strings are permanently allocated.
32277         * modules/localename-tests (Depends-on): Add strdup.
32278
32279 2009-12-26  Bruno Haible  <bruno@clisp.org>
32280
32281         * tests/test-localename.c (categories): Fill in the strings.
32282
32283 2009-12-26  Jim Meyering  <meyering@redhat.com>
32284
32285         isdir: complete the removal of m4/isdir.m4
32286         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
32287
32288         isdir: clean up, since at least grep still uses it
32289         * lib/isdir.c: Include "isdir.h".
32290         (S_ISDIR): Remove now-unneeded definition.
32291         * modules/isdir (Files): Add lib/isdir.h.
32292         * lib/isdir.h: New file, with declaration.
32293         * m4/isdir.m4: Remove file -- unneeded.
32294
32295 2009-12-25  Bruno Haible  <bruno@clisp.org>
32296
32297         selinux-h: Make generated .h files standalone.
32298         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
32299         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
32300         * lib/se-selinux.in.h: Likewise.
32301         * modules/selinux-h (Depends-on): Add unused-parameter.
32302         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
32303         selinux/selinux.h and selinux/context.h.
32304         Suggested by Eric Blake.
32305
32306 2009-12-25  Bruno Haible  <bruno@clisp.org>
32307
32308         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
32309         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
32310         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
32311         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
32312         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
32313
32314 2009-12-24  Bruno Haible  <bruno@clisp.org>
32315
32316         openat: Fix warning.
32317         * lib/openat-proc.c: Include <unistd.h>.
32318
32319 2009-12-24  Bruno Haible  <bruno@clisp.org>
32320
32321         New module 'unused-parameter'.
32322         * build-aux/unused-parameter.h: New file, extracted from earlier
32323         gnulib-common.m4.
32324         * modules/unused-parameter: New file.
32325         * lib/unistr.h: Include unused-parameter.h.
32326         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
32327         _GL_UNUSED.
32328         * modules/unistr/base (Depends-on): Add unused-parameter.
32329
32330 2009-12-24  Bruno Haible  <bruno@clisp.org>
32331
32332         Add missing dependencies to 'extensions' module.
32333         * m4/extensions.m4: Add comment.
32334         * modules/accept4 (Depends-on): Add extensions.
32335         * modules/dup3 (Depends-on): Likewise.
32336         * modules/fcntl (Depends-on): Likewise.
32337         * modules/futimens (Depends-on): Likewise.
32338         * modules/mknod (Depends-on): Likewise.
32339         * modules/pipe2 (Depends-on): Likewise.
32340         * modules/stat-time (Depends-on): Likewise.
32341         * modules/strcasestr-simple (Depends-on): Likewise.
32342         * modules/strsignal (Depends-on): Likewise.
32343         * modules/utimensat (Depends-on): Likewise.
32344         * modules/localcharset (Depends-on): Likewise. Needed because of
32345         gl_FCNTL_O_FLAGS.
32346         * modules/wcrtomb (Depends-on): Likewise. Needed because of
32347         AC_TYPE_MBSTATE_T.
32348         * modules/wcsnrtombs (Depends-on): Likewise.
32349         * modules/wcsrtombs (Depends-on): Likewise.
32350
32351 2009-12-24  Bruno Haible  <bruno@clisp.org>
32352
32353         binary-io: Avoid gcc warning due to SET_BINARY.
32354         * lib/binary-io.h (SET_BINARY): Cast the result to void.
32355         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
32356
32357 2009-12-24  Bruno Haible  <bruno@clisp.org>
32358
32359         Avoid future namespace pollution on glibc systems.
32360         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
32361         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
32362         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
32363         glibc systems.
32364
32365 2009-12-24  Bruno Haible  <bruno@clisp.org>
32366
32367         Refactor common macros used in tests.
32368         * tests/macros.h: New file.
32369         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
32370         and/or <stdlib.h>, if appropriate.
32371         (ASSERT, SIZEOF): Remove macros.
32372         * tests/test-areadlink-with-size.c: Likewise.
32373         * tests/test-areadlinkat.c: Likewise.
32374         * tests/test-areadlinkat-with-size.c: Likewise.
32375         * tests/test-argmatch.c: Likewise.
32376         * tests/test-argv-iter.c: Likewise.
32377         * tests/test-array-mergesort.c: Likewise.
32378         * tests/test-array_list.c: Likewise.
32379         * tests/test-array_oset.c: Likewise.
32380         * tests/test-avltree_list.c: Likewise.
32381         * tests/test-avltree_oset.c: Likewise.
32382         * tests/test-avltreehash_list.c: Likewise.
32383         * tests/test-base64.c: Likewise.
32384         * tests/test-binary-io.c: Likewise.
32385         * tests/test-bitrotate.c: Likewise.
32386         * tests/test-btowc.c: Likewise.
32387         * tests/test-byteswap.c: Likewise.
32388         * tests/test-c-ctype.c: Likewise.
32389         * tests/test-c-stack.c: Likewise.
32390         * tests/test-c-strcasecmp.c: Likewise.
32391         * tests/test-c-strcasestr.c: Likewise.
32392         * tests/test-c-strncasecmp.c: Likewise.
32393         * tests/test-c-strstr.c: Likewise.
32394         * tests/test-canonicalize-lgpl.c: Likewise.
32395         * tests/test-canonicalize.c: Likewise.
32396         * tests/test-carray_list.c: Likewise.
32397         * tests/test-ceilf1.c: Likewise.
32398         * tests/test-ceilf2.c: Likewise.
32399         * tests/test-ceill.c: Likewise.
32400         * tests/test-chown.c: Likewise.
32401         * tests/test-cloexec.c: Likewise.
32402         * tests/test-copy-acl.c: Likewise.
32403         * tests/test-copy-file.c: Likewise.
32404         * tests/test-count-one-bits.c: Likewise.
32405         * tests/test-dprintf-posix.c: Likewise.
32406         * tests/test-dup2.c: Likewise.
32407         * tests/test-dup3.c: Likewise.
32408         * tests/test-duplocale.c: Likewise.
32409         * tests/test-fbufmode.c: Likewise.
32410         * tests/test-fchdir.c: Likewise.
32411         * tests/test-fchownat.c: Likewise.
32412         * tests/test-fcntl-safer.c: Likewise.
32413         * tests/test-fcntl.c: Likewise.
32414         * tests/test-fdopendir.c: Likewise.
32415         * tests/test-fdutimensat.c: Likewise.
32416         * tests/test-fflush2.c: Likewise.
32417         * tests/test-file-has-acl.c: Likewise.
32418         * tests/test-filevercmp.c: Likewise.
32419         * tests/test-flock.c: Likewise.
32420         * tests/test-floorf1.c: Likewise.
32421         * tests/test-floorf2.c: Likewise.
32422         * tests/test-floorl.c: Likewise.
32423         * tests/test-fnmatch.c: Likewise.
32424         * tests/test-fopen.h: Likewise.
32425         * tests/test-fpending.c: Likewise.
32426         * tests/test-fprintf-posix.c: Likewise.
32427         * tests/test-fpurge.c: Likewise.
32428         * tests/test-freadable.c: Likewise.
32429         * tests/test-freadahead.c: Likewise.
32430         * tests/test-freading.c: Likewise.
32431         * tests/test-freadptr.c: Likewise.
32432         * tests/test-freadptr2.c: Likewise.
32433         * tests/test-freadseek.c: Likewise.
32434         * tests/test-freopen.c: Likewise.
32435         * tests/test-frexp.c: Likewise.
32436         * tests/test-frexpl.c: Likewise.
32437         * tests/test-fseek.c: Likewise.
32438         * tests/test-fseeko.c: Likewise.
32439         * tests/test-fstatat.c: Likewise.
32440         * tests/test-fstrcmp.c: Likewise.
32441         * tests/test-fsync.c: Likewise.
32442         * tests/test-ftell.c: Likewise.
32443         * tests/test-ftello.c: Likewise.
32444         * tests/test-func.c: Likewise.
32445         * tests/test-futimens.c: Likewise.
32446         * tests/test-fwritable.c: Likewise.
32447         * tests/test-fwriting.c: Likewise.
32448         * tests/test-getcwd.c: Likewise.
32449         * tests/test-getdate.c: Likewise.
32450         * tests/test-getdelim.c: Likewise.
32451         * tests/test-getdtablesize.c: Likewise.
32452         * tests/test-getgroups.c: Likewise.
32453         * tests/test-getline.c: Likewise.
32454         * tests/test-getndelim2.c: Likewise.
32455         * tests/test-glob.c: Likewise.
32456         * tests/test-hash.c: Likewise.
32457         * tests/test-i-ring.c: Likewise.
32458         * tests/test-iconv-utf.c: Likewise.
32459         * tests/test-iconv.c: Likewise.
32460         * tests/test-idpriv-drop.c: Likewise.
32461         * tests/test-idpriv-droptemp.c: Likewise.
32462         * tests/test-inet_ntop.c: Likewise.
32463         * tests/test-inet_pton.c: Likewise.
32464         * tests/test-isblank.c: Likewise.
32465         * tests/test-isfinite.c: Likewise.
32466         * tests/test-isinf.c: Likewise.
32467         * tests/test-isnan.c: Likewise.
32468         * tests/test-isnand.h: Likewise.
32469         * tests/test-isnanf.h: Likewise.
32470         * tests/test-isnanl.h: Likewise.
32471         * tests/test-lchown.c: Likewise.
32472         * tests/test-ldexpl.c: Likewise.
32473         * tests/test-link.c: Likewise.
32474         * tests/test-linkat.c: Likewise.
32475         * tests/test-linked_list.c: Likewise.
32476         * tests/test-linkedhash_list.c: Likewise.
32477         * tests/test-localename.c: Likewise.
32478         * tests/test-lseek.c: Likewise.
32479         * tests/test-lstat.c: Likewise.
32480         * tests/test-mbmemcasecmp.c: Likewise.
32481         * tests/test-mbmemcasecoll.c: Likewise.
32482         * tests/test-mbrtowc.c: Likewise.
32483         * tests/test-mbscasecmp.c: Likewise.
32484         * tests/test-mbscasestr1.c: Likewise.
32485         * tests/test-mbscasestr2.c: Likewise.
32486         * tests/test-mbscasestr3.c: Likewise.
32487         * tests/test-mbscasestr4.c: Likewise.
32488         * tests/test-mbschr.c: Likewise.
32489         * tests/test-mbscspn.c: Likewise.
32490         * tests/test-mbsinit.c: Likewise.
32491         * tests/test-mbsncasecmp.c: Likewise.
32492         * tests/test-mbsnrtowcs.c: Likewise.
32493         * tests/test-mbspbrk.c: Likewise.
32494         * tests/test-mbspcasecmp.c: Likewise.
32495         * tests/test-mbsrchr.c: Likewise.
32496         * tests/test-mbsrtowcs.c: Likewise.
32497         * tests/test-mbsspn.c: Likewise.
32498         * tests/test-mbsstr1.c: Likewise.
32499         * tests/test-mbsstr2.c: Likewise.
32500         * tests/test-mbsstr3.c: Likewise.
32501         * tests/test-memchr.c: Likewise.
32502         * tests/test-memchr2.c: Likewise.
32503         * tests/test-memcmp.c: Likewise.
32504         * tests/test-memmem.c: Likewise.
32505         * tests/test-memrchr.c: Likewise.
32506         * tests/test-mkdir.c: Likewise.
32507         * tests/test-mkdirat.c: Likewise.
32508         * tests/test-mkfifo.c: Likewise.
32509         * tests/test-mkfifoat.c: Likewise.
32510         * tests/test-mknod.c: Likewise.
32511         * tests/test-nanosleep.c: Likewise.
32512         * tests/test-nl_langinfo.c: Likewise.
32513         * tests/test-obstack-printf.c: Likewise.
32514         * tests/test-open.c: Likewise.
32515         * tests/test-openat.c: Likewise.
32516         * tests/test-pipe-filter-gi1.c: Likewise.
32517         * tests/test-pipe-filter-gi2-main.c: Likewise.
32518         * tests/test-pipe-filter-ii1.c: Likewise.
32519         * tests/test-pipe-filter-ii2-main.c: Likewise.
32520         * tests/test-pipe2.c: Likewise.
32521         * tests/test-popen.h: Likewise.
32522         * tests/test-posixtm.c: Likewise.
32523         * tests/test-pread.c: Likewise.
32524         * tests/test-printf-frexp.c: Likewise.
32525         * tests/test-printf-frexpl.c: Likewise.
32526         * tests/test-printf-posix.c: Likewise.
32527         * tests/test-priv-set.c: Likewise.
32528         * tests/test-quotearg.c: Likewise.
32529         * tests/test-random_r.c: Likewise.
32530         * tests/test-rawmemchr.c: Likewise.
32531         * tests/test-rbtree_list.c: Likewise.
32532         * tests/test-rbtree_oset.c: Likewise.
32533         * tests/test-rbtreehash_list.c: Likewise.
32534         * tests/test-readlink.c: Likewise.
32535         * tests/test-remove.c: Likewise.
32536         * tests/test-rename.c: Likewise.
32537         * tests/test-renameat.c: Likewise.
32538         * tests/test-rmdir.c: Likewise.
32539         * tests/test-round1.c: Likewise.
32540         * tests/test-roundf1.c: Likewise.
32541         * tests/test-roundl.c: Likewise.
32542         * tests/test-safe-alloc.c: Likewise.
32543         * tests/test-sameacls.c: Likewise.
32544         * tests/test-set-mode-acl.c: Likewise.
32545         * tests/test-setenv.c: Likewise.
32546         * tests/test-sigaction.c: Likewise.
32547         * tests/test-signbit.c: Likewise.
32548         * tests/test-sleep.c: Likewise.
32549         * tests/test-snprintf-posix.c: Likewise.
32550         * tests/test-snprintf.c: Likewise.
32551         * tests/test-sprintf-posix.c: Likewise.
32552         * tests/test-stat-time.c: Likewise.
32553         * tests/test-stat.c: Likewise.
32554         * tests/test-strcasestr.c: Likewise.
32555         * tests/test-strchrnul.c: Likewise.
32556         * tests/test-strerror.c: Likewise.
32557         * tests/test-striconv.c: Likewise.
32558         * tests/test-striconveh.c: Likewise.
32559         * tests/test-striconveha.c: Likewise.
32560         * tests/test-strsignal.c: Likewise.
32561         * tests/test-strstr.c: Likewise.
32562         * tests/test-strtod.c: Likewise.
32563         * tests/test-strverscmp.c: Likewise.
32564         * tests/test-symlink.c: Likewise.
32565         * tests/test-symlinkat.c: Likewise.
32566         * tests/test-trunc1.c: Likewise.
32567         * tests/test-trunc2.c: Likewise.
32568         * tests/test-truncf1.c: Likewise.
32569         * tests/test-truncf2.c: Likewise.
32570         * tests/test-truncl.c: Likewise.
32571         * tests/test-uname.c: Likewise.
32572         * tests/test-unlink.c: Likewise.
32573         * tests/test-unlinkat.c: Likewise.
32574         * tests/test-unsetenv.c: Likewise.
32575         * tests/test-usleep.c: Likewise.
32576         * tests/test-utimens.c: Likewise.
32577         * tests/test-utimensat.c: Likewise.
32578         * tests/test-vasnprintf-posix.c: Likewise.
32579         * tests/test-vasnprintf-posix2.c: Likewise.
32580         * tests/test-vasnprintf.c: Likewise.
32581         * tests/test-vasprintf-posix.c: Likewise.
32582         * tests/test-vasprintf.c: Likewise.
32583         * tests/test-vdprintf-posix.c: Likewise.
32584         * tests/test-vfprintf-posix.c: Likewise.
32585         * tests/test-vprintf-posix.c: Likewise.
32586         * tests/test-vsnprintf-posix.c: Likewise.
32587         * tests/test-vsnprintf.c: Likewise.
32588         * tests/test-vsprintf-posix.c: Likewise.
32589         * tests/test-wcrtomb.c: Likewise.
32590         * tests/test-wcsnrtombs.c: Likewise.
32591         * tests/test-wcsrtombs.c: Likewise.
32592         * tests/test-wctype.c: Likewise.
32593         * tests/test-wcwidth.c: Likewise.
32594         * tests/test-xfprintf-posix.c: Likewise.
32595         * tests/test-xmemdup0.c: Likewise.
32596         * tests/test-xprintf-posix.c: Likewise.
32597         * tests/test-xvasprintf.c: Likewise.
32598         * tests/unicase/test-locale-language.c: Likewise.
32599         * tests/unicase/test-mapping-part1.h: Likewise.
32600         * tests/unicase/test-predicate-part1.h: Likewise.
32601         * tests/unicase/test-u8-casecmp.c: Likewise.
32602         * tests/unicase/test-u8-casecoll.c: Likewise.
32603         * tests/unicase/test-u8-casefold.c: Likewise.
32604         * tests/unicase/test-u8-is-cased.c: Likewise.
32605         * tests/unicase/test-u8-is-casefolded.c: Likewise.
32606         * tests/unicase/test-u8-is-lowercase.c: Likewise.
32607         * tests/unicase/test-u8-is-titlecase.c: Likewise.
32608         * tests/unicase/test-u8-is-uppercase.c: Likewise.
32609         * tests/unicase/test-u8-tolower.c: Likewise.
32610         * tests/unicase/test-u8-totitle.c: Likewise.
32611         * tests/unicase/test-u8-toupper.c: Likewise.
32612         * tests/unicase/test-u16-casecmp.c: Likewise.
32613         * tests/unicase/test-u16-casecoll.c: Likewise.
32614         * tests/unicase/test-u16-casefold.c: Likewise.
32615         * tests/unicase/test-u16-is-cased.c: Likewise.
32616         * tests/unicase/test-u16-is-casefolded.c: Likewise.
32617         * tests/unicase/test-u16-is-lowercase.c: Likewise.
32618         * tests/unicase/test-u16-is-titlecase.c: Likewise.
32619         * tests/unicase/test-u16-is-uppercase.c: Likewise.
32620         * tests/unicase/test-u16-tolower.c: Likewise.
32621         * tests/unicase/test-u16-totitle.c: Likewise.
32622         * tests/unicase/test-u16-toupper.c: Likewise.
32623         * tests/unicase/test-u32-casecmp.c: Likewise.
32624         * tests/unicase/test-u32-casecoll.c: Likewise.
32625         * tests/unicase/test-u32-casefold.c: Likewise.
32626         * tests/unicase/test-u32-is-cased.c: Likewise.
32627         * tests/unicase/test-u32-is-casefolded.c: Likewise.
32628         * tests/unicase/test-u32-is-lowercase.c: Likewise.
32629         * tests/unicase/test-u32-is-titlecase.c: Likewise.
32630         * tests/unicase/test-u32-is-uppercase.c: Likewise.
32631         * tests/unicase/test-u32-tolower.c: Likewise.
32632         * tests/unicase/test-u32-totitle.c: Likewise.
32633         * tests/unicase/test-u32-toupper.c: Likewise.
32634         * tests/unicase/test-ulc-casecmp.c: Likewise.
32635         * tests/unicase/test-ulc-casecoll.c: Likewise.
32636         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
32637         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
32638         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
32639         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
32640         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
32641         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
32642         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
32643         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
32644         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
32645         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
32646         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
32647         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
32648         * tests/unictype/test-bidi_byname.c: Likewise.
32649         * tests/unictype/test-bidi_name.c: Likewise.
32650         * tests/unictype/test-bidi_of.c: Likewise.
32651         * tests/unictype/test-bidi_test.c: Likewise.
32652         * tests/unictype/test-block_list.c: Likewise.
32653         * tests/unictype/test-block_of.c: Likewise.
32654         * tests/unictype/test-block_test.c: Likewise.
32655         * tests/unictype/test-categ_and.c: Likewise.
32656         * tests/unictype/test-categ_and_not.c: Likewise.
32657         * tests/unictype/test-categ_byname.c: Likewise.
32658         * tests/unictype/test-categ_name.c: Likewise.
32659         * tests/unictype/test-categ_none.c: Likewise.
32660         * tests/unictype/test-categ_of.c: Likewise.
32661         * tests/unictype/test-categ_or.c: Likewise.
32662         * tests/unictype/test-categ_test_withtable.c: Likewise.
32663         * tests/unictype/test-combining.c: Likewise.
32664         * tests/unictype/test-decdigit.c: Likewise.
32665         * tests/unictype/test-digit.c: Likewise.
32666         * tests/unictype/test-mirror.c: Likewise.
32667         * tests/unictype/test-numeric.c: Likewise.
32668         * tests/unictype/test-pr_byname.c: Likewise.
32669         * tests/unictype/test-pr_test.c: Likewise.
32670         * tests/unictype/test-predicate-part1.h: Likewise.
32671         * tests/unictype/test-scripts.c: Likewise.
32672         * tests/unictype/test-sy_c_ident.c: Likewise.
32673         * tests/unictype/test-sy_java_ident.c: Likewise.
32674         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
32675         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
32676         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
32677         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
32678         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
32679         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
32680         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
32681         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
32682         * tests/uninorm/test-canonical-decomposition.c: Likewise.
32683         * tests/uninorm/test-compat-decomposition.c: Likewise.
32684         * tests/uninorm/test-composition.c: Likewise.
32685         * tests/uninorm/test-decomposing-form.c: Likewise.
32686         * tests/uninorm/test-decomposition.c: Likewise.
32687         * tests/uninorm/test-u8-nfc.c: Likewise.
32688         * tests/uninorm/test-u8-nfd.c: Likewise.
32689         * tests/uninorm/test-u8-nfkc.c: Likewise.
32690         * tests/uninorm/test-u8-nfkd.c: Likewise.
32691         * tests/uninorm/test-u8-normcmp.c: Likewise.
32692         * tests/uninorm/test-u8-normcoll.c: Likewise.
32693         * tests/uninorm/test-u16-nfc.c: Likewise.
32694         * tests/uninorm/test-u16-nfd.c: Likewise.
32695         * tests/uninorm/test-u16-nfkc.c: Likewise.
32696         * tests/uninorm/test-u16-nfkd.c: Likewise.
32697         * tests/uninorm/test-u16-normcmp.c: Likewise.
32698         * tests/uninorm/test-u16-normcoll.c: Likewise.
32699         * tests/uninorm/test-u32-nfc.c: Likewise.
32700         * tests/uninorm/test-u32-nfd.c: Likewise.
32701         * tests/uninorm/test-u32-nfkc.c: Likewise.
32702         * tests/uninorm/test-u32-nfkd.c: Likewise.
32703         * tests/uninorm/test-u32-normalize-big.c: Likewise.
32704         * tests/uninorm/test-u32-normcmp.c: Likewise.
32705         * tests/uninorm/test-u32-normcoll.c: Likewise.
32706         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
32707         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
32708         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
32709         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
32710         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
32711         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
32712         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
32713         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
32714         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
32715         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
32716         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
32717         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
32718         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
32719         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
32720         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
32721         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
32722         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
32723         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
32724         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
32725         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
32726         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
32727         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
32728         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
32729         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
32730         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
32731         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
32732         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
32733         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
32734         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
32735         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
32736         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
32737         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
32738         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
32739         * tests/uniwidth/test-u8-strwidth.c: Likewise.
32740         * tests/uniwidth/test-u8-width.c: Likewise.
32741         * tests/uniwidth/test-u16-strwidth.c: Likewise.
32742         * tests/uniwidth/test-u16-width.c: Likewise.
32743         * tests/uniwidth/test-u32-strwidth.c: Likewise.
32744         * tests/uniwidth/test-u32-width.c: Likewise.
32745         * tests/uniwidth/test-uc_width.c: Likewise.
32746         * tests/uniwidth/test-uc_width2.c: Likewise.
32747         * modules/acl-tests (Files): Add tests/macros.h.
32748         * modules/areadlink-tests (Files): Likewise.
32749         * modules/areadlink-with-size-tests (Files): Likewise.
32750         * modules/areadlinkat-tests (Files): Likewise.
32751         * modules/areadlinkat-with-size-tests (Files): Likewise.
32752         * modules/argmatch-tests (Files): Likewise.
32753         * modules/argv-iter-tests (Files): Likewise.
32754         * modules/array-list-tests (Files): Likewise.
32755         * modules/array-mergesort-tests (Files): Likewise.
32756         * modules/array-oset-tests (Files): Likewise.
32757         * modules/avltree-list-tests (Files): Likewise.
32758         * modules/avltree-oset-tests (Files): Likewise.
32759         * modules/avltreehash-list-tests (Files): Likewise.
32760         * modules/base64-tests (Files): Likewise.
32761         * modules/binary-io-tests (Files): Likewise.
32762         * modules/bitrotate-tests (Files): Likewise.
32763         * modules/btowc-tests (Files): Likewise.
32764         * modules/byteswap-tests (Files): Likewise.
32765         * modules/c-ctype-tests (Files): Likewise.
32766         * modules/c-stack-tests (Files): Likewise.
32767         * modules/c-strcase-tests (Files): Likewise.
32768         * modules/c-strcasestr-tests (Files): Likewise.
32769         * modules/c-strstr-tests (Files): Likewise.
32770         * modules/canonicalize-lgpl-tests (Files): Likewise.
32771         * modules/canonicalize-tests (Files): Likewise.
32772         * modules/carray-list-tests (Files): Likewise.
32773         * modules/ceilf-tests (Files): Likewise.
32774         * modules/ceill-tests (Files): Likewise.
32775         * modules/chown-tests (Files): Likewise.
32776         * modules/cloexec-tests (Files): Likewise.
32777         * modules/copy-file-tests (Files): Likewise.
32778         * modules/count-one-bits-tests (Files): Likewise.
32779         * modules/dprintf-posix-tests (Files): Likewise.
32780         * modules/dup2-tests (Files): Likewise.
32781         * modules/dup3-tests (Files): Likewise.
32782         * modules/duplocale-tests (Files): Likewise.
32783         * modules/fbufmode-tests (Files): Likewise.
32784         * modules/fchdir-tests (Files): Likewise.
32785         * modules/fcntl-safer-tests (Files): Likewise.
32786         * modules/fcntl-tests (Files): Likewise.
32787         * modules/fdopendir-tests (Files): Likewise.
32788         * modules/fdutimensat-tests (Files): Likewise.
32789         * modules/fflush-tests (Files): Likewise.
32790         * modules/filevercmp-tests (Files): Likewise.
32791         * modules/flock-tests (Files): Likewise.
32792         * modules/floorf-tests (Files): Likewise.
32793         * modules/floorl-tests (Files): Likewise.
32794         * modules/fnmatch-tests (Files): Likewise.
32795         * modules/fopen-safer-tests (Files): Likewise.
32796         * modules/fopen-tests (Files): Likewise.
32797         * modules/fpending-tests (Files): Likewise.
32798         * modules/fprintf-posix-tests (Files): Likewise.
32799         * modules/fpurge-tests (Files): Likewise.
32800         * modules/freadable-tests (Files): Likewise.
32801         * modules/freadahead-tests (Files): Likewise.
32802         * modules/freading-tests (Files): Likewise.
32803         * modules/freadptr-tests (Files): Likewise.
32804         * modules/freadseek-tests (Files): Likewise.
32805         * modules/freopen-tests (Files): Likewise.
32806         * modules/frexp-nolibm-tests (Files): Likewise.
32807         * modules/frexp-tests (Files): Likewise.
32808         * modules/frexpl-nolibm-tests (Files): Likewise.
32809         * modules/frexpl-tests (Files): Likewise.
32810         * modules/fseek-tests (Files): Likewise.
32811         * modules/fseeko-tests (Files): Likewise.
32812         * modules/fstrcmp-tests (Files): Likewise.
32813         * modules/fsync-tests (Files): Likewise.
32814         * modules/ftell-tests (Files): Likewise.
32815         * modules/ftello-tests (Files): Likewise.
32816         * modules/func-tests (Files): Likewise.
32817         * modules/futimens-tests (Files): Likewise.
32818         * modules/fwritable-tests (Files): Likewise.
32819         * modules/fwriting-tests (Files): Likewise.
32820         * modules/getcwd-tests (Files): Likewise.
32821         * modules/getdate-tests (Files): Likewise.
32822         * modules/getdelim-tests (Files): Likewise.
32823         * modules/getdtablesize-tests (Files): Likewise.
32824         * modules/getgroups-tests (Files): Likewise.
32825         * modules/getline-tests (Files): Likewise.
32826         * modules/getndelim2-tests (Files): Likewise.
32827         * modules/glob-tests (Files): Likewise.
32828         * modules/hash-tests (Files): Likewise.
32829         * modules/i-ring-tests (Files): Likewise.
32830         * modules/iconv-tests (Files): Likewise.
32831         * modules/iconv_open-utf-tests (Files): Likewise.
32832         * modules/idpriv-drop-tests (Files): Likewise.
32833         * modules/idpriv-droptemp-tests (Files): Likewise.
32834         * modules/inet_ntop-tests (Files): Likewise.
32835         * modules/inet_pton-tests (Files): Likewise.
32836         * modules/isblank-tests (Files): Likewise.
32837         * modules/isfinite-tests (Files): Likewise.
32838         * modules/isinf-tests (Files): Likewise.
32839         * modules/isnan-tests (Files): Likewise.
32840         * modules/isnand-nolibm-tests (Files): Likewise.
32841         * modules/isnand-tests (Files): Likewise.
32842         * modules/isnanf-nolibm-tests (Files): Likewise.
32843         * modules/isnanf-tests (Files): Likewise.
32844         * modules/isnanl-nolibm-tests (Files): Likewise.
32845         * modules/isnanl-tests (Files): Likewise.
32846         * modules/lchown-tests (Files): Likewise.
32847         * modules/ldexpl-tests (Files): Likewise.
32848         * modules/link-tests (Files): Likewise.
32849         * modules/linkat-tests (Files): Likewise.
32850         * modules/linked-list-tests (Files): Likewise.
32851         * modules/linkedhash-list-tests (Files): Likewise.
32852         * modules/localename-tests (Files): Likewise.
32853         * modules/lseek-tests (Files): Likewise.
32854         * modules/lstat-tests (Files): Likewise.
32855         * modules/mbmemcasecmp-tests (Files): Likewise.
32856         * modules/mbmemcasecoll-tests (Files): Likewise.
32857         * modules/mbrtowc-tests (Files): Likewise.
32858         * modules/mbscasecmp-tests (Files): Likewise.
32859         * modules/mbscasestr-tests (Files): Likewise.
32860         * modules/mbschr-tests (Files): Likewise.
32861         * modules/mbscspn-tests (Files): Likewise.
32862         * modules/mbsinit-tests (Files): Likewise.
32863         * modules/mbsncasecmp-tests (Files): Likewise.
32864         * modules/mbsnrtowcs-tests (Files): Likewise.
32865         * modules/mbspbrk-tests (Files): Likewise.
32866         * modules/mbspcasecmp-tests (Files): Likewise.
32867         * modules/mbsrchr-tests (Files): Likewise.
32868         * modules/mbsrtowcs-tests (Files): Likewise.
32869         * modules/mbsspn-tests (Files): Likewise.
32870         * modules/mbsstr-tests (Files): Likewise.
32871         * modules/memchr-tests (Files): Likewise.
32872         * modules/memchr2-tests (Files): Likewise.
32873         * modules/memcmp-tests (Files): Likewise.
32874         * modules/memmem-tests (Files): Likewise.
32875         * modules/memrchr-tests (Files): Likewise.
32876         * modules/mkdir-tests (Files): Likewise.
32877         * modules/mkfifo-tests (Files): Likewise.
32878         * modules/mkfifoat-tests (Files): Likewise.
32879         * modules/mknod-tests (Files): Likewise.
32880         * modules/nanosleep-tests (Files): Likewise.
32881         * modules/nl_langinfo-tests (Files): Likewise.
32882         * modules/obstack-printf-tests (Files): Likewise.
32883         * modules/open-tests (Files): Likewise.
32884         * modules/openat-tests (Files): Likewise.
32885         * modules/pipe-filter-gi-tests (Files): Likewise.
32886         * modules/pipe-filter-ii-tests (Files): Likewise.
32887         * modules/pipe2-tests (Files): Likewise.
32888         * modules/popen-safer-tests (Files): Likewise.
32889         * modules/popen-tests (Files): Likewise.
32890         * modules/posixtm-tests (Files): Likewise.
32891         * modules/pread-tests (Files): Likewise.
32892         * modules/printf-frexp-tests (Files): Likewise.
32893         * modules/printf-frexpl-tests (Files): Likewise.
32894         * modules/printf-posix-tests (Files): Likewise.
32895         * modules/priv-set-tests (Files): Likewise.
32896         * modules/quotearg-tests (Files): Likewise.
32897         * modules/random_r-tests (Files): Likewise.
32898         * modules/rawmemchr-tests (Files): Likewise.
32899         * modules/rbtree-list-tests (Files): Likewise.
32900         * modules/rbtree-oset-tests (Files): Likewise.
32901         * modules/rbtreehash-list-tests (Files): Likewise.
32902         * modules/readlink-tests (Files): Likewise.
32903         * modules/remove-tests (Files): Likewise.
32904         * modules/rename-tests (Files): Likewise.
32905         * modules/renameat-tests (Files): Likewise.
32906         * modules/rmdir-tests (Files): Likewise.
32907         * modules/round-tests (Files): Likewise.
32908         * modules/roundf-tests (Files): Likewise.
32909         * modules/roundl-tests (Files): Likewise.
32910         * modules/safe-alloc-tests (Files): Likewise.
32911         * modules/setenv-tests (Files): Likewise.
32912         * modules/sigaction-tests (Files): Likewise.
32913         * modules/signbit-tests (Files): Likewise.
32914         * modules/sleep-tests (Files): Likewise.
32915         * modules/snprintf-posix-tests (Files): Likewise.
32916         * modules/snprintf-tests (Files): Likewise.
32917         * modules/sprintf-posix-tests (Files): Likewise.
32918         * modules/stat-tests (Files): Likewise.
32919         * modules/stat-time-tests (Files): Likewise.
32920         * modules/strcasestr-tests (Files): Likewise.
32921         * modules/strchrnul-tests (Files): Likewise.
32922         * modules/strerror-tests (Files): Likewise.
32923         * modules/striconv-tests (Files): Likewise.
32924         * modules/striconveh-tests (Files): Likewise.
32925         * modules/striconveha-tests (Files): Likewise.
32926         * modules/strsignal-tests (Files): Likewise.
32927         * modules/strstr-tests (Files): Likewise.
32928         * modules/strtod-tests (Files): Likewise.
32929         * modules/strverscmp-tests (Files): Likewise.
32930         * modules/symlink-tests (Files): Likewise.
32931         * modules/symlinkat-tests (Files): Likewise.
32932         * modules/trunc-tests (Files): Likewise.
32933         * modules/truncf-tests (Files): Likewise.
32934         * modules/truncl-tests (Files): Likewise.
32935         * modules/uname-tests (Files): Likewise.
32936         * modules/unicase/cased-tests (Files): Likewise.
32937         * modules/unicase/ignorable-tests (Files): Likewise.
32938         * modules/unicase/locale-language-tests (Files): Likewise.
32939         * modules/unicase/tolower-tests (Files): Likewise.
32940         * modules/unicase/totitle-tests (Files): Likewise.
32941         * modules/unicase/toupper-tests (Files): Likewise.
32942         * modules/unicase/u8-casecmp-tests (Files): Likewise.
32943         * modules/unicase/u8-casecoll-tests (Files): Likewise.
32944         * modules/unicase/u8-casefold-tests (Files): Likewise.
32945         * modules/unicase/u8-is-cased-tests (Files): Likewise.
32946         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
32947         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
32948         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
32949         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
32950         * modules/unicase/u8-tolower-tests (Files): Likewise.
32951         * modules/unicase/u8-totitle-tests (Files): Likewise.
32952         * modules/unicase/u8-toupper-tests (Files): Likewise.
32953         * modules/unicase/u16-casecmp-tests (Files): Likewise.
32954         * modules/unicase/u16-casecoll-tests (Files): Likewise.
32955         * modules/unicase/u16-casefold-tests (Files): Likewise.
32956         * modules/unicase/u16-is-cased-tests (Files): Likewise.
32957         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
32958         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
32959         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
32960         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
32961         * modules/unicase/u16-tolower-tests (Files): Likewise.
32962         * modules/unicase/u16-totitle-tests (Files): Likewise.
32963         * modules/unicase/u16-toupper-tests (Files): Likewise.
32964         * modules/unicase/u32-casecmp-tests (Files): Likewise.
32965         * modules/unicase/u32-casecoll-tests (Files): Likewise.
32966         * modules/unicase/u32-casefold-tests (Files): Likewise.
32967         * modules/unicase/u32-is-cased-tests (Files): Likewise.
32968         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
32969         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
32970         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
32971         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
32972         * modules/unicase/u32-tolower-tests (Files): Likewise.
32973         * modules/unicase/u32-totitle-tests (Files): Likewise.
32974         * modules/unicase/u32-toupper-tests (Files): Likewise.
32975         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
32976         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
32977         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
32978         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
32979         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
32980         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
32981         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
32982         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
32983         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
32984         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
32985         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
32986         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
32987         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
32988         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
32989         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
32990         * modules/unictype/bidicategory-name-tests (Files): Likewise.
32991         * modules/unictype/bidicategory-of-tests (Files): Likewise.
32992         * modules/unictype/bidicategory-test-tests (Files): Likewise.
32993         * modules/unictype/block-list-tests (Files): Likewise.
32994         * modules/unictype/block-of-tests (Files): Likewise.
32995         * modules/unictype/block-test-tests (Files): Likewise.
32996         * modules/unictype/category-C-tests (Files): Likewise.
32997         * modules/unictype/category-Cc-tests (Files): Likewise.
32998         * modules/unictype/category-Cf-tests (Files): Likewise.
32999         * modules/unictype/category-Cn-tests (Files): Likewise.
33000         * modules/unictype/category-Co-tests (Files): Likewise.
33001         * modules/unictype/category-Cs-tests (Files): Likewise.
33002         * modules/unictype/category-L-tests (Files): Likewise.
33003         * modules/unictype/category-Ll-tests (Files): Likewise.
33004         * modules/unictype/category-Lm-tests (Files): Likewise.
33005         * modules/unictype/category-Lo-tests (Files): Likewise.
33006         * modules/unictype/category-Lt-tests (Files): Likewise.
33007         * modules/unictype/category-Lu-tests (Files): Likewise.
33008         * modules/unictype/category-M-tests (Files): Likewise.
33009         * modules/unictype/category-Mc-tests (Files): Likewise.
33010         * modules/unictype/category-Me-tests (Files): Likewise.
33011         * modules/unictype/category-Mn-tests (Files): Likewise.
33012         * modules/unictype/category-N-tests (Files): Likewise.
33013         * modules/unictype/category-Nd-tests (Files): Likewise.
33014         * modules/unictype/category-Nl-tests (Files): Likewise.
33015         * modules/unictype/category-No-tests (Files): Likewise.
33016         * modules/unictype/category-P-tests (Files): Likewise.
33017         * modules/unictype/category-Pc-tests (Files): Likewise.
33018         * modules/unictype/category-Pd-tests (Files): Likewise.
33019         * modules/unictype/category-Pe-tests (Files): Likewise.
33020         * modules/unictype/category-Pf-tests (Files): Likewise.
33021         * modules/unictype/category-Pi-tests (Files): Likewise.
33022         * modules/unictype/category-Po-tests (Files): Likewise.
33023         * modules/unictype/category-Ps-tests (Files): Likewise.
33024         * modules/unictype/category-S-tests (Files): Likewise.
33025         * modules/unictype/category-Sc-tests (Files): Likewise.
33026         * modules/unictype/category-Sk-tests (Files): Likewise.
33027         * modules/unictype/category-Sm-tests (Files): Likewise.
33028         * modules/unictype/category-So-tests (Files): Likewise.
33029         * modules/unictype/category-Z-tests (Files): Likewise.
33030         * modules/unictype/category-Zl-tests (Files): Likewise.
33031         * modules/unictype/category-Zp-tests (Files): Likewise.
33032         * modules/unictype/category-Zs-tests (Files): Likewise.
33033         * modules/unictype/category-and-not-tests (Files): Likewise.
33034         * modules/unictype/category-and-tests (Files): Likewise.
33035         * modules/unictype/category-byname-tests (Files): Likewise.
33036         * modules/unictype/category-name-tests (Files): Likewise.
33037         * modules/unictype/category-none-tests (Files): Likewise.
33038         * modules/unictype/category-of-tests (Files): Likewise.
33039         * modules/unictype/category-or-tests (Files): Likewise.
33040         * modules/unictype/category-test-withtable-tests (Files): Likewise.
33041         * modules/unictype/combining-class-tests (Files): Likewise.
33042         * modules/unictype/ctype-alnum-tests (Files): Likewise.
33043         * modules/unictype/ctype-alpha-tests (Files): Likewise.
33044         * modules/unictype/ctype-blank-tests (Files): Likewise.
33045         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
33046         * modules/unictype/ctype-digit-tests (Files): Likewise.
33047         * modules/unictype/ctype-graph-tests (Files): Likewise.
33048         * modules/unictype/ctype-lower-tests (Files): Likewise.
33049         * modules/unictype/ctype-print-tests (Files): Likewise.
33050         * modules/unictype/ctype-punct-tests (Files): Likewise.
33051         * modules/unictype/ctype-space-tests (Files): Likewise.
33052         * modules/unictype/ctype-upper-tests (Files): Likewise.
33053         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
33054         * modules/unictype/decimal-digit-tests (Files): Likewise.
33055         * modules/unictype/digit-tests (Files): Likewise.
33056         * modules/unictype/mirror-tests (Files): Likewise.
33057         * modules/unictype/numeric-tests (Files): Likewise.
33058         * modules/unictype/property-alphabetic-tests (Files): Likewise.
33059         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
33060         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
33061         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
33062         Likewise.
33063         * modules/unictype/property-bidi-block-separator-tests (Files):
33064         Likewise.
33065         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
33066         Likewise.
33067         * modules/unictype/property-bidi-common-separator-tests (Files):
33068         Likewise.
33069         * modules/unictype/property-bidi-control-tests (Files): Likewise.
33070         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
33071         Likewise.
33072         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
33073         Likewise.
33074         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
33075         Likewise.
33076         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
33077         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
33078         Likewise.
33079         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
33080         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
33081         Likewise.
33082         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
33083         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
33084         * modules/unictype/property-bidi-segment-separator-tests (Files):
33085         Likewise.
33086         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
33087         * modules/unictype/property-byname-tests (Files): Likewise.
33088         * modules/unictype/property-combining-tests (Files): Likewise.
33089         * modules/unictype/property-composite-tests (Files): Likewise.
33090         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
33091         * modules/unictype/property-dash-tests (Files): Likewise.
33092         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
33093         * modules/unictype/property-default-ignorable-code-point-tests (Files):
33094         Likewise.
33095         * modules/unictype/property-deprecated-tests (Files): Likewise.
33096         * modules/unictype/property-diacritic-tests (Files): Likewise.
33097         * modules/unictype/property-extender-tests (Files): Likewise.
33098         * modules/unictype/property-format-control-tests (Files): Likewise.
33099         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
33100         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
33101         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
33102         * modules/unictype/property-hex-digit-tests (Files): Likewise.
33103         * modules/unictype/property-hyphen-tests (Files): Likewise.
33104         * modules/unictype/property-id-continue-tests (Files): Likewise.
33105         * modules/unictype/property-id-start-tests (Files): Likewise.
33106         * modules/unictype/property-ideographic-tests (Files): Likewise.
33107         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
33108         * modules/unictype/property-ids-trinary-operator-tests (Files):
33109         Likewise.
33110         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
33111         * modules/unictype/property-iso-control-tests (Files): Likewise.
33112         * modules/unictype/property-join-control-tests (Files): Likewise.
33113         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
33114         * modules/unictype/property-line-separator-tests (Files): Likewise.
33115         * modules/unictype/property-logical-order-exception-tests (Files):
33116         Likewise.
33117         * modules/unictype/property-lowercase-tests (Files): Likewise.
33118         * modules/unictype/property-math-tests (Files): Likewise.
33119         * modules/unictype/property-non-break-tests (Files): Likewise.
33120         * modules/unictype/property-not-a-character-tests (Files): Likewise.
33121         * modules/unictype/property-numeric-tests (Files): Likewise.
33122         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
33123         * modules/unictype/property-other-default-ignorable-code-point-tests
33124         (Files): Likewise.
33125         * modules/unictype/property-other-grapheme-extend-tests (Files):
33126         Likewise.
33127         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
33128         * modules/unictype/property-other-id-start-tests (Files): Likewise.
33129         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
33130         * modules/unictype/property-other-math-tests (Files): Likewise.
33131         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
33132         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
33133         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
33134         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
33135         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
33136         * modules/unictype/property-private-use-tests (Files): Likewise.
33137         * modules/unictype/property-punctuation-tests (Files): Likewise.
33138         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
33139         * modules/unictype/property-radical-tests (Files): Likewise.
33140         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
33141         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
33142         * modules/unictype/property-space-tests (Files): Likewise.
33143         * modules/unictype/property-terminal-punctuation-tests (Files):
33144         Likewise.
33145         * modules/unictype/property-test-tests (Files): Likewise.
33146         * modules/unictype/property-titlecase-tests (Files): Likewise.
33147         * modules/unictype/property-unassigned-code-value-tests (Files):
33148         Likewise.
33149         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
33150         * modules/unictype/property-uppercase-tests (Files): Likewise.
33151         * modules/unictype/property-variation-selector-tests (Files): Likewise.
33152         * modules/unictype/property-white-space-tests (Files): Likewise.
33153         * modules/unictype/property-xid-continue-tests (Files): Likewise.
33154         * modules/unictype/property-xid-start-tests (Files): Likewise.
33155         * modules/unictype/property-zero-width-tests (Files): Likewise.
33156         * modules/unictype/scripts-tests (Files): Likewise.
33157         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
33158         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
33159         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
33160         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
33161         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
33162         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
33163         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
33164         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
33165         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
33166         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
33167         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
33168         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
33169         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
33170         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
33171         * modules/uninorm/composition-tests (Files): Likewise.
33172         * modules/uninorm/decomposing-form-tests (Files): Likewise.
33173         * modules/uninorm/decomposition-tests (Files): Likewise.
33174         * modules/uninorm/filter-tests (Files): Likewise.
33175         * modules/uninorm/nfc-tests (Files): Likewise.
33176         * modules/uninorm/nfd-tests (Files): Likewise.
33177         * modules/uninorm/nfkc-tests (Files): Likewise.
33178         * modules/uninorm/nfkd-tests (Files): Likewise.
33179         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
33180         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
33181         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
33182         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
33183         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
33184         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
33185         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
33186         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
33187         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
33188         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
33189         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
33190         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
33191         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
33192         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
33193         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
33194         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
33195         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
33196         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
33197         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
33198         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
33199         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
33200         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
33201         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
33202         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
33203         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
33204         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
33205         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
33206         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
33207         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
33208         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
33209         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
33210         * modules/uniwidth/u8-width-tests (Files): Likewise.
33211         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
33212         * modules/uniwidth/u16-width-tests (Files): Likewise.
33213         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
33214         * modules/uniwidth/u32-width-tests (Files): Likewise.
33215         * modules/uniwidth/width-tests (Files): Likewise.
33216         * modules/unlink-tests (Files): Likewise.
33217         * modules/unsetenv-tests (Files): Likewise.
33218         * modules/usleep-tests (Files): Likewise.
33219         * modules/utimens-tests (Files): Likewise.
33220         * modules/utimensat-tests (Files): Likewise.
33221         * modules/vasnprintf-posix-tests (Files): Likewise.
33222         * modules/vasnprintf-tests (Files): Likewise.
33223         * modules/vasprintf-posix-tests (Files): Likewise.
33224         * modules/vasprintf-tests (Files): Likewise.
33225         * modules/vdprintf-posix-tests (Files): Likewise.
33226         * modules/vfprintf-posix-tests (Files): Likewise.
33227         * modules/vprintf-posix-tests (Files): Likewise.
33228         * modules/vsnprintf-posix-tests (Files): Likewise.
33229         * modules/vsnprintf-tests (Files): Likewise.
33230         * modules/vsprintf-posix-tests (Files): Likewise.
33231         * modules/wcrtomb-tests (Files): Likewise.
33232         * modules/wcsnrtombs-tests (Files): Likewise.
33233         * modules/wcsrtombs-tests (Files): Likewise.
33234         * modules/wctype-tests (Files): Likewise.
33235         * modules/wcwidth-tests (Files): Likewise.
33236         * modules/xmemdup0-tests (Files): Likewise.
33237         * modules/xprintf-posix-tests (Files): Likewise.
33238         * modules/xvasprintf-tests (Files): Likewise.
33239
33240 2009-12-24  Eric Blake  <ebb9@byu.net>
33241
33242         test-nanosleep: fix typo
33243         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
33244         patch.
33245         Reported by Bruno Haible.
33246
33247 2009-12-24  Bruno Haible  <bruno@clisp.org>
33248
33249         Reduce namespace pollution on glibc systems.
33250         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
33251         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
33252         systems.
33253         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
33254         <getopt.h> on glibc systems.
33255         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
33256         systems.
33257         * lib/fcntl.c: Include <unistd.h> here instead.
33258
33259 2009-12-24  Bruno Haible  <bruno@clisp.org>
33260
33261         * lib/stdlib.in.h (includes): Fix typo in today's commit.
33262
33263 2009-12-24  Eric Blake  <ebb9@byu.net>
33264
33265         tests: add signature checks
33266         * tests/signature.h (SIGNATURE_CHECK): New file.
33267         * modules/atexit-tests (Files): Use it.
33268         * modules/btowc-tests (Files): Likewise.
33269         * modules/canonicalize-lgpl-tests (Files): Likewise.
33270         * modules/ceilf-tests (Files): Likewise.
33271         * modules/ceill-tests (Files): Likewise.
33272         * modules/chown-tests (Files): Likewise.
33273         * modules/dprintf-posix-tests (Files): Likewise.
33274         * modules/dup2-tests (Files): Likewise.
33275         * modules/dup3-tests (Files): Likewise.
33276         * modules/duplocale-tests (Files): Likewise.
33277         * modules/fchdir-tests (Files): Likewise.
33278         * modules/fcntl-tests (Files): Likewise.
33279         * modules/fdopendir-tests (Files): Likewise.
33280         * modules/fflush-tests (Files): Likewise.
33281         * modules/flock-tests (Files): Likewise.
33282         * modules/floorf-tests (Files): Likewise.
33283         * modules/floorl-tests (Files): Likewise.
33284         * modules/fnmatch-tests (Files): Likewise.
33285         * modules/fopen-tests (Files): Likewise.
33286         * modules/fprintf-posix-tests (Files): Likewise.
33287         * modules/freopen-tests (Files): Likewise.
33288         * modules/frexp-nolibm-tests (Files): Likewise.
33289         * modules/frexp-tests (Files): Likewise.
33290         * modules/frexpl-nolibm-tests (Files): Likewise.
33291         * modules/frexpl-tests (Files): Likewise.
33292         * modules/fseek-tests (Files): Likewise.
33293         * modules/fseeko-tests (Files): Likewise.
33294         * modules/fsync-tests (Files): Likewise.
33295         * modules/ftell-tests (Files): Likewise.
33296         * modules/ftello-tests (Files): Likewise.
33297         * modules/futimens-tests (Files): Likewise.
33298         * modules/getaddrinfo-tests (Files): Likewise.
33299         * modules/getcwd-tests (Files): Likewise.
33300         * modules/getdelim-tests (Files): Likewise.
33301         * modules/getdtablesize-tests (Files): Likewise.
33302         * modules/getgroups-tests (Files): Likewise.
33303         * modules/gethostname-tests (Files): Likewise.
33304         * modules/getline-tests (Files): Likewise.
33305         * modules/getopt-posix-tests (Files): Likewise.
33306         * modules/gettimeofday-tests (Files): Likewise.
33307         * modules/glob-tests (Files): Likewise.
33308         * modules/iconv-tests (Files): Likewise.
33309         * modules/inet_ntop-tests (Files): Likewise.
33310         * modules/inet_pton-tests (Files): Likewise.
33311         * modules/isblank-tests (Files): Likewise.
33312         * modules/lchown-tests (Files): Likewise.
33313         * modules/ldexpl-tests (Files): Likewise.
33314         * modules/link-tests (Files): Likewise.
33315         * modules/linkat-tests (Files): Likewise.
33316         * modules/lseek-tests (Files): Likewise.
33317         * modules/lstat-tests (Files): Likewise.
33318         * modules/mbrtowc-tests (Files): Likewise.
33319         * modules/mbsinit-tests (Files): Likewise.
33320         * modules/mbsnrtowcs-tests (Files): Likewise.
33321         * modules/mbsrtowcs-tests (Files): Likewise.
33322         * modules/memchr-tests (Files): Likewise.
33323         * modules/memcmp-tests (Files): Likewise.
33324         * modules/memmem-tests (Files): Likewise.
33325         * modules/memrchr-tests (Files): Likewise.
33326         * modules/mkdir-tests (Files): Likewise.
33327         * modules/mkfifo-tests (Files): Likewise.
33328         * modules/mkfifoat-tests (Files): Likewise.
33329         * modules/mknod-tests (Files): Likewise.
33330         * modules/nanosleep-tests (Files): Likewise.
33331         * modules/nl_langinfo-tests (Files): Likewise.
33332         * modules/obstack-printf-tests (Files): Likewise.
33333         * modules/open-tests (Files): Likewise.
33334         * modules/openat-tests (Files): Likewise.
33335         * modules/perror-tests (Files): Likewise.
33336         * modules/pipe2-tests (Files): Likewise.
33337         * modules/poll-tests (Files): Likewise.
33338         * modules/popen-tests (Files): Likewise.
33339         * modules/posix_spawn-tests (Files): Likewise.
33340         * modules/posix_spawnp-tests (Files): Likewise.
33341         * modules/pread-tests (Files): Likewise.
33342         * modules/printf-posix-tests (Files): Likewise.
33343         * modules/pty-tests (Files): Likewise.
33344         * modules/random_r-tests (Files): Likewise.
33345         * modules/rawmemchr-tests (Files): Likewise.
33346         * modules/readlink-tests (Files): Likewise.
33347         * modules/remove-tests (Files): Likewise.
33348         * modules/rename-tests (Files): Likewise.
33349         * modules/renameat-tests (Files): Likewise.
33350         * modules/rmdir-tests (Files): Likewise.
33351         * modules/round-tests (Files): Likewise.
33352         * modules/roundf-tests (Files): Likewise.
33353         * modules/roundl-tests (Files): Likewise.
33354         * modules/select-tests (Files): Likewise.
33355         * modules/setenv-tests (Files): Likewise.
33356         * modules/sigaction-tests (Files): Likewise.
33357         * modules/sleep-tests (Files): Likewise.
33358         * modules/snprintf-posix-tests (Files): Likewise.
33359         * modules/snprintf-tests (Files): Likewise.
33360         * modules/sprintf-posix-tests (Files): Likewise.
33361         * modules/stat-tests (Files): Likewise.
33362         * modules/strcasestr-tests (Files): Likewise.
33363         * modules/strchrnul-tests (Files): Likewise.
33364         * modules/strerror-tests (Files): Likewise.
33365         * modules/strsignal-tests (Files): Likewise.
33366         * modules/strstr-tests (Files): Likewise.
33367         * modules/strtod-tests (Files): Likewise.
33368         * modules/strverscmp-tests (Files): Likewise.
33369         * modules/symlink-tests (Files): Likewise.
33370         * modules/symlinkat-tests (Files): Likewise.
33371         * modules/times-tests (Files): Likewise.
33372         * modules/trunc-tests (Files): Likewise.
33373         * modules/truncf-tests (Files): Likewise.
33374         * modules/truncl-tests (Files): Likewise.
33375         * modules/tsearch-tests (Files): Likewise.
33376         * modules/uname-tests (Files): Likewise.
33377         * modules/unlink-tests (Files): Likewise.
33378         * modules/unsetenv-tests (Files): Likewise.
33379         * modules/usleep-tests (Files): Likewise.
33380         * modules/utimensat-tests (Files): Likewise.
33381         * modules/vasprintf-tests (Files): Likewise.
33382         * modules/vdprintf-posix-tests (Files): Likewise.
33383         * modules/vfprintf-posix-tests (Files): Likewise.
33384         * modules/vprintf-posix-tests (Files): Likewise.
33385         * modules/vsnprintf-posix-tests (Files): Likewise.
33386         * modules/vsnprintf-tests (Files): Likewise.
33387         * modules/vsprintf-posix-tests (Files): Likewise.
33388         * modules/wcrtomb-tests (Files): Likewise.
33389         * modules/wcsnrtombs-tests (Files): Likewise.
33390         * modules/wcsrtombs-tests (Files): Likewise.
33391         * modules/wcwidth-tests (Files): Likewise.
33392         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
33393         * tests/test-isinf.c (isinf): Likewise.
33394         * tests/test-isnan.c (isnan): Likewise.
33395         * tests/test-signbit.c (signbit): Likewise.
33396         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
33397         declaration, either as macro or with correct signature.
33398         (select): Ensure function under test is declared with correct
33399         signature in correct header.
33400         * tests/test-atexit.c (atexit): Likewise.
33401         * tests/test-btowc.c (btowc): Likewise.
33402         * tests/test-canonicalize-lgpl.c (realpath)
33403         (canonicalize_file_name): Likewise.
33404         * tests/test-ceilf1.c (ceilf): Likewise.
33405         * tests/test-ceill.c (ceill): Likewise.
33406         * tests/test-chown.c (chown): Likewise.
33407         * tests/test-dprintf-posix.c (dprintf): Likewise.
33408         * tests/test-dup2.c (dup2): Likewise.
33409         * tests/test-dup3.c (dup3): Likewise.
33410         * tests/test-duplocale.c (duplocale): Likewise.
33411         * tests/test-fchdir.c (fchdir): Likewise.
33412         * tests/test-fchownat.c (fchownat): Likewise.
33413         * tests/test-fcntl.c (fcntl): Likewise.
33414         * tests/test-fdopendir.c (fdopendir): Likewise.
33415         * tests/test-fflush.c (fflush): Likewise.
33416         * tests/test-flock.c (flock): Likewise.
33417         * tests/test-floorf1.c (floorf): Likewise.
33418         * tests/test-floorl.c (floorl): Likewise.
33419         * tests/test-fnmatch.c (fnmatch): Likewise.
33420         * tests/test-fopen.c (fopen): Likewise.
33421         * tests/test-fprintf-posix.c (fprintf): Likewise.
33422         * tests/test-freopen.c (freopen): Likewise.
33423         * tests/test-frexp.c (frexp): Likewise.
33424         * tests/test-frexpl.c (frexpl): Likewise.
33425         * tests/test-fseek.c (fseek): Likewise.
33426         * tests/test-fseeko.c (fseeko): Likewise.
33427         * tests/test-fstatat.c (fstatat): Likewise.
33428         * tests/test-fsync.c (fsync): Likewise.
33429         * tests/test-ftell.c (ftell): Likewise.
33430         * tests/test-ftello.c (ftello): Likewise.
33431         * tests/test-futimens.c (futimens): Likewise.
33432         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
33433         (gai_strerror): Likewise.
33434         * tests/test-getcwd.c (getcwd): Likewise.
33435         * tests/test-getdelim.c (getdelim): Likewise.
33436         * tests/test-getdtablesize.c (getdtablesize): Likewise.
33437         * tests/test-getgroups.c (getgroups): Likewise.
33438         * tests/test-gethostname.c (gethostname): Likewise.
33439         * tests/test-getline.c (getline): Likewise.
33440         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
33441         Likewise.
33442         * tests/test-gettimeofday.c (gettimeofday): Likewise.
33443         * tests/test-glob.c (glob, globfree): Likewise.
33444         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
33445         * tests/test-inet_ntop.c (inet_ntop): Likewise.
33446         * tests/test-inet_pton.c (inet_pton): Likewise.
33447         * tests/test-isblank.c (isblank): Likewise.
33448         * tests/test-lchown.c (lchown): Likewise.
33449         * tests/test-ldexpl.c (ldexpl): Likewise.
33450         * tests/test-link.c (link): Likewise.
33451         * tests/test-linkat.c (linkat): Likewise.
33452         * tests/test-lseek.c (lseek): Likewise.
33453         * tests/test-lstat.c (lstat): Likewise.
33454         * tests/test-mbrtowc.c (mbrtowc): Likewise.
33455         * tests/test-mbsinit.c (mbsinit): Likewise.
33456         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
33457         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
33458         * tests/test-memchr.c (memchr): Likewise.
33459         * tests/test-memcmp.c (memcmp): Likewise.
33460         * tests/test-memmem.c (memmem): Likewise.
33461         * tests/test-memrchr.c (memrchr): Likewise.
33462         * tests/test-mkdir.c (mkdir): Likewise.
33463         * tests/test-mkdirat.c (mkdirat): Likewise.
33464         * tests/test-mkfifo.c (mkfifo): Likewise.
33465         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
33466         * tests/test-mknod.c (mknod): Likewise.
33467         * tests/test-nanosleep.c (nanosleep): Likewise.
33468         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
33469         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
33470         Likewise.
33471         * tests/test-open.c (open): Likewise.
33472         * tests/test-openat.c (openat): Likewise.
33473         * tests/test-perror.c (perror): Likewise.
33474         * tests/test-pipe2.c (pipe2): Likewise.
33475         * tests/test-poll.c (poll): Likewise.
33476         * tests/test-popen.c (popen, pclose): Likewise.
33477         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
33478         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
33479         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
33480         (posix_spawn_file_actions_destroy)
33481         (posix_spawn_file_actions_addclose)
33482         (posix_spawn_file_actions_addopen)
33483         (posix_spawn_file_actions_adddup2): Likewise.
33484         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
33485         * tests/test-pread.c (pread): Likewise.
33486         * tests/test-printf-posix.c (printf): Likewise.
33487         * tests/test-pty.c (openpty, forkpty): Likewise.
33488         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
33489         (random_r): Likewise.
33490         * tests/test-rawmemchr.c (rawmemchr): Likewise.
33491         * tests/test-readlink.c (readlink): Likewise.
33492         * tests/test-remove.c (remove): Likewise.
33493         * tests/test-rename.c (rename): Likewise.
33494         * tests/test-renameat.c (renameat): Likewise.
33495         * tests/test-rmdir.c (rmdir): Likewise.
33496         * tests/test-round1.c (round): Likewise.
33497         * tests/test-roundf1.c (roundf): Likewise.
33498         * tests/test-roundl.c (roundl): Likewise.
33499         * tests/test-setenv.c (setenv): Likewise.
33500         * tests/test-sigaction.c (sigaction): Likewise.
33501         * tests/test-sleep.c (sleep): Likewise.
33502         * tests/test-snprintf.c (snprintf): Likewise.
33503         * tests/test-sprintf-posix.c (sprintf): Likewise.
33504         * tests/test-stat.c (stat): Likewise.
33505         * tests/test-stpncpy.c (stpncpy): Likewise.
33506         * tests/test-strcasestr.c (strcasestr): Likewise.
33507         * tests/test-strchrnul.c (strchrnul): Likewise.
33508         * tests/test-strerror.c (strerror): Likewise.
33509         * tests/test-strsignal.c (strsignal): Likewise.
33510         * tests/test-strstr.c (strstr): Likewise.
33511         * tests/test-strtod.c (strtod): Likewise.
33512         * tests/test-strverscmp.c (strverscmp): Likewise.
33513         * tests/test-symlink.c (symlink): Likewise.
33514         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
33515         * tests/test-times.c (times): Likewise.
33516         * tests/test-trunc1.c (trunc): Likewise.
33517         * tests/test-truncf1.c (truncf): Likewise.
33518         * tests/test-truncl.c (truncl): Likewise.
33519         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
33520         Likewise.
33521         * tests/test-uname.c (uname): Likewise.
33522         * tests/test-unlink.c (unlink): Likewise.
33523         * tests/test-unlinkat.c (unlinkat): Likewise.
33524         * tests/test-unsetenv.c (unsetenv): Likewise.
33525         * tests/test-usleep.c (usleep): Likewise.
33526         * tests/test-utimensat.c (utimensat): Likewise.
33527         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
33528         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
33529         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
33530         * tests/test-vprintf-posix.c (vprintf): Likewise.
33531         * tests/test-vsnprintf.c (vsnprintf): Likewise.
33532         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
33533         * tests/test-wcrtomb.c (wcrtomb): Likewise.
33534         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
33535         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
33536         * tests/test-wcwidth.c (wcwidth): Likewise.
33537
33538         build: pull in conditional headers during GNULIB_POSIXCHECK
33539         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
33540         definitions from any conditionally-included headers.
33541         * lib/stdlib.in.h (includes): Likewise.
33542         * lib/unistd.in.h (includes): Likewise.
33543
33544 2009-12-24  Bruno Haible  <bruno@clisp.org>
33545
33546         * tests/test-argv-iter.c: Include header file being tested immediately
33547         after config.h.
33548         * tests/test-base64.c: Likewise.
33549         * tests/test-flock.c: Likewise.
33550         * tests/test-fsync.c: Likewise.
33551         * tests/test-getdate.c: Likewise.
33552         * tests/test-getndelim2.c: Likewise.
33553         * tests/test-isfinite.c: Likewise.
33554         * tests/test-isinf.c: Likewise.
33555         * tests/test-strerror.c: Likewise.
33556         * tests/test-strsignal.c: Likewise.
33557
33558 2009-12-23  Eric Blake  <ebb9@byu.net>
33559
33560         unistd: work around cygwin bug
33561         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
33562         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
33563         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
33564
33565 2009-12-23  Bruno Haible  <bruno@clisp.org>
33566
33567         localename: More tests.
33568         * tests/test-localename.c (SIZEOF): New macro.
33569         (categories): New variable.
33570         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
33571         test_locale_name_default): Add test w.r.t. thread locale.
33572         (test_locale_name_thread): New function.
33573         (main): Invoke it.
33574
33575         localename: Make aware of thread locale.
33576         * lib/localename.h (gl_locale_name_thread): New declaration.
33577         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
33578         behaviour with respect to thread locale.
33579         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
33580         <langinfo.h>, glthread/lock.h.
33581         (SIZE_BITS): New macro.
33582         (string_hash): New function.
33583         (struct hash_node): New type.
33584         (HASH_TABLE_SIZE): New macro.
33585         (struniq_hash_table, struniq_lock): New variables.
33586         (struniq): New function.
33587         (gl_locale_name_thread): New function.
33588         (gl_locale_name): Invoke it.
33589         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
33590         * modules/localename (Depends-on): Add lock.
33591         Reported by Mike Gran <spk121@yahoo.com>.
33592
33593 2009-12-23  Eric Blake  <ebb9@byu.net>
33594
33595         va-args: new module
33596         * modules/va-args: New file.
33597         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
33598         * MODULES.html.sh (Core language properties): Mention it.
33599
33600         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
33601         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
33602         named alias for __attribute__((__unused__)).
33603         * lib/chown.c: Update client.
33604         * lib/fchmodat.c: Likewise.
33605         * lib/fts.c: Likewise.
33606         * lib/getdate.y: Likewise.
33607         * lib/getgroups.c: Likewise.
33608         * lib/getopt.c: Likewise.
33609         * lib/getugroups.c: Likewise.
33610         * lib/mkdir.c: Likewise.
33611         * lib/mkfifo.c: Likewise.
33612         * lib/mkfifoat.c: Likewise.
33613         * lib/mknod.c: Likewise.
33614         * lib/mknodat.c: Likewise.
33615         * lib/readlink.c: Likewise.
33616         * lib/se-context.in.h: Likewise.
33617         * lib/se-selinux.in.h: Likewise.
33618         * lib/sockets.c: Likewise.
33619         * lib/symlink.c: Likewise.
33620         * lib/symlinkat.c: Likewise.
33621         * lib/unicodeio.c: Likewise.
33622         * lib/unistr.h: Likewise.
33623         * tests/test-areadlink.c: Likewise.
33624         * tests/test-areadlinkat.c: Likewise.
33625         * tests/test-filenamecat.c: Likewise.
33626         * tests/test-fseeko.c: Likewise.
33627         * tests/test-ftello.c: Likewise.
33628         * tests/test-getdate.c: Likewise.
33629         * tests/test-getgroups.c: Likewise.
33630         * tests/test-gethostname.c: Likewise.
33631         * tests/test-quotearg.c: Likewise.
33632         * tests/test-version-etc.c: Likewise.
33633         * tests/test-xalloc-die.c: Likewise.
33634         * tests/test-xfprintf-posix.c: Likewise.
33635         * tests/test-xprintf-posix.c: Likewise.
33636         * tests/test-xvasprintf.c: Likewise.
33637
33638         tests: avoid compiler warnings
33639         * tests/test-fcntl.c (main): Delete unused parameters.
33640         * tests/test-freopen-safer.c (main): Likewise.
33641         * tests/test-xalloc-die.c (main): Mark unused parameters.
33642         * tests/test-fseeko.c (main): Likewise.
33643         * tests/test-ftello.c (main): Likewise.
33644         * tests/test-nanosleep.c (main): Avoid declaration warning.
33645         * tests/test-sleep.c (main): Likewise.
33646         * tests/test-unsetenv.c (main): Silence warning about string
33647         literal.
33648         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
33649
33650 2009-12-23  Bruno Haible  <bruno@clisp.org>
33651
33652         * tests/test-localename.c (test_locale_name): New function, extracted
33653         from main. Also test mixed situations.
33654         (test_locale_name_posix, test_locale_name_environ,
33655         test_locale_name_default): New functions.
33656         (main): Invoke them all.
33657         * modules/localename-tests (configure.ac): Test for newlocale.
33658
33659 2009-12-23  Bruno Haible  <bruno@clisp.org>
33660
33661         unistd: Ensure getcwd gets declared before being overridden.
33662         * lib/unistd.in.h: Conditionally include <io.h>.
33663
33664 2009-12-22  Bruno Haible  <bruno@clisp.org>
33665
33666         wchar: Diagnose broken combination of glibc and gcc versions and flags.
33667         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
33668         (gl_WCHAR_H): Invoke it.
33669         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
33670         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
33671         Reported by Karl Berry <karl@freefriends.org>.
33672
33673 2009-12-22  Eric Blake  <ebb9@byu.net>
33674
33675         math, unistd: avoid redundant includes
33676         * lib/math.in.h (isnan): No need to re-include <math.h>.
33677         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
33678
33679         getsubopt: work around cygwin bug
33680         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
33681         avoid conflicting with system getsubopt.
33682         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
33683         bug.
33684
33685         getopt: synchronize from glibc
33686         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
33687         parameter order.  Adjust all callers.
33688         (_getopt_internal_r, main): Adjust quoting in error messages.
33689         Drop considerations for outdated POSIX 1003.2 error message.
33690         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
33691         callers.
33692         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
33693
33694         test-getopt: test stderr behavior
33695         * modules/getopt-posix-tests (Depends-on): Add dup2.
33696         * tests/test-getopt.c (ASSERT): Avoid stderr.
33697         (main): Move stderr to a temporary file.
33698         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
33699         Instead, add parameter to inform caller if output occurred.
33700         (test_getopt): Adjust all existing tests to expect silence, and
33701         add new tests of leading ":".
33702         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
33703         glibc shortcomings with leading "-:" or "+:" in optstring.
33704         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33705         Likewise.
33706         * doc/posix-functions/getopt.texi (getopt): Likewise.
33707
33708         test-getopt: enhance test
33709         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
33710         supports optind=0.
33711         * tests/test-getopt.c (OPTIND_MIN): Move...
33712         * tests/test-getopt.h (OPTIND_MIN): ...here.
33713         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
33714         Require that optind=0 works, since modern BSD supports it in
33715         addition to optreset, and since coreutils expects it.
33716         (test_getopt_long_only): New test.
33717         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
33718         glibc shortcomings with 'W;', and enforcement of optind=0.
33719         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33720         Likewise.
33721
33722 2009-12-21  Bruno Haible  <bruno@clisp.org>
33723
33724         localename: Improvements for MacOS X and Cygwin.
33725         * lib/localename.h (gl_locale_name_environ): New declaration.
33726         * lib/localename.c (gl_locale_name_environ): New function, extracted from
33727         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
33728         (gl_locale_name_posix): Invoke it.
33729         (gl_locale_name_default): Add comments. Use Windows native API also on
33730         Cygwin.
33731
33732 2009-12-21  Bruno Haible  <bruno@clisp.org>
33733
33734         Update list of Win32 locale ids.
33735         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
33736         (LANG_SAMI): Renamed from LANG_SAAMI.
33737         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
33738         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
33739         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
33740         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
33741         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
33742         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
33743         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
33744         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
33745         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
33746         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
33747         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
33748         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
33749         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
33750         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
33751         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
33752         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
33753         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
33754         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
33755         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
33756         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
33757         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
33758         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
33759         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
33760         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
33761         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
33762         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
33763         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
33764         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
33765         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
33766         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
33767         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
33768         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
33769         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
33770         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
33771         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
33772         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
33773         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
33774         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
33775         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
33776         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
33777         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
33778         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
33779         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
33780         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
33781         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
33782         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
33783         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
33784         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
33785         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
33786         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
33787         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
33788         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
33789         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
33790         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
33791         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
33792         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
33793         Add more languages and countries for Sami, Sorbian. Add more countries
33794         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
33795         for Pashto. Change country for Syriac, Tswana.
33796
33797 2009-12-21  Eric Blake  <ebb9@byu.net>
33798
33799         test-utimens: avoid spurious failure
33800         * tests/test-chown.h (nap): Factor...
33801         * tests/nap.h: ...into new file.
33802         * tests/test-lchown.h (nap): Avoid duplication.
33803         * tests/test-utimens-common.h (nap): Use shared implementation,
33804         necessary on file systems with 1-second resolution.
33805         * modules/chown-tests (Files): Include new file.
33806         * modules/fdutimensat-tests (Files): Likewise.
33807         * modules/futimens-tests (Files): Likewise.
33808         * modules/lchown-tests (Files): Likewise.
33809         * modules/openat-tests (Files): Likewise.
33810         * modules/utimens-tests (Files): Likewise.
33811         * modules/utimensat-tests (Files): Likewise.
33812
33813 2009-12-19  Eric Blake  <ebb9@byu.net>
33814
33815         futimens, utimensat: work around Linux bug
33816         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
33817         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
33818         * lib/utimensat.c (rpl_utimensat): Work around it.
33819         * lib/futimens.c (rpl_futimens): Adjust comment.
33820
33821         utimens: work around Linux ctime bug
33822         * lib/utimens.c (detect_ctime_bug): New helper function.
33823         (update_timespec): Differentiate between workaround needed for
33824         this bug vs. what is needed for systems that lack utimensat.
33825         (fdutimens, lutimens): Work around bug.
33826
33827         utimens: check for ctime update
33828         * tests/test-utimens-common.h (check_ctime): Define.
33829         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
33830         * tests/test-futimens.h (test_futimens): Likewise.
33831         * tests/test-lutimens.h (test_lutimens): Likewise.
33832         * doc/posix-functions/futimens.texi (futimens): Document the bug.
33833         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
33834
33835 2009-12-19  Bruno Haible  <bruno@clisp.org>
33836
33837         dprintf-posix: Check against memory leak fixed on 2009-12-15.
33838         * tests/test-dprintf-posix2.sh: New file.
33839         * tests/test-dprintf-posix2.c: New file.
33840         * modules/dprintf-posix-tests (Files): Add them.
33841         (configure.ac): Check for getrlimit and setrlimit.
33842         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
33843
33844 2009-12-19  Bruno Haible  <bruno@clisp.org>
33845
33846         fprintf-posix: Check against memory leak fixed on 2009-12-15.
33847         * tests/test-fprintf-posix3.sh: New file.
33848         * tests/test-fprintf-posix3.c: New file.
33849         * modules/fprintf-posix-tests (Files): Add them.
33850         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
33851
33852 2009-12-19  Eric Blake  <ebb9@byu.net>
33853
33854         dirfd: fix prototype
33855         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
33856         * lib/dirfd.c (dirfd): Likewise.
33857
33858         canonicalize: reduce memory usage
33859         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
33860         allocation to size.
33861         Reported by Solar Designer <solar@openwall.com>.
33862
33863 2009-12-19  Bruno Haible  <bruno@clisp.org>
33864
33865         New module attribute 'Applicability'.
33866         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
33867         * gnulib-tool: New option --extract-applicability.
33868         (func_usage): Document it.
33869         (sed_extract_prog): Recognize it.
33870         (func_get_applicability): New function.
33871         (func_import): Generalize handling of 'link-warning' module.
33872         * modules/link-warning (Applicability): New section.
33873         * modules/arg-nonnull (Applicability): New section.
33874         Repoted by Simon Josefsson <simon@josefsson.org>.
33875
33876 2009-12-19  Bruno Haible  <bruno@clisp.org>
33877
33878         fflush: tweak
33879         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
33880         * lib/fseeko.c (rpl_fseeko): Likewise.
33881
33882 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
33883
33884         * lib/gl_list.h: Fix typo in comment.
33885
33886 2009-12-16  Eric Blake  <ebb9@byu.net>
33887
33888         fcntl: use to simplify other modules
33889         * modules/cloexec (Depends-on): Add fcntl.
33890         * modules/fchdir (Depends-on): Likewise.
33891         * modules/fd-safer-flag (Depends-on): Likewise.
33892         * modules/unistd-safer (Depends-on): Likewise.
33893         * modules/dup3 (configure.ac): Set module indicator.
33894         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
33895         missing.
33896         * lib/fchdir.c (_gl_register_dup): Fix comment.
33897         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
33898         * lib/dup-safer.c (dup_safer): Likewise.
33899         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
33900         * lib/dup3.c (dup3): Likewise.
33901         * tests/test-fchdir.c (main): Enhance test.
33902         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
33903
33904         fcntl: port portions of fcntl to mingw
33905         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
33906         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
33907         replacement for mingw.
33908         * modules/fcntl (Description): Update.
33909         (Depends-on): Add dup2.
33910         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
33911         * modules/fcntl-h (Makefile.am): Substitute it.
33912         * lib/fcntl.in.h (fcntl): Update declaration.
33913         (F_DUPFD, F_GETFD): New macros, when needed.
33914         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
33915         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
33916         * tests/test-fcntl.c (check_flags, main): Enhance test for items
33917         we now guarantee.
33918
33919         fcntl: work around cygwin bug in F_DUPFD
33920         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
33921         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
33922         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
33923         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
33924         * doc/posix-functions/fcntl.texi (fcntl): Document it.
33925
33926         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
33927         * modules/fcntl (Files): List new files.
33928         (configure.ac): Run a test.
33929         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
33930         * lib/fcntl.c (rpl_fcntl): Likewise.
33931         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
33932         (gl_FCNTL_H): Always replace fcntl.h.
33933         * modules/fcntl-h (Makefile.am): Substitute witnesses.
33934         * lib/fcntl.in.h (fcntl): Declare replacement.
33935         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
33936         needed, plus a witness.
33937         * doc/posix-functions/fcntl.texi (fcntl): Document this.
33938         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
33939         * tests/test-fcntl.c: New file.
33940         * modules/fcntl-tests: Likewise.
33941
33942         binary-io: avoid potential compilation warning
33943         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
33944         directives.
33945
33946         fflush: avoid compilation error on NetBSD
33947         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
33948         between off_t and fpos_t, since the latter is sometimes a struct.
33949         * lib/fseeko.c (rpl_fseeko): Likewise.
33950         Reported by Alexander Nasonov <alnsn@yandex.ru>.
33951
33952 2009-12-15  Eric Blake  <ebb9@byu.net>
33953
33954         fcntl-h, stdio, sys_ioctl: fix declarations
33955         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
33956         function must not take arguments.
33957         * lib/sys_ioctl.in.h (ioctl): Likewise.
33958         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
33959         (open): Add a link warning.
33960
33961 2009-12-15  Jim Meyering  <meyering@redhat.com>
33962
33963         areadlink, areadlink-with-size: relax license to LGPLv2+
33964         * modules/areadlink (License): Relax to LGPLv2+.
33965         * modules/areadlink-with-size (License): Likewise.
33966
33967 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
33968             Bruno Haible  <bruno@clisp.org>
33969
33970         *printf: Fix memory leak.
33971         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
33972         * lib/vfprintf.c (vfprintf): Likewise.
33973         * lib/dprintf.c (dprintf): Likewise.
33974         * lib/vdprintf.c (vdprintf): Likewise.
33975
33976 2009-12-14  Eric Blake  <ebb9@byu.net>
33977
33978         accept4: adjust module dependencies
33979         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
33980
33981         utimens: one more try at avoiding compiler warning
33982         * lib/utimens.c (lutimens): Lower scope of result.
33983
33984 2009-12-13  Bruno Haible  <bruno@clisp.org>
33985
33986         Move the malloc checking from module 'list' to new module 'xlist'.
33987         * modules/xlist: New file.
33988         * lib/gl_xlist.h: New file.
33989         * lib/gl_xlist.c: New file.
33990         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
33991         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
33992         gl_list_add_last, gl_list_add_before, gl_list_add_after,
33993         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
33994         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
33995         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
33996         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
33997         gl_sortedlist_nx_add): New declarations.
33998         (struct gl_list_implementation): Rename and change methods accordingly.
33999         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
34000         (gl_list_nx_create): Renamed from gl_list_create.
34001         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
34002         (gl_list_nx_set_at): Renamed from gl_list_set_at.
34003         (gl_list_nx_add_first): Renamed from gl_list_add_first.
34004         (gl_list_nx_add_last): Renamed from gl_list_add_last.
34005         (gl_list_nx_add_before): Renamed from gl_list_add_before.
34006         (gl_list_nx_add_after): Renamed from gl_list_add_after.
34007         (gl_list_nx_add_at): Renamed from gl_list_add_at.
34008         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
34009         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
34010         gl_list_create_empty.
34011         (gl_list_nx_create): Renamed from gl_list_create.
34012         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
34013         (gl_list_nx_set_at): Renamed from gl_list_set_at.
34014         (gl_list_nx_add_first): Renamed from gl_list_add_first.
34015         (gl_list_nx_add_last): Renamed from gl_list_add_last.
34016         (gl_list_nx_add_before): Renamed from gl_list_add_before.
34017         (gl_list_nx_add_after): Renamed from gl_list_add_after.
34018         (gl_list_nx_add_at): Renamed from gl_list_add_at.
34019         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
34020         * lib/gl_array_list.c: Don't include xalloc.h.
34021         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
34022         NULL upon out-of-memory.
34023         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
34024         out-of-memory.
34025         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
34026         Change return type to 'int'.
34027         (gl_array_nx_set_at): Renamed from gl_array_set_at.
34028         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
34029         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
34030         upon out-of-memory.
34031         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
34032         upon out-of-memory.
34033         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
34034         upon out-of-memory.
34035         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
34036         upon out-of-memory.
34037         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
34038         out-of-memory.
34039         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
34040         Update.
34041         (gl_array_list_implementation): Update.
34042         * lib/gl_carray_list.c: Don't include xalloc.h.
34043         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
34044         Return NULL upon out-of-memory.
34045         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
34046         out-of-memory.
34047         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
34048         Change return type to 'int'.
34049         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
34050         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
34051         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
34052         upon out-of-memory.
34053         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
34054         upon out-of-memory.
34055         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
34056         out-of-memory.
34057         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
34058         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
34059         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
34060         Update.
34061         (gl_carray_list_implementation): Update.
34062         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
34063         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
34064         gl_linked_create_empty. Return NULL upon out-of-memory.
34065         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
34066         out-of-memory.
34067         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
34068         Change return type to 'int'. Return -1 upon out-of-memory.
34069         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
34070         out-of-memory.
34071         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
34072         upon out-of-memory.
34073         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
34074         upon out-of-memory.
34075         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
34076         NULL upon out-of-memory.
34077         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
34078         upon out-of-memory.
34079         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
34080         out-of-memory.
34081         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
34082         Update.
34083         * lib/gl_linked_list.c: Don't include xalloc.h.
34084         (gl_linked_list_implementation): Update.
34085         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
34086         (add_to_bucket): Change return type to 'int'.
34087         (gl_linkedhash_list_implementation): Update.
34088         * lib/gl_anytree_list1.h (free_subtree): New function.
34089         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
34090         gl_tree_create_empty. Return NULL upon out-of-memory.
34091         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
34092         Change return type to 'int'. Return -1 upon out-of-memory.
34093         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
34094         out-of-memory.
34095         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
34096         (gl_tree_remove_node): New function, moved here from
34097         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
34098         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
34099         Update.
34100         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
34101         malloc, not xmalloc. Return NULL upon out-of-memory.
34102         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
34103         out-of-memory.
34104         (gl_tree_remove_node_from_tree): New function, extracted from
34105         gl_tree_remove_node.
34106         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
34107         upon out-of-memory.
34108         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
34109         out-of-memory.
34110         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
34111         upon out-of-memory.
34112         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
34113         upon out-of-memory.
34114         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
34115         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
34116         not xmalloc. Return NULL upon out-of-memory.
34117         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
34118         out-of-memory.
34119         (gl_tree_remove_node_from_tree): New function, extracted from
34120         gl_tree_remove_node.
34121         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
34122         upon out-of-memory.
34123         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
34124         out-of-memory.
34125         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
34126         upon out-of-memory.
34127         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
34128         upon out-of-memory.
34129         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
34130         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
34131         gl_anytree_list1.h before gl_anyavltree_list2.h.
34132         (gl_avltree_list_implementation): Update.
34133         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
34134         gl_anytree_list1.h before gl_anyavltree_list2.h.
34135         (gl_rbtree_list_implementation): Update.
34136         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
34137         Change return type to 'int'. Return -1 upon out-of-memory. Use
34138         __builtin_expect.
34139         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
34140         (gl_avltreehash_list_implementation): Update.
34141         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
34142         (gl_rbtreehash_list_implementation): Update.
34143         * modules/array-list (Depends-on): Remove xalloc.
34144         * modules/carray-list (Depends-on): Likewise.
34145         * modules/linked-list (Depends-on): Likewise.
34146         * modules/linkedhash-list (Depends-on): Likewise.
34147         * modules/avltree-list (Depends-on): Likewise.
34148         * modules/rbtree-list (Depends-on): Likewise.
34149         * modules/avltreehash-list (Depends-on): Likewise.
34150         * modules/rbtreehash-list (Depends-on): Likewise.
34151
34152         * modules/xsublist: New file.
34153         * lib/gl_xsublist.h: New file.
34154         * lib/gl_xsublist.c: New file.
34155         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
34156         (gl_sublist_nx_create): New declaration.
34157         * lib/gl_sublist.c: Don't include xalloc.h.
34158         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
34159         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
34160         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
34161         Change return type to 'int'. Return -1 upon out-of-memory.
34162         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
34163         upon out-of-memory.
34164         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
34165         NULL upon out-of-memory.
34166         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
34167         upon out-of-memory.
34168         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
34169         NULL upon out-of-memory.
34170         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
34171         NULL upon out-of-memory.
34172         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
34173         upon out-of-memory.
34174         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
34175         (gl_sublist_list_implementation): Update.
34176         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
34177         upon out-of-memory.
34178         * modules/sublist (Depends-on): Remove xalloc.
34179
34180         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
34181         * tests/test-carray_list.c: Likewise.
34182         * tests/test-linked_list.c: Likewise.
34183         * tests/test-linkedhash_list.c: Likewise.
34184         * tests/test-avltree_list.c: Likewise.
34185         * tests/test-rbtree_list.c: Likewise.
34186         * tests/test-avltreehash_list.c: Likewise.
34187         * tests/test-rbtreehash_list.c: Likewise.
34188         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
34189         * modules/carray-list-tests (Makefile.am): Likewise.
34190         * modules/linked-list-tests (Makefile.am): Likewise.
34191         * modules/linkedhash-list-tests (Makefile.am): Likewise.
34192         * modules/avltree-list-tests (Makefile.am): Likewise.
34193         * modules/rbtree-list-tests (Makefile.am): Likewise.
34194         * modules/avltreehash-list-tests (Makefile.am): Likewise.
34195         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
34196
34197         * NEWS: Mention the changes.
34198
34199         * lib/clean-temp.c: Include gl_xlist.h.
34200         * modules/clean-temp (Depends-on): Add xlist.
34201
34202         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
34203         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
34204
34205         * tests/test-array_oset.c: Include gl_xlist.h.
34206         * modules/array-oset-tests (Depends-on): Add xlist.
34207
34208         Reported by José E. Marchesi <jemarch@gnu.org>.
34209
34210 2009-12-13  Bruno Haible  <bruno@clisp.org>
34211
34212         Move the malloc checking from module 'oset' to new module 'xoset'.
34213         * modules/xoset: New file.
34214         * lib/gl_xoset.h: New file.
34215         * lib/gl_xoset.c: New file.
34216         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
34217         declarations.
34218         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
34219         (struct gl_oset_implementation): Rename and change methods accordingly.
34220         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
34221         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
34222         'int'. Mark as __warn_unused_result__.
34223         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
34224         gl_oset_create_empty.
34225         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
34226         'int'.
34227         * lib/gl_array_oset.c: Don't include xalloc.h.
34228         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
34229         malloc, not xmalloc.
34230         (grow): Change return type to 'int'. Don't call xalloc_die.
34231         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
34232         to 'int'.
34233         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
34234         'int'.
34235         (gl_array_oset_implementation): Update.
34236         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
34237         gl_tree_create_empty.
34238         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
34239         'int'.
34240         * lib/gl_avltree_oset.c: Don't include xalloc.h.
34241         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
34242         xmalloc.
34243         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
34244         not xmalloc.
34245         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
34246         xmalloc.
34247         (gl_avltree_oset_implementation): Update.
34248         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
34249         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
34250         xmalloc.
34251         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
34252         not xmalloc.
34253         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
34254         xmalloc.
34255         (gl_rbtree_oset_implementation): Update.
34256         * modules/array-oset (Depends-on): Remove xalloc.
34257         * modules/avltree-oset (Depends-on): Likewise.
34258         * modules/rbtree-oset (Depends-on): Likewise.
34259         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
34260         * tests/test-avltree_oset.c: Likewise.
34261         * tests/test-rbtree_oset.c: Likewise.
34262         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
34263         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
34264         * modules/rbtree-oset-tests (Makefile.am): Likewise.
34265         * NEWS: Mention the change.
34266
34267 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
34268
34269         maint.mk: allow a project to override release-prep commands
34270         * top/maint.mk (alpha, beta, stable): Move release-preparatory
34271         commands into a new rule.
34272         (release-prep): New rule.
34273         (release-prep-hook): New overridable variable.
34274
34275 2009-12-13  Bruno Haible  <bruno@clisp.org>
34276
34277         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
34278
34279 2009-12-13  Jim Meyering  <meyering@redhat.com>
34280
34281         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
34282         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
34283
34284 2009-12-12  Bruno Haible  <bruno@clisp.org>
34285
34286         duplocale: Tweak.
34287         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
34288
34289 2009-12-12  Karl Berry  <karl@gnu.org>
34290
34291         * config/srclist.txt (strtoll.c): tab changes, no more sync.
34292
34293 2009-12-12  Bruno Haible  <bruno@clisp.org>
34294
34295         * m4/po.m4: Undo incorrect untabification.
34296
34297 2009-12-12  Bruno Haible  <bruno@clisp.org>
34298
34299         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
34300         * modules/c-strtod (Depends-on): Add locale.
34301         * modules/c-strtold (Depends-on): Likewise.
34302
34303 2009-12-12  Bruno Haible  <bruno@clisp.org>
34304
34305         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
34306
34307 2009-12-11  Eric Blake  <ebb9@byu.net>
34308
34309         setenv: relax requirement in light of POSIX ruling
34310         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
34311         not NULL.
34312         * tests/test-setenv.c (main): Relax test.
34313         * tests/test-unsetenv.c (main): Likewise.
34314         * doc/posix-functions/setenv.texi (setenv): Document this.
34315         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
34316
34317 2009-12-11  Bruno Haible  <bruno@clisp.org>
34318
34319         New module 'fd-safer-flag'.
34320         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
34321         * lib/dup-safer.c (dup_safer_flag): Remove function.
34322         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
34323         * lib/fd-safer.c (fd_safer_flag): Remove function.
34324         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
34325         * modules/cloexec (configure.ac): Drop indicator macro.
34326         * modules/fd-safer-flag: New file.
34327         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
34328         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
34329         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
34330
34331 2009-12-11  Bruno Haible  <bruno@clisp.org>
34332
34333         Tests for module 'nl_langinfo'.
34334         * modules/nl_langinfo-tests: New file.
34335         * tests/test-nl_langinfo.sh: New file.
34336         * tests/test-nl_langinfo.c: New file.
34337
34338         New module 'nl_langinfo'.
34339         * lib/nl_langinfo.c: New file.
34340         * m4/nl_langinfo.m4: New file.
34341         * modules/nl_langinfo: New file.
34342         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
34343
34344 2009-12-11  Bruno Haible  <bruno@clisp.org>
34345
34346         Tests for module 'langinfo'.
34347         * modules/langinfo-tests: New file.
34348         * tests/test-langinfo.c: New file.
34349
34350         New module 'langinfo'.
34351         * lib/langinfo.in.h: New file.
34352         * m4/langinfo_h.m4: New file.
34353         * modules/langinfo: New file.
34354         * doc/posix-headers/langinfo.texi: Mention the new module.
34355
34356 2009-12-11  Bruno Haible  <bruno@clisp.org>
34357
34358         * lib/config.charset: Untabify.
34359
34360 2009-12-11  Bruno Haible  <bruno@clisp.org>
34361
34362         * modules/unistd-safer (configure.ac): Drop indicator macro.
34363
34364 2009-12-11  Bruno Haible  <bruno@clisp.org>
34365
34366         Move pipe2-safer code to its own file.
34367         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
34368         * lib/pipe-safer.c (pipe2_safer): Remove function.
34369         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
34370         (Makefile.am): Add it to lib_SOURCES.
34371
34372 2009-12-10  Bruno Haible  <bruno@clisp.org>
34373
34374         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
34375
34376 2009-12-10  Bruno Haible  <bruno@clisp.org>
34377
34378         Declare which arguments expect non-NULL values, for GCC and clang.
34379         * build-aux/arg-nonnull.h: New file.
34380         * modules/arg-nonnull: New file.
34381         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
34382         (inet_ntop, inet_pton): Use it.
34383         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
34384         (closedir, dirfd, opendir, scandir, alphasort): Use it.
34385         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
34386         (open, openat): Use it.
34387         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
34388         (fnmatch): Use it.
34389         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
34390         (getopt, getopt_long, getopt_long_only): Use it.
34391         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
34392         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
34393         Use it.
34394         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
34395         (iconv_open): Use it.
34396         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
34397         (strtoimax, strtoumax): Use it.
34398         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
34399         (duplocale): Use it.
34400         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
34401         (frexp, frexpl): Use it.
34402         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
34403         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
34404         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
34405         (tsearch, tfind, tdelete, twalk): Use it.
34406         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
34407         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
34408         sigpending): Use it.
34409         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
34410         (posix_spawn, posix_spawnp, posix_spawnattr_init,
34411         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
34412         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
34413         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
34414         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
34415         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
34416         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
34417         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
34418         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
34419         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
34420         Use it.
34421         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
34422         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
34423         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
34424         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
34425         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
34426         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
34427         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
34428         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
34429         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
34430         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
34431         strtoull, unsetenv): Use it.
34432         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
34433         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
34434         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
34435         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
34436         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
34437         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
34438         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
34439         (strcasecmp, strncasecmp): Use it.
34440         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
34441         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
34442         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
34443         rpl_setsockopt): Use it.
34444         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
34445         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
34446         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
34447         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
34448         (gettimeofday): Use it.
34449         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
34450         (times): Use it.
34451         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
34452         (uname): Use it.
34453         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
34454         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
34455         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
34456         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
34457         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
34458         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
34459         unlinkat, write): Use it.
34460         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
34461         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
34462         * lib/argv-iter.h: Include arg-nonnull.h.
34463         (_ATTRIBUTE_NONNULL_): Remove macro.
34464         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
34465         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
34466         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
34467         optimization.
34468         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
34469         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
34470         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
34471         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
34472         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
34473         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
34474         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
34475         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
34476         * modules/arpa_inet (Depends-on): Add arg-nonnull.
34477         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
34478         * modules/dirent (Depends-on): Add arg-nonnull.
34479         (Makefile.am): Insert arg-nonnull.h into dirent.h.
34480         * modules/fcntl-h (Depends-on): Add arg-nonnull.
34481         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
34482         * modules/fnmatch (Depends-on): Add arg-nonnull.
34483         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
34484         * modules/getopt-posix (Depends-on): Add arg-nonnull.
34485         (Makefile.am): Insert arg-nonnull.h into getopt.h.
34486         * modules/glob (Depends-on): Add arg-nonnull.
34487         (Makefile.am): Insert arg-nonnull.h into glob.h.
34488         * modules/iconv_open (Depends-on): Add arg-nonnull.
34489         (Makefile.am): Insert arg-nonnull.h into iconv.h.
34490         * modules/inttypes (Depends-on): Add arg-nonnull.
34491         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
34492         * modules/locale (Depends-on): Add arg-nonnull.
34493         (Makefile.am): Insert arg-nonnull.h into locale.h.
34494         * modules/math (Depends-on): Add arg-nonnull.
34495         (Makefile.am): Insert arg-nonnull.h into math.h.
34496         * modules/netdb (Depends-on): Add arg-nonnull.
34497         (Makefile.am): Insert arg-nonnull.h into netdb.h.
34498         * modules/search (Depends-on): Add arg-nonnull.
34499         (Makefile.am): Insert arg-nonnull.h into search.h.
34500         * modules/signal (Depends-on): Add arg-nonnull.
34501         (Makefile.am): Insert arg-nonnull.h into signal.h.
34502         * modules/spawn (Depends-on): Add arg-nonnull.
34503         (Makefile.am): Insert arg-nonnull.h into spawn.h.
34504         * modules/stdio (Depends-on): Add arg-nonnull.
34505         (Makefile.am): Insert arg-nonnull.h into stdio.h.
34506         * modules/stdlib (Depends-on): Add arg-nonnull.
34507         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
34508         * modules/string (Depends-on): Add arg-nonnull.
34509         (Makefile.am): Insert arg-nonnull.h into string.h.
34510         * modules/strings (Depends-on): Add arg-nonnull.
34511         (Makefile.am): Insert arg-nonnull.h into strings.h.
34512         * modules/sys_socket (Depends-on): Add arg-nonnull.
34513         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
34514         * modules/sys_stat (Depends-on): Add arg-nonnull.
34515         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
34516         * modules/sys_time (Depends-on): Add arg-nonnull.
34517         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
34518         * modules/sys_times (Depends-on): Add arg-nonnull.
34519         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
34520         * modules/sys_utsname (Depends-on): Add arg-nonnull.
34521         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
34522         * modules/time (Depends-on): Add arg-nonnull.
34523         (Makefile.am): Insert arg-nonnull.h into time.h.
34524         * modules/unistd (Depends-on): Add arg-nonnull.
34525         (Makefile.am): Insert arg-nonnull.h into unistd.h.
34526         * modules/wchar (Depends-on): Add arg-nonnull.
34527         (Makefile.am): Insert arg-nonnull.h into wchar.h.
34528         * modules/argv-iter (Depends-on): Add arg-nonnull.
34529         * tests/test-canonicalize.c (null_ptr): New function.
34530         (main): Use it.
34531         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
34532         (main): Use it.
34533         * tests/test-memmem.c (null_ptr): New function.
34534         (main): Use it.
34535         Reported by Jim Meyering.
34536
34537 2009-12-10  Bruno Haible  <bruno@clisp.org>
34538
34539         Use spaces for indentation, not tabs.
34540         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
34541         * m4/*.m4: Untabify.
34542         * build-aux/*.h: Untabify.
34543         * tests/**/*.[hc]: Untabify.
34544         * README: New section "Indent with spaces, not TABs", based on
34545         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
34546         * NEWS: Mention the change.
34547
34548 2009-12-10  Bruno Haible  <bruno@clisp.org>
34549
34550         pty test: Fix link error.
34551         * modules/pty-tests (Makefile.am): Add the default LDADD value to
34552         test_pty_LDADD.
34553
34554 2009-12-07  Simon Josefsson  <simon@josefsson.org>
34555
34556         * modules/pty: New file.
34557         * modules/pty-tests: New file.
34558         * m4/pty.m4: New file.
34559         * tests/test-pty.c: New file.
34560         * doc/glibc-headers/pty.texi: Modified.
34561         * doc/glibc-functions/forkpty.texi: Modified.
34562         * doc/glibc-functions/openpty.texi: Modified.
34563
34564 2009-12-10  Bruno Haible  <bruno@clisp.org>
34565
34566         Avoid syntax error in C++ mode.
34567         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
34568
34569 2009-12-10  Bruno Haible  <bruno@clisp.org>
34570
34571         Use sed with option -e.
34572         * gnulib-tool (func_version, func_emit_copyright_notice,
34573         func_emit_initmacro_end, func_import, func_create_testdir): Pass
34574         option -e to sed.
34575         * modules/link-warning (Makefile.am): Likewise.
34576
34577 2009-12-10  Jim Meyering  <meyering@redhat.com>
34578
34579         mgetgroups: do not write bytes beyond end of malloc'd buffer
34580         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
34581         username, we call getgroups with a one-element-shorter buffer,
34582         but still told it the length was original, max_n_groups.
34583
34584 2009-12-09  Eric Blake  <ebb9@byu.net>
34585
34586         cloexec: relax license
34587         * modules/cloexec (Maintainer): Add myself.
34588         (License): Use LGPL, not GPL.
34589
34590         link-warning: optimize generation
34591         * modules/link-warning (Makefile.am): Reduce process usage.
34592
34593 2009-12-09  Bruno Haible  <bruno@clisp.org>
34594
34595         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
34596         workaround was added on 2009-11-17.
34597
34598 2009-12-09  Jim Meyering  <meyering@redhat.com>
34599             Bruno Haible  <bruno@clisp.org>
34600
34601         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
34602         * modules/link-warning (Makefile.am): Make the comment-removing sed
34603         command more robust in the face of bootstrap-prepended comment lines.
34604
34605 2009-12-09  Bruno Haible  <bruno@clisp.org>
34606
34607         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
34608         most one group.
34609
34610 2009-12-09  Simon Josefsson <simon@josefsson.org>
34611             Bruno Haible  <bruno@clisp.org>
34612
34613         * build-aux/link-warning.h: Add copyright notice.
34614         * modules/link-warning (Makefile.am): Generate link-warning.h from
34615         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
34616         * NEWS: Mention change in link-warning module.
34617         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
34618         * modules/dirent (Makefile.am): Add dependency to dirent.h.
34619         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
34620         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
34621         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
34622         * modules/math (Makefile.am): Add dependency to math.h.
34623         * modules/search (Makefile.am): Add dependency to search.h.
34624         * modules/signal (Makefile.am): Add dependency to signal.h.
34625         * modules/spawn (Makefile.am): Add dependency to spawn.h.
34626         * modules/stdio (Makefile.am): Add dependency to stdio.h.
34627         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
34628         * modules/string (Makefile.am): Add dependency to string.h.
34629         * modules/strings (Makefile.am): Add dependency to strings.h.
34630         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
34631         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
34632         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
34633         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
34634         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
34635         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
34636         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
34637         * modules/unistd (Makefile.am): Add dependency to unistd.h.
34638         * modules/wchar (Makefile.am): Add dependency to wchar.h.
34639
34640 2009-12-09  Bruno Haible  <bruno@clisp.org>
34641
34642         fchdir: Optimize away rpl_fstat when possible.
34643         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
34644         REPLACE_OPEN_DIRECTORY.
34645         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
34646
34647 2009-12-09  Bruno Haible  <bruno@clisp.org>
34648
34649         * lib/fchdir.c: Update comment.
34650
34651 2009-12-09  Bruno Haible  <bruno@clisp.org>
34652
34653         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
34654
34655 2009-12-08  Eric Blake  <ebb9@byu.net>
34656
34657         fchdir: avoid memory leak on re-registration.
34658         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
34659
34660 2009-12-08  Jim Meyering  <meyering@redhat.com>
34661
34662         init.sh: avoid Solaris 10 /bin/sh portability problem
34663         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
34664         sourced script:
34665           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
34666           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
34667           bar
34668         tests/init.sh relied on that, accepting a --set-path=DIR argument,
34669         and two tests used that idiom.
34670         * tests/init.sh: Update suggested usage comments.
34671         (path_prepend_): New function, to be used in place
34672         of the --src-path=DIR option.
34673         (setup_): Move PATH-prepending code into path_prepend_.
34674         * tests/test-pread.sh: Adapt to new usage.
34675         * tests/test-xalloc-die.sh: Likewise.
34676
34677 2009-12-08  Simon Josefsson  <simon@josefsson.org>
34678
34679         * doc/gnulib.texi (Glibc pty.h): Add.
34680         * doc/glibc-functions/forkpty.texi: Add.
34681         * doc/glibc-functions/openpty.texi: Add.
34682         Suggested by Bruno Haible.
34683
34684 2009-12-08  Eric Blake  <ebb9@byu.net>
34685
34686         fchdir: fix logic bugs
34687         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
34688         * tests/test-fchdir.c (main): Enhance test.
34689         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
34690         is in use.
34691
34692         dup2: fix logic bugs
34693         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
34694         REPLACE_DUP2 to decide when rpl_dup2 is needed.
34695         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
34696         exists.
34697         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
34698
34699 2009-12-07  Eric Blake  <ebb9@byu.net>
34700
34701         unlink: fix m4 detection
34702         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
34703
34704         unistd-safer: add unit test
34705         * modules/unistd-safer-tests: New file.
34706         * tests/test-dup-safer.c: Likewise.
34707         * tests/test-cloexec.c (setmode): Avoid compiler warning.
34708         * tests/test-dup2.c (setmode): Likewise.
34709         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
34710
34711         cloexec: preserve text vs. binary across dup_cloexec
34712         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
34713         mode.
34714         * modules/dup2-tests (Depends-on): Add binary-io.
34715         * modules/cloexec-tests (Depends-on): Likewise.
34716         * tests/test-dup2.c (setmode, is_mode): New helpers.
34717         (main): Add tests that translation mode is preserved.
34718         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
34719         Reported by Bruno Haible.
34720
34721         mgetgroups: reduce duplicate listings
34722         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
34723         resulting array.
34724         * tests/test-chown.h (test_chown): Simplify client.
34725         * tests/test-lchown.h (test_lchown): Likewise.
34726
34727 2009-12-06  Bruno Haible  <bruno@clisp.org>
34728
34729         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
34730         value.
34731
34732 2009-12-06  Bruno Haible  <bruno@clisp.org>
34733
34734         * lib/progname.c: Include stdio.h, stdlib.h.
34735         (set_program_name): Reject a NULL argument.
34736
34737 2009-12-05  Eric Blake  <ebb9@byu.net>
34738
34739         pipe2-safer: new module
34740         * modules/pipe2-safer: New file.
34741         * lib/unistd-safer.h (pipe2_safer): New prototype.
34742         * lib/unistd--.h (pipe2): New wrapper.
34743         * lib/pipe-safer.c (pipe2_safer): New function.
34744         * modules/pipe (Depends-on): Add pipe2-safer.
34745         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
34746
34747         stdlib-safer: preserve cloexec flag for mkostemp[s]
34748         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
34749         fd_safer_flag.
34750
34751         unistd-safer: allow preservation of cloexec status via flag
34752         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
34753         prototypes.
34754         * lib/dup-safer.c (dup_safer_flag): New function.
34755         * lib/fd-safer.c (fd_safer_flag): Likewise.
34756         * modules/cloexec (configure.ac): Set witness.
34757
34758         test-dup2: enhance test
34759         * modules/dup2-tests (Depends-on): Add cloexec.
34760         * tests/test-dup2.c (main): Enhance test.
34761
34762         cloexec: add dup_cloexec
34763         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
34764         header and comments.
34765         * lib/cloexec.c (set_cloexec_flag): Add comments.
34766         (dup_cloexec): New function, with mingw implementation borrowed
34767         from...
34768         * lib/w32spawn.h (dup_noinherit): ...here.
34769         * modules/execute (Depends-on): Add cloexec.
34770         * modules/pipe (Depends-on): Likewise.
34771         * modules/cloexec (Depends-on): Add dup2.
34772         * modules/cloexec-tests (Files): New file.
34773         * tests/test-cloexec.c: Likewise.
34774
34775         test-xalloc-die: fix test for mingw
34776         * modules/xalloc-die-tests (Files): Add tests/init.sh.
34777         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
34778         directory and .exe suffix off argv[0] output.
34779
34780         test-fseeko: fix test for mingw
34781         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
34782         than undefining fseek, so test will pass on mingw.
34783
34784 2009-12-05  Bruno Haible  <bruno@clisp.org>
34785
34786         * lib/progname.h (set_program_name): Clarify specification.
34787         * lib/progname.c (set_program_name): Likewise.
34788         Reported by Jim Meyering.
34789
34790 2009-12-05  Jim Meyering  <meyering@redhat.com>
34791
34792         maint.mk: backslash-escape parens in default regexp
34793         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
34794         backslash-escape the literal parentheses.
34795
34796         maint.mk: news-date-check: use grep -E
34797         * top/maint.mk (today): Define a Make variable, not a...
34798         (news-date-check): ...shell variable.
34799         (news-date-regexp): Use the Make variable.
34800         Use grep's -E option.  Change the failing diagnostic to mention
34801         the variable, $(news-date-regexp).
34802
34803 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
34804
34805         maintainer-makefile: allow customization of NEWS entry format
34806         * top/maint.mk (news-date-regexp): New overridable variable.
34807         (news-date-check): Use it.
34808
34809 2009-12-04  Eric Blake  <ebb9@byu.net>
34810
34811         mgetgroups: add xgetgroups, and avoid ENOSYS failures
34812         * lib/mgetgroups.h (xgetgroups): New prototype.
34813         * lib/mgetgroups.c (xgetgroups): New wrapper.
34814         (mgetgroups): Handle ENOSYS.
34815         * modules/mgetgroups (Depends-on): Add realloc.
34816         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
34817
34818         mgetgroups: avoid argument promotion issues with -1
34819         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
34820         for invalid gid_t.
34821         * tests/test-chown.h (getegid, test_chown): Likewise.
34822         * tests/test-lchown.h (getegid, test_lchown): Likewise.
34823
34824 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
34825
34826         exclude: Fix header file problems.
34827         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
34828
34829 2009-12-01  Jim Meyering  <meyering@redhat.com>
34830
34831         fts: fts_open: do not let an empty string cause immediate failure
34832         This is required in support of GNU rm, for which the command
34833         "rm A '' B" must process and remove both A and B, in spite of
34834         the empty string argument.
34835         * lib/fts.c (fts_open): Do not let the presence of an empty string
34836         cause fts_open to fail immediately.  Most fts-using tools must be
34837         able to process all arguments, in order, and can be expected to
34838         diagnose such arguments themselves.
34839
34840 2009-11-30  Eric Blake  <ebb9@byu.net>
34841
34842         utimens: fix compilation error
34843         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
34844         Declare variable at right scope.
34845
34846 2009-11-29  Jim Meyering  <meyering@redhat.com>
34847
34848         bootstrap: handle perl-5.11's changed --version output
34849         * build-aux/bootstrap (get_version): Handle perl separately,
34850         since perl-5.11's --version output is different.
34851
34852 2009-11-28  Jim Meyering  <meyering@redhat.com>
34853
34854         userspec: depend on the inttostr module, too
34855         * modules/userspec (Depends-on): Add inttostr.
34856
34857         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
34858         * lib/userspec.c (parse_with_separator): Do not accept a user ID
34859         number of MAXUID when it evaluates to (uid_t) -1.
34860         Likewise for group ID.  Reported by Matt McCutchen in
34861         <http://savannah.gnu.org/bugs/?28113>
34862
34863         userspec: reformat to use spaces, not TABs
34864         * lib/userspec.c: Expand TABs to spaces.
34865         Add Emacs' "indent-tabs-mode: nil" hint.
34866
34867 2009-11-27  Eric Blake  <ebb9@byu.net>
34868
34869         getopt-gnu: flush out another BSD bug
34870         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
34871         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
34872         flush out BSD bug.
34873         * tests/test-getopt.h (test_getopt): End lists with NULL.
34874         * tests/test-getopt_long.h (test_getopt_long): Likewise.
34875         (test_getopt_long_posix): Enhance test.
34876         * modules/getopt-posix-tests (Depends-on): Add stdbool.
34877         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
34878         getopt-gnu.
34879         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
34880         Likewise.
34881
34882 2009-11-27  Simon Josefsson  <simon@josefsson.org>
34883
34884         * modules/idpriv-droptemp-tests (Notice): Fix text.
34885
34886 2009-11-27  Jim Meyering  <meyering@redhat.com>
34887
34888         test-xalloc-die: avoid spurious failure due to libtool argv difference
34889         In a libtool-enabled project, this test would fail due to a difference
34890         in the emitted program name, e.g.,
34891         -test-xalloc-die: memory exhausted
34892         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
34893         Use program to avoid that.
34894         * modules/xalloc-die-tests (Depends-on): Add progname.
34895         * tests/test-xalloc-die.c: Include progname.h".
34896         (program_name): Remove decl.
34897         (main): Call set_program_name.
34898         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
34899
34900 2009-11-26  Richard Jones  <rjones@redhat.com>
34901
34902         w32sock: leave win32 error in place.
34903         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
34904
34905 2009-11-26  Eric Blake  <ebb9@byu.net>
34906
34907         init.sh: suggest to use skip_ and fail_ functions in comments
34908         * tests/init.sh: Add a sentence.
34909
34910 2009-11-25  Bruno Haible  <bruno@clisp.org>
34911
34912         init.sh: add documentation in comments
34913         * tests/init.sh: Add some developer and user documentation.
34914
34915 2009-11-26  Jim Meyering  <meyering@redhat.com>
34916
34917         init.sh: accommodate even those who specify bogus srcdir manually
34918         * tests/init.sh: Normally, srcdir is guaranteed by automake and
34919         configure-time tests to be sanitized, so that there is no need to
34920         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
34921         (with no double quotes) suffices.  However, since tests may be
34922         invoked manually, and since you may explicitly set srcdir to the
34923         name of a directory containing spaces, do quote its uses here.
34924         * tests/test-pread.sh: Likewise.
34925         Suggested by Bruno Haible.
34926
34927         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
34928         * tests/test-pread.sh: Write no data into the pipe, because
34929         test-pread actually reads none.  This avoids a diagnostic,
34930         "bash: echo: write error: Broken pipe", that arises in the unusual
34931         event something is ignoring SIGPIPE, and might be interpreted
34932         as some sort of failure.  Reported by Bruno Haible.
34933
34934 2009-11-25  Jim Meyering  <meyering@redhat.com>
34935
34936         test-pread: cover failure with ESPIPE and EINVAL
34937         * tests/test-pread.c (main): Test for failure, too.
34938         * tests/test-pread.sh: Invoke with stdin on a pipe.
34939         Suggested by Eric Blake.
34940
34941         pread: improvement and fix
34942         * modules/pread (Depends-on): Depend on lseek, for portability to
34943         e.g., mingw.  Suggested by Eric Blake.
34944         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
34945
34946         unistd.in.h: correct declaration of pread
34947         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
34948         Reported by Richard W.M. Jones.
34949
34950         test-pread.sh: distribute the test script
34951         * modules/pread-tests (Files): Include test-pread.sh.
34952
34953         test-pread.sh: clean up
34954         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
34955         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
34956         That is unnecessary, since it's always ".".
34957         Suggestion from Eric Blake.
34958
34959         test-pread.sh: make executable
34960         * tests/test-pread.sh: Set executable bit.
34961         Reported by Eric Blake.
34962
34963         correct typo in test-pread.sh
34964         * tests/test-pread.sh: Add #! line.
34965
34966         test pread
34967         * tests/test-pread.c: New file.
34968         * tests/test-pread.sh: Likewise.
34969         * modules/pread-tests: Likewise.
34970
34971         pread: new module
34972         * modules/pread: New file.
34973         * lib/unistd.in.h (pread): Define/declare.
34974         * lib/pread.c (pread): New file.
34975         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
34976         * modules/unistd (Makefile.am): Substitute witnesses.
34977         * doc/posix-functions/pread.texi (pread): Update.
34978         * MODULES.html.sh: Add pread.
34979
34980 2009-11-25  Jim Meyering  <meyering@redhat.com>
34981
34982         tests/init.sh: new file to be used via most *.sh tests
34983         * tests/init.sh: New file.
34984
34985 2009-11-25  Eric Blake  <ebb9@byu.net>
34986
34987         utimens: work around older Linux failure with symlinks
34988         * lib/utimens.c (lutimensat_works_really): New variable.
34989         (fdutimens, lutimens): Use it to manage kernels that support
34990         nanosecond times on files, but not on symlinks.
34991         Reported by OndÅ™ej Vašík.
34992
34993         utimes: fix configure grammar
34994         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
34995
34996 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
34997
34998         regex: Fix fastmap for multibyte character ranges.
34999         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
35000         characters when a multibyte character range is included.
35001
35002 2009-11-22  Andy Wingo  <wingo@pobox.com>
35003
35004         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
35005         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
35006
35007 2009-11-24  Bruno Haible  <bruno@clisp.org>
35008
35009         doc: Most *_l functions exist in MacOS X 10.5.
35010         * doc/posix-functions/duplocale.texi: Update platforms list.
35011         * doc/posix-functions/freelocale.texi: Likewise.
35012         * doc/posix-functions/newlocale.texi: Likewise.
35013         * doc/posix-functions/uselocale.texi: Likewise.
35014         * doc/posix-functions/isalnum_l.texi: Likewise.
35015         * doc/posix-functions/isalpha_l.texi: Likewise.
35016         * doc/posix-functions/isblank_l.texi: Likewise.
35017         * doc/posix-functions/iscntrl_l.texi: Likewise.
35018         * doc/posix-functions/isdigit_l.texi: Likewise.
35019         * doc/posix-functions/isgraph_l.texi: Likewise.
35020         * doc/posix-functions/islower_l.texi: Likewise.
35021         * doc/posix-functions/isprint_l.texi: Likewise.
35022         * doc/posix-functions/ispunct_l.texi: Likewise.
35023         * doc/posix-functions/isspace_l.texi: Likewise.
35024         * doc/posix-functions/isupper_l.texi: Likewise.
35025         * doc/posix-functions/iswalnum_l.texi: Likewise.
35026         * doc/posix-functions/iswalpha_l.texi: Likewise.
35027         * doc/posix-functions/iswblank_l.texi: Likewise.
35028         * doc/posix-functions/iswcntrl_l.texi: Likewise.
35029         * doc/posix-functions/iswctype_l.texi: Likewise.
35030         * doc/posix-functions/iswdigit_l.texi: Likewise.
35031         * doc/posix-functions/iswgraph_l.texi: Likewise.
35032         * doc/posix-functions/iswlower_l.texi: Likewise.
35033         * doc/posix-functions/iswprint_l.texi: Likewise.
35034         * doc/posix-functions/iswpunct_l.texi: Likewise.
35035         * doc/posix-functions/iswspace_l.texi: Likewise.
35036         * doc/posix-functions/iswupper_l.texi: Likewise.
35037         * doc/posix-functions/iswxdigit_l.texi: Likewise.
35038         * doc/posix-functions/isxdigit_l.texi: Likewise.
35039         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
35040         * doc/posix-functions/strcasecmp_l.texi: Likewise.
35041         * doc/posix-functions/strcoll_l.texi: Likewise.
35042         * doc/posix-functions/strfmon_l.texi: Likewise.
35043         * doc/posix-functions/strftime_l.texi: Likewise.
35044         * doc/posix-functions/strncasecmp_l.texi: Likewise.
35045         * doc/posix-functions/strxfrm_l.texi: Likewise.
35046         * doc/posix-functions/tolower_l.texi: Likewise.
35047         * doc/posix-functions/toupper_l.texi: Likewise.
35048         * doc/posix-functions/towctrans_l.texi: Likewise.
35049         * doc/posix-functions/towlower_l.texi: Likewise.
35050         * doc/posix-functions/towupper_l.texi: Likewise.
35051         * doc/posix-functions/wcscoll_l.texi: Likewise.
35052         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
35053         * doc/posix-functions/wctrans_l.texi: Likewise.
35054         * doc/posix-functions/wctype_l.texi: Likewise.
35055         * doc/glibc-functions/strptime_l.texi: Likewise.
35056         * doc/glibc-functions/strtod_l.texi: Likewise.
35057         * doc/glibc-functions/strtof_l.texi: Likewise.
35058         * doc/glibc-functions/strtol_l.texi: Likewise.
35059         * doc/glibc-functions/strtold_l.texi: Likewise.
35060         * doc/glibc-functions/strtoll_l.texi: Likewise.
35061         * doc/glibc-functions/strtoul_l.texi: Likewise.
35062         * doc/glibc-functions/strtoull_l.texi: Likewise.
35063         * doc/glibc-functions/wcsftime_l.texi: Likewise.
35064         * doc/glibc-functions/wcstod_l.texi: Likewise.
35065         * doc/glibc-functions/wcstof_l.texi: Likewise.
35066         * doc/glibc-functions/wcstol_l.texi: Likewise.
35067         * doc/glibc-functions/wcstold_l.texi: Likewise.
35068         * doc/glibc-functions/wcstoll_l.texi: Likewise.
35069         * doc/glibc-functions/wcstoul_l.texi: Likewise.
35070         * doc/glibc-functions/wcstoull_l.texi: Likewise.
35071
35072 2009-11-24  Bruno Haible  <bruno@clisp.org>
35073
35074         duplocale: Fix logic bug.
35075         * lib/duplocale.c: Don't include <langinfo.h>.
35076         (_NL_LOCALE_NAME): Remove macro.
35077         (rpl_duplocale): Use setlocale instead of nl_langinfo.
35078         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
35079
35080 2009-11-23  Jim Meyering  <meyering@redhat.com>
35081
35082         test-update-copyright: don't hard-code /usr/bin/perl
35083         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
35084         perl to print the current year.  Gilles Espinasse reported that
35085         the replaced use of perl was hard-coded as /usr/bin/perl.
35086
35087 2009-11-23  Bruno Haible  <bruno@clisp.org>
35088
35089         duplocale: Add support for glibc 2.3.x.
35090         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
35091
35092 2009-11-22  Bruno Haible  <bruno@clisp.org>
35093
35094         vasnprintf: Tiny optimization.
35095         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
35096         MacOS X.
35097
35098 2009-11-22  Bruno Haible  <bruno@clisp.org>
35099
35100         Tests for module 'duplocale'.
35101         * modules/duplocale-tests: New file.
35102         * tests/test-duplocale.c: New file.
35103
35104         New module 'duplocale'.
35105         * m4/duplocale.m4: New file.
35106         * lib/locale.in.h (duplocale): New declaration.
35107         * lib/duplocale.c: New file.
35108         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
35109         gl_LOCALE_H_DEFAULTS): New macros.
35110         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
35111         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
35112         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
35113         REPLACE_DUPLOCALE.
35114         * modules/duplocale: New file.
35115         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
35116
35117 2009-11-22  Bruno Haible  <bruno@clisp.org>
35118
35119         * modules/locale-tests (configure.ac): Test for newlocale function.
35120         * tests/test-locale.c: When the system has extended locale functions,
35121         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
35122
35123         locale: Make locale_t available when possible.
35124         * lib/locale.in.h: Include <xlocale.h> when it exists.
35125         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
35126         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
35127         * modules/locale (Depends-on): Add extensions.
35128         (Makefile.am): Also substitute HAVE_XLOCALE_H.
35129         * doc/posix-headers/locale.texi: Document the problem with locale_t.
35130
35131 2009-11-22  Bruno Haible  <bruno@clisp.org>
35132
35133         Add comments.
35134         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
35135         invocation.
35136         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
35137         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
35138         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
35139
35140 2009-11-22  Bruno Haible  <bruno@clisp.org>
35141
35142         error: account for the possibility of freopen (stdout).
35143         * lib/error.c: Include <unistd.h>.
35144         (flush_stdout): New function, extracted from error and error_at_line.
35145         Determine stdout's fd dynamically.
35146         (error, error_at_line): Invoke flush_stdout.
35147         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
35148         * modules/error (Depends-on): Add unistd.
35149
35150 2009-11-22  Bruno Haible  <bruno@clisp.org>
35151
35152         diffseq: Add comment.
35153         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
35154
35155 2009-11-22  Jim Meyering  <meyering@redhat.com>
35156
35157         c-stack: avoid defining an unused static function
35158         * lib/c-stack.c (find_stack_direction): Do not define this function
35159         when it will not be used.
35160
35161         diffseq: avoid spurious gcc warnings
35162         * lib/diffseq.h (IF_LINT2): Define.
35163         (compareseq): Use it to initialize two members of "part".
35164         This avoids two used-uninitialized warnings.
35165
35166 2009-11-21  Jim Meyering  <meyering@redhat.com>
35167
35168         c-stack: avoid "ignoring return value of `write'" warning
35169         * lib/c-stack.c: Include "ignore-value.h".
35170         (die): Explicitly ignore each write return value.
35171         * modules/c-stack (Depends-on): Add ignore-value.
35172
35173 2009-11-21  Bruno Haible  <bruno@clisp.org>
35174
35175         diffseq: reduce scope of variable 'best'.
35176         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
35177         variable, earlier used for two different purposes.
35178
35179 2009-11-21  Jim Meyering  <meyering@redhat.com>
35180
35181         diffseq: remove useless assignment to "best"
35182         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
35183         assignment.  At that point "best" is already guaranteed to be zero.
35184
35185 2009-11-20  Eric Blake  <ebb9@byu.net>
35186
35187         build: mention ftp redirector in release announcements
35188         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
35189         values that used to come from cfg.mk; mention FTP redirect URL.
35190         * build-aux/announce-gen: Mention the mirror list.
35191         Suggested by Karl Berry.
35192
35193         nanosleep: improve port to mingw
35194         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
35195         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
35196         LIB_NANOSLEEP, but only when needed.
35197         * modules/select (Link): Document LIBSOCKET.
35198         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
35199         enough.
35200
35201         nanosleep: work around cygwin bug
35202         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
35203         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
35204         bug.
35205         (getnow): Delete, not needed.
35206         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
35207         LIB_CLOCK_GETTIME.
35208         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
35209         clock-time, gettime.
35210         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
35211         bug.
35212         * modules/nanosleep-tests: New test.
35213         * tests/test-nanosleep.c: New file.
35214
35215         sleep: work around cygwin bug
35216         * lib/sleep.c (rpl_sleep): Work around the bug.
35217         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
35218         (gl_PREREQ_SLEEP): Delete unused macro.
35219         * modules/sleep (Depends-on): Add verify.
35220         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
35221         * modules/unistd (Makefile.am): Substitute witness.
35222         * lib/unistd.in.h (sleep): Update prototype.
35223         * doc/posix-functions/sleep.texi (sleep): Document the bug.
35224         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
35225         * modules/sleep-tests (Depends-on): Check for alarm.
35226
35227 2009-11-20  Jim Meyering  <meyering@redhat.com>
35228
35229         maint.mk: improve sc_prohibit_magic_number_exit
35230         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
35231         so it does not match uses like System.exit(1).
35232         Add comments showing how to correct all offenders.
35233
35234 2009-11-19  Eric Blake  <ebb9@byu.net>
35235
35236         xalloc-die-tests: add missing library
35237         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
35238
35239         test-xvasprintf: silence compiler warnings
35240         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
35241         empty string from gcc.
35242
35243 2009-11-19  Jim Meyering  <meyering@redhat.com>
35244
35245         xfreopen: new module, from coreutils
35246         * modules/xfreopen: New module.
35247         * lib/xfreopen.c: New file.
35248         * lib/xfreopen.h: New file.
35249         * MODULES.html.sh (File stream based Input/Output"): Add it.
35250
35251 2009-11-19  Eric Blake  <ebb9@byu.net>
35252
35253         manywarnings: depend on warnings
35254         * modules/manywarnings (Depends-on): Add warnings.
35255
35256         build: avoid compiler warnings
35257         * lib/select.c (rpl_select): Delete unused variable.
35258         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
35259
35260 2009-11-18  Eric Blake  <ebb9@byu.net>
35261
35262         tests: avoid false negative with --with-packager
35263         * tests/test-version-etc.sh: Discard packager information.
35264         * tests/test-argp-version-etc-1.sh: Likewise.
35265         Reported by Mike Frysinger.
35266
35267         utimens: fix regression on Solaris
35268         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
35269         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
35270         can only change fd timestamps via futimesat.  Instead, use an
35271         additional witness macro to avoid BSD bug.
35272         Reported by Jim Meyering.
35273
35274 2009-11-17  Eric Blake  <ebb9@byu.net>
35275
35276         usleep: use it to simplify tests
35277         * modules/stat-time-tests (Depends-on): Add usleep.
35278         (configure.ac): Drop usleep check.
35279         * modules/chown-tests (Depends-on, configure.ac): Likewise.
35280         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
35281         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
35282         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
35283         * modules/openat-tests (Depends-on, configure.ac): Likewise.
35284         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
35285         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
35286         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
35287         Likewise.
35288         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
35289         * tests/test-lchown.h (nap): Likewise.
35290         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
35291         * tests/test-stat-time.c (nap): Likewise.
35292         * tests/test-utimens-common.h (nap): Update comments.
35293
35294         usleep: new module
35295         * modules/usleep: New file.
35296         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
35297         * lib/usleep.c (usleep): Likewise.
35298         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
35299         * modules/unistd (Makefile.am): Substitute witnesses.
35300         * lib/unistd.in.h (usleep): Add declaration.
35301         * doc/pastposix-functions/usleep.texi (usleep): Document this.
35302         * MODULES.html.sh (Date and time): Likewise.
35303         * modules/usleep-tests (Depends-on): New test.
35304         * tests/test-usleep.c: New file.
35305
35306         chown: work around OpenBSD bug
35307         * lib/chown.c (rpl_chown): Work around the bug.
35308         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
35309         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
35310         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
35311         * modules/chown (Depends-on): Add stdbool.
35312         * modules/lchown (Depends-on): Likewise.
35313         * doc/posix-functions/chown.texi (chown): Document the bug.
35314         * doc/posix-functions/lchown.texi (lchown): Likewise.
35315         * tests/test-lchown.h (test_chown): Relax test.
35316
35317         mkstemp: avoid conflict with C++ keyword template
35318         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
35319         * lib/mkostemp.c (mkostemp): Likewise.
35320         * lib/mkostemps.c (mkostemps): Likewise.
35321         * lib/mkstemp.c (mkstemp): Likewise.
35322         * lib/mkstemps.c (mkstemps): Likewise.
35323
35324         xalloc-die-tests: optimize
35325         * tests/test-xalloc-die.sh: Reduce number of processes.
35326
35327 2009-11-17  Simon Josefsson  <simon@josefsson.org>
35328
35329         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
35330         patch from ludo@gnu.org (Ludovic Courtès).
35331
35332 2009-11-17  Jim Meyering  <meyering@redhat.com>
35333
35334         version-etc: use proper license string
35335         * modules/version-etc (License): Use LGPL, not LGPLv3+.
35336         * modules/version-etc-fsf: Likewise.
35337
35338 2009-11-17  Simon Josefsson  <simon@josefsson.org>
35339
35340         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
35341         printed to stdout.  Deal with EOL differences.
35342
35343 2009-11-17  Eric Blake  <ebb9@byu.net>
35344
35345         unsetenv: work around Solaris bug
35346         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
35347         * lib/unsetenv.c (rpl_unsetenv): Work around it.
35348         Reported by Jim Meyering.
35349
35350         vasnprintf: avoid compiler warnings
35351         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
35352         variables.
35353         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
35354
35355 2009-11-17  Simon Josefsson  <simon@josefsson.org>
35356
35357         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
35358         settings since xalloc-die is no longer the self test,
35359         xalloc-die.sh is.
35360
35361 2009-11-17  Jim Meyering  <meyering@redhat.com>
35362
35363         test-xalloc-die.sh: make the code agree with the commit log
35364         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
35365         at the end, just in case you happen to have a test-xalloc-die
35366         program in some other PATH directory.
35367
35368         test-xalloc-die.sh: fix a portability bug
35369         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
35370         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
35371         Otherwise, argv[0] (as often seen in diagnostics) would be too
35372         system-dependent, sometimes with, and sometimes without the leading "./".
35373
35374         version-etc-fsf: relax license to LGPLv3+
35375         * modules/version-etc-fsf (License): Relax license.
35376
35377 2009-11-16  Eric Blake  <ebb9@byu.net>
35378
35379         xalloc-die-tests: avoid printing null pointer
35380         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
35381         shell script.
35382         * tests/test-xalloc-die.c (program_name): Declare.
35383         * tests/test-xalloc-die.sh (tmpfiles): New file.
35384
35385         setenv, unsetenv: work around various bugs
35386         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
35387         (setenv) [HAVE_SETENV]: Work around bugs.
35388         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
35389         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
35390         for bugs.
35391         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
35392         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
35393         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
35394         * modules/stdlib (Makefile.am): Update substitutions.
35395         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
35396         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
35397         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
35398         * modules/setenv-tests: New test.
35399         * modules/unsetenv-tests: Likewise.
35400         * tests/test-setenv.c: New file.
35401         * tests/test-unsetenv.c: Likewise.
35402
35403 2009-11-16  Jim Meyering  <meyering@redhat.com>
35404
35405         version-etc: relax license to LGPLv3+
35406         * modules/version-etc (License): Relax license.
35407
35408         better AC_REQUIRE expanded-before-required-warning avoidance
35409         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
35410         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
35411         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
35412         which is no longer needed.
35413
35414 2009-11-16  Eric Blake  <ebb9@byu.net>
35415
35416         test-freading: clean up temporary file
35417         * tests/test-freading.c (main): Remove file on success, and use
35418         ASSERT more liberally.
35419         Reported by Jim Meyering.
35420
35421 2009-11-16  Jim Meyering  <meyering@redhat.com>
35422
35423         avoid new AC_REQUIRE expanded-before-required warnings
35424         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
35425         merely using it.
35426         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
35427         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
35428
35429 2009-11-15  Simon Josefsson  <simon@josefsson.org>
35430
35431         * tests/test-xalloc-die.c: New file.
35432         * modules/xalloc-die-tests: New file.
35433         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
35434         XFAIL_TESTS so it can be appended by modules.
35435
35436 2009-11-15  Simon Josefsson  <simon@josefsson.org>
35437
35438         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
35439         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
35440
35441 2009-11-14  Eric Blake  <ebb9@byu.net>
35442
35443         fnmatch: avoid compiler warning
35444         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
35445         to silence compiler warning about mismatch signedness in ?:.
35446         Reported by Robert Millan.
35447
35448         intprops: add double-inclusion guard
35449         * lib/intprops.h: Allow idempotent includes.
35450         Suggested by Bruce Korb.
35451
35452         openat: detect Solaris fchownat bug
35453         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
35454         penalizing glibc chownat when only lchownat is broken.
35455         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
35456         trailing slash bugs.
35457         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
35458         * modules/openat-tests (Files): Include more files.
35459         (Depends-on): Add mgetgroups, sleep, stat-time.
35460         (configure.ac): Add additional checks.
35461         (Makefile.am): Build new test.
35462         * tests/test-fchownat.c: New file.
35463
35464         lchown: detect Solaris and FreeBSD bug
35465         * lib/lchown.c (rpl_lchown): Work around bug.
35466         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
35467         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35468         * modules/unistd (Makefile.am): Populate it.
35469         * lib/unistd.in.h (lchown): Update declaration.
35470         * doc/posix-functions/lchown.texi (lchown): Document the bug.
35471         * modules/lchown-tests: New file.
35472         * tests/test-lchown.h (test_lchown): Likewise.
35473         * tests/test-lchown.c (main): Likewise.
35474
35475         chown: detect Solaris and FreeBSD bug
35476         * lib/chown.c (rpl_chown): Work around bug.
35477         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
35478         (gl_PREREQ_CHOWN): Delete.
35479         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35480         * modules/unistd (Makefile.am): Populate it.
35481         * lib/unistd.in.h (chown): Update declaration.
35482         * lib/lchown.c (chown): Update client.
35483         * modules/lchown (Depends-on): Add lstat.
35484         * doc/posix-functions/chown.texi (chown): Document the bug.
35485         * doc/posix-functions/getgroups.texi (getgroups): Document
35486         getgroups pitfall.
35487         * modules/chown-tests: New file.
35488         * tests/test-chown.h (test_chown): Likewise.
35489         * tests/test-chown.c (main): Likewise.
35490
35491 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
35492
35493         gnulib-tool: correctly detect absence of m4 directories
35494         * gnulib-tool: Avoid extra newline on data passed to wc -l.
35495
35496 2009-11-14  Jim Meyering  <meyering@redhat.com>
35497
35498         maint.mk: Prohibit inclusion of "xalloc.h" without use.
35499         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
35500
35501 2009-11-14  John W. Eaton  <jwe@gnu.org>
35502
35503         strftime.h: wrap funtion declaration in extern "C" block
35504         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
35505
35506 2009-11-13  Eric Blake  <ebb9@byu.net>
35507
35508         getgroups: avoid compiler warning
35509         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
35510
35511         getgroups: work around FreeBSD bug
35512         * lib/getgroups.c (rpl_getgroups): Work around the bug.
35513         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
35514         * doc/posix-functions/getgroups.texi (getgroups): Document it.
35515         * tests/test-getgroups.c (main): Fix buffer overrun.
35516
35517         getgroups: avoid compilation failure
35518         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
35519         * modules/getgroups (Depends-on): Add stdint.
35520
35521 2009-11-13  Jim Meyering  <meyering@redhat.com>
35522
35523         test-getgroups: avoid compilation failure
35524         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
35525
35526 2009-11-13  Eric Blake  <ebb9@byu.net>
35527
35528         mgetgroups: new module, taken from coreutils
35529         * modules/mgetgroups: New file.
35530         * lib/mgetgroups.h: Likewise.
35531         * lib/mgetgroups.c (mgetgroups): Likewise.
35532         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
35533         * MODULES.html.sh (Users and groups): Mention it.
35534
35535         getgroups: don't expose GETGROUPS_T to user
35536         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
35537         an element at a time if GETGROUPS_T is wrong size.
35538         * lib/getugroups.h (getugroups): Change signature.
35539         * lib/unistd.in.h (getgroups): Likewise.
35540         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
35541         signature needs fixing.
35542         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
35543         AC_TYPE_GETGROUPS.
35544         * modules/group-member (Depends-on): Add getgroups.
35545         * lib/group-member.c (group_info, get_group_info): Use gid_t.
35546         (group_member): Rely on getgroups replacement.
35547         * lib/getugroups.c (getugroups): Use gid_t.
35548         * tests/test-getgroups.c (main): Likewise.
35549         * NEWS: Mention the signature change.
35550         * doc/posix-functions/getgroups.texi (getgroups): Mention the
35551         problem with signature.
35552         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
35553         GETGROUPS_T is still useful for setgroups.
35554
35555         getgroups, getugroups: provide stubs for mingw
35556         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
35557         * lib/getugroups.c (getugroups): Likewise.
35558         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
35559         function.  Modernize replacement scheme.
35560         (gl_PREREQ_GETGROUPS): Delete.
35561         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
35562         * modules/getgroups (configure.ac): Declare witness.
35563         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
35564         * modules/unistd (Depends-on): Substitute witness.
35565         * lib/unistd.in.h (getgroups): Declare replacement.
35566
35567         getgroups: avoid calling exit
35568         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
35569         drop xalloc.
35570         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
35571         dependencies.
35572         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
35573         exiting, in the rare case of malloc failure.
35574
35575         getgroups: fix logic error
35576         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
35577         has more than 20 groups.
35578         * modules/getgroups-tests: New test.
35579         * tests/test-getgroups.c: New file.
35580
35581 2009-11-13  Simon Josefsson  <simon@josefsson.org>
35582
35583         * tests/test-base64.c: Improve.
35584
35585 2009-11-13  Simon Josefsson  <simon@josefsson.org>
35586
35587         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
35588         Blake <ebb9@byu.net>.
35589
35590 2009-11-13  Simon Josefsson  <simon@josefsson.org>
35591
35592         * tests/test-xvasprintf.c: Add %s%s related checks.
35593
35594 2009-11-12  Eric Blake  <ebb9@byu.net>
35595
35596         version-etc: match standards.texi style
35597         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
35598         and use <> only for URLs.
35599
35600 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
35601
35602         fts: do not fail on a submount during traversal
35603         * lib/fts.c (fts_build): Read the stat info again after opening
35604         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
35605         Original report at http://bugzilla.redhat.com/501848.
35606
35607 2009-11-12  Jim Meyering  <meyering@redhat.com>
35608
35609         bootstrap: sync from coreutils
35610         * build-aux/bootstrap (bootstrap_epilogue): New function.
35611         Use git_modules_config in one more place.  This make bootstrap's
35612         --gnulib-srcdir option more useful for testing.
35613
35614         bootstrap: generalize autoheader check
35615         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
35616         AC_CONFIG_HEADERS.
35617
35618 2009-11-11  Eric Blake  <ebb9@byu.net>
35619
35620         mkfifoat: use new modules for Solaris and BSD bugs
35621         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
35622         * lib/mkfifoat.c (mknodat): Split...
35623         * lib/mknodat.c (mknodat): ...into new file.
35624         * modules/mkfifoat (Files): Ship new file.
35625         (Depends-on): Add mkfifo, mknod.
35626         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
35627         (Depends-on): Add symlink.
35628         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
35629         redundant with test_mkfifo.h.
35630         (do_mkfifoat, do_mknodat): New helpers.
35631
35632         mknod: new module
35633         * modules/mknod: New file.
35634         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
35635         * lib/mknod.c (mknod): Likewise.
35636         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
35637         defaults.
35638         * modules/sys_stat (Makefile.am): Substitute them.
35639         * lib/sys_stat.in.h (mknod): Declare replacement.
35640         * MODULES.html.sh (Support for systems lacking POSIX:2008):
35641         Document it.
35642         * doc/posix-functions/mknod.texi (mknod): Likewise.
35643         * modules/mknod-tests: New test.
35644         * tests/test-mknod.c: Likewise.
35645
35646         mkfifo: new module
35647         * modules/mkfifo: New file.
35648         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
35649         * lib/mkfifo.c (mkfifo): Likewise.
35650         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
35651         defaults.
35652         * modules/sys_stat (Makefile.am): Substitute them.
35653         * lib/sys_stat.in.h (mkfifo): Declare replacement.
35654         * MODULES.html.sh (Support for systems lacking POSIX:2008):
35655         Document it.
35656         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
35657         * modules/mkfifo-tests: New test.
35658         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
35659         from test-mkfifoat.c.
35660         * tests/test-mkfifo.c: New file.
35661
35662         readlink: detect FreeBSD bug
35663         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
35664         slash on symlink.
35665         * doc/posix-functions/readlink.texi (readlink): Document the bug.
35666         * tests/test-readlink.h (test_readlink): Enhance test.
35667
35668         symlink: detect FreeBSD bug
35669         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
35670         slash on symlink.
35671         * doc/posix-functions/symlink.texi (symlink): Document the bug.
35672         * tests/test-symlink.h (test_symlink): Enhance test.
35673
35674 2009-11-10  Eric Blake  <ebb9@byu.net>
35675
35676         link: detect FreeBSD bug
35677         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
35678         symlink.
35679         * doc/posix-functions/link.texi (link): Document the bug.
35680         * tests/test-link.h (test_link): Enhance test.
35681         * tests/test-linkat.c (main): Update caller.
35682
35683         unlink, remove: detect FreeBSD bug
35684         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
35685         slash on symlink.
35686         * doc/posix-functions/unlink.texi (unlink): Document the bug.
35687         * doc/posix-functions/remove.texi (remove): Likewise.
35688         * tests/test-unlink.h (test_unlink): Enhance test.
35689         * tests/test-remove.c (main): Likewise.
35690
35691 2009-11-09  Eric Blake  <ebb9@byu.net>
35692
35693         rename: detect FreeBSD bug
35694         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
35695         slash on symlink.
35696         * modules/renameat-tests (Depends-on): Add filenamecat.
35697         * tests/test-rename.h (test_rename): Allow one more errno.
35698         * tests/test-renameat.c (main): Likewise.
35699         * doc/posix-functions/rename.texi (rename): Document the bug.
35700
35701         open: detect FreeBSD bug
35702         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
35703         symlink.
35704         * doc/posix-functions/open.texi (open): Document the bug.
35705         * doc/posix-functions/utimes.texi (utimes): Likewise.
35706         * tests/test-open.h (test_open): Add parameters, and test symlink
35707         handling.
35708         * tests/test-open.c (main): Adjust caller.
35709         * tests/test-fcntl-safer.c (main): Likewise.
35710         * modules/open-tests (Depends-on): Add stdbool, symlink.
35711         * modules/fcntl-safer-tests (Depends-on): Likewise.
35712         * tests/test-openat.c (main): Add test-open tests.
35713
35714         stat: detect FreeBSD bug
35715         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
35716         symlink.
35717         * doc/posix-functions/stat.texi (stat): Document the bug.
35718         * tests/test-stat.h (test_stat_func): Add argument.
35719         * tests/test-stat.c (main): Adjust caller.
35720         * tests/test-fstatat.c (main): Likewise.
35721         * modules/stat-tests (Depends-on): Add stdbool, symlink.
35722         Reported by Jim Meyering.
35723
35724 2009-11-09  James Youngman  <jay@gnu.org>
35725
35726         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
35727         * lib/strftime.c: Correct placement of #include "ignore-value.h".
35728
35729 2009-11-08  Jim Meyering  <meyering@redhat.com>
35730
35731         utimens: remove invalid futimesat call
35732         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
35733         It used the file descriptor of the target file as the DIR_FD
35734         parameter and NULL as the file name.  That caused failure with
35735         errno == EFAULT on FreeBSD-8.0-rc2
35736
35737 2009-11-07  Eric Blake  <ebb9@byu.net>
35738
35739         fflush, freadseek: use fseeko, not fseek
35740         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
35741         (clear_ungetc_buffer): Avoid potential problems on large files.
35742         * lib/freadseek.c (freadseek): Likewise.
35743         * modules/freadseek (Depends-on): Add fseeko.
35744         * modules/fseek (configure.ac): Set a witness.
35745         * tests/test-fflush.c (main): Use fseeko.
35746         * tests/test-fpurge.c (fseek): Disable link warning.
35747         * tests/test-freadable.c (fseek): Likewise.
35748         * tests/test-freading.c (fseek): Likewise.
35749         * tests/test-fseeko.c (fseek): Likewise.
35750         * tests/test-ftell.c (fseek): Likewise.
35751         * tests/test-ftello.c (fseek): Likewise.
35752         * tests/test-fwritable.c (fseek): Likewise.
35753         * tests/test-fwriting.c (fseek): Likewise.
35754
35755 2009-11-06  Simon Josefsson  <simon@josefsson.org>
35756
35757         * modules/memchr (Depends-on): Drop getpagesize dependency.
35758
35759 2009-11-06  Simon Josefsson  <simon@josefsson.org>
35760
35761         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
35762         Reported by Ludovic Courtès.
35763         * build-aux/pmccabe2html: Improve example usage.
35764         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
35765
35766 2009-11-06  Jim Meyering  <meyering@redhat.com>
35767
35768         do-release-commit-and-tag: New module.
35769         Automate the release-commit and tag process.
35770         * build-aux/do-release-commit-and-tag: New script, from coreutils.
35771         * modules/do-release-commit-and-tag: New file.
35772         * MODULES.html.sh (Support for maintaining and releasing): Add it.
35773
35774 2009-11-06  Simon Josefsson  <simon@josefsson.org>
35775
35776         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
35777         because test-select.c uses inet_pton.
35778
35779 2009-11-06  Simon Josefsson  <simon@josefsson.org>
35780
35781         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
35782         GETADDRINFO_LIB.  Bump serial number.
35783         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
35784         Suggested by Eric Blake <ebb9@byu.net>.
35785
35786 2009-11-05  Eric Blake  <ebb9@byu.net>
35787
35788         strtod: detect darwin bug
35789         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
35790         Reported by Leo Davis.
35791
35792         freopen-safer: new module
35793         * modules/freopen-safer: New module.
35794         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
35795         * lib/freopen-safer.c (freopen_safer): New file.
35796         * lib/stdio-safer.h (freopen_safer): New declaration.
35797         * lib/stdio--.h (freopen): New override.
35798         * MODULES.html.sh (File stream based Input/Output): Mention it.
35799         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
35800         freopen-safer module.
35801         * doc/posix-functions/stderr.texi (stderr): Likewise.
35802         * doc/posix-functions/stdin.texi (stdin): Likewise.
35803         * doc/posix-functions/stdout.texi (stdout): Likewise.
35804         * modules/freopen-safer-tests: New test.
35805         * tests/test-reopen-safer.c: New file.
35806
35807 2009-11-05  Jim Meyering  <meyering@redhat.com>
35808
35809         maint.mk: Prohibit inclusion of "close-stream.h" without use.
35810         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
35811
35812 2009-11-05  Simon Josefsson  <simon@josefsson.org>
35813
35814         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
35815
35816 2009-11-05  Simon Josefsson  <simon@josefsson.org>
35817
35818         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
35819
35820 2009-11-05  Simon Josefsson  <simon@josefsson.org>
35821
35822         Fix link error.
35823         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
35824         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
35825
35826 2009-11-05  Simon Josefsson  <simon@josefsson.org>
35827
35828         * tests/test-func.c: Also test value of __func__.
35829
35830 2009-11-05  Simon Josefsson  <simon@josefsson.org>
35831
35832         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
35833         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
35834
35835 2009-11-05  Bruno Haible  <bruno@clisp.org>
35836
35837         Fix link error.
35838         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
35839         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
35840         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
35841
35842 2009-11-05  Bruno Haible  <bruno@clisp.org>
35843
35844         Tests for module 'inet_pton'.
35845         * modules/inet_pton-tests: New file.
35846         * tests/test-inet_pton.c: New file.
35847
35848 2009-11-05  Bruno Haible  <bruno@clisp.org>
35849
35850         Tests for module 'inet_ntop'.
35851         * modules/inet_ntop-tests: New file.
35852         * tests/test-inet_ntop.c: New file.
35853
35854 2009-11-04  Eric Blake  <ebb9@byu.net>
35855
35856         stdlib-safer: wrap all mkstemp variants
35857         * modules/mkostemp (configure.ac): Set witness.
35858         * modules/mkostemps (configure.ac): Likewise.
35859         * modules/mkstemps (configure.ac): Likewise.
35860         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
35861         (mkstemps_safer): Wrap more functions.
35862         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
35863         wrapping.
35864         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
35865         (mkstemps_safer): Implement the wrappers.
35866
35867         mkstemps, mkostemps: new modules
35868         * modules/mkostemps: New module.
35869         * modules/mkstemps: Likewise.
35870         * lib/mkostemps.c (mkostemps): New file.
35871         * lib/mkstemps.c (mkstemps): Likewise.
35872         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
35873         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
35874         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
35875         * modules/stdlib (Makefile.am): Substitute them.
35876         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
35877         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
35878         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
35879         * doc/gnulib.texi (Glibc stdlib.h): Include them.
35880         * MODULES.html.sh (File system functions): Mention them.
35881
35882         tempname: resync from glibc
35883         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
35884         same values for __GT_FILE as glibc.  Abort even when assertions
35885         are disabled.
35886         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
35887         match its value otherwise.  Allow idempotent inclusion.
35888         * lib/mkdtemp.c (mkdtemp): Adjust caller.
35889         * lib/mkostemp.c (mkostemp): Likewise.
35890         * lib/mkstemp.c (mkstemp): Likewise.
35891         * lib/tmpfile.c (tmpfile): Likewise.
35892         * NEWS: Document this.
35893
35894         utimens: fix use of futimens on older Linux
35895         * lib/utimens.c (fdutimens): Use updated, rather than original,
35896         timespec to avoid bug in older Linux kernel.
35897         Reported by Simon Josefsson.
35898
35899 2009-11-04  Bruno Haible  <bruno@clisp.org>
35900
35901         Make num_processors more flexible and consistent.
35902         * lib/nproc.h (enum nproc_query): New type.
35903         (num_processors): Add a 'query' argument.
35904         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
35905         (num_processors): Add a 'query' argument. Test the value of the
35906         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
35907         mingw, count the number of CPUs available for the current process.
35908         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
35909         Check for sched_getaffinity and sched_getaffinity_np.
35910         * modules/nproc (Depends-on): Add c-ctype, extensions.
35911         * NEWS: Mention the change.
35912
35913 2009-11-03  Bruno Haible  <bruno@clisp.org>
35914
35915         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
35916
35917 2009-11-03  Jim Meyering  <meyering@redhat.com>
35918
35919         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
35920         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
35921         if it is defined.
35922
35923 2009-11-02  Eric Blake  <ebb9@byu.net>
35924
35925         mktime, timegm: share common declaration
35926         * lib/mktime-internal.h: New file.
35927         * lib/mktime.c: Use it rather than open-coding a declaration.
35928         * lib/timegm.c: Likewise.
35929         * modules/mktime (Files): Ship it.
35930         * modules/timegm (Files): Likewise.
35931         Suggested by Bruno Haible.
35932
35933         test-update-copyright: update test to match script changes
35934         * tests/test-update-copyright.sh: Avoid hard-coding perl
35935         location.  Don't update *.bak created by earlier runs.
35936
35937 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
35938             Simon Josefsson  <simon@josefsson.org>
35939             Bruno Haible  <bruno@clisp.org>
35940
35941         Fix link error on Solaris 8.
35942         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
35943         also in libnsl. Define also INET_PTON_LIB.
35944         * modules/inet_pton (Link): New section.
35945
35946 2009-11-02  Simon Josefsson  <simon@josefsson.org>
35947             Bruno Haible  <bruno@clisp.org>
35948
35949         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
35950         * modules/inet_ntop (Link): New section.
35951         Reported by Boyan Kasarov <bkasarov@gmail.com>.
35952
35953 2009-11-02  Eric Blake  <ebb9@byu.net>
35954
35955         maint: avoid compiler warnings in m4 macros
35956         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
35957         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
35958
35959 2009-11-02  Simon Josefsson  <simon@josefsson.org>
35960
35961         * m4/pmccabe2html.m4: Remove file.
35962         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
35963         function.  Change maintainer.
35964         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
35965         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
35966         Courtès).
35967
35968 2009-10-31  Eric Blake  <ebb9@byu.net>
35969
35970         fseeko: fix m4 regression
35971         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
35972         regression from 2009-10-27.
35973         Reported by Ralf Wildenhues.
35974
35975 2009-10-31  Jim Meyering  <meyering@redhat.com>
35976
35977         inttostr: aesthetics and improved (compile-time) safety
35978         Define inttype_is_signed rather than inttype_is_unsigned,
35979         since the sole use is via "#if inttype_is_signed".
35980         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
35981         inttype_is_unsigned.
35982         * lib/offtostr.c (inttype_is_signed): Likewise.
35983         * lib/uinttostr.c (inttype_is_signed): Likewise.
35984         * lib/umaxtostr.c (inttype_is_signed): Likewise.
35985         * lib/inttostr.c (inttostr): Use verify to cross-check the
35986         inttype_is_signed value and the signedness of the actual type.
35987         * modules/inttostr (Depends-on): Add verify.
35988
35989 2009-10-30  Eric Blake  <ebb9@byu.net>
35990
35991         build: avoid compiler warnings
35992         * lib/fchmodat.c (lchmod): Mark unused variables.
35993         * lib/getopt.c (_getopt_initialize): Likewise.
35994         * lib/mktime.c (__mktime_internal): Provide prototype.
35995         * lib/inttostr.c (inttostr): Avoid compiler warning even with
35996         older gcc that do not understand #pragma GCC diagnostic.
35997         * lib/uinttostr.c (inttype_is_unsigned): Define.
35998         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
35999
36000 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
36001
36002         stat: fix compilation on AIX
36003         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
36004         only see struct stat64.
36005
36006 2009-10-30  Eric Blake  <ebb9@byu.net>
36007
36008         exclude: make more robust
36009         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
36010         rather than masking a coding bug.
36011         Suggested by Bruno Haible.
36012
36013 2009-10-30  Jim Meyering  <meyering@redhat.com>
36014
36015         perl scripts: remove #!/usr/bin/perl in favor of more portable...
36016         Rather than putting #!/usr/bin/perl on the first line,
36017         start with a variant of what's recommended by "man perlrun" that
36018         invokes the first "perl" program from your shell's search path.
36019         * build-aux/gitlog-to-changelog: Replace #!... as above.
36020         Add a "Local Variables" perl mode setting.
36021         Prompted by a patch from Ludovic Courtès.
36022         Improved by Eric Blake.
36023         * build-aux/useless-if-before-free: Likewise.
36024         * build-aux/announce-gen: Likewise.
36025         * build-aux/update-copyright: Likewise.
36026
36027 2009-10-29  Eric Blake  <ebb9@byu.net>
36028
36029         filenamecat-lgpl: adjust clients
36030         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
36031         filenamecat.
36032         * modules/renameat (Depends-on): Likewise.
36033
36034         filenamecat: split into filenamecat-lgpl
36035         * modules/filenamecat-lgpl: New module.
36036         * modules/filenamecat (Files): Move library-safe files into
36037         filenamecat-lgpl.
36038         (Depends-on): Add filenamecat-lgpl.
36039         (configure.ac): Declare witness.
36040         * lib/filenamecat.h (file_name_concat): Only declare when using
36041         GPL module.
36042         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
36043         Move...
36044         * lib/filenamecat-lgpl.c: ...into new file.
36045         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
36046         (gl_FILE_NAME_CONCAT): Use it.
36047         * MODULES.html.sh (File system functions): Mention new module.
36048
36049         argp: avoid memory leak
36050         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
36051         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
36052         base_name, since the latter malloc()s and can call exit().
36053         Leak introduced 2006-07-03.
36054
36055         dirname-lgpl: adjust clients that don't need full dirname
36056         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
36057         * modules/filenamecat (Depends-on): Likewise.
36058         * modules/linkat (Depends-on): Likewise.
36059         * modules/mkancesdirs (Depends-on): Likewise.
36060         * modules/mkdir (Depends-on): Likewise.
36061         * modules/openat (Depends-on): Likewise.
36062         * modules/savewd (Depends-on): Likewise.
36063         * modules/rename (Depends-on): Likewise.
36064         (License): Relax license.
36065         * modules/mkdir-tests (Depends-on): Drop progname.
36066         (Makefile.am): Delete unneeded LDADD.
36067         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
36068
36069         dirname: split into dirname-lgpl
36070         * modules/dirname-lgpl: New module.
36071         * modules/dirname (Files): Move library-safe files into
36072         dirname-lgpl.
36073         (Depends-on): Add dirname-lgpl.
36074         (configure.ac): Declare witness.
36075         * modules/double-slash-root (License): Relax license.
36076         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
36077         module.
36078         * lib/dirname.c (dir_len, mdir_name): Move...
36079         * lib/dirname-lgpl.c: ...into new file.
36080         * lib/basename.c (last_component, base_len): Move...
36081         * lib/basename-lgpl.c: ...into new file.
36082         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
36083         (gl_DIRNAME): Use it.
36084         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
36085         Mention new module.
36086         * modules/dirname-tests (Depends-on): Add progname.
36087         * tests/test-dirname.c (program_name): Delete.
36088
36089         mkdir: make safe for libraries
36090         * modules/mkdir (Depends-on): Drop xalloc.
36091         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
36092         exit.
36093
36094         tests: avoid some compiler warnings
36095         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
36096         literals.
36097         * tests/test-memchr.c (main): Avoid type mismatch.
36098         * tests/test-arpa_inet.c (main): Avoid unused parameters.
36099         * tests/test-base64.c (main): Likewise.
36100         * tests/test-getdelim.c (main): Likewise.
36101         * tests/test-gethostname.c (main): Likewise.
36102         * tests/test-getline.c (main): Likewise.
36103         * tests/test-netinet_in.c (main): Likewise.
36104         * tests/test-select.c (open_server_socket, main): Likewise.
36105         * tests/test-select-stdin.c (main): Likewise.
36106         * tests/test-sockets.c (main): Likewise.
36107         * tests/test-strsignal.c (main): Likewise.
36108         * tests/test-sys_select.c (main): Likewise.
36109         * tests/test-sys_socket.c (main): Likewise.
36110         * tests/test-u64.c (main): Likewise.
36111         * tests/test-xfprintf-posix.c (main): Likewise.
36112         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
36113
36114         sockets: avoid compiler warning
36115         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
36116
36117         maint: detect usage(1) and other suspicious exits
36118         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
36119
36120 2009-10-29  Jim Meyering  <meyering@redhat.com>
36121
36122         timespec: long-to-int truncation could make timespec_cmp malfunction
36123         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
36124         a multiple of 2^32 nanoseconds as no difference.
36125
36126 2009-10-28  Jim Meyering  <meyering@redhat.com>
36127
36128         fprintftime: wrap macro code argument in "do {...} while(0)"
36129         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
36130         cpy macro must be a statement that can be followed by a semicolon.
36131         Now that the else clause contains a comment and is hence longer
36132         than one line, I require curly braces.  That in turn requires
36133         that we wrap this code block in the standard do...while(0).
36134
36135         fprintftime: remove stray semicolon from previous change
36136         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
36137
36138         fprintftime: avoid a warning about ignored fwrite return value
36139         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
36140         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
36141         that is unsafe.
36142         * modules/fprintftime (Depends-on): Add ignore-value.
36143
36144         exclude: avoid an unwarranted warning
36145         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
36146
36147 2009-10-27  Eric Blake  <ebb9@byu.net>
36148
36149         fseek: avoid compilation failure when fflush is replaced
36150         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
36151         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
36152         module is in use.
36153         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
36154         module is not in use; since REPLACE_FSEEK worked otherwise.
36155         (GNULIB_FTELLO): Likewise for ftell.
36156         Reported by Ian Beckwith and others.
36157
36158 2009-10-27  Bruno Haible  <bruno@clisp.org>
36159
36160         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
36161         Reported by Jim Meyering.
36162
36163 2009-10-27  Jim Meyering  <jim@meyering.net>
36164             Bruno Haible  <bruno@clisp.org>
36165
36166         Avoid warning despite dropping the return value of fwrite.
36167         * lib/unicodeio.c: Include ignore-value.h.
36168         (fwrite_success_callback): Explicitly ignore fwrite's return value.
36169         * modules/unicodeio (Depends-on): Add ignore-value.
36170
36171 2009-10-26  Eric Blake  <ebb9@byu.net>
36172
36173         areadlinkat: fix fallback path
36174         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
36175         pointer and zero.
36176
36177 2009-10-22  Pádraig Brady  <P@draigBrady.com>
36178
36179         Use a better IO block size for modern systems
36180         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
36181         * lib/md2.c: Likewise.
36182         * lib/md4.c: Likewise.
36183         * lib/md5.c: Likewise.
36184         * lib/sha1.c: Likewise.
36185         * lib/sha256.c: Likewise.
36186         * lib/sha512.c: Likewise.
36187
36188 2009-10-22  Eric Blake  <ebb9@byu.net>
36189
36190         tests: avoid several compiler warnings
36191         * tests/test-getcwd.c (main): Avoid buffer underflow.
36192         * tests/test-getdate.c (main): String literals are not safe with
36193         putenv, so use setenv.  Declare unused argument.
36194         * modules/getdate-tests (Depends-on): Add setenv.
36195         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
36196         problems with string literals in char *.
36197         * tests/test-hash.c (main): Avoid shadowing declaration.
36198         (insert_new): Treat string literals as char const *.
36199         * tests/test-getopt.h (test_getopt): Likewise.
36200         (getopt_loop): Alter types to minimize casting elsewhere.
36201         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
36202         (test_getopt_long_posix): Likewise.
36203         (do_getopt_long): Add wrapper to minimize casting.
36204         * tests/test-atexit.c (clear_temp_file): Use void.
36205         * tests/test-areadlink-with-size.c (main): Declare unused
36206         arguments.
36207         * tests/test-areadlink.c (main): Likewise.
36208         * tests/test-areadlinkat-with-size.c (main): Likewise.
36209         * tests/test-areadlinkat.c (main): Likewise.
36210         * tests/test-canonicalize-lgpl.c (main): Likewise.
36211         * tests/test-canonicalize.c (main): Likewise.
36212         * tests/test-dirent-safer.c (main): Likewise.
36213         * tests/test-dirname.c (main): Likewise.
36214         * tests/test-dup2.c (main): Likewise.
36215         * tests/test-fchdir.c (main): Likewise.
36216         * tests/test-fcntl-h.c (main): Likewise.
36217         * tests/test-fcntl-safer.c (main): Likewise.
36218         * tests/test-fdopendir.c (main): Likewise.
36219         * tests/test-fdutimensat.c (main): Likewise.
36220         * tests/test-fflush.c (main): Likewise.
36221         * tests/test-filenamecat.c (main): Likewise.
36222         * tests/test-filevercmp.c (main): Likewise.
36223         * tests/test-fopen-safer.c (main): Likewise.
36224         * tests/test-fopen.c (main): Likewise.
36225         * tests/test-fpending.c (main): Likewise.
36226         * tests/test-fpurge.c (main): Likewise.
36227         * tests/test-freading.c (main): Likewise.
36228         * tests/test-fstatat.c (main): Likewise.
36229         * tests/test-fsync.c (main): Likewise.
36230         * tests/test-futimens.c (main): Likewise.
36231         * tests/test-getndelim2.c (main): Likewise.
36232         * tests/test-gettimeofday.c (main): Likewise.
36233         * tests/test-getopt.c (main): Likewise.
36234         * tests/test-i-ring.c (main): Likewise.
36235         * tests/test-inttypes.c (main): Likewise.
36236         * tests/test-link.c (main): Likewise.
36237         * tests/test-lstat.c (main): Likewise.
36238         * tests/test-math.c (main): Likewise.
36239         * tests/test-md5.c (main): Likewise.
36240         * tests/test-memchr2.c (main): Likewise.
36241         * tests/test-memrchr.c (main): Likewise.
36242         * tests/test-mkdir.c (main): Likewise.
36243         * tests/test-mkdirat.c (main): Likewise.
36244         * tests/test-mkfifoat.c (main): Likewise.
36245         * tests/test-open.c (main): Likewise.
36246         * tests/test-openat-safer.c (main): Likewise.
36247         * tests/test-openat.c (main): Likewise.
36248         * tests/test-quotearg.c (main): Likewise.
36249         * tests/test-rawmemchr.c (main): Likewise.
36250         * tests/test-readlink.c (main): Likewise.
36251         * tests/test-remove.c (main): Likewise.
36252         * tests/test-rename.c (main): Likewise.
36253         * tests/test-renameat.c (main): Likewise.
36254         * tests/test-rmdir.c (main): Likewise.
36255         * tests/test-sha1.c (main): Likewise.
36256         * tests/test-signal.c (main): Likewise.
36257         * tests/test-sigaction.c (main): Likewise.
36258         * tests/test-stat.c (main): Likewise.
36259         * tests/test-stat-time.c (main): Likewise.
36260         * tests/test-stddef.c (main): Likewise.
36261         * tests/test-stdint.c (main): Likewise.
36262         * tests/test-stdio.c (main): Likewise.
36263         * tests/test-stdlib.c (main): Likewise.
36264         * tests/test-strchrnul.c (main): Likewise.
36265         * tests/test-strerror.c (main): Likewise.
36266         * tests/test-string.c (main): Likewise.
36267         * tests/test-strtod.c (main): Likewise.
36268         * tests/test-strverscmp.c (main): Likewise.
36269         * tests/test-symlink.c (main): Likewise.
36270         * tests/test-symlinkat.c (main): Likewise.
36271         * tests/test-sys_stat.c (main): Likewise.
36272         * tests/test-sys_time.c (main): Likewise.
36273         * tests/test-time.c (main): Likewise.
36274         * tests/test-unistd.c (main): Likewise.
36275         * tests/test-unlink.c (main): Likewise.
36276         * tests/test-unlinkat.c (main): Likewise.
36277         * tests/test-utimens.c (main): Likewise.
36278         * tests/test-utimensat.c (main): Likewise.
36279         * tests/test-version-etc.c (main): Likewise.
36280         * tests/test-wchar.c (main): Likewise.
36281         * tests/test-wctype.c (main): Likewise.
36282         * tests/test-xprintf-posix.c (main): Likewise.
36283         * tests/test-posixtm.c (main): Likewise.
36284         (STREQ): Delete unused macro.
36285         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
36286         shadowed variables.
36287         * tests/test-memchr.c (main): Likewise.
36288
36289 2009-10-21  Eric Blake  <ebb9@byu.net>
36290
36291         areadlinkat: avoid failure on older glibc
36292         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
36293         rather than mis-comparing 0 against FUNC_RESULT of char*.
36294
36295 2009-10-21  Bruno Haible  <bruno@clisp.org>
36296
36297         * modules/stpncpy (License): Relicense under LGPLv2+.
36298         Reported by David Lutterkort <lutter@redhat.com>.
36299
36300 2009-10-20  Eric Blake  <ebb9@byu.net>
36301
36302         utimensat: work around Solaris 9 bug
36303         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
36304         has trailing slash bugs.
36305         * tests/test-lutimens.h (test_lutimens): Enhance test.
36306         * tests/test-utimens.h (test_utimens): Likewise.
36307         * doc/posix-functions/utime.texi (utime): Enhance documentation.
36308         * doc/posix-functions/utimes.texi (utimes): Likewise.
36309         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
36310         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
36311         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
36312         * doc/posix-functions/futimens.texi (futimens): Likewise.
36313
36314         fdutimensat: new module
36315         * modules/fdutimensat: New file.
36316         * lib/fdutimensat.c (fdutimensat): Likewise.
36317         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
36318         * MODULES.html.sh (File system functions): Mention module.
36319         * modules/fdutimensat-tests: New test.
36320         * tests/test-fdutimensat.c: Likewise.
36321
36322         doc: regenerate INSTALL
36323         * doc/INSTALL: Reflect recent autoconf update.
36324         * doc/INSTALL.ISO: Likewise.
36325         * doc/INSTALL.UTF-8: Likewise.
36326
36327 2009-10-20  Pádraig Brady  <P@draigBrady.com>
36328
36329         acl: warn if ACL support is not detected
36330         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
36331
36332 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
36333
36334         * lib/nproc.h: Add extern "C" block for C++.
36335
36336 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
36337             Bruno Haible  <bruno@clisp.org>
36338
36339         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
36340         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
36341         * doc/posix-functions/isalpha.texi: Likewise.
36342         * doc/posix-functions/isblank.texi: Likewise.
36343         * doc/posix-functions/iscntrl.texi: Likewise.
36344         * doc/posix-functions/isdigit.texi: Likewise.
36345         * doc/posix-functions/isgraph.texi: Likewise.
36346         * doc/posix-functions/islower.texi: Likewise.
36347         * doc/posix-functions/isprint.texi: Likewise.
36348         * doc/posix-functions/ispunct.texi: Likewise.
36349         * doc/posix-functions/isspace.texi: Likewise.
36350         * doc/posix-functions/isupper.texi: Likewise.
36351         * doc/posix-functions/isxdigit.texi: Likewise.
36352
36353 2009-10-18  Bruno Haible  <bruno@clisp.org>
36354
36355         Tests for module 'isblank'.
36356         * modules/isblank-tests: New file.
36357         * tests/test-isblank.c: New file.
36358
36359         New module 'isblank'.
36360         * lib/isblank.c: New file.
36361         * m4/isblank.m4: New file.
36362         * modules/isblank: New file.
36363         * doc/posix-functions/isblank.texi: Mention the new module.
36364
36365 2009-10-18  Bruno Haible  <bruno@clisp.org>
36366
36367         New module 'ctype'.
36368         * lib/ctype.in.h: New file.
36369         * m4/ctype.m4: New file.
36370         * modules/ctype: New file.
36371         * doc/posix-headers/ctype.texi: Mention the new module.
36372
36373 2009-10-18  Jim Meyering  <meyering@redhat.com>
36374
36375         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
36376         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
36377         right after its initialization, rather than farther down.
36378         Keeping these in close proximity makes it easier to ensure
36379         that each such variable is initialized.  E.g.,
36380
36381             LIB_CLOCK_GETTIME=
36382             AC_SUBST([LIB_CLOCK_GETTIME])
36383
36384         This change also increments these serial numbers.
36385         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
36386         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
36387         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
36388
36389 2009-10-18  Bruno Haible  <bruno@clisp.org>
36390
36391         Don't let environment variables perturb build.
36392         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
36393         (gl_PREREQ_GETHRXTIME): ... not here.
36394
36395 2009-10-18  Bruno Haible  <bruno@clisp.org>
36396
36397         Avoid symlink attack in localcharset module.
36398         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
36399         (O_NOFOLLOW): Define fallback.
36400         (get_charset_aliases): Don't open the file if it is a symbolic link.
36401         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
36402         gl_FCNTL_H.
36403         (gl_FCNTL_H): Require it.
36404         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
36405         * modules/localcharset (Files): Add m4/fcntl_h.m4.
36406         Reported by Fergal Glynn <fglynn@veracode.com>.
36407
36408 2009-10-18  Bruno Haible  <bruno@clisp.org>
36409
36410         Implement nproc for mingw.
36411         * lib/nproc.c: Include <windows.h>
36412         (num_processors): On native Windows platforms, try GetSystemInfo.
36413
36414 2009-10-18  Bruno Haible  <bruno@clisp.org>
36415
36416         Implement nproc for IRIX.
36417         * lib/nproc.c: Include <sys/sysmp.h>.
36418         (num_processors): On IRIX systems, try sysmp.
36419         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
36420
36421 2009-10-18  Bruno Haible  <bruno@clisp.org>
36422
36423         Implement nproc for HP-UX.
36424         * lib/nproc.c: Include <sys/pstat.h>
36425         (num_processors): On HP-UX systems, try pstat_getdynamic.
36426         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
36427         pstat_getdynamic.
36428
36429 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
36430             Bruno Haible  <bruno@clisp.org>
36431
36432         Implement nproc for NetBSD, OpenBSD.
36433         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
36434         (ARRAY_SIZE): New macro.
36435         (num_processors): On BSD systems, try sysctl of HW_NCPU.
36436         * m4/nproc.m4: New file.
36437         * modules/nproc (Files): Add m4/nproc.m4.
36438         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
36439         (Makefile.am): Instead, augment lib_SOURCES.
36440
36441 2009-10-18  Bruno Haible  <bruno@clisp.org>
36442
36443         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
36444         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
36445         sys/param.h.
36446
36447 2009-10-16  Eric Blake  <ebb9@byu.net>
36448
36449         utimensat: new module
36450         * modules/utimensat: New file.
36451         * lib/utimensat.c (utimensat): Likewise.
36452         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
36453         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
36454         so we can work around Linux bugs.
36455         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
36456         * modules/sys_stat (Makefile.am): Substitute them.
36457         * lib/sys_stat.in.h (utimensat): Declare it.
36458         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36459         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
36460         * modules/utimensat-tests: New test.
36461         * tests/test-utimensat.c: Likewise.
36462
36463         utimens: let lutimens work on non-symlinks
36464         * lib/utimens.c (lutimens): Fall back to utimens rather than
36465         failing with ENOSYS, when file is not a symlink.
36466         (utimens): Reduce redirection.
36467         * tests/test-lutimens.h (test_lutimens): Update test to cover
36468         non-symlinks.
36469         * tests/test-utimens.h (test_utimens): Update test to cover
36470         symlinks.
36471         * tests/test-utimens.c (main): Update caller.
36472
36473         utimens: cache whether utimensat syscall works
36474         * lib/utimens.c (utimensat_works_really): New cache variable.
36475         (fdutimens, lutimens): Use it to avoid failing syscall.
36476
36477         test-stat-time, test-utimens: improve portability
36478         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
36479         ext4 on alpha, and for cygwin.
36480         * tests/test-utimens-common.h: New file.
36481         (nap): Factor delays into single function.
36482         * tests/test-lutimens.h (test_lutimens): Use new header.
36483         * tests/test-futimens.h (test_futimens): Likewise.
36484         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
36485         timestamps to occur from same machine, as was done previously for
36486         test_utimens.
36487         * modules/utimens-tests (Files): Ship new file.
36488         * modules/futimens-tests (Files): Likewise.
36489         Reported in part by Jim Meyering.
36490
36491         sys_stat: sort replacement declarations
36492         * lib/sys_stat.in.h: Sort declarations.
36493         * lib/futimens.c (futimens): Fix typo.
36494
36495 2009-10-15  Jim Meyering  <meyering@redhat.com>
36496
36497         don't let environment settings perturb build
36498         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
36499         could cause a configure-time and/or build-time malfunction.
36500         Typically, a configure-time function-in-library test is performed
36501         via code like this:
36502
36503           LIB_VAR=
36504           AC_SUBST([LIB_VAR])
36505           prefix_saved_LIBS=$LIBS
36506             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
36507                        [test "$ac_cv_search_FUNC" = "none required" ||
36508                         LIB_VAR=$ac_cv_search_FUNC])
36509           LIBS=$prefix_saved_LIBS
36510
36511         However, in each of the files affected by this change, the LIB_VAR=
36512         initialization was omitted.  Thus, when set in the environment, its
36513         value would propagate into generated Makefiles when FUNC is not found
36514         in LIB_NAME.
36515         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
36516         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
36517         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
36518
36519 2009-10-14  Eric Blake  <ebb9@byu.net>
36520
36521         fchdir: avoid infinite recursion in mingw
36522         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
36523         recursing.
36524
36525         test-stat-time: port to mingw
36526         * tests/test-stat-time.c (force_unlink): Return a value.
36527         (test_ctime) [W32]: Fix compilation error.
36528         (nap): Don't call usleep with too large an argument.  Use
36529         force_unlink.
36530         * doc/pastposix-functions/usleep.texi (usleep): Document the
36531         portability issue.
36532
36533 2009-10-13  Jim Meyering  <meyering@redhat.com>
36534
36535         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
36536         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
36537         * modules/pipe-filter-ii: Likewise.
36538         * modules/sys_socket-tests: Likewise.
36539         * modules/tsearch-tests: Likewise.
36540         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
36541         (check): Depend on it.
36542
36543 2009-10-12  Eric Blake  <ebb9@byu.net>
36544
36545         utimens-tests: port to NFS file systems
36546         * tests/test-utimens.h (test_utimens): Refactor utimecmp
36547         comparisons to avoid spurious failures from timestamp drift
36548         between NFS machines.
36549
36550 2009-10-12  Eric Blake  <ebb9@byu.net>
36551
36552         stat-time-tests: minor cleanups
36553         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
36554         * tests/test-stat-time.c (nap): Separate assignment from call.
36555         Suggested by Paolo Bonzini and Bruno Haible.
36556
36557         sys_stat: guarantee struct timespec
36558         * lib/sys_stat.in.h (includes): Always include <time.h>
36559         * modules/sys_stat (Depends-on): Add time.
36560         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
36561         mode_t permission values.
36562         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
36563         get at subsecond timestamps.
36564
36565 2009-10-10  Eric Blake  <ebb9@byu.net>
36566
36567         futimens: new module
36568         * modules/futimens: New file.
36569         * lib/futimens.c (futimens): Likewise.
36570         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
36571         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
36572         we can work around Linux bugs.
36573         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
36574         * modules/sys_stat (Makefile.am): Substitute them.
36575         * lib/sys_stat.in.h (futimens): Declare it.
36576         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36577         * doc/posix-functions/futimens.texi (futimens): Likewise.
36578         * modules/futimens-tests: New test.
36579         * tests/test-futimens.c: Likewise.
36580
36581         utimens: introduce fdutimens
36582         * lib/utimens.h (fdutimens): New prototype.
36583         * lib/utimens.c (gl_futimens): Move guts...
36584         (fdutimens): ...to new interface.
36585         * tests/test-utimens.c (do_fdutimens): Use it.
36586
36587         utimens: add UTIME_NOW and UTIME_OMIT support
36588         * lib/utimens.c (validate_timespec, update_timespec): New helper
36589         functions.
36590         (gl_futimens, lutimens): Use them.
36591         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
36592         stdbool, sys_stat.
36593         (Link): Mention resulting library dependency.
36594         * modules/utimecmp (Link): Likewise.
36595         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
36596         (Makefile.am): Pick up library dependency.
36597         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
36598         definition.
36599         * tests/test-sys_stat.c: Test the definitions.
36600         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
36601         * NEWS: Document library dependency.
36602
36603         utimecmp: support symlink timestamps
36604         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
36605         hashing when possible.  Use pathconf when available.
36606         (SYSCALL_RESOLUTION): Recognize tighter resolution.
36607         * modules/utimecmp (Depends-on): Add lstat.
36608
36609         utimens: add lutimens interface
36610         * lib/utimens.c (lutimens): New function.
36611         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
36612         * lib/utimens.h (lutimens): Declare new interface.
36613         * tests/test-utimens.c (main): Enhance test.
36614         * tests/test-lutimens.h (test_lutimens): New file.
36615         * modules/utimens-tests (Files): Distribute it.
36616         (Depends-on): Add symlink.
36617         (configure.ac): Check for usleep.
36618
36619         utimens: validate futimens usage
36620         * lib/utimens.c (gl_futimens): Require valid fd up front, using
36621         fewer syscalls on failure later on.  Avoid compiler warning on
36622         mingw.
36623         * modules/utimens (Depends-on): Add dup2.
36624
36625         utimens: add test
36626         * modules/utimens-tests: New test.
36627         * tests/test-utimens.h: New file.
36628         * tests/test-futimens.h: Likewise.
36629         * tests/test-utimens.c: Likewise.
36630
36631         doc: mention timestamp portability issues
36632         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
36633         instead.
36634         * doc/posix-functions/utime.texi (utime): Likewise.
36635         * doc/posix-functions/utimes.texi (utimes): Likewise.
36636         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
36637         instead.
36638         * doc/posix-functions/futimens.texi (futimens): Mention utimens
36639         module.
36640         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
36641         Mention weakness with symlink timestamps.
36642         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
36643         to utimensat/futimens instead.
36644         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
36645
36646         test-dup2: enhance test
36647         * tests/test-dup2.c (main): Also check AT_FDCWD.
36648
36649         test-stat-time: avoid more spurious failures
36650         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
36651         xfs; and avoid race if the two timestamps cross quantization edge.
36652
36653         relocatable: prefer 'file system' over 'filesystem'
36654         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
36655         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
36656         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
36657         * doc/relocatable.texi (Enabling Relocatability): Likewise.
36658         * lib/relocatable.c (compute_curr_prefix): Likewise.
36659
36660 2009-10-10  Jim Meyering  <meyering@redhat.com>
36661
36662         stat-time-tests: check for the usleep function
36663         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
36664
36665 2009-10-10  Bruno Haible  <bruno@clisp.org>
36666
36667         * modules/xnanosleep: Put the Link section after the Include section.
36668
36669 2009-10-09  Eric Blake  <ebb9@byu.net>
36670
36671         dup2: work around FreeBSD 6.1 bug
36672         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
36673         * doc/posix-functions/dup2.texi (dup2): Document it.
36674         Reported by Nelson H. F. Beebe and Jim Meyering.
36675
36676         test-stat-time: port to buggy NFS clients
36677         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
36678         (test_ctime): Also skip test if mtime and ctime are skewed.
36679
36680         maint: prefer 'file system' over 'filesystem'
36681         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
36682         * doc/posix-functions/lstat.texi (lstat): Likewise.
36683         * lib/file-has-acl.c (file_has_acl): Likewise.
36684         * lib/fwriteerror.c [TEST]: Likewise.
36685         * tests/test-areadlink.h (test_areadlink): Likewise.
36686         * tests/test-areadlinkat-with-size.c (main): Likewise.
36687         * tests/test-areadlinkat.c (main): Likewise.
36688         * tests/test-canonicalize-lgpl.c (main): Likewise.
36689         * tests/test-canonicalize.c (main): Likewise.
36690         * tests/test-fstatat.c (main): Likewise.
36691         * tests/test-linkat.c (main): Likewise.
36692         * tests/test-lstat.h (test_lstat_func): Likewise.
36693         * tests/test-mkdir.h (test_mkdir): Likewise.
36694         * tests/test-readlink.h (test_readlink): Likewise.
36695         * tests/test-remove.c (main): Likewise.
36696         * tests/test-rename.h (test_rename): Likewise.
36697         * tests/test-renameat.c (main): Likewise.
36698         * tests/test-rmdir.h (test_rmdir_func): Likewise.
36699         * tests/test-symlink.h (test_symlink): Likewise.
36700         * tests/test-symlinkat.c (main): Likewise.
36701         * tests/test-unlink.h (test_unlink_func): Likewise.
36702         * tests/test-unlinkat.c (main): Likewise.
36703
36704         maint: make realtime library usage explicit
36705         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
36706         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
36707         * modules/settime (Link): Likewise.
36708         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
36709
36710         test-stat-time: speed up execution
36711         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
36712         warning on mingw.
36713         (nap): New helper function.
36714         (prepare_test): Use it to reduce sleep time.
36715         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
36716         execution.
36717         * modules/stat-time-tests (configure.ac): Check for usleep.
36718
36719 2009-10-09  Jim Meyering  <meyering@redhat.com>
36720
36721         selinux-h: always use getfilecon wrappers
36722         * lib/getfilecon.c: New file.
36723         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
36724         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
36725         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
36726         (fgetfilecon): Provide a stub.
36727         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
36728         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
36729         file unconditionally.
36730         When <selinux/selinux.h> is found, arrange to use wrappers.
36731         * modules/selinux-h (Files): Add getfilecon.c.
36732         (Makefile.am): Substitute include-next-related bits
36733         into the now-always-generated selinux/selinux.h file.
36734         * doc/glibc-functions/lgetfilecon.texi: New file.
36735         * doc/glibc-functions/fgetfilecon.texi: New file.
36736         * doc/glibc-functions/getfilecon.texi: New file.
36737         * doc/glibc-functions/getfilecon-desc.texi: New file.
36738         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
36739         which to pull in the new files.
36740         * MODULES.html.sh (Misc): Add selinux-h.
36741
36742 2009-10-08  Jim Meyering  <meyering@redhat.com>
36743
36744         unistd: fix comment typo
36745         * lib/unistd.in.h (euidaccess): Fix a comment typo.
36746
36747 2009-10-08  Eric Blake  <ebb9@byu.net>
36748
36749         areadlink: use SIZE_MAX consistently
36750         * modules/areadlink (Depends-on): Add stdint.
36751         * modules/areadlink-with-size (Depends-on): Likewise.
36752         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
36753         gives NULL; drop sys/types, since unistd gives size_t; and add
36754         stdint for SIZE_MAX.
36755         (SIZE_MAX): Rely on headers.
36756         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
36757         and add stdint.
36758         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
36759         (SIZE_MAX): Likewise.
36760         (INITIAL_BUF_SIZE): Turn into enum.
36761         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
36762
36763 2009-10-08  Jim Meyering  <meyering@redhat.com>
36764
36765         areadlinkat: avoid compilation failure
36766         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
36767         Fix typo in comment.
36768
36769 2009-10-07  Eric Blake  <ebb9@byu.net>
36770
36771         areadlinkat-with-size: new module
36772         * modules/areadlinkat-with-size: New module.
36773         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
36774         * lib/areadlink.h (areadlinkat): Declare it.
36775         * MODULES.html.sh (File system functions): Mention it.
36776         * modules/areadlinkat-with-size-tests: New test.
36777         * tests/test-areadlinkat-with-size.c: New file.
36778
36779         xreadlinkat: new module
36780         * modules/xreadlinkat: New module.
36781         * lib/xreadlinkat.c (xreadlinkat): New file.
36782         * lib/xreadlink.h (xreadlinkat): Declare it.
36783         * MODULES.html.sh (File system functions): Mention it.
36784
36785         areadlinkat: new module
36786         * lib/at-func.c (FUNC_FAIL): New define.
36787         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
36788         * modules/areadlinkat: New module.
36789         * lib/linkat.c (areadlinkat): Move...
36790         * lib/areadlinkat.c (areadlinkat): ...to new file.
36791         * lib/areadlink.h (areadlinkat): Declare it.
36792         * modules/linkat (Depends-on): Add areadlinkat.
36793         * MODULES.html.sh (File system functions): Mention it.
36794         * modules/areadlinkat-tests: New test.
36795         * tests/test-areadlinkat.c: New file.
36796
36797         areadlink, areadlink-with-size: add tests
36798         * modules/areadlink-tests: New test.
36799         * modules/areadlink-with-size-tests: Likewise.
36800         * tests/test-areadlink.h: New file.
36801         * tests/test-areadlink.c: Likewise.
36802         * tests/test-areadlink-with-size.c: Likewise.
36803
36804         maint: minor cleanups
36805         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
36806         _UNUSED_PARAMETER_ instead.
36807         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
36808         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
36809         * modules/linkat-tests (Files): Distribute test-link.h.
36810
36811         openat, utimens: whitespace cleanup
36812         * lib/openat.c: Prefer space throughout, rather than mix of 8
36813         spaces vs. tabs.
36814         * lib/at-func.c: Likewise.
36815         * lib/utimens.c: Likewise.
36816
36817         openat: avoid using wrong fd
36818         * lib/openat.c (openat_permissive): Reject user's fd if saving the
36819         working directory chooses same fd.
36820         * lib/at-func.c (AT_FUNC_NAME): Likewise.
36821
36822         mkdir, mkdirat: fix cygwin 1.5.x bug
36823         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
36824         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
36825         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
36826         bug.
36827         (gl_PREREQ_MKDIR): Delete unused macro.
36828         * modules/mkdir (Files): Track file rename.
36829         (configure.ac): Update macro name.
36830         * modules/openat (Depends-on): Add mkdir.
36831         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
36832
36833         mkdir, mkdirat: add tests
36834         * modules/mkdir-tests: New test.
36835         * tests/test-mkdir.h: New file.
36836         * tests/test-mkdir.c: Likewise.
36837         * tests/test-mkdirat.c: Likewise.
36838         * modules/openat-tests (Files): Add new files.
36839         (Makefile.am): Run new test.
36840
36841 2009-10-06  Eric Blake  <ebb9@byu.net>
36842
36843         doc: tweak *at function documentation
36844         * doc/posix-functions/faccessat.texi (faccessat): Mention
36845         known issue with replacement.
36846         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
36847         * doc/posix-functions/linkat.texi (linkat): Likewise.
36848         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
36849         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
36850         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
36851         * doc/posix-functions/renameat.texi (renameat): Likewise.
36852         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
36853
36854         openat: fix GNU/Hurd bug in unlinkat
36855         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
36856         broken.
36857         * doc/posix-functions/unlink.texi (unlink): Document this.
36858         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
36859
36860         fdopendir: fix GNU/Hurd bug
36861         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
36862         allowing non-directory fds.
36863         * lib/fdopendir.c (rpl_fdopendir): Work around it.
36864         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
36865         * modules/dirent (Makefile.am): Substitute it.
36866         * lib/dirent.in.h (fdopendir): Declare replacement.
36867         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
36868         * tests/test-fdopendir.c (main): Test something other than
36869         /dev/null, since on Hurd that behaves like a directory.
36870
36871         test-symlink: port to GNU/Hurd
36872         * tests/test-symlink.h (test_symlink): Relax expected errno.
36873
36874         doc: tweak more cygwin information
36875         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
36876         now compatible with glibc.
36877         * doc/posix-functions/getopt.texi (getopt): Likewise.
36878
36879         getopt-gnu: add another test
36880         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
36881         guarantee behavior relied on by m4.
36882         * tests/test-getopt.c (main): Use it.
36883         * modules/getopt-posix-tests (Depends-on): Add setenv.
36884         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
36885
36886         getopt: fix compilation on darwin
36887         * lib/getopt.in.h (includes): Leave breadcrumbs during system
36888         include.
36889         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
36890         Reported by Ludovic Courtès.
36891
36892 2009-10-06  Bruno Haible  <bruno@clisp.org>
36893
36894         * modules/size_max (Description): Discourage its use.
36895         Reported by Simon Josefsson.
36896
36897 2009-10-06  Jim Meyering  <meyering@redhat.com>
36898
36899         linkat: avoid compilation failure
36900         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
36901
36902 2009-10-05  Eric Blake  <ebb9@byu.net>
36903
36904         linkat: support Linux 2.6.17
36905         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
36906         linkat on Linux, but allow cache variable override.
36907         * lib/linkat.c (rpl_linkat): Define override.
36908         * modules/linkat (Depends-on): Add symlinkat.
36909         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
36910         * modules/unistd (Makefile.am): Substitute it.
36911         * lib/unistd.in.h (linkat): Declare replacement.
36912         Reported by Pádraig Brady.
36913
36914         quotearg: port test to systems with C.UTF-8 locale
36915         * tests/test-quotearg.c (struct result_strings): Add another
36916         member, differentiating between C.ASCII and C.UTF-8 handling.
36917         (compare_strings): Add parameter.
36918         (main): Adjust all callers.
36919
36920         getopt: avoid clash with FreeBSD _getopt_internal
36921         * lib/getopt.in.h (_getopt_internal): Override the name.
36922         * lib/getopt_int.h (includes): Pick up any overrides.
36923         Reported by Reuben Thomas.
36924
36925         hash: allow C89 compilation
36926         * lib/hash.c (check_tuning): Move declaration before statement.
36927         Reported by Reuben Thomas.
36928
36929 2009-10-05  Karl Berry  <karl@gnu.org>
36930
36931         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
36932
36933 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
36934             Bruno Haible  <bruno@clisp.org>
36935
36936         * lib/uname.c (uname): Use a table-driven algorithm to compute
36937         Windows NT versions.
36938
36939 2009-10-04  Bruno Haible  <bruno@clisp.org>
36940
36941         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
36942         program_invocation_short_name.
36943         * modules/progname (configure.ac): Test for presence of
36944         program_invocation_short_name.
36945         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
36946
36947 2009-10-04  Bruno Haible  <bruno@clisp.org>
36948
36949         * lib/progname.c (set_program_name): Fix comment.
36950         Reported by Jim Meyering.
36951
36952 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
36953             Bruno Haible  <bruno@clisp.org>
36954
36955         * lib/uname.c: Include <string.h>.
36956         (uname): Do only one call to GetVersionEx in the common case.
36957
36958 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
36959             Bruno Haible  <bruno@clisp.org>
36960
36961         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
36962         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
36963         (uname): Add support for Windows CE and various non-x86 CPU types.
36964
36965 2009-10-03  Bruno Haible  <bruno@clisp.org>
36966
36967         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
36968         invocation to tests/configure.ac.
36969         Reported by Ian Beckwith <ianb@erislabs.net>.
36970
36971 2009-10-02  Eric Blake  <ebb9@byu.net>
36972
36973         fchdir: avoid compiler warning
36974         * lib/fchdir.c (canonicalize_file_name)
36975         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
36976
36977         test-open: support mingw errno values
36978         * tests/test-open.h (test_open): Relax test.
36979         * tests/test-fopen.h (test_fopen): Likewise.
36980         * tests/test-openat-safer.c (main): Likewise.
36981
36982         open: fix opening directory on mingw
36983         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
36984
36985         test-open: on GNU/Hurd, /dev/null is a directory
36986         * tests/test-fopen.h (main): Rename...
36987         (test_fopen): ...to this.  Use a guaranteed non-directory when
36988         confirming open behavior on trailing slash.
36989         * tests/test-openat-safer.c (main): Likewise.
36990         * tests/test-open.h (main): Likewise....
36991         (test_open): ...to this.
36992         * tests/test-fopen.c (main): Adjust caller.
36993         * tests/test-fopen-safer.c (main): Likewise.
36994         * tests/test-open.c (main): Likewise.
36995         * tests/test-fcntl-safer.c (main): Likewise.
36996         Reported by Samuel Thibault.
36997
36998         rename, fchdir: don't ignore chdir failure
36999         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
37000         * lib/rename.c (rpl_rename) [W32]: Likewise.
37001         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
37002         an empty destination directory if source cannot be renamed,
37003         although there is still possibility for failure.
37004         * doc/posix-functions/rename.texi (rename): Document the race.
37005         Reported by Jim Meyering.
37006
37007         maint: cleanup whitespace in recent commits
37008         * lib/rename.c (rpl_rename): Remove tabs.
37009         * tests/test-link.h (test_link): Likewise.
37010         * lib/fchdir.c (get_name): Likewise.
37011         Reported by Jim Meyering.
37012
37013 2009-10-02  Ben Pfaff  <blp@gnu.org>
37014
37015         relocatable-prog-wrapper: Add missing dependency on
37016         double-slash-root.
37017         * modules/relocatable-prog-wrapper: Add dependency.
37018         Reported by Ian Beckwith <ianb@erislabs.net>.
37019
37020 2009-10-02  Eric Blake  <ebb9@byu.net>
37021
37022         renameat: fix Solaris bugs
37023         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
37024         needed fixing.
37025         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
37026         * modules/stdio (Makefile.am): Substitute it.
37027         * lib/stdio.in.h (renameat): Declare replacement.
37028         * lib/renameat.c (rpl_renameat): Implement fix.
37029
37030         renameat: new module
37031         * modules/renameat: New file.
37032         * lib/renameat.c (renameat): Likewise.
37033         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
37034         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
37035         * modules/stdio (Makefile.am): Substitute them.
37036         * lib/stdio.in.h (renameat): Declare it.
37037         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
37038         * doc/posix-functions/renameat.texi (renameat): Likewise.
37039         * modules/renameat-tests: New test.
37040         * tests/test-renameat.c: Likewise.
37041
37042         rename: fix mingw bugs
37043         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
37044         directory overwrite bugs.
37045
37046         rename: fix another cygwin 1.5 bug
37047         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
37048         checks.
37049         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
37050         unnecessary cygwin workarounds.  Also work around bug with moving
37051         full directory onto an empty one.
37052         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
37053
37054         rename-dest-slash: merge into rename module
37055         * modules/rename-dest-slash (Status): Mark obsolete.
37056         (Depends-on): Add rename.
37057         (Files): Let rename do it all.
37058         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
37059         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
37060         * m4/rename-dest-slash.m4: ...so this file can be deleted.
37061         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
37062         * lib/rename.c (rpl_rename): Update comments.
37063
37064         rename: fix cygwin 1.5.x bugs
37065         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
37066         * lib/rename.c (rpl_rename): Work around them.
37067         * modules/rename (Depends-on): Add same-inode.
37068
37069         rename: fix Solaris 10 bug
37070         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
37071         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
37072         was the only bug.
37073
37074         rename: fix Solaris 9 bug
37075         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
37076         on non-directory.  Avoid calling exit.
37077         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
37078         strdup.
37079         * modules/rename-tests (Depends-on): Drop lstat.
37080         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
37081         (gl_PREREQ_RENAME): Delete unused macro.
37082
37083         rename-dest-slash: fix NetBSD bug
37084         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
37085         links.
37086         * modules/rename-dest-slash (Depends-on): Add same-inode.
37087
37088         rename-tests: new test, exposes several platform bugs
37089         * modules/rename-tests: New file.
37090         * tests/test-rename.h: Likewise.
37091         * tests/test-rename.c: Likewise.
37092         * doc/posix-functions/rename.texi (rename): Improve documentation,
37093         including bugs that will eventually be fixed in gnulib.
37094
37095 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
37096
37097         * lib/uname.c: Include <stdlib.h>
37098         (uname): Assume version info is available.
37099
37100 2009-10-02  Jim Meyering  <meyering@redhat.com>
37101
37102         gnu-web-doc-update: correct --help output
37103         * build-aux/gnu-web-doc-update: Make --help output relevant.
37104
37105         gnu-web-doc-update: add standard options
37106         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
37107
37108         gnu-web-doc-update: New module.
37109         Use this script to automatically update the on-line web documentation
37110         for your GNU project at http://www.gnu.org/software/$pkg/manual/
37111         * modules/gnu-web-doc-update: New file, from coreutils.
37112         * build-aux/gnu-web-doc-update: New script.
37113
37114 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
37115
37116         link: LoadLibrary is not needed.
37117         * lib/link.c: Use GetModuleHandle.
37118
37119 2009-10-01  Eric Blake  <ebb9@byu.net>
37120
37121         getopt: bump serial number
37122         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
37123         change.
37124
37125         tests: tighten link, rmdir, and remove tests
37126         * tests/test-link.h (includes): No need to use <config.h> here.
37127         Clean up if directory hard link was created, otherwise test for
37128         trailing '.'.
37129         * tests/test-linkat.c (main): Simplify.
37130         * tests/test-remove.c (main): Enhance test for trailing '.'.
37131         * tests/test-rmdir.h (test_rmdir_func): Likewise.
37132
37133 2009-10-01  Jim Meyering  <meyering@redhat.com>
37134
37135         maint.mk: requiring "make major" was annoying, for a "minor" release.
37136         What is intended is "stable", to contrast with alpha and beta,
37137         so require "make stable", not "make major".
37138         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
37139         (get_tool_versions): Likewise.
37140         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
37141
37142 2009-09-30  Ben Pfaff  <blp@gnu.org>
37143
37144         Fix broken build of replacement for Windows tmpfile().
37145         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
37146         flags argument added along with the 'mkostemp' module.
37147
37148 2009-09-28  Bruno Haible  <bruno@clisp.org>
37149
37150         Avoid identifier clash with POSIX function 'remove' defined as a macro.
37151         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
37152         to 'remove_elt'.
37153         (gl_list_remove): Update.
37154         * lib/gl_list.c (gl_list_remove): Update.
37155         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
37156         to 'remove_elt'.
37157         (gl_oset_remove): Update.
37158         * lib/gl_list.c (gl_oset_remove): Update.
37159         Reported by Eric Blake.
37160
37161 2009-09-28  Eric Blake  <ebb9@byu.net>
37162
37163         doc: mention yet more cygwin 1.7 status
37164         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
37165         cygwin.
37166         * doc/glibc-functions/execvpe.texi (execvpe): New file.
37167         * doc/gnulib.texi (Glibc unistd.h): Mention it.
37168
37169         argp: fix test failure
37170         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
37171         that are not upper-case.  Pass correct range to tolower.
37172
37173 2009-09-27  Jim Meyering  <meyering@redhat.com>
37174
37175         test-yesno: work around sparc-dash here-document infelicity
37176         Without this change, the literal \177 byte in a here document
37177         would make dash 0.5.5.1-3 access uninitialized memory.
37178         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
37179         Instead, use a marker, "@", and filter through tr to create the desired
37180         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
37181
37182 2009-09-27  Bruno Haible  <bruno@clisp.org>
37183
37184         Disable untested support for new flavours of ACLs on AIX.
37185         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
37186         progress.
37187         * lib/set-mode-acl.c (qset_acl): Likewise.
37188
37189 2008-12-07  Bruno Haible  <bruno@clisp.org>
37190
37191         Add support for new flavours of ACLs on AIX. (Untested.)
37192         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
37193         (file_has_acl): Add support for newer AIX.
37194         * lib/set-mode-acl.c (qset_acl): Likewise.
37195         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
37196         Rainer Tammer <tammer@tammer.net>.
37197
37198 2009-09-26  Eric Blake  <ebb9@byu.net>
37199
37200         argp: fix compilation of getopt
37201         * lib/getopt.in.h (includes): Use different guard than glibc.
37202         Reported by Sergey Poznyakoff.
37203
37204         doc: mention more cygwin 1.7 status
37205         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
37206         bug.
37207         * doc/posix-functions/execl.texi (execl): Likewise.
37208         * doc/posix-functions/execle.texi (execle): Likewise.
37209         * doc/posix-functions/execlp.texi (execlp): Likewise.
37210         * doc/posix-functions/execv.texi (execv): Likewise.
37211         * doc/posix-functions/execve.texi (execve): Likewise.
37212         * doc/posix-functions/execvp.texi (execvp): Likewise.
37213         * doc/glibc-functions/canonicalize_file_name.texi
37214         (canonicalize_file_name): Cygwin 1.7 now provides this.
37215         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
37216         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
37217         on AT_SYMLINK_NOFOLLOW.
37218
37219 2009-09-24  Eric Blake  <ebb9@byu.net>
37220
37221         test-linkat: make test more robust
37222         * tests/test-linkat.c (main): Avoid collision with EEXIST.
37223
37224         getopt: fix inclusion guards for cygwin
37225         * modules/getopt-posix (Depends-on): Add include-next.
37226         (Makefile.am): Substitute more items in replacement header.
37227         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
37228         <getopt.h>.
37229         * lib/getopt.in.h (includes): Use split inclusion guard, and
37230         prefer <getopt.h> over include <unistd.h> when one is present.
37231         (option): Also override name of 'struct option'.
37232
37233         same-inode: revert prior change; it is not yet ready
37234         * NEWS: Undo mention of this change.
37235         * lib/same-inode.h (same-inode.h): Undo tri-state change.
37236         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
37237         * lib/cycle-check.c (cycle_check): Likewise.
37238         * lib/same.c (same_name): Likewise.
37239         * lib/at-func2.c (at_func2): Likewise.
37240
37241 2009-09-23  Eric Blake  <ebb9@byu.net>
37242
37243         linkat: new module
37244         * modules/linkat: New file.
37245         * lib/at-func2.c (at_func2): Likewise.
37246         * lib/linkat.c (linkat): Likewise.
37247         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
37248         * lib/openat-priv.h (at_func2): Add declaration.
37249         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
37250         * modules/unistd (Makefile.am): Substitute them.
37251         * lib/unistd.in.h (linkat): Declare it.
37252         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
37253         * doc/posix-functions/linkat.texi (linkat): Likewise.
37254         * doc/posix-functions/link.texi (link): Tweak wording.
37255         * tests/test-link.c (main): Move guts...
37256         * tests/test-link.h (test_link): ...into new file.
37257         * modules/linkat-tests: New test.
37258         * tests/test-linkat.c: Likewise.
37259         * modules/link-tests (Files): Ship new file.
37260         (Depends-on): Add stdbool.
37261
37262         dirname: add library-safe mdir_name
37263         * lib/dirname.h (mdir_name): New prototype.
37264         * lib/dirname.c (dir_name): Move guts...
37265         (mdir_name): ...to new function that avoids xalloc_die.
37266
37267         fchdir: another mingw fix
37268         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
37269         * lib/fchdir.c (get_name): New helper method; skips canonicalize
37270         on mingw (where it has not yet been ported), and make it optional
37271         elsewhere.
37272         (_gl_register_fd): Use it.
37273
37274         same-inode: make SAME_INODE tri-state, to port to mingw
37275         * NEWS: Mention this change.
37276         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
37277         st_ino always being 0.
37278         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
37279         * lib/cycle-check.c (cycle_check): Likewise.
37280         * lib/same.c (same_name): Likewise.
37281
37282         lstat: avoid mingw compilation error
37283         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
37284         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
37285         lstat ourselves.
37286         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
37287         was adequate.
37288         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
37289         the checks for lstat.
37290         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
37291
37292         link: fix test failure on Solaris 9
37293         * lib/link.c (rpl_link): Don't assume link will catch bogus
37294         trailing slash on source.
37295
37296         test-symlinkat: enhance test
37297         * tests/test-readlink.c (main): Move guts...
37298         * tests/test-readlink.h (test_readlink): ...into new file.
37299         * tests/test-symlink.c (main): Move guts...
37300         * tests/test-symlink.h (test_symlink): ...into new file.
37301         * tests/test-symlinkat.c (main): Use new files for further
37302         coverage.
37303         (do_symlink, do_readlink): New helper functions.
37304         * modules/symlink-tests (Files): Ship new file.
37305         (Depends-on): Add stdbool.
37306         * modules/readlink-tests (Files): Ship new file.
37307         (Depends-on): Add stdbool.
37308         * modules/symlinkat-tests (Files): Use new files.
37309
37310 2009-09-23  Eric Blake  <ebb9@byu.net>
37311
37312         readlink: document portability issue with symlink length
37313         * doc/posix-functions/lstat.texi (lstat): Mention that some file
37314         systems have bogus st_size on symlinks, and mention the
37315         areadlink-with-size module.
37316         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
37317         * doc/posix-functions/readlink.texi (readlink): Mention the
37318         areadlink module, and ERANGE failure.
37319         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
37320         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
37321
37322         readlink: fix Solaris 9 bug with trailing slash
37323         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
37324         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
37325         * doc/posix-functions/readlink.texi (readlink): Document this.
37326         * modules/readlink-tests: New test.
37327         * tests/test-readlink.c: Likewise.
37328
37329         readlink: fix cygwin 1.5.x bug with return type
37330         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
37331         * lib/unistd.in.h (readlink): Use ssize_t.
37332         * lib/readlink.c (readlink): Likewise.
37333         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37334         * modules/unistd (Makefile.am): Substitute it.
37335         * lib/unistd.in.h (readlink): Declare replacement.
37336         * doc/posix-functions/readlink.texi (readlink): Document this.
37337
37338         symlink: use throughout gnulib
37339         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
37340         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
37341         symlink is not used.
37342         * modules/symlinkat (Depends-on): Add symlink.
37343         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
37344         * modules/canonicalize-tests (Depends-on): Likewise.
37345         * modules/lstat-tests (Depends-on): Likewise.
37346         * modules/openat-tests (Depends-on): Likewise.
37347         * modules/remove-tests (Depends-on): Likewise.
37348         * modules/rmdir-tests (Depends-on): Likewise.
37349         * modules/unlink-tests (Depends-on): Likewise.
37350         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
37351         * tests/test-canonicalize.c (symlink): Likewise.
37352         * tests/test-fstatat.c (symlink): Likewise.
37353         * tests/test-lstat.c (symlink): Likewise.
37354         * tests/test-remove.c (symlink): Likewise.
37355         * tests/test-rmdir.c (symlink): Likewise.
37356         * tests/test-unlink.c (symlink): Likewise.
37357         * tests/test-unlinkat.c (symlink): Likewise.
37358
37359         symlink: new module, for Solaris 9 bug
37360         * modules/symlink: New file.
37361         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
37362         * lib/symlink.c: Likewise.
37363         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
37364         * modules/unistd (Makefile.am): Substitute them.
37365         * lib/unistd.in.h (symlink): Declare replacement.
37366         * MODULES.html.sh (File system functions): Mention it.
37367         * doc/posix-functions/symlink.texi (symlink): Likewise.
37368         * modules/symlink-tests: New test.
37369         * tests/test-symlink.c: Likewise.
37370
37371 2009-09-23  Bruno Haible  <bruno@clisp.org>
37372
37373         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
37374         when needed.
37375         Test case: gnulib-tool --import --with-tests atexit inttypes.
37376         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
37377
37378 2009-09-23  Bruno Haible  <bruno@clisp.org>
37379
37380         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
37381         subcommand, not in a subshell.
37382
37383 2009-09-22  Eric Blake  <ebb9@byu.net>
37384
37385         unistd: sort replacement declarations
37386         * lib/unistd.in.h: Sort declarations.
37387
37388         open, openat: minor optimization
37389         * lib/open.c (open): If open succeeded, len is non-zero.
37390         * lib/openat.c (rpl_openat): Likewise.
37391
37392         link-follow: ensure correct result
37393         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
37394         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
37395         distinguish between possible failures.
37396
37397 2009-09-21  Eric Blake  <ebb9@byu.net>
37398
37399         fts: avoid compiler warning
37400         * lib/fts.c (dirent_inode_sort_may_be_useful)
37401         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
37402
37403 2009-09-19  Bruno Haible  <bruno@clisp.org>
37404
37405         * lib/progreloc.c (canonicalize_file_name): New declaration.
37406
37407 2009-09-19  Eric Blake  <ebb9@byu.net>
37408
37409         link: fix quoting
37410         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
37411
37412         openat: fix openat bugs on Solaris 9
37413         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
37414         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
37415         * modules/openat (Depends-on): Add open.
37416         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
37417         * modules/fcntl-h (Makefile.am): Substitute it.
37418         * lib/fcntl.in.h (openat): Declare replacement.
37419         * doc/posix-functions/openat.texi (openat): Document this.
37420
37421         openat: move fstatat and unlinkat into correct files
37422         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
37423         compiled.
37424         * lib/openat.c (fstatat, unlinkat): Move...
37425         * lib/fstatat.c (fstatat): ...into correct files.
37426         * lib/unlinkat.c (unlinkat): Likewise.
37427
37428         openat: fix unlinkat bugs on Solaris 9
37429         * lib/unlinkat.c (unlinkat): New file.
37430         * modules/openat (Depends-on): Add unlink.
37431         (Files): Distribute it.
37432         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
37433         trailing slash behavior is broken.
37434         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37435         * modules/unistd (Makefile.am): Substitute it.
37436         * lib/unistd.in.h (unlinkat): Declare replacement.
37437         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
37438
37439         openat: fix fstatat bugs on Solaris 9
37440         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
37441         stat.
37442         * doc/posix-functions/fstatat.texi (fstatat): Document this.
37443
37444         test-unlinkat: enhance test, to expose Solaris 9 bug
37445         * tests/test-unlink.c (main): Factor guts...
37446         * tests/test-unlink.h (test_rmdir_func): ...into new file.
37447         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
37448         * tests/test-rmdir.c (main): Adjust caller.
37449         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
37450         (unlinker): New helper function.
37451         (rmdirat): Enhance check.
37452         * modules/rmdir-tests (Depends-on): Add stdbool.
37453         * modules/unlink-tests (Depends-on): Likewise.
37454         (Files): Add test-unlink.h.
37455         * modules/openat-tests (Files): Likewise.
37456         (Depends-on): Add unlinkdir.
37457
37458         test-fstatat: new test, to expose Solaris 9 bugs
37459         * tests/test-stat.c (main): Factor guts...
37460         * tests/test-stat.h (test_stat_func): ...into new file.
37461         * tests/test-lstat.c (main): Factor guts...
37462         * tests/test-lstat.h (test_lstat_func): ...into new file.
37463         * tests/test-fstatat.c: New file.
37464         * modules/stat-tests (Files): Add test-stat.h.
37465         * modules/lstat-tests (Files): Add test-lstat.h.
37466         (Depends-on): Add stdbool.
37467         * modules/openat-tests (Depends-on): Add pathmax.
37468         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
37469         (Makefile.am): Run new test.
37470
37471         remove: new module, for mingw and Solaris 9 bugs
37472         * modules/remove: New file.
37473         * lib/remove.c: Likewise.
37474         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
37475         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
37476         * modules/stdio (Makefile.am): Use them.
37477         * lib/stdio.in.h (remove): Declare replacement.
37478         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
37479         * doc/posix-functions/remove.texi (remove): Likewise.
37480         * modules/remove-tests: New test.
37481         * tests/test-remove.c: Likewise.
37482
37483         unlink: new module, for Solaris 9 bug
37484         * modules/unlink: New file.
37485         * lib/unlink.c: Likewise.
37486         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
37487         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
37488         * modules/unistd (Makefile.am): Use them.
37489         * lib/unistd.in.h (stat): Declare replacement.
37490         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
37491         * doc/posix-functions/unlink.texi (unlink): Likewise.
37492         * modules/unlink-tests: New test.
37493         * tests/test-unlink.c: Likewise.
37494
37495         lstat: fix Solaris 9 bug
37496         * lib/lstat.c (lstat): Also check for trailing slash on
37497         non-symlink, non-directories.  Use stat module to simplify logic.
37498         * doc/posix-functions/lstat.texi (lstat): Document it.
37499         * modules/lstat-tests (Depends-on): Add errno, same-inode.
37500         (configure.ac): Check for symlink.
37501         * tests/test-lstat.c (main): Add more tests.
37502
37503         stat: add as dependency to other modules
37504         * modules/chown (Depends-on): Add stat.
37505         * modules/euidaccess (Depends-on): Likewise.
37506         * modules/fchdir (Depends-on): Likewise.
37507         * modules/isdir (Depends-on): Likewise.
37508         * modules/link (Depends-on): Likewise.
37509         * modules/lstat (Depends-on): Likewise.
37510         * modules/mkdir-p (Depends-on): Likewise.
37511         * modules/modechange (Depends-on): Likewise.
37512         * modules/open (Depends-on): Likewise.
37513         * modules/readlink (Depends-on): Likewise.
37514         * modules/same (Depends-on): Likewise.
37515
37516         stat: fix Solaris 9 bug
37517         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
37518         slash.
37519         * lib/stat.c (rpl_stat): Work around it.
37520         * doc/posix-functions/stat.texi (stat): Update documentation.
37521
37522         stat: new module, for mingw bug
37523         * modules/stat: New file.
37524         * lib/stat.c: Likewise.
37525         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
37526         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
37527         * modules/sys_stat (Makefile.am): Use them.
37528         * lib/sys_stat.in.h (stat): Declare replacement.
37529         * lib/openat.c (fstatat): Deal with lstat and stat being function
37530         macros.
37531         * modules/openat (Depends-on): Add inline.
37532         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
37533         * doc/posix-functions/stat.texi (stat): Likewise.
37534         * modules/stat-tests: New test.
37535         * tests/test-stat.c: Likewise.
37536
37537 2009-09-19  Jim Meyering  <meyering@redhat.com>
37538
37539         syntax-check: detect unnecessary inclusion of canonicalize.h
37540         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
37541
37542 2009-09-19  Eric Blake  <ebb9@byu.net>
37543
37544         canonicalize-lgpl: adjust clients to use correct header
37545         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
37546         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
37547         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
37548         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
37549         * lib/progreloc.c (includes): Likewise.
37550
37551 2009-09-19  Jim Meyering  <meyering@redhat.com>
37552
37553         test-posixtm.c: correct a comment
37554         * tests/test-posixtm.c: Correct first-line comment.
37555         Spotted by Eric Blake.
37556
37557 2009-09-16  Jim Meyering  <meyering@redhat.com>
37558
37559         posixtm-tests: make T const-correct; add a test case
37560         * tests/test-posixtm.c (T): Declare const.
37561         Add a test for -(2^31+1).
37562         Remove useless can-succeed-only-in-2002 test.
37563
37564         posixtm-tests: adjust the sole failing test
37565         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
37566         expected output matches what mktime now produces.  Cross-checked via
37567         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
37568
37569         posixtm: move #ifdef'd tests into a new module
37570         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
37571         * tests/test-posixtm.c: ... this new file.
37572         * modules/posixtm-tests: New module.
37573
37574 2009-09-19  Eric Blake  <ebb9@byu.net>
37575
37576         openat: simplify use of at-func.c
37577         * lib/at-func.c (includes): Include prerequisites here, to
37578         simplify requirements on client files.
37579         * lib/openat-priv.h: Add double-inclusion guard.
37580         * lib/faccessat.c (includes): Simplify.
37581         * lib/fchmodat.c (includes): Likewise.
37582         * lib/fchownat.c (includes): Likewise.
37583         * lib/mkdirat.c (includes): Likewise.
37584         * lib/mkfifoat.c (includes): Likewise.
37585         * lib/symlinkat.c (includes): Likewise.
37586
37587         openat: allow return of fd 0
37588         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
37589         * modules/save-cwd (Depends-on): Replace fcntl-safer with
37590         unistd-safer.
37591         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
37592         <fcntl.h>; this module does not leak fds.
37593         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
37594         must be allowed to return 0, leaving openat_safer to add the
37595         safety.
37596         (openat_permissive): Avoid writing to just-opened fd 2 if
37597         restoring the current directory fails.
37598         * lib/openat-die.c (openat_restore_fail): Add comment.
37599         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
37600         (save_cwd): Guarantee safe fd, but without use of open_safer.
37601         * tests/test-openat.c: New test.
37602         * modules/openat-tests (Files, Makefile.am): Distribute and build
37603         new file.
37604
37605         relocatable-prog-wrapper: fix build
37606         * modules/relocatable-prog-wrapper (Files): Update name of
37607         canonicalize m4 file, broken on 2009-09-17.
37608         Reported by emad hajjar <aleppos@hotmail.com>.
37609
37610 2009-09-19  Bruno Haible  <bruno@clisp.org>
37611
37612         * lib/safe-alloc.h: Use the standard header with GPL copyright.
37613         * lib/safe-alloc.c: Likewise.
37614         Reported by Ian Beckwith <ianb@erislabs.net>.
37615
37616 2009-09-18  Bruno Haible  <bruno@clisp.org>
37617
37618         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
37619         Reported by <erobles@sensacd.com.mx>.
37620
37621 2009-09-17  Eric Blake  <ebb9@byu.net>
37622
37623         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
37624         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
37625         slashes when checking if last component is missing.
37626         * tests/test-canonicalize.c (main): Test this.
37627
37628         canonicalize, canonicalize-lgpl: honor // if distinct from /
37629         * modules/canonicalize (Files): Add double-slash-root.m4.
37630         * modules/canonicalize-lgpl (Files): Likewise.
37631         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
37632         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
37633         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
37634         fallback definition.
37635         (canonicalize_filename_mode): Use it to protect //.
37636         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
37637         (__realpath): Likewise.
37638         * tests/test-canonicalize.c (main): Test this.
37639         * tests/test-canonicalize-lgpl.c (main): Likewise.
37640         * modules/canonicalize-tests (Depends-on): Add same-inode.
37641         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
37642
37643         canonicalize-lgpl: fix glibc bug with trailing slash
37644         * m4/canonicalize-lgpl.m4: Move contents...
37645         * m4/canonicalize.m4: ...here.
37646         (gl_CANONICALIZE_LGPL): Factor realpath check...
37647         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
37648         glibc 2.3.5 bug, fixed 2005-04-27.
37649         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
37650         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
37651         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
37652         * modules/canonicalize-lgpl (Files): Manage file rename.
37653         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
37654         * modules/stdlib (Makefile.am): Substitute witness.
37655         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
37656         is needed.
37657         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
37658         replacement is required.
37659         * lib/canonicalize.c (canonicalize_file_name): Likewise.
37660         * doc/glibc-functions/canonicalize_file_name.texi
37661         (canonicalize_file_name): Document this.
37662         * doc/posix-functions/realpath.texi (realpath): Likewise.
37663
37664         canonicalize-lgpl: reject non-directory with trailing slash
37665         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
37666         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
37667         catches failures in glibc 2.3.5.
37668         * tests/test-canonicalize.c (main): Likewise.
37669
37670         canonicalize-lgpl: use native realpath if it works
37671         * lib/canonicalize-lgpl.c (realpath): Guard with
37672         FUNC_REALPATH_WORKS.
37673         * lib/stdlib.in.h (realpath): Make declaration optional based on
37674         HAVE_REALPATH.
37675         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
37676         native realpath works.
37677         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
37678         * modules/stdlib (Makefile.am): Substitute witness.
37679
37680         canonicalize, canonicalize-lgpl: use <stdlib.h>
37681         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
37682         (Include): Mention <stdlib.h>.
37683         (configure.ac): Mention functions we provide.
37684         * modules/canonicalize (configure.ac): Likewise.
37685         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
37686         realpath if canonicalize_file_name is missing.
37687         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
37688         * modules/stdlib (Makefile.am): Substitute witnesses.
37689         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
37690         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
37691         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
37692         * NEWS: Document this.
37693         * doc/glibc-functions/canonicalize_file_name.texi
37694         (canonicalize_file_name): Likewise.
37695         * doc/posix-functions/realpath.texi (realpath): Likewise.
37696         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
37697
37698         test-canonicalize: consolidate into single C program
37699         * tests/test-canonicalize.sh: Delete; move setup into...
37700         * tests/test-canonicalize.c (main): ...the program, making it
37701         easier to run in debugger.  Add some tests.
37702         * modules/canonicalize-tests (Files): Remove unused file.
37703         (Depends-on): Add progname.
37704         (configure.ac, Makefile.am): Simplify.
37705
37706         test-canonicalize-lgpl: consolidate into single C program
37707         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
37708         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
37709         easier to run in debugger.  Add some tests.
37710         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
37711         (configure.ac, Makefile.am): Simplify.
37712
37713         canonicalize: avoid resolvepath
37714         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
37715         unnecessary checks.
37716         * lib/canonicalize.c (includes): Simplify.
37717         (canonicalize_file_name): Drop resolvepath implementation.
37718         * modules/canonicalize (Depends-on): Drop filenamecat.
37719
37720         canonicalize: don't lose errno
37721         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
37722         over calls to free.
37723
37724         canonicalize: simplify errno handling
37725         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
37726         assignment.
37727
37728         canonicalize, canonicalize-lgpl: update module dependencies
37729         * modules/canonicalize (Depends-on): Add extensions, lstat,
37730         pathmax, stdlib.
37731         (Files): Drop pathmax.h.
37732         (configure.ac): Adjust macro name.
37733         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
37734         lstat, stdlib, sys_stat.
37735         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
37736         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
37737         extensions.
37738         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
37739         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
37740         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
37741         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
37742         declaration, if available.
37743         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
37744         we can rely on the readlink module.
37745         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
37746         (includes): Use <unistd.h> unconditionally.
37747
37748 2009-09-17  Eric Blake  <ebb9@byu.net>
37749
37750         maint: make Include sections of modules consistent
37751         * modules/alloca: Use only header name; no need to list #include.
37752         * modules/alloca-opt: Likewise.
37753         * modules/arpa_inet: Likewise.
37754         * modules/canon-host: Likewise.
37755         * modules/configmake: Likewise.
37756         * modules/dirent: Likewise.
37757         * modules/eealloc: Likewise.
37758         * modules/environ: Likewise.
37759         * modules/fchdir: Likewise.
37760         * modules/fcntl: Likewise.
37761         * modules/fcntl-h: Likewise.
37762         * modules/gethrxtime: Likewise.
37763         * modules/gettime: Likewise.
37764         * modules/ignore-value: Likewise.
37765         * modules/inet_ntop: Likewise.
37766         * modules/inet_pton: Likewise.
37767         * modules/inttypes: Likewise.
37768         * modules/isnand-nolibm: Likewise.
37769         * modules/isnanf-nolibm: Likewise.
37770         * modules/mbchar: Likewise.
37771         * modules/mbfile: Likewise.
37772         * modules/mbiter: Likewise.
37773         * modules/mbuiter: Likewise.
37774         * modules/netdb: Likewise.
37775         * modules/netinet_in: Likewise.
37776         * modules/nproc: Likewise.
37777         * modules/pagealign_alloc: Likewise.
37778         * modules/poll: Likewise.
37779         * modules/printf-frexp: Likewise.
37780         * modules/pthread: Likewise.
37781         * modules/putenv: Likewise.
37782         * modules/random_r: Likewise.
37783         * modules/relocatable-prog: Likewise.
37784         * modules/search: Likewise.
37785         * modules/select: Likewise.
37786         * modules/selinux-h: Likewise.
37787         * modules/settime: Likewise.
37788         * modules/signal: Likewise.
37789         * modules/size_max: Likewise.
37790         * modules/socklen: Likewise.
37791         * modules/ssize_t: Likewise.
37792         * modules/stdarg: Likewise.
37793         * modules/stdbool: Likewise.
37794         * modules/stddef: Likewise.
37795         * modules/stdint: Likewise.
37796         * modules/stdio: Likewise.
37797         * modules/stdlib: Likewise.
37798         * modules/string: Likewise.
37799         * modules/strings: Likewise.
37800         * modules/sys_file: Likewise.
37801         * modules/sys_ioctl: Likewise.
37802         * modules/sys_select: Likewise.
37803         * modules/sys_socket: Likewise.
37804         * modules/sys_stat: Likewise.
37805         * modules/sys_time: Likewise.
37806         * modules/sys_times: Likewise.
37807         * modules/sys_utsname: Likewise.
37808         * modules/sys_wait: Likewise.
37809         * modules/sysexits: Likewise.
37810         * modules/time: Likewise.
37811         * modules/times: Likewise.
37812         * modules/tmpfile: Likewise.
37813         * modules/trim: Likewise.
37814         * modules/unistd: Likewise.
37815         * modules/wchar: Likewise.
37816         * modules/wctype: Likewise.
37817
37818 2009-09-17  Bruno Haible  <bruno@clisp.org>
37819
37820         Make getdate.y compile on QNX and NetBSD 5 / i386.
37821         * m4/getdate.m4 (gl_GETDATE): Conditionally define
37822         TIME_T_FITS_IN_LONG_INT.
37823         * lib/getdate.y (long_time_t): New type.
37824         (relative_time): Change type of 'seconds' field to long_time_t.
37825         (get_date): Update types of local variables. Check against overflow
37826         during conversion from long_time_t to time_t.
37827         Reported by Matt Kraai <kraai@ftbfs.org>
37828         and Hasso Tepper <hasso@netbsd.org>.
37829
37830 2009-09-17  Bruno Haible  <bruno@clisp.org>
37831
37832         * modules/COPYING: Update copyright years.
37833         * modules/README: Likeiwse.
37834         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
37835         Reported by Ian Beckwith <ianb@erislabs.net>.
37836
37837 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
37838
37839         * users.txt: Update references for gnuit package.
37840
37841 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
37842
37843         * m4/getdelim.m4: Fix typo in copyright line.
37844
37845 2009-09-17  Bruno Haible  <bruno@clisp.org>
37846
37847         * lib/atoll.c: Use the standard header with GPL copyright.
37848         * lib/argz.in.h: Likewise.
37849         * lib/glob.c: Likewise.
37850         * lib/glob-libc.h: Likewise.
37851         * lib/random_r.c: Likewise.
37852         * lib/siglist.h: Likewise.
37853         * lib/strsignal.c: Likewise.
37854         Reported by Ian Beckwith <ianb@erislabs.net>.
37855
37856 2009-09-17  Eric Blake  <ebb9@byu.net>
37857
37858         rmdir: ensure correct dependency order
37859         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
37860
37861 2009-09-17  Bruno Haible  <bruno@clisp.org>
37862
37863         Disable assertion that fails on NetBSD 5 / i386.
37864         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
37865         Reported by Sam Steingold <sds@gnu.org>
37866         and Hasso Tepper <hasso@netbsd.org>.
37867
37868 2009-09-16  Eric Blake  <ebb9@byu.net>
37869
37870         unlinkdir: port to mingw
37871         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
37872         on which no one can unlink a directory.
37873
37874         stdlib: sort witness names
37875         * modules/stdlib (Makefile.am): Sort replacements.
37876         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
37877         * lib/stdlib.in.h: Likewise.
37878
37879         parse-duration-tests: avoid link failure
37880         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
37881         LIBINTL.
37882         Reported by Tom G. Christensen.
37883
37884         openat-tests: ensure unlinkat behaves like rmdir
37885         * tests/test-rmdir.c (main): Factor guts...
37886         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
37887         * modules/rmdir-tests (Files): Ship new file.
37888         * modules/openat-tests: New test.
37889         * tests/test-unlinkat.c: Likewise.
37890
37891         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
37892         * modules/rmdir-errno (Status, Notice): Now obsolete.
37893
37894         rmdir: work around cygwin 1.5.x and mingw bugs
37895         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
37896         * lib/rmdir.c (rmdir): Work around it.
37897         * modules/rmdir (Status, Notice): No longer obsolete.
37898         (Files): Add dos.m4.
37899         (Depends-on): Add unistd.
37900         (configure.ac): Set witnesses.
37901         (License): Relax to LGPLv2+.
37902         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
37903         * modules/unistd (Makefile.am): Substitute witnesses.
37904         * lib/unistd.in.h (rmdir): Declare replacement.
37905         * doc/posix-functions/rmdir.texi (rmdir): Document this.
37906         * modules/rmdir-tests: New tests.
37907         * tests/test-rmdir.c: Likewise.
37908
37909 2009-09-15  Eric Blake  <ebb9@byu.net>
37910
37911         fchdir: improve use of replacement functions
37912         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
37913         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
37914         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
37915         REPLACE_CLOSEDIR.
37916         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
37917         * modules/sys_stat (Makefile.am): Substitute correct witness.
37918         * modules/dirent (Makefile.am): Likewise.
37919         * modules/unistd (Makefile.am): Likewise.
37920         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
37921         * lib/unistd.in.h (dup): Likewise.
37922         * lib/sys_stat.in.h (fstat): Likewise.
37923
37924         maint: ignore gnulib-tool temp files
37925         * .gitignore: Ignore files created during gnulib-tool --test.
37926
37927 2009-09-13  Jim Meyering  <meyering@redhat.com>
37928
37929         posixtm: don't reject a time that specify "60" as the number of seconds
37930         * lib/posixtm.c (posixtime): The code to reject invalid dates
37931         would also reject a time specified with the .60 suffix.
37932         But POSIX allows that, in order to accommodate leap seconds.
37933         So don't reject it.
37934         (main): Adjust tests accordingly.
37935         * modules/posixtm (Depends-on): Add stpcpy.
37936
37937 2009-09-11  Jim Meyering  <meyering@redhat.com>
37938
37939         announce-gen: include [$release_type] in emitted Subject:
37940         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
37941         e.g., [stable] in the emitted Subject: line.
37942
37943 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37944
37945         Remove obsolete macros from several modules.
37946         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
37947         obsolete Autoconf macros with their modern counterparts.
37948         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
37949         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
37950         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
37951         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
37952         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
37953         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
37954         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
37955         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
37956         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
37957         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
37958         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
37959         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
37960         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
37961         * m4/sockets.m4 (gl_SOCKETS): Likewise.
37962         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
37963         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
37964         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
37965         * m4/time_r.m4 (gl_TIME_R): Likewise.
37966         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
37967         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
37968         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
37969
37970         Fix copyright header in build-aux scripts.
37971         * build-aux/git-version-gen: Fix copyright header to match GPLv3
37972         recommendation.
37973         * build-aux/ncftpput-ftp: Likewise.
37974         * build-aux/update-copyright: Likewise.
37975
37976 2009-09-09  Eric Blake  <ebb9@byu.net>
37977
37978         test-link: allow Linux choice of errno
37979         * tests/test-link.c (main): Relax test for alternate error.
37980
37981         strndup: fix improper m4 caching
37982         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
37983         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
37984         (gl_PREREQ_STRNDUP): Delete.
37985         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
37986         * modules/string (Makefile.am): Substitute it.
37987         * lib/string.in.h (strndup): Modernize prototype.
37988
37989         getcwd: port to mingw
37990         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
37991         different from the POSIX assumptions made throughout the getcwd
37992         module; fortunately, the mingw getcwd does not need replacement.
37993         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
37994         * modules/getcwd-tests: New test.
37995         * tests/test-getcwd.c: Likewise.
37996
37997         link: fix platform bugs
37998         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
37999         * lib/link.c (link): Work around them.  Fix related mingw bug.
38000         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
38001         * modules/unistd (Makefile.am): Substitute it.
38002         * lib/unistd.in.h (link): Declare replacement.
38003         * doc/posix-functions/link.texi (link): Document this.
38004         * modules/link (Depends-on): Add strdup-posix, sys_stat.
38005
38006         test-link: consolidate into single C program, test more cases
38007         * tests/test-link.sh: Delete.
38008         * tests/test-link.c: Test more error conditions.  Exposes bugs on
38009         at least Cygwin and Solaris.
38010         * modules/link-tests (Files): Remove unused file.
38011         (Depends-on): Add errno, sys_stat.
38012         (Makefile.am): Simplify.
38013
38014 2009-09-08  Bruno Haible  <bruno@clisp.org>
38015
38016         Work around towlower, towupper bug on mingw.
38017         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
38018         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
38019         * doc/posix-functions/towlower.texi: Mention the mingw bug.
38020         * doc/posix-functions/towupper.texi: Likewise.
38021         Reported by Eric Blake.
38022
38023 2009-09-08  Jim Meyering  <meyering@redhat.com>
38024
38025         build: don't try to run autoheader if we don't use it
38026         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
38027         is not used in configure.ac.
38028
38029 2009-09-08  Eric Blake  <ebb9@byu.net>
38030
38031         euidaccess: fix compilation error
38032         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
38033
38034         rawmemchr: relax license
38035         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
38036         okay.
38037         Reported by Jim Meyering.
38038
38039         mkfifoat: new module
38040         * modules/mkfifoat: New file.
38041         * lib/mkfifoat.c: Likewise.
38042         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
38043         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
38044         * modules/sys_stat (Makefile.am): Use them.
38045         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
38046         * MODULES.html.sh (File system functions): Mention module.
38047         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
38048         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
38049         * modules/mkfifoat-tests: New test.
38050         * tests/test-mkfifoat.c: Likewise.
38051
38052         strchrnul: relax license
38053         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
38054         okay.
38055         Reported by Jim Meyering.
38056
38057 2009-09-08  Eric Blake  <ebb9@byu.net>
38058
38059         fstatat: fix compilation on Solaris
38060         * lib/fstatat.c (includes): Add fcntl.h.
38061         Reported by Pádraig Brady.
38062
38063 2009-09-07  Eric Blake  <ebb9@byu.net>
38064
38065         rename: modernize replacement
38066         * modules/rename (Depends-on): Add stdio.
38067         (configure.ac): Declare witness.
38068         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
38069         stdio take care of replacement.
38070         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
38071         * modules/stdio (Makefile.am): Substitute them.
38072         * lib/stdio.in.h (rename): Declare replacement.
38073         * lib/rename.c (includes): Allow cross-compilation to non-windows
38074         machines.
38075         * doc/posix-functions/rename.texi (rename): Improve
38076         documentation.
38077
38078         stdio: sort witness names
38079         * modules/stdio (Makefile.am): Sort replacements.
38080         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
38081         * lib/stdio.in.h: Likewise.
38082
38083         getcwd: minor cleanups
38084         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
38085         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
38086
38087         openat: provide more convenience names
38088         * modules/faccessat (configure.ac): Add C witness.
38089         * lib/unistd.in.h (readlinkat): Fix typo.
38090         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
38091         convenience wrappers.
38092         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
38093         wrappers in syntax checks.
38094
38095 2009-09-06  Eric Blake  <ebb9@byu.net>
38096
38097         doc: fix comments in recent patches
38098         * lib/faccessat.c: Mention correct function.
38099         * lib/fchmodat.c: Likewise.
38100         * lib/fchownat.c: Likewise.
38101         * lib/symlinkat.c: Likewise.
38102         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
38103         constants.
38104
38105         faccessat, symlinkat: continue cleanup of previous patch
38106         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
38107         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
38108         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
38109         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
38110         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
38111         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
38112         set.
38113
38114 2009-09-06  Bruno Haible  <bruno@clisp.org>
38115
38116         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
38117         (fstatat): Declare if GNULIB_FSTATAT is set.
38118         (mkdirat): Declare if GNULIB_MKDIRAT is set.
38119         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
38120         (unlinkat): Declare if GNULIB_UNLINKAT is set.
38121         * modules/fcntl-h (Files): Remove m4/openat.m4.
38122         * modules/sys_stat (Files): Remove m4/openat.m4.
38123         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
38124         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
38125         * modules/unistd (Files): Remove m4/openat.m4.
38126         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
38127         GNULIB_OPENAT.
38128         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
38129         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
38130         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
38131         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
38132         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
38133         gl_OPENAT_DEFAULTS.
38134         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
38135         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
38136         Don't require gl_OPENAT_DEFAULTS.
38137         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
38138         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
38139         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
38140         (gl_OPENAT_DEFAULTS): Remove macro.
38141
38142 2009-09-06  Bruno Haible  <bruno@clisp.org>
38143
38144         * modules/openat (configure.ac): Remove unneeded witness.
38145
38146 2009-09-06  Bruno Haible  <bruno@clisp.org>
38147
38148         Set errno to ENOSYS when a function is entirely unsupported.
38149         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
38150         EOPNOTSUPP.
38151         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
38152         * modules/chown (Depends-on): Remove errno.
38153
38154 2009-09-06  Bruno Haible  <bruno@clisp.org>
38155
38156         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
38157
38158 2009-09-06  Bruno Haible  <bruno@clisp.org>
38159
38160         * lib/sys_stat.in.h: Fix preprocessor command indentation.
38161
38162 2009-09-06  Ben Pfaff  <blp@gnu.org>
38163             Bruno Haible  <bruno@clisp.org>
38164
38165         Work around a glibc bug in strtok_r.
38166         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
38167         Undefine if UNDEFINE_STRTOK_R is set.
38168         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
38169         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
38170         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
38171         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
38172         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
38173         UNDEFINE_STRTOK_R.
38174         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
38175
38176 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
38177
38178         exclude: minor fix
38179         * lib/exclude.c: Include wctype.h
38180
38181 2009-09-06  Akim Demaille  <demaille@gostai.com>
38182
38183         bootstrap: improve error message
38184         * build-aux/bootstrap (find_tool): Upon failure, report the list
38185         of candidates.
38186         Honor the initial value of the envvar.
38187
38188 2009-09-05  Eric Blake  <ebb9@byu.net>
38189
38190         symlinkat: new module
38191         * modules/symlinkat: New file.
38192         * lib/symlinkat.c: Likewise.
38193         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
38194         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
38195         * modules/unistd (Makefile.am): Use them.
38196         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
38197         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
38198         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
38199         * MODULES.html.sh (File system functions): Mention module.
38200         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
38201         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
38202         * modules/symlinkat-tests: New test.
38203         * tests/test-symlinkat.c: Likewise.
38204
38205         test-openat-safer: add more checks
38206         * tests/test-openat-safer.c (main): Check more code paths.
38207
38208 2009-09-05  Jim Meyering  <meyering@redhat.com>
38209
38210         syntax-check: detect unnecessary inclusion of openat.h
38211         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
38212
38213 2009-09-05  Bruno Haible  <bruno@clisp.org>
38214
38215         Support towlower, towupper.
38216         * doc/posix-functions/towlower.texi: Mention module wctype.
38217         * doc/posix-functions/towupper.texi: Likewise.
38218         * lib/wctype.in.h (towlower, towupper): New functions.
38219         * tests/test-wctype.c: Include stdio.h, stdlib.h.
38220         (ASSERT): New macro.
38221         (e): New variable.
38222         (main): Test also towlower, towupper. Test WEOF argument.
38223         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
38224
38225 2009-09-05  Bruno Haible  <bruno@clisp.org>
38226
38227         Fix conversion behaviour when the input is invalid.
38228         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
38229         mark occurring in first pass of indirect conversion.
38230         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
38231         input.
38232         Found by clang's static analyzer.
38233
38234 2009-09-05  Bruno Haible  <bruno@clisp.org>
38235
38236         * tests/test-striconveh.c (main): Test indirect conversion on platforms
38237         where direct conversion is possible.
38238
38239 2009-09-04  Eric Blake  <ebb9@byu.net>
38240
38241         openat: fail with ENOENT on empty name
38242         * lib/openat-proc.c (openat_proc_name): Special-case the empty
38243         buffer.
38244
38245         link-follow: fix logic bug in prior patch
38246         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
38247         reversed sense of yes and no in prior patch.  Avoid confusing
38248         compilation failure with desired semantics.
38249
38250         link-follow: accomodate mingw and cross-compilation
38251         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
38252         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
38253         cross-compilation results to -1, to make linkat easier to
38254         implement when cross-compiling.  Trivially support mingw.
38255         * modules/link-follow (configure.ac): Call new name.
38256         * NEWS: Mention this.
38257
38258 2009-09-03  Eric Blake  <ebb9@byu.net>
38259
38260         faccessat: compile replacement
38261         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
38262         needed.
38263
38264         fts: fix compilation error
38265         * lib/fts.c (includes): Re-add "openat.h", for
38266         openat_needs_fchdir.
38267
38268         faccessat: new module
38269         * modules/faccessat: New file.
38270         * lib/faccessat.c: Likewise.
38271         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
38272         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38273         * modules/unistd (Makefile.am): Use it.
38274         * lib/unistd.in.h (faccessat): Declare it.
38275         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
38276         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
38277         * MODULES.html.sh (File system functions): Mention it.
38278         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
38279         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
38280
38281         euidaccess: prefer POSIX over non-standard implementation
38282         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
38283         * lib/euidaccess.c (euidaccess): Use it if available.
38284
38285         openat: make template easier to use
38286         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
38287         AT_FUNC_F2 to be undefined.
38288         (VALIDATE_FLAG): New macro; use it to reject bad flags.
38289         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
38290         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
38291         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
38292         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
38293         Likewise.
38294         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
38295         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
38296         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
38297         Likewise.
38298
38299         openat: declare in POSIX headers
38300         * NEWS: Mention this.
38301         * modules/openat (configure.ac): Declare witnesses.
38302         (Depends-on): Add fcntl-h, sys_stat, unistd.
38303         (Include): Mention correct headers.
38304         * modules/fcntl-h (Depends-on): Add link-warning.
38305         (Files): Add openat.m4.
38306         (Makefile.am): Substitute witnesses.
38307         * modules/sys_stat (Files, Makefile.am): Likewise.
38308         * modules/unistd (Files, Makefile.am): Likewise.
38309         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
38310         (gl_OPENAT_DEFAULTS): New macro.
38311         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
38312         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
38313         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
38314         (SYS_STAT_H): Remove unused variable.
38315         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
38316         * lib/fcntl--.h (includes): Remove unneeded header.
38317         * lib/openat-safer.c (includes): Likewise.
38318         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
38319         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
38320         appropriate headers.
38321         (__OPENAT_PREFIX): Delete.
38322         * lib/fcntl.in.h (openat): Provide declaration.
38323         (AT_FDCWD): Fix Solaris bug.
38324         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
38325         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
38326         * lib/fchmodat.c (includes):  Adjust to find declaration.
38327         * lib/fchownat.c (includes): Likewise.
38328         * lib/mkdirat.c (includes): Likewise.
38329         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
38330         still visible.
38331
38332 2009-09-02  Eric Blake  <ebb9@byu.net>
38333
38334         errno: use consistently
38335         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
38336         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
38337         * lib/canonicalize.c (ELOOP): Likewise.
38338         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
38339         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
38340         * lib/lchown.c (EOPNOTSUPP): Likewise.
38341         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
38342         * lib/savewd.c (ESTALE): Likewise.
38343         * lib/settime.c (ENOSYS): Likewise.
38344         * lib/utimens.c (ENOSYS): Likewise.
38345         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
38346         * lib/chdir-safer.c (ELOOP): Likewise.
38347         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
38348         * modules/c-stack (Depends-on): Add errno.
38349         * modules/canonicalize (Depends-on): Likewise.
38350         * modules/chdir-safer (Depends-on): Likewise.
38351         * modules/fdopendir (Depends-on): Likewise.
38352         * modules/inet_ntop (Depends-on): Likewise.
38353         * modules/inet_pton (Depends-on): Likewise.
38354         * modules/lchown (Depends-on): Likewise.
38355         * modules/openat (Depends-on): Likewise.
38356         * modules/savewd (Depends-on): Likewise.
38357         * modules/settime (Depends-on): Likewise.
38358         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
38359
38360         fts: avoid leaking fds
38361         * modules/fts (Depends-on): Add cloexec.
38362         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
38363         flag.
38364
38365         fts: make directory fds more robust
38366         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
38367         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
38368
38369         backupfile, chdir-long, fts, savedir: make safer
38370         * lib/backupfile.c (includes): Use "dirent--.h", since
38371         numbered_backup can write to stderr during readdir.
38372         * lib/savedir.c (includes): Likewise.
38373         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
38374         emulation can write to stderr on failure.
38375         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
38376         * lib/getcwd.c: Document why opendir_safer is unused.
38377         * lib/glob.c: Likewise.
38378         * lib/scandir.c: Likewise.
38379         * lib/openat-proc.c: Likewise, for open_safer.
38380         * modules/backupfile (Depends-on): Add dirent-safer.
38381         * modules/savedir (Depends-on): Likewise.
38382         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
38383         * modules/chdir-long (Depends-on): Add openat-safer.
38384
38385         openat-safer: new module
38386         * modules/openat-safer: New file.
38387         * lib/openat-safer.c: Likewise.
38388         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
38389         * lib/fcntl-safer.h (openat_safer): Declare.
38390         * lib/fcntl--.h (openat): Override.
38391         * MODULES.html.sh (File descriptor based I/O): Mention it.
38392         * lib/openat.h: Add double-inclusion guards.
38393         * lib/openat.c (includes): Only include "fcntl-safer.h", not
38394         "fcntl--.h", so we can implement openat.
38395         * modules/openat-safer-tests: New test.
38396         * tests/test-openat-safer.c: New file.
38397
38398         dirent-safer: new module
38399         * modules/dirent-safer: New file.
38400         * lib/dirent--.h: Likewise.
38401         * lib/dirent-safer.h: Likewise.
38402         * lib/opendir-safer.c: Likewise.
38403         * m4/dirent-safer.m4: Likewise.
38404         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
38405         * modules/dirent-safer-tests: New test.
38406         * tests/test-dirent-safer.c: New file.
38407         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
38408
38409         fdopendir: optimize on mingw
38410         * lib/unistd.in.h (_gl_directory_name): New prototype.
38411         * lib/fchdir.c (_gl_directory_name): Implement it.
38412         (fchdir): Use it to simplify implementation.
38413         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
38414         fchdir, when available, to avoid calling [f]chdir().
38415
38416         fdopendir: split into its own module
38417         * lib/openat.c (fdopendir): Move...
38418         * lib/fdopendir.c: ...into new file.
38419         * modules/fdopendir: New module.
38420         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
38421         * modules/openat (Depends-on): Add fdopendir.
38422         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
38423         fdopendir here.
38424         * modules/savedir (Depends-on): Only need fdopendir, not full
38425         openat.
38426         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
38427         * lib/openat.h (fdopendir): Drop prototype.
38428         * lib/dirent.in.h (fdopendir): Provide prototype.
38429         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
38430         * modules/dirent (Makefile.am): Substitute them.
38431         * MODULES.html.sh (File system functions): Mention it.
38432         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
38433         * modules/fdopendir-tests: New file.
38434         * tests/test-fdopendir.c: Likewise.
38435
38436         fchdir: use more consistent macro convention
38437         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
38438         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
38439         REPLACE_FCHDIR, rather than relying on config.h macros.
38440         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
38441         inside a single make-time REPLACE_FCHDIR block, rather than using
38442         the config.h FCHDIR_REPLACEMENT.
38443         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
38444         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
38445         Manage fstat replacement.
38446         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
38447         REPLACE_FCHDIR.
38448         * modules/sys_stat (Files): Add m4/unistd_h.m4.
38449         (Makefile.am): Substitute REPLACE_FCHDIR.
38450         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
38451         FCHDIR_REPLACEMENT.
38452         * lib/dup-safer.c (dup_safer): Likewise.
38453         * lib/dup2.c (rpl_dup2): Likewise.
38454         * lib/dup3.c (rpl_dup3): Likewise.
38455         * lib/open.c (rpl_open): Likewise.
38456
38457         fchdir: simplify error handling, and support dup3
38458         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
38459         stdbool, malloc-posix, realloc-posix.
38460         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
38461         (ensure_dirs_slot): Return false on allocation failure.
38462         (rpl_dup2): Delete.
38463         (_gl_register_dup): New function.
38464         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
38465         (_gl_register_fd): Close fd on allocation failure.
38466         * lib/fcntl.in.h (_gl_register_fd): Update signature.
38467         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
38468         prototype.
38469         (rpl_dup2_fchdir): Delete prototype.
38470         * lib/open.c (open): Update caller.
38471         * lib/dup2.c (dup2): Track fchdir metadata.
38472         * lib/dup3.c (dup3): Likewise.
38473         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
38474         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
38475
38476 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38477
38478         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
38479         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
38480         don't pass arguments to AC_OUTPUT.
38481
38482 2009-09-02  Bruno Haible  <bruno@clisp.org>
38483
38484         * modules/mkdtemp (License): Relicense under LGPLv2+.
38485         Reported by Paolo Bonzini.
38486
38487 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38488
38489         Replace uses of obsolete autoconf macros in Jim's modules.
38490         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
38491         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
38492         can evoke a warning from autoconf when run with -Wobsolete
38493         enabled.  They were declared obsolete for good reasons (see
38494         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
38495         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
38496         should not continue using the deprecated macros.
38497         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
38498         obsolete Autoconf macros with modern counterparts.
38499         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
38500         * m4/dos.m4 (gl_AC_DOS): Likewise.
38501         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
38502         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
38503         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
38504         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
38505         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
38506         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
38507         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
38508         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
38509         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
38510         Likewise.
38511         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
38512         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
38513         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
38514         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
38515         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
38516         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
38517
38518 2009-09-01  Eric Blake  <ebb9@byu.net>
38519
38520         fchdir: fix off-by-one bug in previous patch
38521         * lib/fchdir.c (rpl_fstat): Use correct bounds.
38522         (_gl_unregister_fd): Delete useless if.
38523
38524 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
38525
38526         maint.mk: sort the list of syntax-check rules
38527         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
38528         easier to get a sense of progress when the rules are run sequentially
38529         and take a long time.
38530
38531 2009-09-01  Simon Josefsson  <simon@josefsson.org>
38532
38533         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
38534         * modules/netinet_in: Likewise.
38535         * modules/sys_file: Likewise.
38536         * modules/sys_ioctl: Likewise.
38537         * modules/sys_select: Likewise.
38538         * modules/sys_socket: Likewise.
38539         * modules/sys_stat: Likewise.
38540         * modules/sys_time: Likewise.
38541         * modules/sys_times: Likewise.
38542         * modules/sys_utsname: Likewise.
38543         * modules/sys_wait: Likewise.
38544
38545 2009-09-01  Jim Meyering  <meyering@redhat.com>
38546
38547         fts: help ensure that return values are not ignored
38548         * lib/fts_.h (__GNUC_PREREQ): Define.
38549         (__attribute_warn_unused_result__): Define.
38550         (fts_children, fts_close, fts_open, fts_read): Declare with
38551         __attribute_warn_unused_result__.
38552
38553         fts: fts_close now fails also when closing a dir file descriptor fails
38554         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
38555         and propagate to caller, along with errno.
38556
38557         announce-gen: correct formatting in --help output
38558         * build-aux/announce-gen (usage): Move the one-line description in
38559         --help output "up", to where it belongs, just after Usage:.
38560
38561 2009-08-31  Eric Blake  <ebb9@byu.net>
38562
38563         fchdir: port to mingw
38564         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
38565         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
38566         opened, then use a substitute.
38567         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
38568         replacement.
38569         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
38570         (_gl_register_fd): No need to check stat if open already filters
38571         all directories.
38572         (fchdir): Fix error condition to match POSIX.
38573         * modules/fchdir (Depends-on): Add sys_stat.
38574         * doc/posix-functions/open.texi (open): Document the limitation.
38575         * modules/fchdir-tests: New file.
38576         * tests/test-fchdir.c: Likewise.
38577
38578         canonicalize: allow cross-testing from cygwin to mingw
38579         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
38580         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
38581         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
38582         Likewise.
38583         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
38584         target does not support symlinks.
38585         * tests/test-canonicalize-lgpl.sh: Likewise.
38586
38587         chown: avoid compilation warning on mingw
38588         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
38589         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
38590         mingw.
38591         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
38592         * modules/chown (Depends-on): Add errno.
38593
38594 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
38595
38596         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
38597         command.
38598
38599 2009-08-31  Jim Meyering  <meyering@redhat.com>
38600
38601         canonicalize: remove useless initialization
38602         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
38603         initialization of local, "end".
38604
38605 2009-08-30  Bruno Haible  <bruno@clisp.org>
38606
38607         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
38608         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
38609         ENOSYS.
38610
38611 2009-08-30  Bruno Haible  <bruno@clisp.org>
38612
38613         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
38614         /usr/xpg4/bin/tr when it exists.
38615         * tests/test-pipe-filter-gi1.sh: Likewise.
38616
38617 2009-08-30  Bruno Haible  <bruno@clisp.org>
38618
38619         Work around deficient /usr/bin/id program on Solaris.
38620         * tests/test-file-has-acl.sh (ID): New variable.
38621         * tests/test-set-mode-acl.sh (ID): Likewise.
38622         * tests/test-copy-acl.sh (ID): Likewise.
38623         * tests/test-copy-file.sh (ID): Likewise.
38624
38625 2009-08-30  Bruno Haible  <bruno@clisp.org>
38626
38627         New module 'xstriconveh'.
38628         * lib/xstriconveh.h: New file.
38629         * lib/xstriconveh.c: New file.
38630         * modules/xstriconveh: New file.
38631
38632 2009-08-30  Bruno Haible  <bruno@clisp.org>
38633
38634         Make it easier to use mem_cd_iconveh.
38635         * lib/striconveh.h (iconveh_t): New type.
38636         (iconveh_open, iconveh_close): New declarations.
38637         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
38638         with a single 'const iconveh_t *' argument.
38639         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
38640         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
38641         with a single 'const iconveh_t *' argument.
38642         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
38643         * tests/test-striconveh.c (main): Update.
38644         * NEWS: Mention the change.
38645
38646 2009-08-30  Bruno Haible  <bruno@clisp.org>
38647
38648         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
38649         problem.
38650
38651 2009-08-30  Bruno Haible  <bruno@clisp.org>
38652
38653         Work around iconv_open problem on Solaris.
38654         * lib/iconv_open-solaris.gperf: New file.
38655         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
38656         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
38657         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
38658         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
38659         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
38660         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
38661
38662 2009-08-29  Jim Meyering  <meyering@redhat.com>
38663
38664         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
38665         * top/maint.mk (cvs-check): Remove target; it was just an alias
38666         to the better-named vc-diff-check.
38667         (maintainer-distcheck): Remove rule.  It was used only from
38668         the (alpha/beta/major) target, and all of its commands but one
38669         were coreutils-specific.
38670         (vc-dist): Remove rule.
38671         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
38672         Run vc-diff-check, not vc-dist.
38673         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
38674
38675 2009-08-27  Bruno Haible  <bruno@clisp.org>
38676
38677         * tests/test-bitrotate.c (main): Remove test that uses a shift count
38678         of 0.
38679
38680 2009-08-27  Bruno Haible  <bruno@clisp.org>
38681
38682         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
38683         compilers.
38684         * doc/func.texi: Document the SunPRO C bug.
38685
38686 2009-08-27  Bruno Haible  <bruno@clisp.org>
38687
38688         Fix link error on Solaris.
38689         * tests/test-parse-duration.c (xstrdup): Remove function.
38690
38691 2009-08-26  Pádraig Brady  <P@draigbrady.com>
38692
38693         ignore-value: handle pointer types, too
38694         * lib/ignore-value.h (__attribute__): Remove definition.
38695         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
38696         of a more concise and more-often effective "(void) i" statement.
38697         (ignore_ptr): New function to suppress warnings from functions that
38698         return pointers, and to make it explicit that one function doesn't
38699         handle all cases.
38700
38701 2009-08-25  Bruno Haible  <bruno@clisp.org>
38702
38703         dup2: work around a Linux bug.
38704         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
38705         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
38706         * doc/posix-functions/dup2.texi: Mention the Linux bug.
38707         Reported by Simon Josefsson.
38708
38709 2009-08-25  Jim Meyering  <meyering@redhat.com>
38710
38711         libguestfs uses gnulib
38712         * users.txt: Add libguestfs.
38713
38714 2009-08-24  Eric Blake  <ebb9@byu.net>
38715
38716         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
38717         * lib/pipe2.c (includes): Add binary-io.h.
38718         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
38719
38720 2009-08-24  Bruno Haible  <bruno@clisp.org>
38721
38722         Tolerate declared but missing accept4 syscall.
38723         * lib/accept4.c (accept4): Invoke original accept4 function first, if
38724         available.
38725         * lib/sys_socket.in.h (accept4): If the function is already present,
38726         override it.
38727         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
38728         * modules/accept4 (Makefile.am): Compile accept4.c always.
38729         Reported by Paolo Bonzini and Eric Blake.
38730
38731 2009-08-23  Bruno Haible  <bruno@clisp.org>
38732
38733         New module 'accept4'.
38734         * lib/sys_socket.in.h (accept4): New declaration.
38735         * lib/accept4.c: New file.
38736         * m4/accept4.m4: New file.
38737         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
38738         GNULIB_ACCEPT4, HAVE_ACCEPT4.
38739         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
38740         HAVE_ACCEPT4.
38741         * modules/accept4: New file.
38742         * doc/glibc-functions/accept4.texi: Mention the new module.
38743
38744 2009-08-24  Jim Meyering  <meyering@redhat.com>
38745
38746         progname: also set global program_invocation_name, when possible
38747         Before this change, a libtool-enabled program that calls glibc's
38748         error function would report the program name as
38749         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
38750         * modules/progname (configure.ac): Check for a declaration of
38751         program_invocation_name.
38752         * lib/progname.c:  Include <errno.h>.
38753         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
38754         Set program_invocation_name.
38755
38756 2009-08-23  Bruno Haible  <bruno@clisp.org>
38757
38758         * lib/dup3.c: Include <string.h>.
38759
38760 2009-08-23  Bruno Haible  <bruno@clisp.org>
38761
38762         * lib/dup3.c (dup3): Test only once whether the system actually exists.
38763         * lib/pipe2.c (pipe2): Likewise.
38764         Suggested by Eric Blake.
38765
38766 2009-08-23  Bruno Haible  <bruno@clisp.org>
38767
38768         Tolerate declared but missing dup3 syscall.
38769         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
38770         * lib/unistd.in.h (dup3): If the function is already present,
38771         override it.
38772         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
38773         * modules/dup3 (Makefile.am): Compile dup3.c always.
38774         Reported by Paolo Bonzini.
38775
38776 2009-08-23  Bruno Haible  <bruno@clisp.org>
38777
38778         Tolerate declared but missing pipe2 syscall.
38779         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
38780         available.
38781         * lib/unistd.in.h (pipe2): If the function is already present,
38782         override it.
38783         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
38784         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
38785         Reported by Paolo Bonzini.
38786
38787 2009-08-23  Bruno Haible  <bruno@clisp.org>
38788
38789         * lib/pipe2.c (pipe2): Move #ifs inside function.
38790
38791 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
38792
38793         quotearg: document limitations of quote_these_too
38794         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
38795         those limitations are created.
38796         * lib/quotearg.h (set_char_quoting): Document that digits and
38797         letters that are special after backslash are not permitted.
38798         (quotearg_char): Cross-reference set_char_quoting documentation.
38799
38800 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
38801
38802         quotearg: implement custom_quoting_style
38803         * lib/quotearg.c: (struct quoting_options): Add left_quote and
38804         right_quote fields.
38805         (set_custom_quoting): New public function.
38806         (quotearg_buffer_restyled): Add left_quote and right_quote
38807         arguments, handle them very much like locale quoting, and update
38808         all uses.
38809         (quotearg_n_custom): New public function.
38810         (quotearg_n_custom_mem): New public function.
38811         (quotearg_custom): New public function.
38812         (quotearg_custom_mem): New public function.
38813         * lib/quotearg.h: Prototype and document new public functions.
38814         (enum quoting_style): For escape_quoting_style and
38815         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
38816         ignored even though they're otherwise like c_quoting_style.
38817         Add custom_quoting_style member and document with comparison to
38818         clocale_quoting_style.
38819         * tests/test-quotearg.c (custom_quotes): New array.
38820         (custom_results): New array.
38821         (main): Extend to test custom quoting.
38822
38823 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
38824
38825         quotearg: fix right quote escaping when it's in quote_these_too
38826         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
38827         quote, be sure to prepend only one backslash.
38828         * tests/test-quotearg.c (use_quote_double_quotes): New function.
38829         (main): Test it.
38830
38831 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
38832
38833         quotearg-tests: test escaping of embedded locale quotes
38834         * tests/test-quotearg.c (struct result_strings): Add member for
38835         new input.
38836         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
38837         (inputs): Add new input.
38838         (results_g): Add expected results.
38839         (flag_results): Likewise.
38840         (locale_results): Likewise.
38841         (compare_strings): Check those.
38842
38843 2009-08-23  Bruno Haible  <bruno@clisp.org>
38844
38845         Tests for module 'dup3'.
38846         * modules/dup3-tests: New file.
38847         * tests/test-dup3.c: New file.
38848
38849         New module 'dup3'.
38850         * lib/unistd.in.h (dup3): New declaration.
38851         * lib/dup3.c: New file.
38852         * m4/dup3.m4: New file.
38853         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
38854         HAVE_DUP3.
38855         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
38856         * modules/dup3: New file.
38857         * doc/glibc-functions/dup3.texi: Mention the new module.
38858
38859 2009-08-23  Bruno Haible  <bruno@clisp.org>
38860
38861         Tweak the dup2 test.
38862         * tests/test-dup2.c (main): Create the test file empty. Verify that an
38863         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
38864         the test file is still empty. Fix argument order of lseek.
38865
38866 2009-08-23  Bruno Haible  <bruno@clisp.org>
38867
38868         Avoid test link errors when the modules getopt-gnu, gettext are used.
38869         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
38870         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38871
38872 2009-08-23  Bruno Haible  <bruno@clisp.org>
38873
38874         Fix getdtablesize() on mingw.
38875         * lib/getdtablesize.c (getdtablesize): Implement differently.
38876         * lib/unistd.in.h (getdtablesize): Improve comment.
38877
38878 2009-08-23  Bruno Haible  <bruno@clisp.org>
38879
38880         New module 'mkostemp'.
38881         Based on Ulrich Drepper's 2007-08-10 change in glibc.
38882         * lib/stdlib.in.h (mksotemp): New declaration.
38883         * lib/mkostemp.c: New file, from glibc with modifications.
38884         * lib/tempname.h (GT_FILE): Remove outdated comment.
38885         (gen_tempname): Add flags argument.
38886         * lib/tempname.c (__GT_BIGFILE): Remove macro.
38887         (__GT_FILE): Map to 1.
38888         (small_open, large_open): Remove macros.
38889         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
38890         * lib/mkstemp.c (mkstemp): Update.
38891         * lib/mkdtemp.c (mkdtemp): Likewise.
38892         * m4/mkostemp.m4: New file.
38893         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
38894         HAVE_MKOSTEMP.
38895         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
38896         HAVE_MKOSTEMP.
38897         * modules/mkostemp: New file, based on modules/mkstemp.
38898         * doc/glibc-functions/mkostemp.texi: Mention the new module.
38899         * NEWS: Mention the change.
38900
38901 2009-08-23  Bruno Haible  <bruno@clisp.org>
38902
38903         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
38904         Reported by Eric Blake.
38905
38906 2009-08-23  Bruno Haible  <bruno@clisp.org>
38907
38908         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
38909         Reported by Eric Blake.
38910
38911 2009-08-23  Bruno Haible  <bruno@clisp.org>
38912
38913         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
38914         * modules/pipe2 (Depends-on): Likewise.
38915
38916 2009-08-23  Eric Blake  <ebb9@byu.net>
38917
38918         fcntl-h: add O_TTY_INIT support
38919         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
38920         * tests/test-fcntl-h.c (o): Test it.
38921         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
38922
38923         fcntl-h: rename from fcntl, in preparation for fcntl(2)
38924         * modules/fcntl: Move <fcntl.h> header replacement...
38925         * modules/fcntl-h: ...to new name, so as not to collide with
38926         like-named function.
38927         * tests/test-fcntl.c: Rename...
38928         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
38929         * modules/fcntl-tests: Rename...
38930         * modules/fcntl-h-tests: ...to this.  Update test file name.
38931         * modules/chdir-long (Depends-on): Update clients.
38932         * modules/chdir-safer (Depends-on): Likewise.
38933         * modules/fcntl-safer (Depends-on): Likewise.
38934         * modules/fts (Depends-on): Likewise.
38935         * modules/mkancesdirs (Depends-on): Likewise.
38936         * modules/mkdir-p (Depends-on): Likewise.
38937         * modules/open (Depends-on): Likewise.
38938         * modules/savewd (Depends-on): Likewise.
38939         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
38940         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
38941
38942 2009-08-22  Bruno Haible  <bruno@clisp.org>
38943
38944         * modules/binary-io (License): Relicense under LGPL.
38945         * modules/pipe2 (License): Likewise.
38946
38947 2009-08-22  Bruno Haible  <bruno@clisp.org>
38948
38949         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
38950         return value.
38951         * lib/pipe-filter-gi.c (filter_init): Likewise.
38952         Reported by Eric Blake.
38953
38954 2009-08-22  Bruno Haible  <bruno@clisp.org>
38955
38956         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
38957         * modules/pipe (Depends-on): Add pipe2.
38958
38959 2009-08-22  Bruno Haible  <bruno@clisp.org>
38960
38961         Tests for module 'pipe2'.
38962         * modules/pipe2-tests: New file.
38963         * tests/test-pipe2.c: New file.
38964
38965         New module 'pipe2'.
38966         * lib/unistd.in.h (pipe2): New declaration.
38967         * lib/pipe2.c: New file.
38968         * m4/pipe2.m4: New file.
38969         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
38970         HAVE_PIPE2.
38971         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
38972         * modules/pipe2: New file.
38973         * doc/glibc-functions/pipe2.texi: Mention the new module.
38974
38975 2009-08-22  Bruno Haible  <bruno@clisp.org>
38976
38977         Reference some new glibc functions.
38978         * doc/glibc-functions/accept4.texi: New file.
38979         * doc/glibc-functions/dup3.texi: New file.
38980         * doc/glibc-functions/mkostemp.texi: New file.
38981         * doc/glibc-functions/pipe2.texi: New file.
38982         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
38983         (Glibc sys/socket.h): Refer to accept4.
38984         (Glibc unistd.h): Refer to dup3, pipe2.
38985         Reported by Eric Blake.
38986
38987 2009-08-22  Jim Meyering  <meyering@redhat.com>
38988             Bruno Haible  <bruno@clisp.org>
38989
38990         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
38991         This makes it so packages using automake-1.11's silent-rules option
38992         can print e.g., a single "GEN    configmake.h" line, rather than
38993         the 30+ statements that perform the job.  If you want to see the
38994         actual commands, you can still run "make V=1".
38995         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
38996         so that make output is abbreviated when those variables are defined
38997         appropriately.
38998         * modules/argz: Likewise.
38999         * modules/arpa_inet: Likewise.
39000         * modules/byteswap: Likewise.
39001         * modules/configmake: Likewise.
39002         * modules/dirent: Likewise.
39003         * modules/errno: Likewise.
39004         * modules/fcntl: Likewise.
39005         * modules/float: Likewise.
39006         * modules/fnmatch: Likewise.
39007         * modules/getopt-posix: Likewise.
39008         * modules/glob: Likewise.
39009         * modules/iconv_open: Likewise.
39010         * modules/inttypes: Likewise.
39011         * modules/localcharset: Likewise.
39012         * modules/locale: Likewise.
39013         * modules/math: Likewise.
39014         * modules/netdb: Likewise.
39015         * modules/netinet_in: Likewise.
39016         * modules/poll: Likewise.
39017         * modules/posix_spawnp-tests: Likewise.
39018         * modules/sched: Likewise.
39019         * modules/search: Likewise.
39020         * modules/selinux-h: Likewise.
39021         * modules/signal: Likewise.
39022         * modules/spawn: Likewise.
39023         * modules/stdarg: Likewise.
39024         * modules/stdbool: Likewise.
39025         * modules/stddef: Likewise.
39026         * modules/stdint: Likewise.
39027         * modules/stdio: Likewise.
39028         * modules/stdlib: Likewise.
39029         * modules/string: Likewise.
39030         * modules/strings: Likewise.
39031         * modules/sys_file: Likewise.
39032         * modules/sys_ioctl: Likewise.
39033         * modules/sys_select: Likewise.
39034         * modules/sys_socket: Likewise.
39035         * modules/sys_stat: Likewise.
39036         * modules/sys_time: Likewise.
39037         * modules/sys_times: Likewise.
39038         * modules/sys_utsname: Likewise.
39039         * modules/sys_wait: Likewise.
39040         * modules/sysexits: Likewise.
39041         * modules/time: Likewise.
39042         * modules/unistd: Likewise.
39043         * modules/wchar: Likewise.
39044         * modules/wctype: Likewise.
39045
39046 2009-08-22  Jim Meyering  <meyering@redhat.com>
39047
39048         announce-gen: detect write failure
39049         * build-aux/announce-gen: Add Coda at end.
39050         Remove equivalent-but-more-verbose block at top.
39051
39052 2009-08-19  Akim Demaille  <demaille@gostai.com>
39053
39054         bootstrap: --help to stdout.
39055         * bootstrap (usage): Don't send --help to stderr.
39056         Use a here doc instead of a long string.
39057
39058 2009-08-21  Eric Blake  <ebb9@byu.net>
39059
39060         test-popen-safer: split from test-popen
39061         * tests/test-popen.c (main): Move...
39062         * tests/test-popen.h: ...into new file.
39063         * tests/test-popen-safer2.c: New file.
39064         * modules/popen-tests (Files): Add test-popen.h.
39065         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
39066         Suggested by Bruno Haible.
39067
39068         test-fcntl-safer: split from test-open
39069         * tests/test-open.c (main): Move...
39070         * tests/test-open.h: ...into new file.
39071         * tests/test-fcntl-safer.c: New file.
39072         * modules/open-tests (Files): Add test-open.h.
39073         * modules/fcntl-safer-tests: New file.
39074         Suggested by Bruno Haible.
39075
39076         test-fopen-safer: split from test-fopen
39077         * tests/test-fopen.c (main): Move...
39078         * tests/test-fopen.h: ...into new file.
39079         * tests/test-fopen-safer.c: New file.
39080         * modules/fopen-tests (Files): Add test-fopen.h.
39081         * modules/fopen-safer-tests: New file.
39082         Suggested by Bruno Haible.
39083
39084 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
39085
39086         popen-safer: test O_CLOEXEC at run-time.
39087         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
39088
39089 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
39090
39091         fcntl: move more flags to the header
39092         * lib/cloexec.c: Do not define FD_CLOEXEC here.
39093         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
39094         * lib/fcntl.in.h: Do both things here.
39095
39096 2009-08-21  Jim Meyering  <meyering@redhat.com>
39097
39098         consistently remove $@-t before redirecting to it
39099         * modules/argz: Remove $@-t and $@ before redirecting to the former.
39100         * modules/alloca-opt: Likewise.
39101         * modules/byteswap: Likewise.
39102         * modules/fnmatch: Likewise.
39103         * modules/getopt-posix: Likewise.
39104         * modules/glob: Likewise.
39105         * modules/poll: Likewise.
39106         * modules/posix_spawnp-tests: Likewise.
39107         * modules/sys_socket: Likewise.
39108         * modules/sysexits: Likewise.
39109
39110 2009-08-21  Eric Blake  <ebb9@byu.net>
39111
39112         popen: simplify access to original popen
39113         * lib/popen.c (rpl_popen): No need to worry about popen being a
39114         macro.
39115         Reported by Bruno Haible.
39116
39117 2009-08-20  Eric Blake  <ebb9@byu.net>
39118
39119         build: avoid some compiler warnings
39120         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
39121         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
39122         type.
39123         (new_exclude_segment, excluded_file_pattern_p)
39124         (excluded_file_name_p): Reduce scope.
39125         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
39126         old-style declaration.
39127
39128 2009-08-20  Simon Josefsson  <simon@josefsson.org>
39129
39130         * tests/test-exclude1.sh: Handle Windows EOL.
39131         * tests/test-exclude2.sh: Likewise.
39132         * tests/test-exclude3.sh: Likewise.
39133         * tests/test-exclude4.sh: Likewise.
39134         * tests/test-exclude5.sh: Likewise.
39135         * tests/test-exclude6.sh: Likewise.
39136         * tests/test-exclude7.sh: Likewise.
39137
39138 2009-08-19  Akim Demaille  <demaille@gostai.com>
39139
39140         bootstrap: find sha1sum when named gsha1sum.
39141         * bootstrap (find_tool): New.
39142         ($SHA1SUM): New.
39143         Use it.
39144
39145 2009-08-20  Jim Meyering  <meyering@redhat.com>
39146
39147         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
39148         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
39149         expression that converts "." in a file name to "\." in the resulting
39150         regexp.  Start with a dummy statement, so that prior shell variable
39151         definitions are expanded portably.  Reported by Simon Josefsson.
39152
39153 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
39154
39155         Fix polling for writeability of a screen buffer.
39156         * lib/poll.c: Distinguish input and screen buffers for the
39157         Win32 implementation.
39158         * lib/select.c: Likewise.
39159
39160 2009-08-19  Eric Blake  <ebb9@byu.net>
39161
39162         popen-safer: prevent popen from clobbering std descriptors
39163         * modules/popen-safer: New file.
39164         * lib/popen-safer.c: Likewise.
39165         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
39166         * lib/stdio--.h (popen): Provide override.
39167         * lib/stdio-safer.h (popen_safer): Provide declaration.
39168         * tests/test-popen.c (includes): Partially test this.
39169         * modules/popen-safer-tests: New file, for more tests.
39170         * tests/test-popen-safer.c: Likewise.
39171         * MODULES.html.sh (file stream based Input/Output): Mention it.
39172
39173         tests: test some of the *-safer modules
39174         * modules/fopen-safer (Depends-on): Add fopen.
39175         * modules/fcntl-safer (Depends-on): Add fcntl.
39176         * modules/stdlib-safer (Depends-on): Add stdlib.
39177         (configure.ac): Set indicator.
39178         * modules/unistd-safer (configure.ac): Likewise.
39179         * modules/tmpfile-safer (configure.ac): Likewise.
39180         (Depends-on): Add tmpfile.
39181         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
39182         active.
39183         * tests/test-fopen.c (includes): Test safer versions when they are
39184         in use.
39185         * tests/test-open.c (includes): Likewise.
39186
39187         popen: fix cygwin 1.5 bug when stdin closed
39188         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
39189         * modules/popen: New file.
39190         * modules/popen-tests: Likewise.
39191         * tests/test-popen.c: Likewise.
39192         * m4/popen.m4: Likewise.
39193         * lib/popen.c: Likewise.
39194         * lib/stdio.in.h (popen): New declaration.
39195         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
39196         * modules/stdio (Makefile.am): Likewise.
39197         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
39198
39199 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
39200
39201         maint.mk: give full control over update-copyright exclusions
39202         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
39203         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
39204         (update-copyright): Don't force inclusion of top-level
39205         ChangeLog.  Don't force exclusion of all COPYING files, but make
39206         them the default exclusion instead.
39207
39208 2009-08-16  Bruno Haible  <bruno@clisp.org>
39209
39210         Fix test failures on Solaris 10.
39211         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
39212         tests when Solaris iconv() is used.
39213         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
39214         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
39215         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
39216         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
39217         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
39218
39219 2009-08-16  Bruno Haible  <bruno@clisp.org>
39220
39221         Fix test failures on Solaris 10.
39222         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
39223         'tr' program and pass it as first argument.
39224         * tests/test-pipe-filter-gi1.sh: Likewise.
39225         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
39226         program as first argument.
39227         * tests/test-pipe-filter-gi1.c (main): Likewise.
39228
39229 2009-08-16  Eric Blake  <ebb9@byu.net>
39230
39231         fpurge: fix previous commits
39232         * modules/fpurge (Makefile.am): Make replacement conditional,
39233         partially reverting 2007-04-29 change; missed in previous
39234         attempt.
39235         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
39236         is missing.
39237
39238 2009-08-16  Bruno Haible  <bruno@clisp.org>
39239
39240         Clarify fpurge's effect on the file position.
39241         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
39242         * tests/test-fpurge.c (main): Make a second pass for checking the file
39243         position.
39244
39245 2009-08-16  Bruno Haible  <bruno@clisp.org>
39246
39247         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
39248         declaration of fpurge is missing.
39249         * tests/test-fpurge.c (main): Check that the file has not more contents
39250         than expected. Close the file before removing it.
39251
39252 2009-08-15  Eric Blake  <ebb9@byu.net>
39253
39254         fpurge: don't wrap working cygwin implementation
39255         * lib/fpurge.c (fpurge): Fix comment typo.
39256         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
39257         1.7 to avoid replacement.
39258         * tests/test-fpurge.c (main): Enhance test.
39259
39260 2009-08-15  Eric Blake  <ebb9@byu.net>
39261         and Jim Meyering  <meyering@redhat.com>
39262
39263         test-update-copyright: skip if perl is insufficient
39264         * tests/test-update-copyright.sh: Failure to run maintainer tool
39265         should not cause testsuite failure on cygwin 1.5.
39266
39267 2009-08-14  Eric Blake  <ebb9@byu.net>
39268
39269         doc: mention more functions added in cygwin 1.7.0
39270         * doc/posix-headers/limits.texi (limits.h): Update for recent
39271         cygwin additions.
39272         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
39273         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
39274         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
39275         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
39276         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
39277
39278 2009-08-14  Eric Blake  <ebb9@byu.net>
39279
39280         maint.mk: simplify update-copyright rule
39281         * top/maint.mk (update-copyright-local): Delete, and document how
39282         to do it in cfg.mk instead.
39283         (update-copyright-exclude-regexp): Delete, and document how to do
39284         it in .x-update-copyright instead.
39285         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
39286         exclude ChangeLog.
39287
39288 2009-08-14  Bruno Haible  <bruno@clisp.org>
39289
39290         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
39291
39292 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
39293
39294         maint.mk: support update-copyright-env
39295         * top/maint.mk (update-copyright-env): Define place-holder.
39296         (update-copyright): Expand $(update-copyright-env) before
39297         invoking update-copyright.
39298
39299 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
39300
39301         update-copyright: implement forced reformatting
39302         * build-aux/update-copyright: Implement and document
39303         UPDATE_COPYRIGHT_FORCE.
39304         * tests/test-update-copyright.sh: Test it.
39305
39306 2009-08-14  Eric Blake  <ebb9@byu.net>
39307         and Bruno Haible  <bruno@clisp.org>
39308
39309         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
39310         * tests/test-locale.c: Revert previous patch related to NULL.
39311         * tests/test-stdio.c: Likewise.
39312         * tests/test-stdlib.c: Likewise.
39313         * tests/test-string.c: Likewise.
39314         * tests/test-unistd.c: Likewise.
39315         * modules/time-tests (Depends-on): Add verify.
39316         * modules/wchar-tests (Depends-on): Likewise.
39317         * tests/test-time.c: Test for NULL compliance.
39318         * tests/test-wchar.c: Likewise.
39319         * modules/locale (Depends-on): Add stddef.
39320         * modules/stdio (Depends-on): Likewise.
39321         * modules/stdlib (Depends-on): Likewise.
39322         * modules/string (Depends-on): Likewise.
39323         * modules/time (Depends-on): Likewise.
39324         * modules/unistd (Depends-on): Likewise.
39325         * modules/wchar (Depends-on): Likewise.
39326         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
39327         * lib/stdlib.in.h (includes): Likewise.
39328         * lib/string.in.h (includes): Likewise.
39329         * lib/time.in.h (includes): Likewise.
39330         * lib/unistd.in.h (includes): Likewise.
39331         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
39332         replaced.
39333         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
39334         * m4/stddef_h.m4: New file.
39335         * modules/stddef: Likewise.
39336         * lib/stddef.in.h: Likewise.
39337         * modules/stddef-tests: Likewise.
39338         * tests/test-stddef.c: Likewise.
39339         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
39340         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
39341         * doc/posix-headers/locale.texi (locale.h): Likewise.
39342         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
39343         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
39344         * doc/posix-headers/string.texi (string.h): Likewise.
39345         * doc/posix-headers/time.texi (time.h): Likewise.
39346         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
39347         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
39348
39349 2009-08-14  Eric Blake  <ebb9@byu.net>
39350
39351         doc: improve git diff of texinfo files
39352         * .gitattributes: Add rule for *.texi files, with hint on how to
39353         use it.
39354         Copied from m4, and based on a report by Bruno Haible.
39355
39356 2009-08-14  Bruno Haible  <bruno@clisp.org>
39357
39358         Disable multithread support by default on Cygwin 1.5.x for real.
39359         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
39360
39361 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
39362
39363         update-copyright: much ado about intervals
39364         * build-aux/update-copyright: Implement and document
39365         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
39366         of copyright year intervals.
39367         Also, document UPDATE_COPYRIGHT_YEAR.
39368         * tests/test-update-copyright.sh: Test it.
39369
39370         update-copyright: convert 2-digit to 4-digit years
39371         * build-aux/update-copyright: Implement and document.
39372         * tests/test-update-copyright.sh: Update.
39373
39374 2009-08-14  Jim Meyering  <meyering@redhat.com>
39375
39376         test-exclude: avoid coreutils "make check" failure
39377         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
39378         just as in test-argmatch.c.
39379
39380 2009-08-13  Eric Blake  <ebb9@byu.net>
39381
39382         test-dup2: fix bad assumption
39383         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
39384         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
39385
39386         test-version-etc: fix CRLF portability issue
39387         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
39388         recognize \r.
39389         * tests/test-argp-version-etc-1.sh: Likewise.
39390
39391         getopt: update client modules
39392         * modules/argp (Depends-on): Use getopt-gnu.
39393         * modules/git-merge-changelog (Depends-on): Likewise.
39394         * modules/long-options (Depends-on): Likewise.
39395         * modules/xstrtol (Depends-on): Likewise.
39396
39397 2009-08-13  Simon Josefsson  <simon@josefsson.org>
39398
39399         * tests/test-version-etc.sh: Don't fail on different
39400         project/version.  Don't fail on CRLF differences.  Rewrite to use
39401         multiple -e instead of multiple sed forks, suggested by Eric Blake
39402         <ebb9@byu.net>.
39403         * tests/test-argp-version-etc-1.sh: Likewise.
39404
39405 2009-08-13  Simon Josefsson  <simon@josefsson.org>
39406
39407         * tests/test-version-etc.sh: Don't fail on different
39408         project/version.
39409
39410 2009-08-12  Bruno Haible  <bruno@clisp.org>
39411
39412         Tests for modules 'getopt-posix', 'getopt-gnu'.
39413         * modules/getopt-posix-tests: New file.
39414         * tests/test-getopt.c: New file.
39415         * tests/test-getopt.h: New file.
39416         * tests/test-getopt_long.h: New file.
39417
39418         New modules 'getopt-posix', 'getopt-gnu'.
39419         * modules/getopt-gnu: New file, renamed from modules/getopt.
39420         * modules/getopt-posix: New file.
39421         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
39422         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
39423         (gl_GETOPT): Remove macro.
39424         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
39425         Disable the test against BSD systems that declare optreset. Test
39426         against mingw bug. Test against lack of support of optional arguments
39427         on many platforms.
39428         * doc/glibc-headers/getopt.texi: Update module name and list of
39429         relevant platforms.
39430         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
39431         'getopt-gnu' and more portability problems.
39432         * NEWS: Mention the changes.
39433
39434 2009-08-12  Bruno Haible  <bruno@clisp.org>
39435
39436         Ensure that optarg etc. get declared by <unistd.h>.
39437         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
39438         AC_USE_SYSTEM_EXTENSIONS.
39439         * modules/getopt (Depends-on): Add 'extensions'.
39440
39441 2009-08-12  Bruno Haible  <bruno@clisp.org>
39442
39443         Avoid test link errors.
39444         * modules/pipe-filter-ii-tests (Makefile.am): Define
39445         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
39446         * modules/pipe-filter-gi-tests (Makefile.am): Define
39447         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
39448         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39449
39450 2009-08-12  Bruno Haible  <bruno@clisp.org>
39451
39452         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
39453         gl_GETOPT_SUBSTITUTE before.
39454         (gl_GETOPT): Use it.
39455         * m4/argp.m4 (gl_ARGP): Update.
39456         Reported by Sergey Poznyakoff.
39457
39458         * m4/getopt.m4: Reorder macros.
39459         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
39460         (gl_GETOPT_SUBSTITUTE): Remove macro.
39461
39462 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
39463
39464         Minor improvement in gitlog-to-changelog
39465
39466         * build-aux/gitlog-to-changelog: New option `--format' makes
39467         output format string configurable.
39468
39469 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
39470
39471         Optimize exclude: use hash tables for non-wildcard patterns.
39472
39473         * lib/exclude.c: Include hash.h and mbuiter.h
39474         (struct exclude_pattern, exclude_segment): New data types.
39475         (struct exclude): Rewrite.
39476         (fnmatch_pattern_has_wildcards): New function.
39477         (new_exclude_segment, free_exclude_segment): New functions.
39478         (excluded_file_pattern_p, excluded_file_name_p): New functions.
39479         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
39480         * lib/exclude.h (is_fnmatch_pattern): New prototype.
39481         * modules/exclude: Depend on hash and mbuiter.
39482
39483         * modules/exclude-tests: New file.
39484         * tests/test-exclude.c: New file.
39485         * tests/test-exclude1.sh: New file.
39486         * tests/test-exclude2.sh: New file.
39487         * tests/test-exclude3.sh: New file.
39488         * tests/test-exclude4.sh: New file.
39489         * tests/test-exclude5.sh: New file.
39490         * tests/test-exclude6.sh: New file.
39491         * tests/test-exclude7.sh: New file.
39492
39493 2009-08-12  Bruno Haible  <bruno@clisp.org>
39494
39495         Ensure that getopt() gets declared by <unistd.h>.
39496         * lib/unistd.in.h: Conditionally include getopt.h.
39497         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
39498         Set GNULIB_UNISTD_H_GETOPT.
39499         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39500         GNULIB_UNISTD_H_GETOPT.
39501         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
39502
39503 2009-08-12  Bruno Haible  <bruno@clisp.org>
39504
39505         Clarify logic.
39506         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
39507         gl_replace_getopt instead of GETOPT_H.
39508
39509 2009-08-12  Bruno Haible  <bruno@clisp.org>
39510
39511         * m4/getopt.m4: Add comments.
39512
39513 2009-08-12  Bruno Haible  <bruno@clisp.org>
39514
39515         Disable multithread support by default on Cygwin 1.5.x.
39516         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
39517         set gl_use_threads=no if not specified otherwise.
39518
39519 2009-08-11  Bruno Haible  <bruno@clisp.org>
39520
39521         Avoid compilation error on NetBSD 5.0.
39522         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
39523         * tests/test-stdio.c: Likewise.
39524         * tests/test-stdlib.c: Likewise.
39525         * tests/test-string.c: Likewise.
39526         * tests/test-unistd.c: Likewise.
39527         Reported by Greg Troxel <gdt@ir.bbn.com>
39528         at <https://savannah.gnu.org/support/?106973>.
39529
39530 2009-08-11  Bruno Haible  <bruno@clisp.org>
39531
39532         * modules/dup2-tests (Depends-on): Remove close.
39533
39534         Undo 2009-07-19 commit.
39535         * modules/acl-tests (Depends-on): Remove close.
39536         * modules/binary-io-tests (Depends-on): Likewise.
39537         * modules/closein-tests (Depends-on): Likewise.
39538         * modules/flock-tests (Depends-on): Likewise.
39539         * modules/fsync-tests (Depends-on): Likewise.
39540         * modules/lseek-tests (Depends-on): Likewise.
39541         * modules/pipe-tests (Depends-on): Likewise.
39542         * modules/posix_spawn-tests (Depends-on): Likewise.
39543         * modules/posix_spawnp-tests (Depends-on): Likewise.
39544         * modules/stat-time-tests (Depends-on): Likewise.
39545         * modules/yesno-tests (Depends-on): Likewise.
39546
39547 2009-08-10  Bruno Haible  <bruno@clisp.org>
39548
39549         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
39550
39551 2009-08-10  Bruno Haible  <bruno@clisp.org>
39552
39553         Fix a gcc warning.
39554         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
39555
39556 2009-08-10  Bruno Haible  <bruno@clisp.org>
39557
39558         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
39559         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
39560         not only the first time.
39561         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
39562         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
39563         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
39564         is 1, not only the the first time.
39565
39566 2009-08-10  Bruno Haible  <bruno@clisp.org>
39567
39568         Make it possible to use module 'gethostname' without module 'close'.
39569         * lib/unistd.in.h (close): Evoke a link error only if
39570         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
39571         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39572         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
39573         * modules/unistd (Makefile.am): Substitute
39574         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
39575         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
39576         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
39577         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
39578         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
39579         * modules/sys_ioctl (Makefile.am): Substitute
39580         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
39581         * modules/socket (configure.ac): On native Windows, set
39582         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
39583         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
39584         Reported by Sam Steingold <sds@gnu.org>.
39585
39586 2009-08-10  Bruno Haible  <bruno@clisp.org>
39587
39588         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
39589         * modules/ioctl (configure.ac): Likewise.
39590
39591 2009-08-10  Bruno Haible  <bruno@clisp.org>
39592
39593         Avoid collision between gnulib wrapper and libintl wrapper.
39594         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
39595         already defined in intl/printf.c.
39596         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
39597         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
39598
39599 2009-08-09  Bruno Haible  <bruno@clisp.org>
39600
39601         Make <sys/select.h> really self-contained, also on Solaris 10.
39602         * lib/sys_select.in.h: Include <string.h>.
39603         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
39604         Solaris 10 problem.
39605         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
39606         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
39607         Reported by Jim Meyering.
39608
39609 2009-08-09  Bruno Haible  <bruno@clisp.org>
39610
39611         Avoid warnings from 'aclocal' that are due to a use of macro name
39612         AM_XGETTEXT_OPTION that is not defined in automake.
39613         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
39614         automake.
39615         * modules/error (configure.ac): Likewise.
39616         * modules/propername (configure.ac): Likewise.
39617         * modules/vasprintf (configure.ac): Likewise.
39618         * modules/verror (configure.ac): Likewise.
39619         * modules/xprintf (configure.ac): Likewise.
39620         * modules/xvasprintf (configure.ac): Likewise.
39621
39622 2009-08-08  Bruno Haible  <bruno@clisp.org>
39623
39624         Avoid compilation error in C++ mode.
39625         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
39626         Reported by Sam Steingold <sds@gnu.org>.
39627
39628 2009-08-08  Bruno Haible  <bruno@clisp.org>
39629
39630         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
39631         for the various Unix platforms.
39632         * doc/posix-headers/limits.texi: Update platforms list regarding
39633         HOST_NAME_MAX.
39634         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39635
39636 2009-08-07  Jim Meyering  <meyering@redhat.com>
39637
39638         selinux-at: fix typo in a comment
39639         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
39640         Spotted by Paolo Bonzini.
39641
39642         selinux-at: remove redundant m4 code, add documentation
39643         * modules/selinux-at (configure.ac): Remove redundant code.
39644         LIB_SELINUX is already set via the dependent module, selinux-h.
39645         (Include): Add quotes around selinux-at.h.
39646         * lib/selinux-at.h: Add documentation.
39647         Reported by Bruno Haible in
39648         http://marc.info/?l=gnulib-bug&m=124958988300749
39649
39650 2009-08-07  Bruno Haible  <bruno@clisp.org>
39651
39652         Avoid link error on MacOS X 10.3 and 10.4.
39653         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
39654         on non-ELF systems.
39655         * lib/argp-pv.c (argp_program_version): Likewise.
39656         Reported by Simon Josefsson.
39657
39658 2009-08-07  Simon Josefsson  <simon@josefsson.org>
39659
39660         * tests/test-version-etc.sh: Use $EXEEXT.
39661
39662 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
39663
39664         update-copyright: update documentation to point to maint.mk
39665         * build-aux/update-copyright: Here.
39666
39667 2009-08-06  Jim Meyering  <meyering@redhat.com>
39668
39669         maint.mk: support update-copyright-local
39670         * top/maint.mk (update-copyright-local): Define place-holder.
39671         (update-copyright): Depend on $(update-copyright-local).
39672
39673 2009-08-06  Jim Meyering  <meyering@redhat.com>
39674
39675         selinux-at: new module
39676         Initially written for coreutils, this module will soon be
39677         used by findutils, too.
39678         * MODULES.html.sh [Misc]: Add selinux-at.
39679         * lib/selinux-at.h: New file, from coreutils.
39680         * lib/selinux-at.c: Likewise.
39681         * modules/selinux-at: Likewise.
39682         (License): Change from LGPL to GPL, since it depends
39683         on the GPL'd openat module.
39684
39685         doc: update README
39686         * README: Remove references to cogito.
39687         Remove cvs-repo-updating instructions from 2007.
39688         Don't imply that CVS is better if you have limited disk space.
39689
39690 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
39691
39692         update-copyright: support C-style comments
39693         * build-aux/update-copyright: Implement and document.
39694         * tests/test-update-copyright.sh: Test.
39695
39696 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
39697
39698         update-copyright: support omitted "(C)"
39699         * build-aux/update-copyright: Implement and document.  Also,
39700         allow variable whitespace before "(C)".
39701         * tests/test-update-copyright.sh: Test.
39702
39703 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
39704
39705         update-copyright: don't trip on non-FSF copyright statements
39706         * build-aux/update-copyright: Fix so that the first correctly
39707         formatted FSF copyright statement is recognized no matter what
39708         appears before it.  Update documentation.
39709         * tests/test-update-copyright.sh: Test that.
39710
39711 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
39712
39713         update-copyright: clean up code a little
39714         * build-aux/update-copyright: Append "_re" to the name of any
39715         variable holding a regular expression.
39716         Replace "old" and "new" with "stmt" in variable names.
39717         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
39718         handled correctly.
39719         Format code more consistently.
39720
39721 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
39722
39723         update-copyright-tests: improve portability
39724         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
39725         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
39726
39727 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
39728
39729         update-copyright: support @copyright{} and &copy;
39730         * build-aux/update-copyright: Implement and document.
39731         * tests/test-update-copyright.sh: Test.
39732
39733 2009-08-04  Jim Meyering  <meyering@redhat.com>
39734
39735         update-copyright-tests: correctly test EOL=\r\n handling
39736         * tests/test-update-copyright.sh: Put \r at the end of some lines
39737         for the dos-eol tests.  Based on a patch by Joel E. Denny.
39738
39739         maint.mk: make update-copyright exclusion list more configurable
39740         * top/maint.mk (update-copyright): Default to excluding COPYING,
39741         but allow an override, in case someone does want to update that file.
39742
39743         maint.mk: don't update copyright date in COPYING
39744         * top/maint.mk (update-copyright): Exclude COPYING.
39745
39746         maint.mk: add a copyright-updating rule
39747         * top/maint.mk (update-copyright): New rule.
39748         Derived from coreutils/Makefile.am.
39749
39750         update-copyright: rename some variables
39751         * build-aux/update-copyright: Rename a few variables for clarity.
39752         Tweak syntax.  List Joel E. Denny as coauthor.
39753
39754 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
39755
39756         update-copyright: fix bug for 2-digit last year and add tests
39757         * build-aux/update-copyright: Fix bug.
39758         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
39759         specified.
39760         * modules/update-copyright-tests: New
39761         * tests/test-update-copyright.sh: New.
39762
39763 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
39764
39765         update-copyright: handle leading tabs in line prefix
39766         * build-aux/update-copyright: Count leading tabs as 8 spaces
39767         when computing margin.  This helps with the formatting of
39768         ChangeLogs, for example.
39769         Fix documentation a little.
39770
39771 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
39772
39773         update-copyright: support EOL=\r\n
39774         * build-aux/update-copyright: Implement that.
39775
39776 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
39777
39778         update-copyright: automatically format copyright statements
39779         * build-aux/update-copyright: Implement that.
39780         Also, be a little more predictable and safer by always failing
39781         when the full copyright format is not perfectly recognized as an
39782         unbroken whole.  Discussed at
39783         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
39784         Rewrite documentation.
39785
39786 2009-08-03  Bruno Haible  <bruno@clisp.org>
39787
39788         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
39789
39790 2009-08-02  Bruno Haible  <bruno@clisp.org>
39791
39792         Tests for module 'uname'.
39793         * modules/uname-tests: New file.
39794         * tests/test-uname.c: New file.
39795
39796         New module 'uname'.
39797         * lib/uname.c: New file.
39798         * m4/uname.m4: New file.
39799         * modules/uname: New file.
39800         * doc/posix-functions/uname.texi: Mention the new module.
39801
39802 2009-08-02  Bruno Haible  <bruno@clisp.org>
39803
39804         Tests for module 'sys_utsname'.
39805         * modules/sys_utsname-tests: New file.
39806         * tests/test-sys_utsname.c: New file.
39807
39808         New module 'sys_utsname'.
39809         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
39810         * m4/sys_utsname_h.m4: New file.
39811         * modules/sys_utsname: New file.
39812         * doc/posix-headers/sys_utsname.texi: Mention the new module.
39813
39814 2009-08-02  Bruno Haible  <bruno@clisp.org>
39815
39816         Implicitly initialize the sockets library.
39817         * lib/gethostname.c: Include sockets.h.
39818         (rpl_gethostname): Invoke gl_sockets_startup.
39819         * lib/socket.c: Include sockets.h.
39820         (rpl_socket): Invoke gl_sockets_startup.
39821         * modules/gethostname (Depends-on): Add sockets.
39822         * modules/socket (Depends-on): Likewise.
39823         * tests/test-poll.c: Don't include sockets.h.
39824         (main): Don't invoke gl_sockets_startup.
39825         * tests/test-select.c: Don't include sockets.h.
39826         (main): Don't invoke gl_sockets_startup.
39827
39828 2009-08-02  Bruno Haible  <bruno@clisp.org>
39829
39830         Allow multiple calls to gl_sockets_startup.
39831         * lib/sockets.c (initialized_sockets_version): New variable.
39832         (gl_sockets_startup): Do nothing if already called for this or a higher
39833         version.
39834         (gl_sockets_cleanup): Reset initialized_sockets_version.
39835
39836 2009-08-03  Simon Josefsson  <simon@josefsson.org>
39837
39838         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
39839         different project/version.
39840
39841 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
39842             Bruno Haible  <bruno@clisp.org>
39843
39844         Tests for module 'pipe-filter-gi'.
39845         * modules/pipe-filter-gi-tests: New file.
39846         * tests/test-pipe-filter-gi1.sh: New file.
39847         * tests/test-pipe-filter-gi1.c: New file.
39848         * tests/test-pipe-filter-gi2.sh: New file.
39849         * tests/test-pipe-filter-gi2-main.c: New file.
39850         * tests/test-pipe-filter-gi2-child.c: New file.
39851
39852         New module 'pipe-filter-gi'.
39853         * lib/pipe-filter-gi.c: New file.
39854         * modules/pipe-filter-gi: New file.
39855
39856 2009-08-02  Bruno Haible  <bruno@clisp.org>
39857             Paolo Bonzini  <bonzini@gnu.org>
39858
39859         Tests for module 'pipe-filter-ii'.
39860         * modules/pipe-filter-ii-tests: New file.
39861         * tests/test-pipe-filter-ii1.sh: New file.
39862         * tests/test-pipe-filter-ii1.c: New file.
39863         * tests/test-pipe-filter-ii2.sh: New file.
39864         * tests/test-pipe-filter-ii2-main.c: New file.
39865         * tests/test-pipe-filter-ii2-child.c: New file.
39866
39867         New module 'pipe-filter-ii'.
39868         * lib/pipe-filter.h: New file.
39869         * lib/pipe-filter-ii.c: New file.
39870         * lib/pipe-filter-aux.h: New file.
39871         * modules/pipe-filter-ii: New file.
39872
39873 2009-08-02  Simon Josefsson  <simon@josefsson.org>
39874
39875         * lib/gc-libgcrypt.c: Change copyright to FSF.
39876         * lib/gc-gnulib.c: Likewise.
39877
39878 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
39879
39880         * lib/gethostname.c: Include limits.h.
39881
39882 2009-08-02  Simon Josefsson  <simon@josefsson.org>
39883             Bruno Haible  <bruno@clisp.org>
39884
39885         Ensure HOST_NAME_MAX as part of the gethostname module.
39886         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
39887         define also HOST_NAME_MAX.
39888         * tests/test-gethostname.c: Include <limits.h>.
39889         (main): Check also HOST_NAME_MAX.
39890         * doc/posix-headers/limits.texi: Document the mingw problem.
39891
39892 2009-08-02  Bruno Haible  <bruno@clisp.org>
39893
39894         * lib/gethostname.c (gethostname): Fix handling of large len argument.
39895         Add comments.
39896
39897 2009-03-31  Simon Josefsson  <simon@josefsson.org>
39898
39899         * lib/gethostname.c: Add Windows wrapper.
39900         * m4/gethostname.m4: Look for gethostname in -lws2_32.
39901         * modules/gethostname: Depend on sys_socket & errno, for also
39902         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
39903         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
39904
39905 2009-07-31  Jim Meyering  <meyering@redhat.com>
39906
39907         getloadavg: fix symbol name in comment
39908         * lib/getloadavg.c: Correct a typo I introduced when adding
39909         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
39910         Matt Kraai spotted the problem.
39911
39912 2009-07-29  Matt Kraai  <mkraai@beckman.com>
39913
39914         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
39915         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
39916         code also if ! defined N_NAME_POINTER.
39917         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
39918         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
39919         but the n_name member is a 12-byte array.
39920
39921 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
39922
39923         update-copyright: generalize comment handling
39924         * build-aux/update-copyright: Handle copyright statements
39925         within more comment styles.
39926         Document usage.
39927         Report any file with an external copyright holder or parse failure.
39928
39929 2009-07-29  Jim Meyering  <meyering@redhat.com>
39930
39931         mktime: correct setting of REPLACE_MKTIME
39932         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
39933
39934         update-copyright: new module
39935         * modules/update-copyright: New file.
39936         * build-aux/update-copyright: New file.
39937         * MODULES.html.sh (maint+release support): Add update-copyright.
39938
39939 2009-07-27  Bruno Haible  <bruno@clisp.org>
39940
39941         Fix compilation error when <ctime> is used and mktime is replaced.
39942         * lib/time.in.h (mktime): New declaration.
39943         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
39944         REPLACE_MKTIME instead of defining mktime in config.h.
39945         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
39946         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
39947         Reported by Ross McFarland <rwmcfa1@neces.com>.
39948
39949 2009-07-27  Bruno Haible  <bruno@clisp.org>
39950
39951         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
39952         Reported by Matt Kraai <mkraai@beckman.com>.
39953
39954 2009-07-25  Jim Meyering  <meyering@redhat.com>
39955
39956         maint.mk: avoid warnings about missing files
39957         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
39958         diagnostic when .prev-version does not exist.
39959         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
39960         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
39961         nonexistent cfg.mk.
39962         Suggestions from Simon Josefsson.
39963
39964 2009-07-25  Bruno Haible  <bruno@clisp.org>
39965
39966         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
39967         defined as macros. Needed on QNX 6.4.1.
39968         Reported by Matt Kraai <mkraai@beckman.com>.
39969
39970 2009-07-23  Jim Meyering  <meyering@redhat.com>
39971
39972         maint.mk: invoke "make dist" with a working value of XZ_OPT
39973         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
39974
39975 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
39976
39977         Make fseeko.c compile on QNX.
39978         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
39979
39980 2009-07-22  Peter Simons  <simons@cryp.to>
39981
39982         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
39983         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
39984         * lib/md4.h: Likewise.
39985         * lib/md5.h: Likewise.
39986         * lib/sha1.h: Likewise.
39987         * lib/sha256.h: Likewise.
39988         * lib/sha512.h: Likewise.
39989
39990         tests-sha1: don't assign literal string to 'char *' variable
39991         * tests/test-sha1.c (main): Declare locals with "const" to match
39992         attributes of the right hand side.
39993
39994 2009-07-21  Eric Blake  <ebb9@byu.net>
39995
39996         dup2: fix more mingw problems
39997         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
39998         fd to itself.
39999         * doc/posix-functions/dup2.texi (dup2): Document the bug.
40000         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
40001         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
40002         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
40003         care of mingw bugs.
40004
40005 2009-07-21  Jim Meyering  <meyering@redhat.com>
40006
40007         vc-list-files: avoid failure when /bin/sh is dash
40008         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
40009         On some Debian based systems, /bin/sh is a symlink to dash, and running
40010         this command would omit the "/" following each 'tests' prefix:
40011           dash -x build-aux/vc-list-files -C . tests
40012         That is because bash and dash work differently:
40013           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
40014           bash ok
40015           dash odd
40016
40017 2009-07-21  Eric Blake  <ebb9@byu.net>
40018
40019         dup2-tests: test previous patch
40020         * modules/dup2-tests: New file.
40021         * tests/test-dup2.c: Likewise.
40022         * tests/test-open.c (main): Avoid unspecified behavior.
40023         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
40024         test.
40025
40026         dup2: work around mingw and cygwin 1.5 bug
40027         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
40028         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40029         * modules/unistd (Makefile.am): Substitute it.
40030         * lib/unistd.in.h (dup2): Declare the replacement.
40031         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
40032         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
40033         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
40034         * modules/execute (Depends-on): Add dup2.
40035         * modules/fseterr (Depends-on): Likewise.
40036         * modules/pipe (Depends-on): Likewise.
40037         * modules/posix_spawn-internal (Depends-on): Likewise.
40038
40039 2009-07-21  Bruno Haible  <bruno@clisp.org>
40040
40041         * modules/.gitattributes: New file.
40042
40043 2009-07-20  Bruno Haible  <bruno@clisp.org>
40044
40045         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
40046         (main): Use it.
40047
40048 2009-07-20  Eric Blake  <ebb9@byu.net>
40049
40050         test-pipe: make a bit more robust.
40051         * tests/test-pipe.c (myerr): Allow error messages regardless of
40052         what we do to stderr.
40053         (test_pipe): Rearrange to avoid deadlock.
40054         (child_main): Try a larger read, to ensure we avoided deadlock.
40055         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
40056         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
40057         if misused.
40058
40059 2009-07-19  Jim Meyering  <meyering@redhat.com>
40060
40061         fts: avoid false-positive cycle-detection
40062         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
40063         for each new command line argument.
40064
40065 2009-07-19  Bruno Haible  <bruno@clisp.org>
40066
40067         Fix build error on mingw with the modules sys_select and unistd.
40068         * modules/acl-tests (Depends-on): Add close.
40069         * modules/binary-io-tests (Depends-on): Likewise.
40070         * modules/closein-tests (Depends-on): Likewise.
40071         * modules/flock-tests (Depends-on): Likewise.
40072         * modules/fsync-tests (Depends-on): Likewise.
40073         * modules/lseek-tests (Depends-on): Likewise.
40074         * modules/pipe-tests (Depends-on): Likewise.
40075         * modules/posix_spawn-tests (Depends-on): Likewise.
40076         * modules/posix_spawnp-tests (Depends-on): Likewise.
40077         * modules/stat-time-tests (Depends-on): Likewise.
40078         * modules/yesno-tests (Depends-on): Likewise.
40079
40080 2009-07-19  Bruno Haible  <bruno@clisp.org>
40081
40082         Unify conditionals.
40083         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
40084         macros, not at the compiler macros.
40085         * lib/pipe.c: Likewise.
40086         * lib/execute.c: Likewise.
40087         * lib/spawni.c: Likewise.
40088
40089 2009-07-19  Bruno Haible  <bruno@clisp.org>
40090
40091         Fix handling of closed stdin/stdout/stderr on mingw.
40092         * lib/w32spawn.h: Include unistd.h.
40093         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
40094         file descriptor with O_NOINHERIT flag.
40095         (fd_safer_noinherit): New function, based on fd-safer.c.
40096         (dup_safer_noinherit): New function, based on dup-safer.c.
40097         (undup_safer_noinherit): New function.
40098         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
40099         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
40100         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
40101         instead of fd_safer.
40102         * tests/test-pipe.c: Include <windows.h>.
40103         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
40104         result.
40105
40106         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
40107         from main.
40108         (test_pipe): Pass an extra argument for disambiguation.
40109         (main): Invoke parent_main or child_main.
40110
40111         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
40112         consistently.
40113
40114 2009-07-18  Eric Blake  <ebb9@byu.net>
40115
40116         test-pipe: fix mingw build
40117         * tests/test-pipe.c (main): Avoid fcntl on mingw.
40118
40119 2009-07-18  Bruno Haible  <bruno@clisp.org>
40120
40121         * modules/pipe-tests (Makefile.am): Fix typo.
40122
40123 2009-07-18  Eric Blake  <ebb9@byu.net>
40124
40125         error: fix mingw build
40126         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
40127         Reported by Bruno Haible.
40128
40129         error: avoid undefined use of stdout
40130         * lib/error.c (error, error_at_line): Check that fd 1 is open
40131         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
40132         is handling faults and the close_stdout module wants to report the
40133         detection of closed stdout as an error.
40134
40135 2009-07-17  Eric Blake  <ebb9@byu.net>
40136
40137         pipe: be robust in face of closed fds
40138         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
40139         should cause child to misbehave.
40140         * modules/pipe-tests: New module.
40141         * tests/test-pipe.c: New file.
40142         * tests/test-pipe.sh: New file.
40143         Reported by Akim Demaille.
40144
40145 2009-07-14  Bruno Haible  <bruno@clisp.org>
40146
40147         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
40148         Reported by anonymous kc.
40149
40150 2009-07-07  Jim Meyering  <meyering@redhat.com>
40151
40152         maint.mk: don't look for translatable strings in *.m4 or *.mk
40153         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
40154         when searching for translatable strings.
40155
40156 2009-07-05  Jim Meyering  <meyering@redhat.com>
40157
40158         remove superfluous parentheses in STREQ definition
40159         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
40160         * lib/getugroups.c (STREQ): Likewise.
40161         * lib/fnmatch.c (STREQ): Likewise.
40162         Spotted by Bruno Haible.
40163
40164 2009-07-04  Jim Meyering  <meyering@redhat.com>
40165
40166         argv-iter: new module
40167         * MODULES.html.sh: Add argv-iter.
40168         * lib/argv-iter.c, lib/argv-iter.h: New files.
40169         * modules/argv-iter: New file.
40170         * modules/argv-iter-tests: New file.
40171         * tests/test-argv-iter.c: Test it.
40172
40173 2009-07-04  Bruno Haible  <bruno@clisp.org>
40174
40175         Fix assertion.
40176         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
40177         contains more exact copies of a given entry than file2, leave the extra
40178         copies unpaired rather than aborting.
40179         Reported by Eric Blake.
40180
40181 2009-07-02  Bruno Haible  <bruno@clisp.org>
40182
40183         Speedup git-merge-changelog for git cherry-pick.
40184         * lib/git-merge-changelog.c (struct entries_mapping): New type.
40185         (entries_mapping_get): New function, extracted from compute_mapping.
40186         (entries_mapping_reverse_get): New function.
40187         (compute_mapping): Add a 'full' argument. Return the result in a
40188         'struct entries_mapping'.
40189         (main): Update. Access the mappings through entries_mapping_get.
40190         Reported by Eric Blake.
40191
40192 2009-07-02  Bruno Haible  <bruno@clisp.org>
40193
40194         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
40195         best_i.
40196
40197 2009-07-02  Bruno Haible  <bruno@clisp.org>
40198
40199         Speed up approximate search for matching ChangeLog entries.
40200         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
40201         argument. Call fstrcmp_bounded instead of fstrcmp.
40202         (compute_mapping, try_split_merged_entry, main): Update callers.
40203
40204 2009-07-02  Bruno Haible  <bruno@clisp.org>
40205
40206         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
40207
40208 2009-06-30  Bruno Haible  <bruno@clisp.org>
40209
40210         Reduce the number of uc_is_cased calls.
40211         * lib/unicase.h (casing_suffix_context_t): Add
40212         'first_char_except_ignorable' field.
40213         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
40214         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
40215         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
40216         Update initializer.
40217         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
40218         case-ignorable characters.
40219         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
40220         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
40221         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
40222         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
40223         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
40224
40225 2009-06-30  Bruno Haible  <bruno@clisp.org>
40226
40227         Tests for module 'unicase/ignorable'.
40228         * modules/unicase/ignorable-tests: New file.
40229         * tests/unicase/test-ignorable.c: New file, generated by
40230         gen-uni-tables.
40231
40232         Tests for module 'unicase/cased'.
40233         * modules/unicase/cased-tests: New file.
40234         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
40235         * tests/unicase/test-predicate-part1.h: New file, derived from
40236         tests/unictype/test-predicate-part1.h.
40237         * tests/unicase/test-predicate-part2.h: New file, same as
40238         tests/unictype/test-predicate-part2.h.
40239
40240         Fix evaluation of "Before C" condition of FINAL_SIGMA.
40241         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
40242         (output_casing_properties): New function.
40243         (main): Call it.
40244         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
40245         * lib/unicase/cased.c: Include unictype/bitmap.h.
40246         (uc_is_cased): Define through a bitmap lookup.
40247         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
40248         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
40249         (uc_is_case_ignorable): Define through a bitmap lookup.
40250         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
40251         lib/unictype/bitmap.h.
40252         (Depends-on): Add inline. Clean up.
40253         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
40254         lib/unictype/bitmap.h.
40255         (Depends-on): Add inline. Clean up.
40256         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
40257         recognition.
40258         * tests/unicase/test-u16-tolower.c (main): Likewise.
40259         * tests/unicase/test-u32-tolower.c (main): Likewise.
40260
40261 2009-06-30  Bruno Haible  <bruno@clisp.org>
40262
40263         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
40264         * lib/unicase/u16-casemap.c: Likewise.
40265         * lib/unicase/u32-casemap.c: Likewise.
40266
40267 2009-06-29  Bruno Haible  <bruno@clisp.org>
40268
40269         Define u32_casefold as a wrapper around u32_ct_casefold.
40270         * lib/unicase/u32-casefold.c: Update.
40271         * modules/unicase/u32-casefold (Depends-on): Add
40272         unicase/u32-ct-casefold, unicase/empty-prefix-context,
40273         unicase/empty-suffix-context. Clean up.
40274
40275         Define u16_casefold as a wrapper around u16_ct_casefold.
40276         * lib/unicase/u16-casefold.c: Update.
40277         * modules/unicase/u16-casefold (Depends-on): Add
40278         unicase/u16-ct-casefold, unicase/empty-prefix-context,
40279         unicase/empty-suffix-context. Clean up.
40280
40281         Define u8_casefold as a wrapper around u8_ct_casefold.
40282         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
40283         * lib/unicase/u8-casefold.c: Update.
40284         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
40285         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
40286
40287         Define u32_totitle as a wrapper around u32_ct_totitle.
40288         * lib/unicase/u32-totitle.c: Update.
40289         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
40290         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
40291
40292         Define u16_totitle as a wrapper around u16_ct_totitle.
40293         * lib/unicase/u16-totitle.c: Update.
40294         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
40295         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
40296
40297         Define u8_totitle as a wrapper around u8_ct_totitle.
40298         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
40299         functions.
40300         (FUNC): Delegate to U_CT_TOTITLE.
40301         * lib/unicase/u8-totitle.c: Update.
40302         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
40303         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
40304
40305         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
40306         invocation.
40307         * modules/unicase/u32-tolower (Depends-on): Add
40308         unicase/empty-prefix-context, unicase/empty-suffix-context.
40309
40310         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
40311         invocation.
40312         * modules/unicase/u16-tolower (Depends-on): Add
40313         unicase/empty-prefix-context, unicase/empty-suffix-context.
40314
40315         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
40316         * modules/unicase/u8-tolower (Depends-on): Add
40317         unicase/empty-prefix-context, unicase/empty-suffix-context.
40318
40319         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
40320         invocation.
40321         * modules/unicase/u32-toupper (Depends-on): Add
40322         unicase/empty-prefix-context, unicase/empty-suffix-context.
40323
40324         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
40325         invocation.
40326         * modules/unicase/u16-toupper (Depends-on): Add
40327         unicase/empty-prefix-context, unicase/empty-suffix-context.
40328
40329         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
40330         * modules/unicase/u8-toupper (Depends-on): Add
40331         unicase/empty-prefix-context, unicase/empty-suffix-context.
40332
40333         New module 'unicase/u32-ct-casefold'.
40334         * lib/unicase/u32-ct-casefold.c: New file.
40335         * modules/unicase/u32-ct-casefold: New file.
40336
40337         New module 'unicase/u16-ct-casefold'.
40338         * lib/unicase/u16-ct-casefold.c: New file.
40339         * modules/unicase/u16-ct-casefold: New file.
40340
40341         New module 'unicase/u8-ct-casefold'.
40342         * lib/unicase/u8-ct-casefold.c: New file.
40343         * lib/unicase/u-ct-casefold.h: New file, derived from
40344         lib/unicase/u-casefold.h.
40345         * modules/unicase/u8-ct-casefold: New file.
40346
40347         New module 'unicase/u32-ct-totitle'.
40348         * lib/unicase/u32-ct-totitle.c: New file.
40349         * modules/unicase/u32-ct-totitle: New file.
40350
40351         New module 'unicase/u16-ct-totitle'.
40352         * lib/unicase/u16-ct-totitle.c: New file.
40353         * modules/unicase/u16-ct-totitle: New file.
40354
40355         New module 'unicase/u8-ct-totitle'.
40356         * lib/unicase/u8-ct-totitle.c: New file.
40357         * lib/unicase/u-ct-totitle.h: New file, derived from
40358         lib/unicase/u-totitle.h.
40359         * modules/unicase/u8-ct-totitle: New file.
40360
40361         New module 'unicase/u32-ct-tolower'.
40362         * lib/unicase/u32-ct-tolower.c: New file.
40363         * modules/unicase/u32-ct-tolower: New file.
40364
40365         New module 'unicase/u16-ct-tolower'.
40366         * lib/unicase/u16-ct-tolower.c: New file.
40367         * modules/unicase/u16-ct-tolower: New file.
40368
40369         New module 'unicase/u8-ct-tolower'.
40370         * lib/unicase/u8-ct-tolower.c: New file.
40371         * modules/unicase/u8-ct-tolower: New file.
40372
40373         New module 'unicase/u32-ct-toupper'.
40374         * lib/unicase/u32-ct-toupper.c: New file.
40375         * modules/unicase/u32-ct-toupper: New file.
40376
40377         New module 'unicase/u16-ct-toupper'.
40378         * lib/unicase/u16-ct-toupper.c: New file.
40379         * modules/unicase/u16-ct-toupper: New file.
40380
40381         New module 'unicase/u8-ct-toupper'.
40382         * lib/unicase/u8-ct-toupper.c: New file.
40383         * modules/unicase/u8-ct-toupper: New file.
40384
40385         Add context arguments to u*_casemap functions.
40386         * lib/unicase/unicasemap.h: Include unicase.h.
40387         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
40388         suffix_context arguments.
40389         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
40390         functions.
40391         (FUNC): Add prefix_context and suffix_context arguments. Use
40392         uc_is_cased and uc_is_case_ignorable.
40393         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
40394         * lib/unicase/u16-casemap.c: Likewise.
40395         * lib/unicase/u32-casemap.c: Likewise.
40396         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
40397         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
40398         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
40399         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
40400         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
40401         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
40402
40403         New module 'unicase/u32-suffix-context'.
40404         * lib/unicase/u32-suffix-context.c: New file.
40405         * modules/unicase/u32-suffix-context: New file.
40406
40407         New module 'unicase/u16-suffix-context'.
40408         * lib/unicase/u16-suffix-context.c: New file.
40409         * modules/unicase/u16-suffix-context: New file.
40410
40411         New module 'unicase/u8-suffix-context'.
40412         * lib/unicase/u8-suffix-context.c: New file.
40413         * lib/unicase/u-suffix-context.h: New file.
40414         * modules/unicase/u8-suffix-context: New file.
40415
40416         New module 'unicase/empty-suffix-context'.
40417         * lib/unicase/empty-suffix-context.c: New file.
40418         * modules/unicase/empty-suffix-context: New file.
40419
40420         New module 'unicase/u32-prefix-context'.
40421         * lib/unicase/u32-prefix-context.c: New file.
40422         * modules/unicase/u32-prefix-context: New file.
40423
40424         New module 'unicase/u16-prefix-context'.
40425         * lib/unicase/u16-prefix-context.c: New file.
40426         * modules/unicase/u16-prefix-context: New file.
40427
40428         New module 'unicase/u8-prefix-context'.
40429         * lib/unicase/u8-prefix-context.c: New file.
40430         * lib/unicase/u-prefix-context.h: New file.
40431         * lib/unicase/context.h: New file.
40432         * modules/unicase/u8-prefix-context: New file.
40433
40434         New module 'unicase/empty-prefix-context'.
40435         * lib/unicase/empty-prefix-context.c: New file.
40436         * modules/unicase/empty-prefix-context: New file.
40437
40438         New module 'unicase/ignorable'.
40439         * lib/unicase/ignorable.c: New file.
40440         * modules/unicase/ignorable: New file.
40441
40442         New module 'unicase/cased'.
40443         * lib/unicase/caseprop.h: New file.
40444         * lib/unicase/cased.c: New file.
40445         * modules/unicase/cased: New file.
40446
40447         New functions for case mapping of substrings.
40448         * lib/unicase.h (casing_prefix_context_t): New type.
40449         (unicase_empty_prefix_context): New variable.
40450         (u8_casing_prefix_context, u16_casing_prefix_context,
40451         u32_casing_prefix_context, u8_casing_prefixes_context,
40452         u16_casing_prefixes_context, u32_casing_prefixes_context): New
40453         declarations.
40454         (casing_suffix_context_t): New type.
40455         (unicase_empty_suffix_context): New variable.
40456         (u8_casing_suffix_context, u16_casing_suffix_context,
40457         u32_casing_suffix_context, u8_casing_suffixes_context,
40458         u16_casing_suffixes_context, u32_casing_suffixes_context,
40459         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
40460         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
40461         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
40462         declarations.
40463
40464 2009-06-28  Jim Meyering  <meyering@redhat.com>
40465
40466         boostrap: indent only with spaces
40467         * build-aux/bootstrap: Indent only with spaces, never TABs.
40468
40469         bootstrap: split long lines
40470         * build-aux/bootstrap: Keep line length < 80.
40471
40472         bootstrap: sync from coreutils
40473         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
40474         just as autoreconf does.  Verify a list of prerequisite
40475         package-name,version-number pairs if defined in bootstrap.conf.
40476         Refer to README-prereq, if prerequisites are not satisfied.
40477
40478 2009-06-27  Eric Blake  <ebb9@byu.net>
40479
40480         tests: add test for bogus NULL definition
40481         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
40482         * tests/test-stdlib.c: Likewise.
40483         * tests/test-string.c: Likewise.
40484         * tests/test-locale.c: Likewise.
40485         * tests/test-unistd.c: Likewise.
40486         * modules/stdio-tests (Depends-on): Add verify.
40487         * modules/stdlib-tests (Depends-on): Likewise.
40488         * modules/string-tests (Depends-on): Likewise.
40489         * modules/locale-tests (Depends-on): Likewise.
40490         * modules/unistd-tests (Depends-on): Likewise.
40491
40492 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
40493
40494         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
40495         self-explaining comment.
40496         * m4/selinux-selinux-h: Update serial.
40497         (gl_LIBSELINUX): New macro, adding a warning for missing development
40498         packages to code extracted from...
40499         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
40500         Add warning for missing development packages here, too.
40501
40502 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
40503
40504         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
40505
40506 2009-06-25  Eric Blake  <ebb9@byu.net>
40507
40508         version-etc: fix regression
40509         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
40510         gcc.
40511         (version_etc): Use it, to catch bugs with trailing NULL.
40512         * lib/version-etc.c (version_etc_arn): Delete unused argument.
40513         (version_etc_va): Fix logic bug.
40514         * modules/version-etc-tests: Add test.
40515         * tests/test-version-etc.c: New file.
40516         * tests/test-version-etc.sh: Likewise.
40517
40518 2009-06-25  Sam Steingold  <sds@gnu.org>
40519
40520         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
40521         mbtowc declaration.
40522
40523 2009-06-25  Eric Blake  <ebb9@byu.net>
40524
40525         fpurge: migrate into <stdio.h>
40526         * lib/fpurge.h: Delete...
40527         * lib/stdio.in.h (fpurge): ...and declare here, instead.
40528         * lib/fpurge.c (fpurge): Change declaring header.
40529         * modules/fpurge (Files): Drop deleted file.
40530         (Depends-on): Add stdio.
40531         (configure.ac): Set witness.
40532         * modules/stdio (Makefile.am): Support fpurge macros.
40533         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
40534         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
40535         * lib/fflush.c: Update client.
40536         * tests/test-fpurge.c: Likewise.
40537         * NEWS: Mention the change.
40538
40539 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
40540
40541         * lib/argp-version-etc.c (program_authors): Add const
40542         qualifier.
40543         * lib/version-etc.c: Fix typos in the comments.
40544         * modules/argp-version-etc: Depends on version-etc.
40545
40546 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
40547
40548         argp-version-etc: new module.
40549
40550         * lib/argp-version-etc.c: New file.
40551         * lib/argp-version-etc.h: New file.
40552         * modules/argp-version-etc: New file.
40553         * modules/argp-version-etc-tests: New file.
40554         * tests/test-argp-version-etc.c: New test.
40555         * tests/test-argp-version-etc-1.sh: New test.
40556
40557 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
40558
40559         Provide additional interfaces and documentation for version-etc
40560         module.
40561
40562         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
40563         interfaces.
40564         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
40565         prototypes.
40566
40567 2009-06-24  Bruno Haible  <bruno@clisp.org>
40568
40569         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
40570         HAVE_LIB${NAME} macro.
40571         Reported by Sam Steingold <sds@gnu.org>.
40572
40573 2009-06-23  Simon Josefsson  <simon@josefsson.org>
40574
40575         * modules/hash-tests (test_hash_LDADD): Link to libintl when
40576         needed.
40577
40578 2009-06-21  Bruno Haible  <bruno@clisp.org>
40579
40580         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
40581         work.
40582         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
40583         together with LIB${NAME}, LTLIB${NAME}.
40584         Reported by Sam Steingold <sds@gnu.org>.
40585
40586 2009-06-20  Jim Meyering  <meyering@redhat.com>
40587
40588         tests: make sc_require_test_exit_idiom more generic
40589         * top/maint.mk (Exit_witness_file): New overridable variable.
40590         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
40591         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
40592
40593 2009-06-19  Jim Meyering  <meyering@redhat.com>
40594
40595         hash: reverse order of src/dst parameters in an internal interface
40596         * lib/hash.c (transfer_entries): Reverse order of parameters to
40597         put DST before SRC.  Adjust callers.
40598
40599         tests: test-hash: avoid wholesale duplication
40600         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
40601         Instead, use a loop and add a single conditional.
40602
40603         tests: test-hash: allow seed selection via a command line argument
40604         * tests/test-hash.c (get_seed): New function.
40605         (main): Use it.
40606
40607 2009-06-19  Eric Blake  <ebb9@byu.net>
40608
40609         hash: avoid memory leak on allocation failure
40610         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
40611         failure.  Factor repeated algorithm...
40612         (transfer_entries): ...into new helper routine.
40613         (hash_delete): React to hash_rehash return value.
40614
40615         hash: reduce memory pressure in hash_rehash no-op case
40616         * lib/hash.c (next_prime): Avoid overflow.
40617         (hash_initialize): Factor bucket size computation...
40618         (compute_bucket_size): ...into new helper function.
40619         (hash_rehash): Use new function and open coding to reduce memory
40620         pressure, and avoid a memory leak in USE_OBSTACK code.
40621         Reported by Jim Meyering.
40622
40623 2009-06-18  Eric Blake  <ebb9@byu.net>
40624
40625         hash: make rotation more obvious
40626         * modules/hash (Depends-on): Add bitrotate and stdint.
40627         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
40628         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
40629         (SIZE_MAX): Rely on headers for definition.
40630         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
40631         (raw_hasher): Use rotr_sz.
40632         Suggested by Jim Meyering.
40633
40634         hash: fix memory leak in last patch
40635         * lib/hash.c (hash_rehash): Avoid memory leak.
40636
40637         hash: avoid no-op rehashing
40638         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
40639
40640         hash: provide default callback functions
40641         * lib/hash.c (raw_hasher, raw_comparator): New functions.
40642         (hash_initialize): Use them as defaults.
40643         * tests/test-hash.c (main): Test this.
40644
40645         hash: minor optimization
40646         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
40647         when possible.
40648         (hash_initialize): Document this promise.
40649         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
40650         * tests/test-hash.c (hash_compare_strings): Test this.
40651
40652 2009-06-18  Bruno Haible  <bruno@clisp.org>
40653
40654         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
40655         going to be replaced anyway.
40656
40657 2009-06-18  Bruno Haible  <bruno@clisp.org>
40658
40659         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
40660         in one place.
40661         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
40662         be replaced anyway.
40663
40664 2009-06-18  Eric Blake  <ebb9@byu.net>
40665
40666         hash: check for resize before insertion
40667         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
40668         threshold before insertion, so that a pathological hash_rehash
40669         that fills every bucket can still trigger another rehash.
40670
40671 2009-06-18  Jim Meyering  <meyering@redhat.com>
40672
40673         hash-tests: add a loop around the small tests
40674         * tests/test-hash.c (main): Repeat small tests with selected
40675         small initial table sizes.
40676
40677 2009-06-17  Eric Blake  <ebb9@byu.net>
40678
40679         hash: minor cleanups
40680         * lib/hash.h (hash_entry): Make opaque, by moving...
40681         * lib/hash.c (hash_entry): ...here.
40682         (hash_insert): Clarify restrictions on what can be inserted.
40683         (hash_get_next): Clarify when it is safe to remove an element
40684         during traversal.
40685         (check_tuning): Skip verification when tuning is known safe.
40686         (hash_initialize): Clarify restrictions on tuning.
40687
40688 2009-06-17  Jim Meyering  <jim@meyering.net>
40689         and Eric Blake  <ebb9@byu.net>
40690
40691         hash-tests: new module
40692         * modules/hash-tests: New file.
40693         * tests/test-hash.c: New file.
40694
40695 2009-06-17  Eric Blake  <ebb9@byu.net>
40696
40697         strstr-simple: document new module
40698         * MODULES.html.sh: Document new module.
40699
40700         strstr, strcasestr: replace on platforms with broken memchr
40701         * modules/strstr: Split into...
40702         * modules/strstr-simple: ...new module that does not care about
40703         performance, but does care about glibc bug.
40704         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
40705         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
40706         if platform memchr is broken, per Debian bug 521737.
40707         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
40708         memchr.
40709         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
40710         * doc/posix-functions/strstr.texi (strstr): Document the fix.
40711         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
40712         * modules/mountlist (Depends-on): Add strstr-simple.
40713         * modules/gen-uni-tables (Depends-on): Likewise.
40714         * modules/argz (Depends-on): Add strstr.
40715
40716 2009-06-17  Bruno Haible  <bruno@clisp.org>
40717
40718         * modules/posix_spawn-internal (Depends-on): Add errno.
40719
40720 2009-06-17  Bruno Haible  <bruno@clisp.org>
40721
40722         Define missing ESTALE on Interix 3.5.
40723         * lib/errno.in.h (ESTALE): Assign a value if missing.
40724         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
40725         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
40726         missing.
40727         * doc/posix-headers/errno.texi: Mention the Interix bug.
40728         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
40729
40730 2009-06-15  Eric Blake  <ebb9@byu.net>
40731
40732         memchr, memchr2: add valgrind exception
40733         * lib/memchr.valgrind: New file.
40734         * lib/memchr2.valgrind: New file.
40735         * modules/memchr (Files): Distribute valgrind file.
40736         * modules/memchr2 (Files): Likewise.
40737
40738         docs: memchr is no longer obsolete
40739         * MODULES.html.sh: Move memchr from obsolete to string.h section.
40740         * lib/string.in.h (memchr): Simplify logic.
40741
40742 2009-06-14  Jim Meyering  <meyering@redhat.com>
40743
40744         link-follow: fix the "checking..." message to not mention trailing slash
40745         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
40746         never considered trailing slashes.
40747
40748 2009-06-14  Bruno Haible  <bruno@clisp.org>
40749
40750         * m4/memchr.m4: Mention also the bug on IA-64.
40751         * doc/posix-functions/memchr.texi: Likewise.
40752
40753 2009-06-12  Eric Blake  <ebb9@byu.net>
40754
40755         memchr: detect broken x86_64 and alpha implementations
40756         * modules/memchr-tests (Depends-on): Move mmap detection...
40757         * modules/memchr (Depends-on): ...here.
40758         (configure.ac): Set indicator.
40759         * lib/string.in.h (memchr): Declare replacement.
40760         * modules/string (Makefile.am): Trigger replacement.
40761         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
40762         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
40763         bugs.
40764         * doc/posix-functions/memchr.texi (memchr): Document the bug.
40765         * modules/getpagesize (License): Relax license.
40766
40767 2009-06-11  Bruno Haible  <bruno@clisp.org>
40768
40769         * lib/idpriv.h: Add more references.
40770
40771 2009-06-08  Bruno Haible  <bruno@clisp.org>
40772
40773         Tests for module 'idpriv-droptemp'.
40774         * modules/idpriv-droptemp-tests: New file.
40775         * tests/test-idpriv-droptemp.sh: New file.
40776         * tests/test-idpriv-droptemp.su.sh: New file.
40777         * tests/test-idpriv-droptemp.c: New file.
40778
40779         New module 'idpriv-droptemp'.
40780         * lib/idpriv-droptemp.c: New file.
40781         * modules/idpriv-droptemp: New file.
40782
40783 2009-06-08  Bruno Haible  <bruno@clisp.org>
40784
40785         Tests for module 'idpriv-drop'.
40786         * modules/idpriv-drop-tests: New file.
40787         * tests/test-idpriv-drop.sh: New file.
40788         * tests/test-idpriv-drop.su.sh: New file.
40789         * tests/test-idpriv-drop.c: New file.
40790
40791         New module 'idpriv-drop'.
40792         * lib/idpriv.h: New file.
40793         * lib-idpriv-drop.c: New file.
40794         * m4/idpriv.m4: New file.
40795         * modules/idpriv-drop: New file.
40796
40797 2009-06-08  Bruno Haible  <bruno@clisp.org>
40798
40799         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
40800         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
40801         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
40802         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
40803         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
40804         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
40805         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
40806
40807 2009-06-08  Eric Blake  <ebb9@byu.net>
40808
40809         test-strstr: use memory fence, when possible
40810         * tests/test-strstr.c (main): Use memory fence, in order to be
40811         more likely to trigger Debian bug 521737.
40812         * modules/strstr-tests (Files): Pull in additional files.
40813
40814         memchr: no longer obsolete, for wider field testing
40815         * modules/memchr (Status, Notice): Delete, this module is no
40816         longer obsolete.
40817         * modules/vasnprintf (Depends-on): Add memchr.
40818
40819 2009-06-07  Jim Meyering  <meyering@redhat.com>
40820
40821         hash: declare some functions with the warn_unused_result attribute
40822         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
40823
40824 2009-06-07  Bruno Haible  <bruno@clisp.org>
40825
40826         * tests/test-alignof.c: Don't test int64_t if it does not exist.
40827         Reported by Eric Blake.
40828
40829 2009-06-06  Eric Blake  <ebb9@byu.net>
40830
40831         test-alignof: fix typo with long double
40832         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
40833         compiler error.
40834
40835 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
40836
40837         Escape non-texinfo { and }s.
40838         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
40839         markup error.
40840
40841 2009-06-04  Jim Meyering  <meyering@redhat.com>
40842
40843         gitlog-to-changelog: don't infloop on an empty commit log
40844         * build-aux/gitlog-to-changelog: Warn about an empty log message.
40845         Reported by Boris Petersen <transacid@centerim.org>.
40846
40847 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
40848
40849         version-etc: extend for packagers
40850         Add three new configure options, intended for packagers:
40851           --with-packager="packager name"
40852           --with-packager-version="packager-specific version"
40853           --with-packager-bug-reports="packager bug reporting"
40854         An example with coreutils:
40855           $ ./configure \
40856             --with-packager=Gentoo \
40857             --with-packager-bug-report=http://bugs.gentoo.org/ \
40858             --with-packager-version="patchset 1.6"
40859           $ ./src/ls --version | head -n2
40860           ls (GNU coreutils) 7.1-dirty
40861           Packaged by Gentoo (patchset 1.6)
40862         Note that the bug reporting info via --help doesn't show up because
40863         coreutils uses its own custom emit_bug_reporting_address() implementation
40864         in src/system.h.  If it didn't, it'd look like:
40865           $ ./src/ls --help | tail -n4
40866           Report bugs to <bug-coreutils@gnu.org>.
40867           Report Gentoo bugs to <http://bugs.gentoo.org/>.
40868           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
40869           General help using GNU software: <http://www.gnu.org/gethelp/>.
40870         * lib/version-etc.c: Print new information, if provided.
40871         * m4/version-etc.m4: New file.
40872         * modules/version-etc (Files): Add m4/version-etc.m4.
40873         (configure.ac): Add gl_VERSION_ETC.
40874
40875 2009-05-31  Bruno Haible  <bruno@clisp.org>
40876
40877         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
40878         and 'int64_t'.
40879         * modules/alignof-tests (Dependencies): Add stdint.
40880         Reported by Eric Blake.
40881
40882 2009-05-31  Bruno Haible  <bruno@clisp.org>
40883
40884         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
40885         restriction due to compiler bugs.
40886         Reported by Eric Blake.
40887
40888 2009-05-31  Simon Josefsson  <simon@josefsson.org>
40889             Bruno Haible  <bruno@clisp.org>
40890
40891         Fix test-alignof failure.
40892         * lib/alignof.h (alignof_slot): New macro.
40893         (alignof_type): New macro, with the same semantics as the previous
40894         'alignof'.
40895         (alignof): Alias to alignof_slot.
40896         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
40897         check that the results are usable as constant expressions.
40898
40899 2009-05-31  Bruno Haible  <bruno@clisp.org>
40900
40901         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
40902         * tests/test-memchr.c (main): Check that memchr does not read past the
40903         first occurrence of the byte.
40904         * tests/test-strstr.c (main): Update comment.
40905         Suggested by Eric Blake.
40906
40907 2009-05-30  Bruno Haible  <bruno@clisp.org>
40908
40909         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
40910         detail how to use dumpbin.
40911         Reported by David Byron <dbyron@dbyron.com>.
40912
40913 2009-06-02  Simon Josefsson  <simon@josefsson.org>
40914
40915         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
40916
40917 2009-06-02  Simon Josefsson  <simon@josefsson.org>
40918
40919         * m4/manywarnings.m4: Add GCC 4.4 warnings.
40920
40921 2009-05-28  Bruno Haible  <bruno@clisp.org>
40922
40923         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
40924         build-aux/ files.
40925
40926 2009-05-28  Simon Josefsson  <simon@josefsson.org>
40927
40928         * gnulib-tool (func_import): Transform license on build-aux/ files too.
40929
40930 2009-05-27  Simon Josefsson  <simon@josefsson.org>
40931
40932         * gnulib-tool (sed_transform_main_lib_file)
40933         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
40934         regexps.
40935
40936 2009-05-26  Simon Josefsson  <simon@josefsson.org>
40937
40938         * tests/test-strstr.c: Add another self-test.
40939         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
40940         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
40941
40942 2009-05-23  Bruno Haible  <bruno@clisp.org>
40943
40944         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
40945         change.
40946
40947 2009-05-21  Bruno Haible  <bruno@clisp.org>
40948
40949         Simplify use of mode_t varargs.
40950         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
40951         uses 'mode_t' or 'int'.
40952         * lib/openat.c (openat): Likewise.
40953         * lib/open-safer.c (open_safer): Likewise.
40954         * m4/mode_t.m4: New file.
40955         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
40956         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
40957         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
40958         * modules/open (Files): Add m4/mode_t.m4.
40959         * modules/openat (Files): Likewise.
40960         * modules/fcntl-safer (Files): Likewise.
40961         Suggested by Eric Blake.
40962
40963 2009-05-21  Pádraig Brady  <P@draigbrady.com>
40964
40965         * doc/glibc-functions/fallocate.texi: New file.
40966         * doc/gnulib.texi: Include it.
40967
40968 2009-05-21  Eric Blake  <ebb9@byu.net>
40969             Bruno Haible  <bruno@clisp.org>
40970
40971         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
40972         invocations.
40973         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
40974
40975 2009-05-21  Eric Blake  <ebb9@byu.net>
40976             Bruno Haible  <bruno@clisp.org>
40977
40978         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
40979         include_next. Fix of 2008-11-20 commit.
40980         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
40981         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
40982         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
40983         NEXT_MATH_H.
40984         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
40985         instead of NEXT_MATH_H.
40986
40987 2009-05-21  Bruno Haible  <bruno@clisp.org>
40988
40989         Avoid redefinition warnings for SIZE_MAX.
40990         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
40991         Reported by Simon Josefsson.
40992
40993 2009-05-21  Bruno Haible  <bruno@clisp.org>
40994
40995         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
40996         AC_CACHE_VAL.
40997
40998 2009-05-20  Bruno Haible  <bruno@clisp.org>
40999
41000         Make zeroptr.h work on mingw.
41001         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
41002         mprotect.
41003         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
41004         * modules/memchr2-tests (configure.ac): Likewise.
41005         * modules/memcmp-tests (configure.ac): Likewise.
41006         * modules/memmem-tests (configure.ac): Likewise.
41007         * modules/memrchr-tests (configure.ac): Likewise.
41008         Reported by Simon Josefsson.
41009
41010 2009-05-20  Simon Josefsson  <simon@josefsson.org>
41011
41012         * tests/test-glob.c: Include string.h for strcmp prototype.
41013
41014 2009-05-20  Simon Josefsson  <simon@josefsson.org>
41015
41016         * modules/getdelim (Depends-on): Add explicit stdint, although it
41017         was implicitly already pulled in via realloc-posix.
41018         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
41019
41020 2009-05-20  Simon Josefsson  <simon@josefsson.org>
41021
41022         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
41023         G. Christensen" <tgc@jupiterrise.com>.
41024         * m4/sys_socket_h.m4: Check for sa_family_t.
41025         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
41026         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
41027         * tests/test-sys_socket.c: Check that sa_family_t works.
41028
41029 2009-05-18  Eric Blake  <ebb9@byu.net>
41030
41031         maint.mk: allow gnulib_dir in VPATH build
41032         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
41033
41034 2009-05-15  Jim Meyering  <meyering@redhat.com>
41035
41036         maint.mk: Give gnulib_dir a default definition.
41037         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
41038         Thus, most packages no longer need to specify this variable in cfg.mk
41039
41040 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
41041
41042         rename.m4: fix typos that would make non-mingw cross-configure fail
41043         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
41044
41045 2009-05-13  Eric Blake  <ebb9@byu.net>
41046
41047         mmap-anon: avoid out-of-order autoconf expansion
41048         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
41049         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
41050         * modules/memchr-tests (Depends-on): Add extensions.
41051         * modules/memchr2-tests (Depends-on): Add extensions.
41052         * modules/memcmp-tests (Depends-on): Add extensions.
41053         * modules/memmem-tests (Depends-on): Add extensions.
41054         * modules/memrchr-tests (Depends-on): Add extensions.
41055
41056 2009-05-13  Bruno Haible  <bruno@clisp.org>
41057
41058         Make some tests ISO C 99 compliant.
41059         * tests/zerosize-ptr.h: New file.
41060         * tests/test-memchr.c: Include zerosize-ptr.h.
41061         (main): Use a zero-size object pointer instead of NULL.
41062         * tests/test-memchr2.c: Include zerosize-ptr.h.
41063         (main): Use a zero-size object pointer instead of NULL.
41064         * tests/test-memcmp.c: Include zerosize-ptr.h.
41065         (main): Use a zero-size object pointer instead of NULL.
41066         * tests/test-memmem.c: Include zerosize-ptr.h.
41067         (main): Use a zero-size object pointer instead of NULL.
41068         * tests/test-memrchr.c: Include zerosize-ptr.h.
41069         (main): Use a zero-size object pointer instead of NULL.
41070         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
41071         m4/mmap-anon.m4.
41072         (Depends-on): Add getpagesize.
41073         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
41074         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
41075         m4/mmap-anon.m4.
41076         (Depends-on): Add getpagesize.
41077         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
41078         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
41079         m4/mmap-anon.m4.
41080         (Depends-on): Add getpagesize.
41081         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
41082         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
41083         m4/mmap-anon.m4.
41084         (Depends-on): Add getpagesize.
41085         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
41086         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
41087         m4/mmap-anon.m4.
41088         (Depends-on): Add getpagesize.
41089         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
41090
41091 2009-05-12  Bruno Haible  <bruno@clisp.org>
41092
41093         Tests for module 'alignof'.
41094         * modules/alignof-tests: New file.
41095         * tests/test-alignof.c: New file.
41096
41097 2009-05-12  Bruno Haible  <bruno@clisp.org>
41098
41099         Fix alignof macro.
41100         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
41101         vendor compilers that are always correct.
41102
41103 2009-05-12  Bruno Haible  <bruno@clisp.org>
41104
41105         Make the MAP_ANONYMOUS detection work on HP-UX 11.
41106         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
41107         not whether its fully works.
41108
41109 2009-05-12  Bruno Haible  <bruno@clisp.org>
41110
41111         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
41112
41113 2009-05-12  Jim Meyering  <meyering@redhat.com>
41114
41115         * top/maint.mk: Adjust backslash alignment.
41116
41117 2009-05-11  Simon Josefsson  <simon@josefsson.org>
41118
41119         * top/maint.mk: Make $(srcdir)/build-aux configurable.
41120
41121 2009-05-11  Eric Blake  <ebb9@byu.net>
41122
41123         argp: avoid undefined behavior
41124         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
41125         macros.
41126
41127 2009-05-08  Simon Josefsson  <simon@josefsson.org>
41128
41129         * tests/test-vc-list-files-git.sh: Do git config of user.email and
41130         user.name to prevent git commit from complaining.
41131
41132 2009-05-10  Bruno Haible  <bruno@clisp.org>
41133
41134         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
41135         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
41136         it rewrites every file name only once.
41137         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
41138
41139 2009-05-08  Bruno Haible  <bruno@clisp.org>
41140
41141         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
41142         instead of 'max'.
41143
41144 2009-05-08  Simon Josefsson  <simon@josefsson.org>
41145
41146         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
41147         sockaddr_storage test.
41148
41149 2009-05-07  Simon Josefsson  <simon@josefsson.org>
41150
41151         * modules/sys_socket (Makefile.am): Substitute
41152         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
41153         * m4/sys_socket_h.m4: Check for sockaddr_storage.
41154         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
41155         * tests/test-sys_socket.c: Check sockaddr_storage.
41156
41157 2009-05-08  Bruno Haible  <bruno@clisp.org>
41158
41159         New module 'alignof'.
41160         * lib/alignof.h: New file.
41161         * modules/alignof: New file.
41162
41163 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
41164             Bruno Haible  <bruno@clisp.org>
41165
41166         Fix test-file-has-acl on FreeBSD.
41167         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
41168         mask is implicitly added.
41169         * tests/test-file-has-acl.c: Include <signal.h>.
41170         (main): Terminate the test after 5 seconds.
41171         * modules/acl-tests (configure.ac): Check for alarm function.
41172
41173 2009-05-04  Bruno Haible  <bruno@clisp.org>
41174
41175         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
41176         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
41177         * modules/errno (configure.ac): Drop AC_REQUIRE.
41178         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
41179         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
41180
41181 2009-05-04  Simon Josefsson  <simon@josefsson.org>
41182
41183         * modules/glob-tests: New module.
41184         * tests/test-glob.c: Add.
41185
41186 2009-05-04  Simon Josefsson  <simon@josefsson.org>
41187
41188         * modules/fnmatch-tests: New module.
41189         * tests/test-fnmatch.c: Add.
41190
41191 2009-05-04  Eric Blake  <ebb9@byu.net>
41192
41193         maint: make the new no-submodule-changes rule VPATH-safe
41194         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
41195
41196 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
41197             Bruno Haible  <bruno@clisp.org>
41198
41199         acl: Fix infinite loop on FreeBSD.
41200         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
41201         of return value from acl_get_entry.
41202         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
41203         Likewise.
41204
41205 2009-05-03  Bruno Haible  <bruno@clisp.org>
41206
41207         * lib/acl-internal.h (acl_entries): Clarify return value.
41208         * lib/acl_entries.c (acl_entries): Likewise.
41209
41210 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
41211
41212         Bug fix in acl module.
41213         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
41214
41215 2009-05-03  Bruno Haible  <bruno@clisp.org>
41216
41217         Create gperf-generated file in the source dir, not in the build dir.
41218         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
41219         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
41220         * modules/unicase/locale-language (unicase/locale-languages.h):
41221         Likewise.
41222         * modules/unicase/special-casing (unicase/special-casing-table.h):
41223         Likewise.
41224         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
41225         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
41226         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
41227         Reported by Ralf Wildenhues.
41228
41229 2009-05-03  Bruno Haible  <bruno@clisp.org>
41230
41231         * modules/fnmatch (Description, configure.ac): Taken from
41232         fnmatch-posix.
41233         * modules/fnmatch-posix: Turn into a symbolic reference to the
41234         'fnmatch' module, and deprecate.
41235         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
41236
41237 2009-05-03  Bruno Haible  <bruno@clisp.org>
41238
41239         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
41240         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
41241         Reported by Ralf Wildenhues.
41242
41243 2009-05-04  Simon Josefsson  <simon@josefsson.org>
41244
41245         * m4/fnmatch.m4: Fix fnmatch re-define.
41246
41247 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
41248
41249         priv-set: new module and tests; adapt write-any-file
41250         * lib/priv-set.c: New file.
41251         * lib/priv-set.h: New file.
41252         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
41253         * lib/write-any-file.c: Simplify by using priv-set module.
41254         * m4/priv-set.m4: New file.
41255         * modules/priv-set: New file.
41256         * modules/unlinkdir: Add dependency on priv-set module.
41257         * modules/write-any-file: Likewise.
41258
41259         Tests for module 'priv-set'.
41260         * modules/priv-set-tests: New file.
41261         * tests/test-priv-set.c: New file.
41262
41263 2009-05-03  Jim Meyering  <meyering@redhat.com>
41264             Bruno Haible  <bruno@clisp.org>
41265
41266         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
41267         use the converted UTF-8 variant of the name instead.
41268
41269 2009-05-03  Jim Meyering  <meyering@redhat.com>
41270
41271         tests: tighten some getdate tests
41272         * tests/test-getdate.c (main): Tighten tests: require equality,
41273         not just greater than.  Set TZ envvar to UTC0.
41274
41275 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
41276
41277         getdate: correctly interpret "next monday" when run on a Monday
41278         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
41279         that e.g., "next tues" (when run on a tuesday) results in a date
41280         that is one week in the future, and not today's date.
41281         I.e., add a week when the wday is the same as the current one.
41282         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
41283         and earlier by Martin Bernreuther and Jan Minář.
41284         * tests/test-getdate.c (main): Check that "next DAY" is always in
41285         the future and that "last DAY" is always in the past.
41286
41287 2009-05-02  Jim Meyering  <meyering@redhat.com>
41288
41289         build: ensure that a release build fails when a submodule is unclean
41290         * top/maint.mk (no-submodule-changes): New rule.
41291         (alpha beta major): Depend on it.
41292
41293 2009-05-02  Bruno Haible  <bruno@clisp.org>
41294
41295         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
41296         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
41297         shell variable gl_fnmatch_required to detect which variant is
41298         requested.
41299         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
41300         gl_FUNC_FNMATCH_POSIX.
41301         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
41302         exclude fnmatch-posix.
41303
41304 2009-05-02  Bruno Haible  <bruno@clisp.org>
41305
41306         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
41307         * modules/mbsrtowcs (License): Change to LGPLv2+.
41308         * modules/strnlen1 (License): Likewise.
41309         Reported by Simon Josefsson.
41310
41311 2009-05-02  Bruno Haible  <bruno@clisp.org>
41312
41313         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
41314         "cross".
41315         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
41316         gnulib-tool was called with option --source-base=lib.
41317
41318 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41319
41320         Use automake *-local hooks without commands, for extensibility.
41321         * modules/localcharset (Makefile.am): Rename install-exec-local
41322         rule to install-exec-localcharset, and make it a prerequisite of
41323         install-exec-local.  Likewise, rename the uninstall-local rule to
41324         uninstall-localcharset, and make it a prerequisite of the former.
41325
41326 2009-05-01  Bruno Haible  <bruno@clisp.org>
41327
41328         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
41329         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
41330         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
41331         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
41332         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
41333         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
41334         m4/locale-zh.m4, m4/codeset.m4.
41335
41336         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
41337         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
41338         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
41339         m4/locale-zh.m4.
41340
41341         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
41342         REPLACE_WCRTOMB if mbstate_t must be replaced.
41343         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
41344         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
41345
41346 2009-05-01  Bruno Haible  <bruno@clisp.org>
41347
41348         Avoid compiler warnings when redefining macros defined by <libintl.h>.
41349         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
41350         dngettext, dcngettext, textdomain, bindtextdomain,
41351         bind_textdomain_codeset): Undefine before redefining.
41352
41353 2009-04-30  Bruno Haible  <bruno@clisp.org>
41354
41355         Fix bug introduced on 2009-04-25.
41356         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
41357         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
41358         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
41359         is defined.
41360         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
41361         is defined.
41362         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
41363         is defined.
41364         Reported by Elbert_Pol <elbert.pol@gmail.com>.
41365
41366 2009-04-28  Bruno Haible  <bruno@clisp.org>
41367
41368         Comment tweaks.
41369         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
41370         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
41371         * lib/unicase.h (u*_casexfrm): Likewise.
41372         Reported by Paolo Bonzini.
41373
41374 2009-04-28  Bruno Haible  <bruno@clisp.org>
41375
41376         Fix a compilation error.
41377         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
41378         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
41379         Reported by Jim Meyering.
41380
41381 2009-04-27  Bruno Haible  <bruno@clisp.org>
41382
41383         New module 'libunistring'.
41384         * modules/libunistring: New file.
41385         * m4/libunistring.m4: New file.
41386         * MODULES.html.sh (Unicode string functions): Add it.
41387
41388 2009-04-27  Eric Blake  <ebb9@byu.net>
41389
41390         maint.mk: allow package-specific header to provide <config.h>
41391         * top/maint.mk (sc_require_config_h): New variable.
41392         (sc_require_config_h, sc_require_config_h_first): Use it.
41393
41394 2009-04-27  Simon Josefsson  <simon@josefsson.org>
41395
41396         * top/maint.mk (sc_avoid_if_before_free): Except
41397         useless-if-before-free script.
41398
41399 2009-04-27  Eric Blake  <ebb9@byu.net>
41400
41401         maintainer-makefile: depend on all required helper scripts
41402         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
41403         useless-if-before-free.
41404         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
41405         version, rather than assuming gnulib checkout is available.
41406         Reported by Simen Josefsson.
41407
41408 2009-04-26  Bruno Haible  <bruno@clisp.org>
41409
41410         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
41411         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
41412         "../" or "..".
41413
41414 2009-04-26  Bruno Haible  <bruno@clisp.org>
41415
41416         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
41417         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
41418         AC_LIB_HAVE_LINKFLAGS.
41419
41420 2009-04-26  Bruno Haible  <bruno@clisp.org>
41421
41422         Simplify calling convention of u*_conv_from_encoding.
41423         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
41424         u32_conv_from_encoding): Expect a resultbuf argument and return the
41425         result directly as a pointer.
41426         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
41427         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
41428         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
41429         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
41430         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
41431         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
41432         Update.
41433         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
41434         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
41435         * lib/vasnprintf.c (VASNPRINTF): Update.
41436         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
41437         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
41438         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
41439         * NEWS: Mention the change.
41440
41441 2009-04-26  Bruno Haible  <bruno@clisp.org>
41442
41443         Simplify calling convention of u*_conv_to_encoding.
41444         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
41445         u32_conv_to_encoding): Expect a resultbuf argument and return the
41446         result directly as a pointer.
41447         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
41448         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
41449         freeing scaled_offsets if mem_iconveha failed.
41450         * lib/unicase/u-casexfrm.h (FUNC): Update.
41451         * lib/uninorm/u-normxfrm.h (FUNC): Update.
41452         * lib/vasnprintf.c (VASNPRINTF): Update.
41453         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
41454         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
41455         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
41456         * NEWS: Mention the change.
41457
41458 2009-04-26  Bruno Haible  <bruno@clisp.org>
41459
41460         Avoid test failures on AIX and OSF/1.
41461         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
41462         malloc(0).
41463         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
41464         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
41465         Likewise.
41466         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
41467         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
41468         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
41469         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
41470         * doc/posix-functions/malloc.texi: Document the portability problem
41471         related to malloc(0).
41472
41473 2009-04-26  Bruno Haible  <bruno@clisp.org>
41474
41475         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
41476         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
41477         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
41478
41479 2009-04-25  Bruno Haible  <bruno@clisp.org>
41480
41481         Avoid link error when creating a namespace clean library.
41482         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
41483         as macro with arguments if already defined as an alias.
41484         * lib/signbitf.c (gl_signbitf): Don't undefine.
41485         * lib/signbitd.c (gl_signbitd): Don't undefine.
41486         * lib/signbitl.c (gl_signbitl): Don't undefine.
41487
41488 2009-04-25  Jim Meyering  <meyering@redhat.com>
41489
41490         vc-list-files: fix another quoting bug
41491         * build-aux/vc-list-files: Avoid sed backslash expansion
41492         of pathological directory names.
41493
41494 2009-04-25  Eric Blake  <ebb9@byu.net>
41495
41496         vc-list-files: fix shell quoting error
41497         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
41498         timestamp.
41499
41500 2009-04-25  Jim Meyering  <meyering@redhat.com>
41501
41502         vc-list-files: restore lost functionality with subdir argument
41503         * build-aux/vc-list-files: When given a non-"." sub-directory
41504         argument, substitute the $dir/ prefix back onto each resulting name.
41505         Otherwise, coreutils' root_tests check would fail.
41506
41507 2009-04-24  Eric Blake  <ebb9@byu.net>
41508
41509         vc-list-files: ignore git symlinks
41510         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
41511         than ls-files, to ignore git symlinks.
41512
41513         maint.mk: import improvements from m4
41514         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
41515         (move_if_change): Delete unused macro.
41516         (news-date-check, vc-diff-check): Support VPATH builds.
41517         (announcement): Likewise.  Split --bootstrap-tools list...
41518         (boostrap-tools): ...into separate list, which can be overridden
41519         in cfg.mk.
41520         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
41521         requiring dependency on useless-if-before-free module.
41522         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
41523         Support VPATH builds.
41524
41525 2009-04-24  Jim Meyering  <meyering@redhat.com>
41526
41527         maint.mk: remove coreutils-specific rules and variables
41528         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
41529         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
41530         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
41531
41532         maint.mk: remove obsolete rule
41533         * top/maint.mk (rel-check): Remove rule.
41534         (WGET, WGETFLAGS): Remove now-unused variables.
41535
41536 2009-04-24  Simon Josefsson  <simon@josefsson.org>
41537
41538         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
41539         consistency.
41540
41541         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
41542         '$(PATH_SEPARATOR)' instead of ':'.
41543
41544 2009-04-24  Simon Josefsson  <simon@josefsson.org>
41545
41546         * lib/getopt1.c (main): Use 'const' for static array.
41547
41548 2009-04-24  Simon Josefsson  <simon@josefsson.org>
41549
41550         * top/maint.mk: Sync with coreutils.
41551         * NEWS: Explain incompatibilities.
41552
41553 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41554             Bruno Haible  <bruno@clisp.org>
41555
41556         Fix cross-compilation results.
41557         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
41558         statement, as third argument of AC_TRY_RUN.
41559         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
41560         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
41561         Likewise.
41562         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
41563         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
41564         Likewise.
41565         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
41566         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
41567         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
41568
41569 2009-04-20  Bruno Haible  <bruno@clisp.org>
41570
41571         Avoid test failure on mingw.
41572         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
41573
41574 2009-04-20  Bruno Haible  <bruno@clisp.org>
41575
41576         Avoid compilation error on mingw.
41577         * modules/localename-tests (Depends-on): Add locale.
41578
41579 2009-04-19  Bruno Haible  <bruno@clisp.org>
41580
41581         Support for building a shared library on Windows platforms.
41582         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
41583         (main): Test the presence of UNINORM_NFC here.
41584         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
41585         (main): Test the presence of UNINORM_NFD here.
41586         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
41587         (main): Test the presence of UNINORM_NFKC here.
41588         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
41589         (main): Test the presence of UNINORM_NFKD here.
41590
41591 2009-04-19  Bruno Haible  <bruno@clisp.org>
41592
41593         Avoid a compiler warning.
41594         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
41595         Change type of variable 'sequence'.
41596
41597 2009-04-19  Bruno Haible  <bruno@clisp.org>
41598
41599         * modules/configmake (Makefile.am): When the contents of configmake.h
41600         does not change, arrange to preserve its modification time.
41601
41602 2009-04-17  Simon Josefsson  <simon@josefsson.org>
41603
41604         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
41605         gettext domain.
41606
41607 2009-04-16  Jim Meyering  <meyering@redhat.com>
41608
41609         useless-if-before-free: improve conversion code
41610         * build-aux/useless-if-before-free: Adjust code-in-comment to match
41611         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
41612
41613 2009-04-14  Bruno Haible  <bruno@clisp.org>
41614
41615         * modules/fcntl (Depends-on): Add extensions.
41616         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
41617
41618 2009-04-12  Ben Pfaff  <blp@gnu.org>
41619
41620         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
41621         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
41622
41623 2009-03-20  Ben Pfaff  <blp@gnu.org>
41624
41625         Make rename replace existing destinations on Windows.
41626         * m4/rename.m4: Add test for Mingw.
41627         * lib/rename.c: Add rename replacement that uses MoveFileEx with
41628         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
41629         * doc/posix-functions/rename.texi: Document.
41630
41631 2009-04-10  Bruno Haible  <bruno@clisp.org>
41632
41633         New include file "iconveh.h".
41634         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
41635         * lib/striconveh.h: Include it.
41636         (enum iconv_ilseq_handler): Remove definition.
41637         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
41638         striconveh.h.
41639         * lib/striconveha.c: Include striconveh.h.
41640         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
41641         * modules/striconveh (Files): Add lib/iconveh.h.
41642         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
41643         lib/striconveh.h.
41644
41645 2009-04-10  Bruno Haible  <bruno@clisp.org>
41646
41647         * lib/uniconv.h: Update comment.
41648
41649 2009-04-10  Bruno Haible  <bruno@clisp.org>
41650
41651         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
41652         always.
41653         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
41654         * lib/unistr/u16-mbtouc-aux.c: Likewise.
41655         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
41656         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
41657         "unistring-notinline.h", so that the function gets defined always.
41658         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
41659         * lib/unistr/u8-uctomb.c: Likewise.
41660         * lib/unistr/u16-mbtouc.c: Likewise.
41661         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
41662         * lib/unistr/u16-uctomb.c: Likewise.
41663         * lib/unistr/u32-mbtouc.c: Likewise.
41664         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
41665         * lib/unistr/u32-uctomb.c: Likewise.
41666
41667 2009-04-10  Bruno Haible  <bruno@clisp.org>
41668
41669         Mark 'utime' obsolete.
41670         * modules/utime (Status, Notice): New sections.
41671         Suggested by Jim Meyering.
41672
41673         Fix cross-compile guess for utime test.
41674         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
41675         autoconf.
41676         * doc/posix-functions/utime.texi: Give more precisions.
41677         Reported by Jan <ipif@ymail.com>.
41678
41679 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
41680
41681         filevercmp: correct today's change
41682         * lib/filevercmp.c: Also handle coreutils' test inputs.
41683         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
41684
41685         Fix regression in 'filevercmp' module. Thanks Sven Joachim
41686         for reporting it.
41687         * lib/filevercmp.c: Special handle for "", "." and "..".
41688         * tests/test-filevercmp.c: Enlarge the set suite.
41689
41690 2009-04-07  Jim Meyering  <meyering@redhat.com>
41691
41692         useless-if-before-free: show how to remove braced useless free, too
41693         * build-aux/useless-if-before-free: still only in a comment, though.
41694
41695 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
41696
41697         maint.mk: import changes to syntax-check macros from coreutils
41698         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
41699         Use them in the relevant macros.
41700
41701 2009-04-06  Bruno Haible  <bruno@clisp.org>
41702
41703         Fix unportable use of bit-fields.
41704         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
41705         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
41706         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
41707
41708 2009-04-06  Bruno Haible  <bruno@clisp.org>
41709
41710         Avoid test failures on AIX and OSF/1.
41711         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
41712         that malloc(0) = NULL.
41713         * tests/unicase/test-u8-tolower.c (check): Likewise.
41714         * tests/unicase/test-u8-totitle.c (check): Likewise.
41715         * tests/unicase/test-u8-toupper.c (check): Likewise.
41716         * tests/unicase/test-u16-casefold.c (check): Likewise.
41717         * tests/unicase/test-u16-tolower.c (check): Likewise.
41718         * tests/unicase/test-u16-totitle.c (check): Likewise.
41719         * tests/unicase/test-u16-toupper.c (check): Likewise.
41720         * tests/unicase/test-u32-casefold.c (check): Likewise.
41721         * tests/unicase/test-u32-tolower.c (check): Likewise.
41722         * tests/unicase/test-u32-totitle.c (check): Likewise.
41723         * tests/unicase/test-u32-toupper.c (check): Likewise.
41724         * tests/uninorm/test-u8-nfc.c (check): Likewise.
41725         * tests/uninorm/test-u8-nfd.c (check): Likewise.
41726         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
41727         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
41728         * tests/uninorm/test-u16-nfc.c (check): Likewise.
41729         * tests/uninorm/test-u16-nfd.c (check): Likewise.
41730         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
41731         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
41732         * tests/uninorm/test-u32-nfc.c (check): Likewise.
41733         * tests/uninorm/test-u32-nfd.c (check): Likewise.
41734         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
41735         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
41736
41737 2009-04-05  Bruno Haible  <bruno@clisp.org>
41738
41739         Work around an autoconf limitation.
41740         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
41741         comment line if it would be longer than 3 KB.
41742
41743 2009-04-05  Bruno Haible  <bruno@clisp.org>
41744
41745         Avoid test failure with libiconv-1.13.
41746         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
41747         of the expected test results.
41748
41749 2009-04-05  Bruno Haible  <bruno@clisp.org>
41750
41751         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
41752         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
41753         that it should be installed.
41754
41755 2009-04-05  Bruno Haible  <bruno@clisp.org>
41756
41757         * gnulib-tool: New option --copy-file.
41758         (func_usage): Document it.
41759         (func_dest_tmpfilename): Moved out of func_import.
41760         (func_add_file, func_update_file): New functions, extracted from
41761         func_import.
41762         (func_import): Update.
41763
41764 2009-04-05  Karl Berry  <karl@gnu.org>
41765
41766         * README: prominently mention gnulib-tool.
41767         Rearrange sections so getting the code is near the top.
41768
41769 2009-04-05  Bruno Haible  <bruno@clisp.org>
41770
41771         * lib/unicase.h: Mention u*_cmp2.
41772         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
41773         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
41774         * lib/unicase/ulc-casecmp.c: Likewise.
41775         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
41776         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
41777         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
41778         unistr/u8-cmp.
41779         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
41780         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
41781         unistr/u16-cmp.
41782         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
41783         unistr/u32-cmp.
41784
41785         * lib/uninorm.h: Mention u*_cmp2.
41786         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
41787         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
41788         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
41789         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
41790         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
41791         unistr/u8-cmp.
41792         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
41793         unistr/u16-cmp.
41794         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
41795         unistr/u32-cmp.
41796
41797         New module 'unistr/u32-cmp2'.
41798         * lib/unistr/u32-cmp2.c: New file.
41799         * modules/unistr/u32-cmp2: New file.
41800
41801         New module 'unistr/u16-cmp2'.
41802         * lib/unistr/u16-cmp2.c: New file.
41803         * modules/unistr/u16-cmp2: New file.
41804
41805         New module 'unistr/u8-cmp2'.
41806         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
41807         * lib/unistr/u8-cmp2.c: New file.
41808         * lib/unistr/u-cmp2.h: New file.
41809         * modules/unistr/u8-cmp2: New file.
41810
41811 2009-04-05  Bruno Haible  <bruno@clisp.org>
41812
41813         * lib/unictype.h (uc_property_is_valid): New macro.
41814         * tests/unictype/test-pr_byname.c (main): Use it.
41815
41816         * lib/unistr.h: Doc fixes.
41817         * lib/uniconv.h: Doc fixes.
41818         * lib/unictype.h: Doc fixes.
41819
41820 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
41821
41822         Port coreutils 7.2 to Solaris 8.
41823
41824         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
41825         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
41826         for Solaris 8.  This is a bit of a hack, as it means it's the
41827         caller's responsibility to add -lnsl if needed, but most likely it
41828         won't be needed since only getaddrinfo uses this and getaddrinfo
41829         isn't needed on Solaris 8.
41830
41831         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
41832         problem to Solaris 8 encountered with coreutils 7.2, which
41833         resulted in a message "fnmatch.c:292: warning: passing argument 4
41834         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
41835         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
41836
41837 2009-04-03  Simon Josefsson  <simon@josefsson.org>
41838
41839         * m4/ld-version-script.m4: Add FIXME comment.
41840
41841 2009-04-02  Simon Josefsson  <simon@josefsson.org>
41842
41843         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
41844         SOVERSION variable.
41845
41846 2009-04-02  Bruno Haible  <bruno@clisp.org>
41847
41848         * Makefile (info, html, dvi, pdf): Combine the rules.
41849         Suggested by Jim Meyering.
41850
41851 2009-04-01  Bruno Haible  <bruno@clisp.org>
41852
41853         * Makefile (info, html, dvi, pdf): New targets.
41854         Reported by Reuben Thomas <rrt@sc3d.org>.
41855
41856 2009-04-01  Bruno Haible  <bruno@clisp.org>
41857
41858         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
41859         can be put into PATH.
41860         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
41861
41862 2009-04-01  Bruno Haible  <bruno@clisp.org>
41863
41864         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
41865
41866 2009-04-01  Bruno Haible  <bruno@clisp.org>
41867
41868         Rename module 'visibility'.
41869         * modules/lib-symbol-visibility: Renamed from modules/visibility.
41870         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
41871         * doc/gnulib.texi: Update.
41872         * MODULES.html.sh (Misc): Update.
41873         * NEWS: Mention the change.
41874
41875 2009-04-01  Simon Josefsson  <simon@josefsson.org>
41876
41877         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
41878         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
41879         Eric Blake <ebb9@byu.net> for review.
41880         * MODULES.html.sh: Add lib-msvc-compat.
41881         * doc/gnulib.texi: Link to new section.
41882         * m4/ld-output-def.m4: New file.
41883         * doc/ld-output-def.texi: New file.
41884
41885 2009-04-01  Simon Josefsson  <simon@josefsson.org>
41886
41887         Rename ld-version-script to lib-symbol-versions.  Suggested by
41888         Bruno Haible <bruno@clisp.org>.
41889         * modules/ld-version-script: Renamed to lib-symbol-versions.
41890         * doc/ld-version-script.texi: Fix module name.
41891         * MODULES.html.sh: Add lib-symbol-versions.
41892
41893 2009-03-31  Simon Josefsson  <simon@josefsson.org>
41894
41895         * modules/u64-tests: New file.
41896         * tests/test-u64.c: New file.
41897
41898 2009-03-04  Simon Josefsson  <simon@josefsson.org>
41899
41900         * MODULES.html.sh: Mention u64.
41901         * modules/u64: New module.
41902         * modules/crypto/sha512: Depend on u64 module instead of providing
41903         u64.h.
41904
41905 2009-03-27  Eric Blake  <ebb9@byu.net>
41906
41907         test-strerror: make debugging EAI_SYSTEM easier
41908         * modules/getaddrinfo-tests (Depends-on): Add strerror.
41909         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
41910         failure was EAI_SYSTEM.
41911
41912 2009-03-25  Bruno Haible  <bruno@clisp.org>
41913
41914         Fix a problem with --enable-relocatable on Solaris 7.
41915         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
41916         since 2008-02-24.
41917
41918 2009-03-25  Eric Blake  <ebb9@byu.net>
41919
41920         test-sockets: avoid gcc warning
41921         * tests/test-sockets.c (main): Silence compiler warning.
41922
41923 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
41924
41925         New modules nproc, pthread, contributed by Glen Lenker.
41926
41927         * MODULES.html.sh: Add pthread, nproc.
41928         * lib/nproc.c: New file.
41929         * lib/nproc.h: New file.
41930         * lib/pthread.in.h: New file.
41931         * m4/pthread.m4: New file.
41932         * modules/nproc: New file.
41933         * modules/pthread: New file.
41934
41935 2009-03-24  Simon Josefsson  <simon@josefsson.org>
41936
41937         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
41938         New variable.
41939
41940 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
41941
41942         filevercmp: handle simple~ and numbered.~3~ backup suffixes
41943         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
41944         * tests/test-filevercmp.c: Add tests for backup suffixes.
41945
41946 2009-03-24  Simon Josefsson  <simon@josefsson.org>
41947
41948         * modules/stdlib (Depends-on): Add stdint, needed when defining
41949         struct random_data on, for example, HP-UX 10.20.  Reported by
41950         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41951
41952 2009-03-24  Simon Josefsson  <simon@josefsson.org>
41953
41954         * lib/readline.c (readline): Call fflush on stdout after printing
41955         prompt.
41956
41957 2009-03-20  Bruno Haible  <bruno@clisp.org>
41958
41959         Remove dependency from 'close' module to -lws2_32 on native Windows.
41960         * lib/close-hook.h: New file.
41961         * lib/close-hook.c: New file.
41962         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
41963         w32sock.h.
41964         (_gl_close_fd_maybe_socket): Remove function.
41965         (rpl_close): Invoke execute_all_close_hooks instead of
41966         _gl_close_fd_maybe_socket.
41967         * lib/sockets.c: Include close-hook.h, w32sock.h.
41968         (close_fd_maybe_socket): New function, essentially from lib/close.c.
41969         (close_sockets_hook): New variable.
41970         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
41971         (gl_sockets_cleanup): Unregister it.
41972         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
41973         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
41974         * modules/close-hook: New file.
41975         * modules/close (Files): Remove lib/w32sock.h.
41976         (Depends-on): Add close-hook.
41977         (Link): Remove section.
41978         * modules/sockets (Files): Add lib/w32sock.h.
41979         (Depends-on): Add close-hook.
41980         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
41981         invocation.
41982         * NEWS: Mention that LIB_CLOSE is gone.
41983
41984 2009-03-23  Eric Blake  <ebb9@byu.net>
41985
41986         signal-tests: test previous patch
41987         * tests/test-signal.c: New file.
41988         * modules/signal-tests: Likewise.
41989
41990         signal.h: always support 'volatile sig_atomic_t'
41991         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
41992         (gl_SIGNAL_H_DEFAULTS): Add a default.
41993         * modules/signal (Makefile.am): Substitute if needed.
41994         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
41995         users can blindly add volatile.
41996         * doc/posix-headers/signal.texi (signal.h): Document it.
41997         Reported by Matthew Woehlke.
41998
41999 2009-03-23  Jim Meyering  <meyering@redhat.com>
42000
42001         pathmax: PATH_MAX: use pathconf only when available
42002         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
42003         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
42004         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
42005         This avoids a link failure in a PSP cross-compilation environment
42006         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
42007
42008         * lib/vasnprintf.c (divide): Fix typo in comment.
42009
42010 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42011
42012         * gnulib-tool (func_filter_filelist): Fix comment.
42013
42014 2009-03-20  Bruno Haible  <bruno@clisp.org>
42015
42016         Make sockets.h self-contained.
42017         * lib/sockets.c: Include sockets.h first.
42018         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
42019
42020 2009-03-19  Eric Blake  <ebb9@byu.net>
42021
42022         doc: mention more functions added in cygwin 1.7.0
42023         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
42024         addition.
42025         * doc/posix-functions/log2f.texi: Likewise.
42026
42027 2009-03-19  Jim Meyering  <meyering@redhat.com>
42028
42029         fsusage: avoid syntax error due to statement-before-declaration
42030         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
42031         after all declarations.  Reported by Matthew Woehlke in
42032         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
42033
42034 2009-03-18  Eric Blake  <ebb9@byu.net>
42035
42036         build-aux/compile: sync from automake
42037         * build-aux/compile: New file, from automake.
42038         * config/srclist.txt: Mention build-aux/compile.
42039
42040 2009-03-17  Bruno Haible  <bruno@clisp.org>
42041
42042         * lib/git-merge-changelog.c: Fix typo in comment.
42043         Reported by Reuben Thomas <rrt@sc3d.org>.
42044
42045 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
42046
42047         * m4/regex.m4: update and improve help for
42048         --without-included-regex.
42049
42050 2009-03-17  Simon Josefsson  <simon@josefsson.org>
42051
42052         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
42053         failure on missing include files.
42054
42055 2009-03-17  Eric Blake  <ebb9@byu.net>
42056
42057         doc: mention more functions added in cygwin 1.7.0
42058         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
42059         addition.
42060         * doc/posix-functions/fwscanf.texi: Likewise.
42061         * doc/posix-functions/swprintf.texi: Likewise.
42062         * doc/posix-functions/swscanf.texi: Likewise.
42063         * doc/posix-functions/vfwprintf.texi: Likewise.
42064         * doc/posix-functions/vfwscanf.texi: Likewise.
42065         * doc/posix-functions/vswprintf.texi: Likewise.
42066         * doc/posix-functions/vswscanf.texi: Likewise.
42067         * doc/posix-functions/vwprintf.texi: Likewise.
42068         * doc/posix-functions/vwscanf.texi: Likewise.
42069         * doc/posix-functions/wcscasecmp.texi: Likewise.
42070         * doc/posix-functions/wcsdup.texi: Likewise.
42071         * doc/posix-functions/wcsftime.texi: Likewise.
42072         * doc/posix-functions/wcsncasecmp.texi: Likewise.
42073         * doc/posix-functions/wprintf.texi: Likewise.
42074         * doc/posix-functions/wscanf.texi: Likewise.
42075         * doc/glibc-functions/gethostbyname2.texi: Likewise.
42076
42077 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42078
42079         maint.mk: really add $(AM_MAKEFLAGS)
42080         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
42081         was inadvertently omitted in the last commit.
42082         Spotted by Bruno Haible.
42083
42084         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
42085         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
42086         $(AM_MAKEFLAGS)' rather than plain `make'.
42087
42088         gnulib-tool: execute $MAKE not make
42089         * gnulib-tool: Default $MAKE to 'make'.
42090         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
42091         than make.  Initialize $MAKE in the do-autobuild script.
42092
42093         gnulib-tool: use $MAKE not make in generated files
42094         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
42095         make, in generated files.  Initialize $MAKE in the do-autobuild
42096         script.
42097
42098         * top/GNUmakefile (_have-git-version-gen): Fix typo.
42099
42100         GNUmakefile: disable parallelism only for multiple, recursive targets
42101         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
42102         additions in the Makefile.
42103         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
42104         by Automake.
42105         (.NOTPARALLEL): Only disable parallel builds if multiple targets
42106         are listed on the command line and at least one of them is
42107         listed in $(ALL_RECURSIVE_TARGETS).
42108
42109 2009-03-14  Bruno Haible  <bruno@clisp.org>
42110
42111         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
42112         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
42113         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
42114         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
42115         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
42116         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
42117         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
42118         unistr/u8-uctomb.
42119         * modules/unistr/u8-strchr (Depends-on): Likewise.
42120         * modules/unistr/u8-strrchr (Depends-on): Likewise.
42121         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
42122         unistr/u16-uctomb.
42123         * modules/unistr/u16-strchr (Depends-on): Likewise.
42124         * modules/unistr/u16-strrchr (Depends-on): Likewise.
42125
42126 2009-03-12  Bruno Haible  <bruno@clisp.org>
42127
42128         Work around select() bug on Interix 3.5.
42129         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
42130         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
42131         * m4/select.m4: New file.
42132         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
42133         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
42134         * modules/select (Files): Add m4/select.m4.
42135         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
42136         * modules/nanosleep (Depends-on): Add select.
42137         * modules/poll (Depends-on): Likewise.
42138         * doc/posix-functions/select.texi: Mention the Interix bug.
42139         Reported by Markus Duft <mduft@gentoo.org>.
42140
42141         * lib/select.c: Renamed from lib/winsock-select.c.
42142         * modules/select (Files): Add lib/select.c, remove
42143         lib/winsock-select.c.
42144         (configure.ac): Update.
42145
42146 2009-03-12  Jim Meyering  <meyering@redhat.com>
42147
42148         avoid gcc warnings about unused macro definitions
42149         * lib/readtokens.c (STREQ): Remove unused definition.
42150         * lib/xmalloc.c (SIZE_MAX): Likewise.
42151         * lib/openat-die.c (N_): Likewise.
42152         * lib/mountlist.c (SIZE_MAX): Remove definition.
42153         Instead, include <stdint.h>.
42154         * lib/readutmp.c: Likewise.
42155         * modules/readutmp (Depends-on): Add stdint.
42156         * modules/mountlist (Depends-on): Add stdint.
42157         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
42158
42159 2009-03-10  Bruno Haible  <bruno@clisp.org>
42160
42161         Tests for module 'mbmemcasecoll'.
42162         * modules/mbmemcasecoll-tests: New file.
42163         * tests/test-mbmemcasecoll1.sh: New file.
42164         * tests/test-mbmemcasecoll2.sh: New file.
42165         * tests/test-mbmemcasecoll3.sh: New file.
42166         * tests/test-mbmemcasecoll.c: New file.
42167
42168         New module 'mbmemcasecoll'.
42169         * lib/mbmemcasecoll.h: New file.
42170         * lib/mbmemcasecoll.c: New file.
42171         * modules/mbmemcasecoll: New file.
42172
42173         * tests/test-mbmemcasecmp.h: New file, extracted from
42174         tests/test-mbmemcasecmp.c.
42175         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
42176         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
42177         (main): Update.
42178         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
42179
42180 2009-03-09  Bruno Haible  <bruno@clisp.org>
42181
42182         Tests for module 'mbmemcasecmp'.
42183         * modules/mbmemcasecmp-tests: New file.
42184         * tests/test-mbmemcasecmp1.sh: New file.
42185         * tests/test-mbmemcasecmp2.sh: New file.
42186         * tests/test-mbmemcasecmp3.sh: New file.
42187         * tests/test-mbmemcasecmp.c: New file.
42188
42189         New module 'mbmemcasecmp'.
42190         * lib/mbmemcasecmp.h: New file.
42191         * lib/mbmemcasecmp.c: New file.
42192         * modules/mbmemcasecmp: New file.
42193
42194 2009-03-09  Bruno Haible  <bruno@clisp.org>
42195
42196         Tests for module 'unicase/ulc-casecoll'.
42197         * modules/unicase/ulc-casecoll-tests: New file.
42198         * tests/unicase/test-ulc-casecoll1.sh: New file.
42199         * tests/unicase/test-ulc-casecoll2.sh: New file.
42200         * tests/unicase/test-ulc-casecoll.c: New file.
42201
42202         New module 'unicase/ulc-casecoll'.
42203         * lib/unicase.h (ulc_casecoll): New declaration.
42204         * lib/unicase/ulc-casecoll.c: New file.
42205         * modules/unicase/ulc-casecoll: New file.
42206
42207         New module 'unicase/ulc-casexfrm'.
42208         * lib/unicase.h (ulc_casexfrm): New declaration.
42209         * lib/unicase/ulc-casexfrm.c: New file.
42210         * modules/unicase/ulc-casexfrm: New file.
42211
42212 2009-03-09  Bruno Haible  <bruno@clisp.org>
42213
42214         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
42215         invocations.
42216
42217         * m4/mbscasecmp.m4: Remove file.
42218         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
42219         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
42220
42221         * m4/mbscasestr.m4: Remove file.
42222         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
42223         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
42224
42225         * m4/mbschr.m4: Remove file.
42226         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
42227         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
42228
42229         * m4/mbscspn.m4: Remove file.
42230         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
42231         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
42232
42233         * m4/mbslen.m4: Remove file.
42234         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
42235         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
42236
42237         * m4/mbsncasecmp.m4: Remove file.
42238         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
42239         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
42240
42241         * m4/mbsnlen.m4: Remove file.
42242         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
42243         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
42244
42245         * m4/mbspbrk.m4: Remove file.
42246         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
42247         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
42248
42249         * m4/mbspcasecmp.m4: Remove file.
42250         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
42251         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
42252
42253         * m4/mbsrchr.m4: Remove file.
42254         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
42255         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
42256
42257         * m4/mbssep.m4: Remove file.
42258         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
42259         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
42260
42261         * m4/mbsspn.m4: Remove file.
42262         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
42263         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
42264
42265         * m4/mbsstr.m4: Remove file.
42266         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
42267         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
42268
42269         * m4/mbstok_r.m4: Remove file.
42270         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
42271         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
42272
42273         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
42274
42275         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
42276         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
42277
42278         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
42279
42280 2009-03-08  Bruno Haible  <bruno@clisp.org>
42281
42282         Tests for module 'unicase/ulc-casecmp'.
42283         * modules/unicase/ulc-casecmp-tests: New file.
42284         * tests/unicase/test-ulc-casecmp1.sh: New file.
42285         * tests/unicase/test-ulc-casecmp2.sh: New file.
42286         * tests/unicase/test-ulc-casecmp.c: New file.
42287
42288         New module 'unicase/ulc-casecmp'.
42289         * lib/unicase.h (ulc_casecmp): New declaration.
42290         * lib/unicase/ulc-casecmp.c: New file.
42291         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
42292         'const SRC_UNIT *'.
42293         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
42294         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
42295         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
42296         * modules/unicase/ulc-casecmp: New file.
42297
42298         Tests for module 'unicase/u32-is-cased'.
42299         * modules/unicase/u32-is-cased-tests: New file.
42300         * tests/unicase/test-u32-is-cased.c: New file.
42301
42302         Tests for module 'unicase/u16-is-cased'.
42303         * modules/unicase/u16-is-cased-tests: New file.
42304         * tests/unicase/test-u16-is-cased.c: New file.
42305
42306         Tests for module 'unicase/u8-is-cased'.
42307         * modules/unicase/u8-is-cased-tests: New file.
42308         * tests/unicase/test-u8-is-cased.c: New file.
42309         * tests/unicase/test-is-cased.h: New file.
42310
42311         New module 'unicase/u32-is-cased'.
42312         * lib/unicase/u32-is-cased.c: New file.
42313         * modules/unicase/u32-is-cased: New file.
42314
42315         New module 'unicase/u16-is-cased'.
42316         * lib/unicase/u16-is-cased.c: New file.
42317         * modules/unicase/u16-is-cased: New file.
42318
42319         New module 'unicase/u8-is-cased'.
42320         * lib/unicase/u8-is-cased.c: New file.
42321         * lib/unicase/u-is-cased.h: New file.
42322         * modules/unicase/u8-is-cased: New file.
42323
42324         Tests for module 'unicase/u32-is-casefolded'.
42325         * modules/unicase/u32-is-casefolded-tests: New file.
42326         * tests/unicase/test-u32-is-casefolded.c: New file.
42327
42328         Tests for module 'unicase/u16-is-casefolded'.
42329         * modules/unicase/u16-is-casefolded-tests: New file.
42330         * tests/unicase/test-u16-is-casefolded.c: New file.
42331
42332         Tests for module 'unicase/u8-is-casefolded'.
42333         * modules/unicase/u8-is-casefolded-tests: New file.
42334         * tests/unicase/test-u8-is-casefolded.c: New file.
42335         * tests/unicase/test-is-casefolded.h: New file.
42336
42337         New module 'unicase/u32-is-casefolded'.
42338         * lib/unicase/u32-is-casefolded.c: New file.
42339         * modules/unicase/u32-is-casefolded: New file.
42340
42341         New module 'unicase/u16-is-casefolded'.
42342         * lib/unicase/u16-is-casefolded.c: New file.
42343         * modules/unicase/u16-is-casefolded: New file.
42344
42345         New module 'unicase/u8-is-casefolded'.
42346         * lib/unicase/u8-is-casefolded.c: New file.
42347         * modules/unicase/u8-is-casefolded: New file.
42348
42349         Tests for module 'unicase/u32-is-titlecase'.
42350         * modules/unicase/u32-is-titlecase-tests: New file.
42351         * tests/unicase/test-u32-is-titlecase.c: New file.
42352
42353         Tests for module 'unicase/u16-is-titlecase'.
42354         * modules/unicase/u16-is-titlecase-tests: New file.
42355         * tests/unicase/test-u16-is-titlecase.c: New file.
42356
42357         Tests for module 'unicase/u8-is-titlecase'.
42358         * modules/unicase/u8-is-titlecase-tests: New file.
42359         * tests/unicase/test-u8-is-titlecase.c: New file.
42360         * tests/unicase/test-is-titlecase.h: New file.
42361
42362         New module 'unicase/u32-is-titlecase'.
42363         * lib/unicase/u32-is-titlecase.c: New file.
42364         * modules/unicase/u32-is-titlecase: New file.
42365
42366         New module 'unicase/u16-is-titlecase'.
42367         * lib/unicase/u16-is-titlecase.c: New file.
42368         * modules/unicase/u16-is-titlecase: New file.
42369
42370         New module 'unicase/u8-is-titlecase'.
42371         * lib/unicase/u8-is-titlecase.c: New file.
42372         * modules/unicase/u8-is-titlecase: New file.
42373
42374         Tests for module 'unicase/u32-is-lowercase'.
42375         * modules/unicase/u32-is-lowercase-tests: New file.
42376         * tests/unicase/test-u32-is-lowercase.c: New file.
42377
42378         Tests for module 'unicase/u16-is-lowercase'.
42379         * modules/unicase/u16-is-lowercase-tests: New file.
42380         * tests/unicase/test-u16-is-lowercase.c: New file.
42381
42382         Tests for module 'unicase/u8-is-lowercase'.
42383         * modules/unicase/u8-is-lowercase-tests: New file.
42384         * tests/unicase/test-u8-is-lowercase.c: New file.
42385         * tests/unicase/test-is-lowercase.h: New file.
42386
42387         New module 'unicase/u32-is-lowercase'.
42388         * lib/unicase/u32-is-lowercase.c: New file.
42389         * modules/unicase/u32-is-lowercase: New file.
42390
42391         New module 'unicase/u16-is-lowercase'.
42392         * lib/unicase/u16-is-lowercase.c: New file.
42393         * modules/unicase/u16-is-lowercase: New file.
42394
42395         New module 'unicase/u8-is-lowercase'.
42396         * lib/unicase/u8-is-lowercase.c: New file.
42397         * modules/unicase/u8-is-lowercase: New file.
42398
42399         Tests for module 'unicase/u32-is-uppercase'.
42400         * modules/unicase/u32-is-uppercase-tests: New file.
42401         * tests/unicase/test-u32-is-uppercase.c: New file.
42402
42403         Tests for module 'unicase/u16-is-uppercase'.
42404         * modules/unicase/u16-is-uppercase-tests: New file.
42405         * tests/unicase/test-u16-is-uppercase.c: New file.
42406
42407         Tests for module 'unicase/u8-is-uppercase'.
42408         * modules/unicase/u8-is-uppercase-tests: New file.
42409         * tests/unicase/test-u8-is-uppercase.c: New file.
42410         * tests/unicase/test-is-uppercase.h: New file.
42411
42412         New module 'unicase/u32-is-uppercase'.
42413         * lib/unicase/u32-is-uppercase.c: New file.
42414         * modules/unicase/u32-is-uppercase: New file.
42415
42416         New module 'unicase/u16-is-uppercase'.
42417         * lib/unicase/u16-is-uppercase.c: New file.
42418         * modules/unicase/u16-is-uppercase: New file.
42419
42420         New module 'unicase/u8-is-uppercase'.
42421         * lib/unicase/u8-is-uppercase.c: New file.
42422         * modules/unicase/u8-is-uppercase: New file.
42423
42424         New module 'unicase/u32-is-invariant'.
42425         * lib/unicase/u32-is-invariant.c: New file.
42426         * modules/unicase/u32-is-invariant: New file.
42427
42428         New module 'unicase/u16-is-invariant'.
42429         * lib/unicase/u16-is-invariant.c: New file.
42430         * modules/unicase/u16-is-invariant: New file.
42431
42432         New module 'unicase/u8-is-invariant'.
42433         * lib/unicase/u8-is-invariant.c: New file.
42434         * lib/unicase/invariant.h: New file.
42435         * lib/unicase/u-is-invariant.h: New file.
42436         * modules/unicase/u8-is-invariant: New file.
42437
42438         Tests for module 'unicase/u32-casecoll'.
42439         * modules/unicase/u32-casecoll-tests: New file.
42440         * tests/unicase/test-u32-casecoll.c: New file.
42441
42442         Tests for module 'unicase/u16-casecoll'.
42443         * modules/unicase/u16-casecoll-tests: New file.
42444         * tests/unicase/test-u16-casecoll.c: New file.
42445
42446         Tests for module 'unicase/u8-casecoll'.
42447         * modules/unicase/u8-casecoll-tests: New file.
42448         * tests/unicase/test-u8-casecoll.c: New file.
42449
42450         New module 'unicase/u32-casecoll'.
42451         * lib/unicase/u32-casecoll.c: New file.
42452         * modules/unicase/u32-casecoll: New file.
42453
42454         New module 'unicase/u16-casecoll'.
42455         * lib/unicase/u16-casecoll.c: New file.
42456         * modules/unicase/u16-casecoll: New file.
42457
42458         New module 'unicase/u8-casecoll'.
42459         * lib/unicase/u8-casecoll.c: New file.
42460         * lib/unicase/u-casecoll.h: New file.
42461         * modules/unicase/u8-casecoll: New file.
42462
42463         New module 'unicase/u32-casexfrm'.
42464         * lib/unicase/u32-casexfrm.c: New file.
42465         * modules/unicase/u32-casexfrm: New file.
42466
42467         New module 'unicase/u16-casexfrm'.
42468         * lib/unicase/u16-casexfrm.c: New file.
42469         * modules/unicase/u16-casexfrm: New file.
42470
42471         New module 'unicase/u8-casexfrm'.
42472         * lib/unicase/u8-casexfrm.c: New file.
42473         * lib/unicase/u-casexfrm.h: New file.
42474         * modules/unicase/u8-casexfrm: New file.
42475
42476         Tests for module 'unicase/u32-casecmp'.
42477         * modules/unicase/u32-casecmp-tests: New file.
42478         * tests/unicase/test-u32-casecmp.c: New file.
42479
42480         Tests for module 'unicase/u16-casecmp'.
42481         * modules/unicase/u16-casecmp-tests: New file.
42482         * tests/unicase/test-u16-casecmp.c: New file.
42483
42484         Tests for module 'unicase/u8-casecmp'.
42485         * modules/unicase/u8-casecmp-tests: New file.
42486         * tests/unicase/test-u8-casecmp.c: New file.
42487         * tests/unicase/test-casecmp.h: New file.
42488
42489         New module 'unicase/u32-casecmp'.
42490         * lib/unicase/u32-casecmp.c: New file.
42491         * modules/unicase/u32-casecmp: New file.
42492
42493         New module 'unicase/u16-casecmp'.
42494         * lib/unicase/u16-casecmp.c: New file.
42495         * modules/unicase/u16-casecmp: New file.
42496
42497         New module 'unicase/u8-casecmp'.
42498         * lib/unicase/u8-casecmp.c: New file.
42499         * lib/unicase/u-casecmp.h: New file.
42500         * modules/unicase/u8-casecmp: New file.
42501
42502         Tests for module 'unicase/u32-casefold'.
42503         * modules/unicase/u32-casefold-tests: New file.
42504         * tests/unicase/test-u32-casefold.c: New file.
42505
42506         Tests for module 'unicase/u16-casefold'.
42507         * modules/unicase/u16-casefold-tests: New file.
42508         * tests/unicase/test-u16-casefold.c: New file.
42509
42510         Tests for module 'unicase/u8-casefold'.
42511         * modules/unicase/u8-casefold-tests: New file.
42512         * tests/unicase/test-u8-casefold.c: New file.
42513
42514         New module 'unicase/u32-casefold'.
42515         * lib/unicase/u32-casefold.c: New file.
42516         * modules/unicase/u32-casefold: New file.
42517
42518         New module 'unicase/u16-casefold'.
42519         * lib/unicase/u16-casefold.c: New file.
42520         * modules/unicase/u16-casefold: New file.
42521
42522         New module 'unicase/u8-casefold'.
42523         * lib/unicase/u8-casefold.c: New file.
42524         * lib/unicase/u-casefold.h: New file.
42525         * modules/unicase/u8-casefold: New file.
42526
42527         New module 'unicase/tocasefold'.
42528         * lib/unicase/casefold.h: New file.
42529         * lib/unicase/tocasefold.c: New file.
42530         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
42531         * modules/unicase/tocasefold: New file.
42532
42533         Tests for module 'unicase/u32-totitle'.
42534         * modules/unicase/u32-totitle-tests: New file.
42535         * tests/unicase/test-u32-totitle.c: New file.
42536
42537         Tests for module 'unicase/u16-totitle'.
42538         * modules/unicase/u16-totitle-tests: New file.
42539         * tests/unicase/test-u16-totitle.c: New file.
42540
42541         Tests for module 'unicase/u8-totitle'.
42542         * modules/unicase/u8-totitle-tests: New file.
42543         * tests/unicase/test-u8-totitle.c: New file.
42544
42545         New module 'unicase/u32-totitle'.
42546         * lib/unicase/u32-totitle.c: New file.
42547         * modules/unicase/u32-totitle: New file.
42548
42549         New module 'unicase/u16-totitle'.
42550         * lib/unicase/u16-totitle.c: New file.
42551         * modules/unicase/u16-totitle: New file.
42552
42553         New module 'unicase/u8-totitle'.
42554         * lib/unicase/u8-totitle.c: New file.
42555         * lib/unicase/u-totitle.h: New file.
42556         * modules/unicase/u8-totitle: New file.
42557
42558         Tests for module 'unicase/u32-tolower'.
42559         * modules/unicase/u32-tolower-tests: New file.
42560         * tests/unicase/test-u32-tolower.c: New file.
42561
42562         Tests for module 'unicase/u16-tolower'.
42563         * modules/unicase/u16-tolower-tests: New file.
42564         * tests/unicase/test-u16-tolower.c: New file.
42565
42566         Tests for module 'unicase/u8-tolower'.
42567         * modules/unicase/u8-tolower-tests: New file.
42568         * tests/unicase/test-u8-tolower.c: New file.
42569
42570         New module 'unicase/u32-tolower'.
42571         * lib/unicase/u32-tolower.c: New file.
42572         * modules/unicase/u32-tolower: New file.
42573
42574         New module 'unicase/u16-tolower'.
42575         * lib/unicase/u16-tolower.c: New file.
42576         * modules/unicase/u16-tolower: New file.
42577
42578         New module 'unicase/u8-tolower'.
42579         * lib/unicase/u8-tolower.c: New file.
42580         * modules/unicase/u8-tolower: New file.
42581
42582         Tests for module 'unicase/u32-toupper'.
42583         * modules/unicase/u32-toupper-tests: New file.
42584         * tests/unicase/test-u32-toupper.c: New file.
42585
42586         Tests for module 'unicase/u16-toupper'.
42587         * modules/unicase/u16-toupper-tests: New file.
42588         * tests/unicase/test-u16-toupper.c: New file.
42589
42590         Tests for module 'unicase/u8-toupper'.
42591         * modules/unicase/u8-toupper-tests: New file.
42592         * tests/unicase/test-u8-toupper.c: New file.
42593
42594         New module 'unicase/u32-toupper'.
42595         * lib/unicase/u32-toupper.c: New file.
42596         * modules/unicase/u32-toupper: New file.
42597
42598         New module 'unicase/u16-toupper'.
42599         * lib/unicase/u16-toupper.c: New file.
42600         * modules/unicase/u16-toupper: New file.
42601
42602         New module 'unicase/u8-toupper'.
42603         * lib/unicase/u8-toupper.c: New file.
42604         * modules/unicase/u8-toupper: New file.
42605
42606         New module 'unicase/u32-casemap'.
42607         * lib/unicase/u32-casemap.c: New file.
42608         * modules/unicase/u32-casemap: New file.
42609
42610         New module 'unicase/u16-casemap'.
42611         * lib/unicase/u16-casemap.c: New file.
42612         * modules/unicase/u16-casemap: New file.
42613
42614         New module 'unicase/u8-casemap'.
42615         * lib/unicase/unicasemap.h: New file.
42616         * lib/unicase/u8-casemap.c: New file.
42617         * lib/unicase/u-casemap.h: New file.
42618         * modules/unicase/u8-casemap: New file.
42619
42620         New module 'unicase/special-casing'.
42621         * lib/unicase/special-casing.h: New file.
42622         * lib/unicase/special-casing.c: New file.
42623         * lib/unicase/special-casing-table.gperf: New file, generated by
42624         gen-uni-tables.c.
42625         * modules/unicase/special-casing: New file.
42626
42627         Tests for module 'unicase/locale-language'.
42628         * modules/unicase/locale-language-tests: New file.
42629         * tests/unicase/test-locale-language.sh: New file.
42630         * tests/unicase/test-locale-language.c: New file.
42631
42632         New module 'unicase/locale-language'.
42633         * lib/unicase/locale-language.c: New file.
42634         * lib/unicase/locale-languages.gperf: New file.
42635         * modules/unicase/locale-language: New file.
42636
42637         Generate more tables for case conversion and case folding.
42638         * lib/gen-uni-tables.c (SCC_*): New enum items.
42639         (struct special_casing_rule): New type.
42640         (casing_rules, num_casing_rules, allocated_casing_rules): New
42641         variables.
42642         (add_casing_rule, fill_casing_rules): New functions.
42643         (struct casefold_rule): New type.
42644         (casefolding_rules, num_casefolding_rules,
42645         allocated_casefolding_rules): New variables.
42646         (fill_casefolding_rules): New function.
42647         (unicode_casefold): New variable.
42648         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
42649         sort_casing_rules, output_casing_rules): New functions.
42650         (main): Accept to more arguments: SpecialCasing.txt and
42651         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
42652         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
42653         Output mapping for casefolding.
42654
42655         * lib/unicase.h: Include stdbool.h, uninorm.h.
42656         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
42657         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
42658         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
42659         arguments.
42660         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
42661         resultp arguments.
42662         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
42663         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
42664         resultp arguments.
42665         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
42666         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
42667         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
42668         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
42669         declarations.
42670         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
42671
42672 2009-03-08  Bruno Haible  <bruno@clisp.org>
42673
42674         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
42675         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
42676         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
42677         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
42678
42679 2009-03-07  Bruno Haible  <bruno@clisp.org>
42680
42681         Adjust u*_normcmp, u*_normcoll API.
42682         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
42683         u16_normcoll, u32_normcoll): Change failure conventions.
42684         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
42685         errno and return -1.
42686         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
42687
42688 2009-03-07  Bruno Haible  <bruno@clisp.org>
42689
42690         Tests for module 'uninorm/u32-normcoll'.
42691         * modules/uninorm/u32-normcoll-tests: New file.
42692         * tests/uninorm/test-u32-normcoll.c: New file.
42693
42694         Tests for module 'uninorm/u16-normcoll'.
42695         * modules/uninorm/u16-normcoll-tests: New file.
42696         * tests/uninorm/test-u16-normcoll.c: New file.
42697
42698         Tests for module 'uninorm/u8-normcoll'.
42699         * modules/uninorm/u8-normcoll-tests: New file.
42700         * tests/uninorm/test-u8-normcoll.c: New file.
42701
42702 2009-03-07  Bruno Haible  <bruno@clisp.org>
42703
42704         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
42705         tests/uninorm/test-u32-normcmp.c.
42706         * tests/uninorm/test-u32-normcmp.c: Include it.
42707         (test_nonascii): New function, extracted from main. Add some more
42708         tests.
42709         (main): Invoke test_ascii and test_nonascii.
42710         * modules/uninorm/u32-normcmp-tests (Files): Add
42711         tests/uninorm/test-u32-normcmp.h.
42712         (Depends-on): Remove uninorm/u32-normcmp.
42713
42714         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
42715         tests/uninorm/test-u16-normcmp.c.
42716         * tests/uninorm/test-u16-normcmp.c: Include it.
42717         (test_nonascii): New function, extracted from main. Add some more
42718         tests.
42719         (main): Invoke test_ascii and test_nonascii.
42720         * modules/uninorm/u16-normcmp-tests (Files): Add
42721         tests/uninorm/test-u16-normcmp.h.
42722         (Depends-on): Remove uninorm/u16-normcmp.
42723
42724         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
42725         tests/uninorm/test-u8-normcmp.c.
42726         * tests/uninorm/test-u8-normcmp.c: Include it.
42727         (test_nonascii): New function, extracted from main. Add some more
42728         tests.
42729         (main): Invoke test_ascii and test_nonascii.
42730         * modules/uninorm/u8-normcmp-tests (Files): Add
42731         tests/uninorm/test-u8-normcmp.h.
42732         (Depends-on): Remove uninorm/u8-normcmp.
42733
42734 2009-03-07  Bruno Haible  <bruno@clisp.org>
42735
42736         New module 'uninorm/u32-normcoll'.
42737         * lib/uninorm/u32-normcoll.c: New file.
42738         * modules/uninorm/u32-normcoll: New file.
42739
42740         New module 'uninorm/u16-normcoll'.
42741         * lib/uninorm/u16-normcoll.c: New file.
42742         * modules/uninorm/u16-normcoll: New file.
42743
42744         New module 'uninorm/u8-normcoll'.
42745         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
42746         declarations.
42747         * lib/uninorm/u8-normcoll.c: New file.
42748         * lib/uninorm/u-normcoll.h: New file.
42749         * modules/uninorm/u8-normcoll: New file.
42750
42751         New module 'uninorm/u32-normxfrm'.
42752         * lib/uninorm/u32-normxfrm.c: New file.
42753         * modules/uninorm/u32-normxfrm: New file.
42754
42755         New module 'uninorm/u16-normxfrm'.
42756         * lib/uninorm/u16-normxfrm.c: New file.
42757         * modules/uninorm/u16-normxfrm: New file.
42758
42759         New module 'uninorm/u8-normxfrm'.
42760         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
42761         declarations.
42762         * lib/uninorm/u8-normxfrm.c: New file.
42763         * lib/uninorm/u-normxfrm.h: New file.
42764         * modules/uninorm/u8-normxfrm: New file.
42765
42766 2009-03-07  Bruno Haible  <bruno@clisp.org>
42767
42768         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
42769         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
42770         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
42771
42772 2009-03-07  Bruno Haible  <bruno@clisp.org>
42773
42774         New module 'memxfrm'.
42775         * lib/memxfrm.h: New file.
42776         * lib/memxfrm.c: New file.
42777         * modules/memxfrm: New file.
42778
42779 2009-03-07  Bruno Haible  <bruno@clisp.org>
42780
42781         New module 'memcmp2'.
42782         * lib/memcmp2.h: New file.
42783         * lib/memcmp2.c: New file.
42784         * modules/memcmp2: New file.
42785
42786 2009-03-07  Bruno Haible  <bruno@clisp.org>
42787
42788         Tests for module 'uninorm/decomposing-form'.
42789         * modules/uninorm/decomposing-form-tests: New file.
42790         * tests/uninorm/test-decomposing-form.c: New file.
42791
42792         New module 'uninorm/decomposing-form'.
42793         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
42794         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
42795         Add 'decomposing_variant' field.
42796         * lib/uninorm/decomposing-form.c: New file.
42797         * lib/uninorm/nfc.c (uninorm_nfc): Update.
42798         * lib/uninorm/nfd.c (uninorm_nfd): Update.
42799         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
42800         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
42801         * modules/uninorm/decomposing-form: New file.
42802         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
42803         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
42804
42805 2009-03-07  Bruno Haible  <bruno@clisp.org>
42806
42807         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
42808         strings.
42809
42810 2009-03-06  Bruno Haible  <bruno@clisp.org>
42811
42812         Tests for module 'uninorm/u32-normcmp'.
42813         * tests/uninorm/test-u32-normcmp.c: New file.
42814         * modules/uninorm/u32-normcmp-tests: New file.
42815
42816         Tests for module 'uninorm/u16-normcmp'.
42817         * tests/uninorm/test-u16-normcmp.c: New file.
42818         * modules/uninorm/u16-normcmp-tests: New file.
42819
42820         Tests for module 'uninorm/u8-normcmp'.
42821         * tests/uninorm/test-u8-normcmp.c: New file.
42822         * modules/uninorm/u8-normcmp-tests: New file.
42823
42824         New module 'uninorm/u32-normcmp'.
42825         * lib/uninorm/u32-normcmp.c: New file.
42826         * modules/uninorm/u32-normcmp: New file.
42827
42828         New module 'uninorm/u16-normcmp'.
42829         * lib/uninorm/u16-normcmp.c: New file.
42830         * modules/uninorm/u16-normcmp: New file.
42831
42832         New module 'uninorm/u8-normcmp'.
42833         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
42834         declarations.
42835         * lib/uninorm/u8-normcmp.c: New file.
42836         * lib/uninorm/u-normcmp.h: New file.
42837         * modules/uninorm/u8-normcmp: New file.
42838
42839 2009-03-06  Bruno Haible  <bruno@clisp.org>
42840
42841         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
42842         Reported by Eric Blake.
42843
42844 2009-03-06  Eric Blake  <ebb9@byu.net>
42845             Bruno Haible  <bruno@clisp.org>
42846
42847         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
42848         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
42849         condition.
42850         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
42851         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
42852         condition.
42853         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
42854
42855 2009-03-06  Eric Blake  <ebb9@byu.net>
42856
42857         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
42858         to avoid compiler warnings.
42859         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
42860
42861 2009-03-05  Bruno Haible  <bruno@clisp.org>
42862
42863         * tests/test-ftell.c (main): Disable test beyond end of file on
42864         FreeMiNT.
42865         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
42866
42867 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
42868
42869         * lib/filevercmp.c: Move hidden files up in ordering.
42870         * tests/test-filevercmp.c: Add tests for hidden files.
42871
42872 2009-03-04  Bruno Haible  <bruno@clisp.org>
42873
42874         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
42875         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
42876         AM_CFLAGS.
42877         Reported by Simon Josefsson.
42878
42879 2009-03-03  Bruno Haible  <bruno@clisp.org>
42880
42881         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
42882         Reported by Simon Josefsson.
42883
42884         * doc/ld-version-script.texi: Update node reference.
42885
42886 2009-03-03  Bruno Haible  <bruno@clisp.org>
42887
42888         * modules/visibility (License): Change to 'unlimited'.
42889         Suggested by Simon Josefsson.
42890
42891 2009-03-03  Jim Meyering  <meyering@redhat.com>
42892
42893         unlinkdir: cannot_unlink_dir may modify process state
42894         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
42895         it's neither thread-safe nor appropriate for use in a library.
42896
42897 2009-03-03  Eric Blake  <ebb9@byu.net>
42898
42899         test-closein: silence test under Darwin
42900         * tests/test-closein.sh: Ignore stderr from cat, since we don't
42901         care if it dies from EPIPE or EBADF.
42902
42903 2009-03-03  Bruno Haible  <bruno@clisp.org>
42904
42905         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
42906         earlier.
42907         * doc/visibility.texi: Fix @node and @section.
42908
42909 2009-03-03  Simon Josefsson  <simon@josefsson.org>
42910
42911         * doc/gnulib.texi: Link to sections for ld version script and
42912         visibility.
42913         * doc/visibility.texi: Add @node and @section.
42914         * modules/ld-version-script: New module.
42915         * m4/ld-version-script.m4: New file.
42916         * doc/ld-version-script.texi: New file.
42917
42918 2009-03-02  David Lutterkort  <lutter@redhat.com>
42919
42920         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
42921         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42922
42923 2009-03-02  Bruno Haible  <bruno@clisp.org>
42924
42925         * doc/visibility.texi: Mention libtool's -export-symbols option.
42926
42927 2009-03-02  Jim Meyering  <meyering@redhat.com>
42928
42929         announce-gen: new option: --no-print-checksums
42930         * build-aux/announce-gen (usage): Describe it.
42931         (print_checksums): Print a newline here, not in the [*] footnote.
42932         (main): Honor it.
42933
42934 2009-03-01  Bruno Haible  <bruno@clisp.org>
42935
42936         Use socklen_t in the native Windows replacements prototypes.
42937         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
42938         instead of 'int'.
42939         * lib/getsockopt.c (rpl_getsockopt): Likewise.
42940         * lib/setsockopt.c (rpl_setsockopt): Likewise.
42941         * modules/getsockopt (Depends-on): Add socklen.
42942         * modules/setsockopt (Depends-on): Add socklen.
42943
42944 2009-03-01  Bruno Haible  <bruno@clisp.org>
42945
42946         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
42947         least 4.2.
42948
42949 2009-03-01  Eric Blake  <ebb9@byu.net>
42950             Bruno Haible  <bruno@clisp.org>
42951
42952         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
42953         error messages.
42954         * lib/wait-process.c (wait_subprocess): Omit error message about
42955         deadly signal sent to the child of termsigp != NULL.
42956
42957 2009-03-01  Eric Blake  <ebb9@byu.net>
42958
42959         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
42960
42961 2009-03-01  Bruno Haible  <bruno@clisp.org>
42962
42963         Avoid a gcc warning.
42964         * tests/test-sched.c (b): Make global.
42965         Reported by Eric Blake.
42966
42967 2009-01-19  Martin Lambers  <marlam@marlam.de>
42968
42969         Provide POSIX semantics for socket timeout options on W32.
42970         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
42971         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
42972         * modules/setsockopt: Depend on sys_time module for struct timeval.
42973         * modules/getsockopt: Depend on sys_time module for struct timeval.
42974
42975 2009-03-01  Simon Josefsson  <simon@josefsson.org>
42976
42977         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
42978         __USE_GNU, for consistency with netdb.in.h.
42979         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
42980
42981 2009-03-01  Bruno Haible  <bruno@clisp.org>
42982
42983         More support for FreeMiNT.
42984         * lib/fseeko.c (rpl_fseeko): Complete last commit.
42985         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
42986
42987 2009-03-01  Bruno Haible  <bruno@clisp.org>
42988
42989         More support for FreeMiNT.
42990         * lib/fpurge.c (fpurge): Correct last commit.
42991         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
42992
42993 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42994
42995         Fix unportable awk script in vc-list-files.
42996         * build-aux/vc-list-files: In the replacement awk script, use
42997         substr with a second argument of 1, not zero.
42998         Report by Simon Josefsson.
42999
43000 2009-02-28  Bruno Haible  <bruno@clisp.org>
43001
43002         More support for FreeMiNT.
43003         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
43004         to FreeMiNT today.
43005         * lib/fwriting.c (fwriting): Likewise.
43006         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
43007
43008 2009-02-28  Bruno Haible  <bruno@clisp.org>
43009
43010         * tests/test-freadseek.c (main): Disable test beyond end of file on
43011         FreeMiNT.
43012         * tests/test-ftello.c (main): Likewise.
43013         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
43014
43015 2009-02-28  Bruno Haible  <bruno@clisp.org>
43016
43017         Add tentative support for FreeMiNT.
43018         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
43019         * lib/fpurge.c (fpurge): Likewise.
43020         * lib/freadable.c (freadable): Likewise.
43021         * lib/freading.c (freading): Likewise.
43022         * lib/freadptr.c (freadptr): Likewise.
43023         * lib/freadseek.c (freadptrinc): Likewise.
43024         * lib/fseeko.c (rpl_fseeko): Likewise.
43025         * lib/fseterr.c (fseterr): Likewise.
43026         * lib/fwritable.c (fwritable): Likewise.
43027         * lib/fwriting.c (fwriting): Likewise.
43028         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
43029         Hourihane.
43030         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
43031
43032 2009-02-28  Bruno Haible  <bruno@clisp.org>
43033
43034         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
43035         SIGCHLD.
43036         Reported by Jim Meyering.
43037
43038 2009-02-28  Bruno Haible  <bruno@clisp.org>
43039
43040         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
43041         Mention the results of these tests on various platforms.
43042         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
43043         order.
43044         * doc/posix-functions/printf.texi: Likewise.
43045         * doc/posix-functions/snprintf.texi: Likewise.
43046         * doc/posix-functions/sprintf.texi: Likewise.
43047         * doc/posix-functions/vfprintf.texi: Likewise.
43048         * doc/posix-functions/vprintf.texi: Likewise.
43049         * doc/posix-functions/vsnprintf.texi: Likewise.
43050         * doc/posix-functions/vsprintf.texi: Likewise.
43051         * doc/glibc-functions/obstack_printf.texi: Likewise.
43052         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
43053
43054 2009-02-28  Bruno Haible  <bruno@clisp.org>
43055
43056         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
43057         Reported by Loïc Minier <lool@dooz.org>.
43058
43059 2009-02-27  Bruno Haible  <bruno@clisp.org>
43060
43061         * gnulib-tool (func_import): Make the sed expression used to create the
43062         sed script for updating the .gitignore file POSIX compliant.
43063         Reported by Eric Blake.
43064
43065 2009-02-27  Bruno Haible  <bruno@clisp.org>
43066
43067         * gnulib-tool (sed): Don't alias as "sed --posix".
43068         Reported by Eric Blake.
43069
43070 2009-02-27  Bruno Haible  <bruno@clisp.org>
43071
43072         Avoid test link errors.
43073         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
43074         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
43075         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
43076         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
43077         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43078
43079 2009-02-27  Bruno Haible  <bruno@clisp.org>
43080
43081         Avoid spurious "(cached)" in configure output.
43082         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
43083         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
43084         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
43085         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
43086         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
43087         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
43088         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
43089         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
43090         Reported by Eric Blake.
43091
43092 2009-02-27  Eric Blake  <ebb9@byu.net>
43093
43094         printf: fix regression in previous patch
43095         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
43096
43097 2009-02-27  Bruno Haible  <bruno@clisp.org>
43098
43099         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
43100         value.
43101         * lib/stdint.in.h: Likewise.
43102         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
43103
43104 2009-02-27  Eric Blake  <ebb9@byu.net>
43105
43106         doc: mention more functions added in cygwin 1.7.0
43107         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
43108         addition.
43109         * doc/posix-functions/open_wmemstream.texi: Likewise.
43110         * doc/posix-functions/wcsnlen.texi: Likewise.
43111         * doc/posix-functions/wcsnrtombs.texi: Likewise.
43112         * doc/posix-functions/wcstod.texi: Likewise.
43113         * doc/posix-functions/wcstof.texi: Likewise.
43114         * doc/posix-functions/wcstoimax.texi: Likewise.
43115         * doc/posix-functions/wcstok.texi: Likewise.
43116         * doc/posix-functions/wcstoumax.texi: Likewise.
43117
43118         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
43119         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
43120         * doc/posix-functions/fprintf.texi: Update.
43121         * doc/posix-functions/printf.texi: Update.
43122         * doc/posix-functions/snprintf.texi: Update.
43123         * doc/posix-functions/sprintf.texi: Update.
43124         * doc/posix-functions/vfprintf.texi: Update.
43125         * doc/posix-functions/vprintf.texi: Update.
43126         * doc/posix-functions/vsnprintf.texi: Update.
43127         * doc/posix-functions/vsprintf.texi: Update.
43128         * doc/glibc-functions/obstack_printf.texi: Update.
43129         * doc/glibc-functions/obstack_vprintf.texi: Update.
43130
43131 2009-02-26  Eric Blake  <ebb9@byu.net>
43132
43133         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
43134         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
43135         compilation bug by using runtime conversion.
43136         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
43137         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
43138         * modules/ceill-tests (Files): Use nan.h.
43139         * modules/floorl-tests (Files): Likewise.
43140         * modules/frexpl-tests (Files): Likewise.
43141         * modules/isnanl-tests (Files): Likewise.
43142         * modules/ldexpl-tests (Files): Likewise.
43143         * modules/roundl-tests (Files): Likewise.
43144         * modules/truncl-tests (Files): Likewise.
43145         * tests/test-ceill.c (main): Use a working NaN.
43146         * tests/test-floorl.c (main): Likewise.
43147         * tests/test-frexpl.c (main): Likewise.
43148         * tests/test-isnan.c (test_long_double): Likewise.
43149         * tests/test-isnanl.h (main): Likewise.
43150         * tests/test-ldexpl.h (main): Likewise.
43151         * tests/test-roundl.h (main): Likewise.
43152         * tests/test-truncl.h (main): Likewise.
43153         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
43154
43155 2009-02-26  Eric Blake  <ebb9@byu.net>
43156             Bruno Haible  <bruno@clisp.org>
43157
43158         Work around a *printf bug with %ls on Solaris.
43159         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
43160         precision is specified, sprintf stops converting the wide string
43161         argument when the number of bytes that have been produced by this
43162         conversion equals or exceeds the precision.
43163         * doc/posix-functions/fprintf.texi: Update.
43164         * doc/posix-functions/printf.texi: Update.
43165         * doc/posix-functions/snprintf.texi: Update.
43166         * doc/posix-functions/sprintf.texi: Update.
43167         * doc/posix-functions/vfprintf.texi: Update.
43168         * doc/posix-functions/vprintf.texi: Update.
43169         * doc/posix-functions/vsnprintf.texi: Update.
43170         * doc/posix-functions/vsprintf.texi: Update.
43171         * doc/glibc-functions/obstack_printf.texi: Update.
43172         * doc/glibc-functions/obstack_vprintf.texi: Update.
43173
43174 2009-02-26  Eric Blake  <ebb9@byu.net>
43175
43176         stdlib: favor compiler check of random.h
43177         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
43178         to avoid an ObjC random.h installed by Swarm.
43179
43180 2009-02-26  Bruno Haible  <bruno@clisp.org>
43181
43182         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
43183         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
43184         Reported by Gary V. Vaughan <gary@gnu.org>.
43185
43186 2009-02-26  Bruno Haible  <bruno@clisp.org>
43187
43188         Fix *printf behaviour regarding the %ls directive.
43189         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
43190         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
43191         NEED_PRINTF_DIRECTIVE_LS.
43192         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
43193         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
43194         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
43195         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
43196         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
43197         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
43198         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
43199         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
43200         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43201         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43202         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43203         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
43204         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43205         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43206         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43207         * doc/posix-functions/fprintf.texi: Update.
43208         * doc/posix-functions/printf.texi: Update.
43209         * doc/posix-functions/snprintf.texi: Update.
43210         * doc/posix-functions/sprintf.texi: Update.
43211         * doc/posix-functions/vfprintf.texi: Update.
43212         * doc/posix-functions/vprintf.texi: Update.
43213         * doc/posix-functions/vsnprintf.texi: Update.
43214         * doc/posix-functions/vsprintf.texi: Update.
43215         * doc/glibc-functions/obstack_printf.texi: Update.
43216         * doc/glibc-functions/obstack_vprintf.texi: Update.
43217         Reported by Eric Blake.
43218
43219 2009-02-25  Bruno Haible  <bruno@clisp.org>
43220
43221         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
43222         with known value.
43223         Reported by Gary V. Vaughan <gary@gnu.org>.
43224
43225 2009-02-25  Bruno Haible  <bruno@clisp.org>
43226
43227         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
43228         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
43229         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
43230         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
43231         Reported by Gary V. Vaughan <gary@gnu.org>.
43232
43233 2009-02-25  Bruno Haible  <bruno@clisp.org>
43234
43235         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
43236         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
43237         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
43238         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
43239         Reported by Gary V. Vaughan <gary@gnu.org>.
43240
43241 2009-02-25  Eric Blake  <ebb9@byu.net>
43242
43243         tests: skip fseek/ftell tests if ungetc is broken
43244         * m4/ungetc.m4: New file.
43245         * modules/fseek-tests: Split test, so ungetc dependency is
43246         separate from rest of test.
43247         * modules/fseeko-tests: Likewise.
43248         * modules/ftell-tests: Likewise.
43249         * modules/ftello-tests: Likewise.
43250         * tests/test-fseek.c (main): Isolate ungetc dependency.
43251         * tests/test-fseeko.c (main): Likewise.
43252         * tests/test-ftell.c (main): Likewise.
43253         * tests/test-ftello.c (main): Likewise.
43254         * tests/test-fseek2.sh: New file.
43255         * tests/test-fseeko2.sh: Likewise.
43256         * tests/test-ftell2.sh: Likewise.
43257         * tests/test-ftello2.sh: Likewise.
43258
43259 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
43260
43261         test-getaddrinfo: fix usage of skip return code 77
43262         * tests/test-gettaddrinfo.c: Return skip code 77 only
43263         for first occurance of skip (4x77 is not 77)
43264
43265 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
43266
43267         strtod: avoid C99 decl-after-statement
43268         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
43269
43270 2009-02-24  Eric Blake  <ebb9@byu.net>
43271
43272         strtod: detect HP-UX 11.31 bug
43273         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
43274         Reported by Gary V. Vaughan.
43275
43276 2009-02-23  Bruno Haible  <bruno@clisp.org>
43277
43278         Fix invalid read past end of memory block.
43279         * lib/vasnprintf.c (DCHAR_SET): Define.
43280         (local_wcslen): Define only when needed.
43281         (local_strnlen, local_wcsnlen): New functions.
43282         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
43283         directives that involve a conversion ourselves.
43284         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
43285         wcsnlen, mbrtowc, wcrtomb.
43286         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
43287         * tests/test-vasprintf-posix.c (test_function): Likewise.
43288         * tests/test-snprintf-posix.h (test_function): Likewise.
43289         * tests/test-sprintf-posix.h (test_function): Likewise.
43290         Reported by Ben Pfaff <blp@cs.stanford.edu>.
43291
43292 2009-02-22  Bruno Haible  <bruno@clisp.org>
43293
43294         Implement new clarified decomposition of Hangul syllables.
43295         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
43296         of type LTV, return only a pairwise decomposition.
43297         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
43298         Likewise.
43299         * tests/uninorm/test-decomposition.c (main): Updated expected result.
43300         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
43301         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
43302
43303 2009-02-22  Bruno Haible  <bruno@clisp.org>
43304
43305         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
43306         zero-length results and shrink excess allocated memory.
43307         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
43308         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
43309         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
43310         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
43311         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
43312         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
43313         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
43314         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
43315         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
43316         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
43317         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
43318         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
43319
43320 2009-02-21  Bruno Haible  <bruno@clisp.org>
43321
43322         * doc/gnulib.texi: Include safe-alloc.texi earlier.
43323         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
43324         spaces after a period. Put a space between a macro name and its
43325         argument list. Trivial rewordings.
43326         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
43327         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
43328         (main): Return 0 explicitly.
43329
43330 2009-02-21  Bruno Haible  <bruno@clisp.org>
43331
43332         Tests for module 'uninorm/filter'.
43333         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
43334         * modules/uninorm/filter-tests: New file.
43335
43336         New module 'uninorm/filter'.
43337         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
43338         uninorm_filter_flush, uninorm_filter_free): New declarations.
43339         * lib/uninorm/uninorm-filter.c: New file.
43340         * modules/uninorm/filter: New file.
43341
43342 2009-02-21  Bruno Haible  <bruno@clisp.org>
43343
43344         Tests for module 'uninorm/nfkc'.
43345         * tests/uninorm/test-nfkc.c: New file.
43346         * tests/uninorm/test-u8-nfkc.c: New file.
43347         * tests/uninorm/test-u16-nfkc.c: New file.
43348         * tests/uninorm/test-u32-nfkc.c: New file.
43349         * tests/uninorm/test-u32-nfkc-big.sh: New file.
43350         * tests/uninorm/test-u32-nfkc-big.c: New file.
43351         * modules/uninorm/nfkc-tests: New file.
43352
43353         New module 'uninorm/nfkc'.
43354         * lib/uninorm/nfkc.c: New file.
43355         * modules/uninorm/nfkc: New file.
43356
43357         Tests for module 'uninorm/nfkd'.
43358         * tests/uninorm/test-nfkd.c: New file.
43359         * tests/uninorm/test-u8-nfkd.c: New file.
43360         * tests/uninorm/test-u16-nfkd.c: New file.
43361         * tests/uninorm/test-u32-nfkd.c: New file.
43362         * tests/uninorm/test-u32-nfkd-big.sh: New file.
43363         * tests/uninorm/test-u32-nfkd-big.c: New file.
43364         * modules/uninorm/nfkd-tests: New file.
43365
43366         New module 'uninorm/nfkd'.
43367         * lib/uninorm/nfkd.c: New file.
43368         * modules/uninorm/nfkd: New file.
43369
43370         Tests for module 'uninorm/nfc'.
43371         * tests/uninorm/test-nfc.c: New file.
43372         * tests/uninorm/test-u8-nfc.c: New file.
43373         * tests/uninorm/test-u16-nfc.c: New file.
43374         * tests/uninorm/test-u32-nfc.c: New file.
43375         * tests/uninorm/test-u32-nfc-big.sh: New file.
43376         * tests/uninorm/test-u32-nfc-big.c: New file.
43377         * modules/uninorm/nfc-tests: New file.
43378
43379         New module 'uninorm/nfc'.
43380         * lib/uninorm/nfc.c: New file.
43381         * modules/uninorm/nfc: New file.
43382
43383         Tests for module 'uninorm/nfd'.
43384         * tests/uninorm/test-nfd.c: New file.
43385         * tests/uninorm/test-u8-nfd.c: New file.
43386         * tests/uninorm/test-u16-nfd.c: New file.
43387         * tests/uninorm/test-u32-nfd.c: New file.
43388         * tests/uninorm/test-u32-nfd-big.sh: New file.
43389         * tests/uninorm/test-u32-nfd-big.c: New file.
43390         * tests/uninorm/test-u32-normalize-big.h: New file.
43391         * tests/uninorm/test-u32-normalize-big.c: New file.
43392         * tests/uninorm/NormalizationTest.txt: New file, created from
43393         Unicode 5.1.0 NormalizationTest.txt.
43394         * modules/uninorm/nfd-tests: New file.
43395
43396         New module 'uninorm/nfd'.
43397         * lib/uninorm/nfd.c: New file.
43398         * modules/uninorm/nfd: New file.
43399
43400         New module 'uninorm/u32-normalize'.
43401         * lib/uninorm/u32-normalize.c: New file.
43402         * modules/uninorm/u32-normalize: New file.
43403
43404         New module 'uninorm/u16-normalize'.
43405         * lib/uninorm/u16-normalize.c: New file.
43406         * modules/uninorm/u16-normalize: New file.
43407
43408         New module 'uninorm/u8-normalize'.
43409         * lib/uninorm/u8-normalize.c: New file.
43410         * lib/uninorm/normalize-internal.h: New file.
43411         * lib/uninorm/u-normalize-internal.h: New file.
43412         * modules/uninorm/u8-normalize: New file.
43413
43414         New module 'uninorm/decompose-internal'.
43415         * lib/uninorm/decompose-internal.c: New file.
43416         * modules/uninorm/decompose-internal: New file.
43417
43418         Tests for module 'uninorm/composition'.
43419         * tests/uninorm/test-composition.c: New file.
43420         * modules/uninorm/composition-tests: New file.
43421
43422         New module 'uninorm/composition'.
43423         * lib/uninorm/composition.c: New file.
43424         * lib/uninorm/composition-table.gperf: New file, generated by
43425         gen-uni-tables.
43426         * modules/uninorm/composition: New file.
43427
43428         Tests for module 'uninorm/compat-decomposition'.
43429         * tests/uninorm/test-compat-decomposition.c: New file.
43430         * modules/uninorm/compat-decomposition-tests: New file.
43431
43432         New module 'uninorm/compat-decomposition'.
43433         * lib/uninorm/decompose-internal.h: New file.
43434         * lib/uninorm/compat-decomposition.c: New file.
43435         * modules/uninorm/compat-decomposition: New file.
43436
43437         Tests for module 'uninorm/canonical-decomposition'.
43438         * tests/uninorm/test-canonical-decomposition.c: New file.
43439         * modules/uninorm/canonical-decomposition-tests: New file.
43440
43441         New module 'uninorm/canonical-decomposition'.
43442         * lib/uninorm/canonical-decomposition.c: New file.
43443         * modules/uninorm/canonical-decomposition: New file.
43444
43445         Tests for module 'uninorm/decomposition'.
43446         * tests/uninorm/test-decomposition.c: New file.
43447         * modules/uninorm/decomposition-tests: New file.
43448
43449         New module 'uninorm/decomposition'.
43450         * lib/uninorm/decomposition.c: New file.
43451         * modules/uninorm/decomposition: New file.
43452
43453         New module 'uninorm/decomposition-table'.
43454         * lib/uninorm/decomposition-table.h: New file.
43455         * lib/uninorm/decomposition-table.c: New file.
43456         * lib/uninorm/decomposition-table1.h: New file, generated by
43457         gen-uni-tables.
43458         * lib/uninorm/decomposition-table2.h: New file, generated by
43459         gen-uni-tables.
43460         * modules/uninorm/decomposition-table: New file.
43461
43462         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
43463         (UC_DECOMP_*): New enumeration items.
43464         (get_decomposition): New function.
43465         (struct decomp_table): New type.
43466         (output_decomposition, output_decomposition_tables): New functions.
43467         (unicode_composition_exclusions): New variable.
43468         (fill_composition_exclusions, debug_output_composition_tables): New
43469         functions.
43470         (main): Accept one more argument. Invoke fill_composition_exclusions.
43471         Output decomposition and composition tables.
43472
43473         New module 'uninorm/base'.
43474         * lib/uninorm.h: New file.
43475         * lib/unictype.h: Update comment.
43476         * modules/uninorm/base: New file.
43477
43478 2009-02-21  David Lutterkort  <lutter@redhat.com>
43479
43480         Tests for module 'safe-alloc'.
43481         * tests/test-safe-alloc.c: New file.
43482         * modules/safe-alloc-tests: New file.
43483
43484         New module 'safe-alloc'.
43485         * lib/safe-alloc.h: New file.
43486         * lib/safe-alloc.c: New file.
43487         * m4/safe-alloc.m4: New file.
43488         * modules/safe-alloc: New file.
43489         * doc/safe-alloc.texi: New file.
43490         * doc/gnulib.texi: Include it.
43491         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
43492         safe-alloc.
43493
43494 2009-02-18  Bruno Haible  <bruno@clisp.org>
43495
43496         Fix link error on non-glibc systems.
43497         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
43498         variable.
43499         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43500
43501 2009-02-18  Jim Meyering  <meyering@redhat.com>
43502
43503         fts: avoid used-uninitialized error due to recent change
43504         * lib/fts.c (fts_read): Guard uses of the new member,
43505         parent->fts_n_dirs_remaining, since it's not relevant for
43506         the parent of a directory specified on the command-line.
43507
43508 2009-02-17  James Youngman  <jay@gnu.org>
43509             Bruno Haible  <bruno@clisp.org>
43510
43511         * m4/include_next.m4: Reformulate comment.
43512
43513 2009-02-16  Jim Meyering  <meyering@redhat.com>
43514
43515         fts: add #if guards so that the fts_lgpl module still builds
43516         * lib/fts.c: Guard just-added hash-table-using parts with
43517         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
43518         Reported by Simon Josefsson.
43519
43520 2009-02-15  Bruno Haible  <bruno@clisp.org>
43521
43522         * modules/array-mergesort-tests: New file.
43523         * tests/test-array-mergesort.c: New file.
43524
43525         New module 'array-mergesort'.
43526         * modules/array-mergesort: New file.
43527         * lib/array-mergesort.h: New file.
43528
43529 2009-02-15  Bruno Haible  <bruno@clisp.org>
43530
43531         Fix 2009-02-07 commit.
43532         * lib/gen-uni-tables.c (output_predicate, output_category,
43533         output_combclass, output_bidi_category, output_decimal_digit,
43534         output_digit, output_numeric, output_mirror, output_scripts,
43535         output_ident_category, output_simple_mapping): Fix format directives.
43536         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
43537
43538 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
43539
43540         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
43541         fixes are available from IBM.
43542
43543 2009-02-13  Jim Meyering  <meyering@redhat.com>
43544
43545         fts: arrange not to stat non-directories in more cases
43546         This makes GNU find (when it doesn't need to stat each file)
43547         *much* more efficient at traversing reiserfs file systems.
43548         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
43549         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
43550         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
43551         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
43552         (leaf_optimization_applies): New function.
43553         (LCO_hash, LCO_compare): New helper functions.
43554         (link_count_optimize_ok): New function.
43555         (fts_stat): Initialize new member (if dir).
43556         (fts_read): Decrement parent's fts_n_dirs_remaining count if
43557         we've just stat'ed a directory.  Skip the stat call when possible.
43558         ---
43559         Note this AFS-related exchange:
43560         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
43561         and note find's pioctl call in find/fstype.c.
43562         But that is necessary only if you want to enable the
43563         optimization for AFS, and for now, I don't.
43564
43565         fts: move a function definition "up" (no semantic change)
43566         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
43567         "up" to precede upcoming use of a related function.
43568
43569 2009-02-11  Jim Meyering  <meyering@redhat.com>
43570
43571         fts: correct internal computation of nlinks (optimization-related)
43572         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
43573         whether the current entry is a directory, so don't test it.
43574
43575 2009-02-10  Bruno Haible  <bruno@clisp.org>
43576
43577         Tests for module 'uniwbrk/ulc-wordbreaks'.
43578         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
43579         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
43580         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
43581
43582         Tests for module 'uniwbrk/u32-wordbreaks'.
43583         * modules/uniwbrk/u32-wordbreaks-tests: New file.
43584         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
43585
43586         Tests for module 'uniwbrk/u16-wordbreaks'.
43587         * modules/uniwbrk/u16-wordbreaks-tests: New file.
43588         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
43589
43590         Tests for module 'uniwbrk/u8-wordbreaks'.
43591         * modules/uniwbrk/u8-wordbreaks-tests: New file.
43592         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
43593
43594 2009-02-10  Bruno Haible  <bruno@clisp.org>
43595
43596         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
43597         property.
43598         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
43599         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
43600         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
43601
43602 2009-02-10  Simon Josefsson  <simon@josefsson.org>
43603
43604         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
43605         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
43606
43607 2009-02-10  Bruno Haible  <bruno@clisp.org>
43608
43609         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
43610         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
43611         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
43612         * lib/unilbrk/u8-possible-linebreaks.c: Update.
43613         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
43614         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
43615
43616 2009-02-09  Simon Josefsson  <simon@josefsson.org>
43617
43618         * lib/sockets.h (gl_fd_to_handle): New function.
43619
43620         * tests/test-sockets.c: Call gl_fd_to_handle.
43621
43622 2009-02-09  Bruno Haible  <bruno@clisp.org>
43623
43624         * doc/havelib.texi: Document the conventions on bi-arch systems.
43625
43626 2009-02-08  Bruno Haible  <bruno@clisp.org>
43627
43628         Document the AC_LIB_LINKFLAGS macro.
43629         * doc/havelib.texi: New file, mostly written on 2005-05-24.
43630         * doc/gnulib.texi: Include it.
43631
43632 2009-02-08  Bruno Haible  <bruno@clisp.org>
43633
43634         Fix wrong order of sections, compared to TOC.
43635         * doc/gnulib.texi: Include relocatable-maint.texi after the
43636         "Regular expressions" node, not before.
43637
43638 2009-02-08  Bruno Haible  <bruno@clisp.org>
43639
43640         Tests for module 'unicase/totitle'.
43641         * modules/unicase/totitle-tests: New file.
43642
43643         Tests for module 'unicase/tolower'.
43644         * modules/unicase/tolower-tests: New file.
43645
43646         Tests for module 'unicase/toupper'.
43647         * modules/unicase/toupper-tests: New file.
43648         * tests/unicase/test-mapping-part1.h: New file.
43649         * tests/unicase/test-mapping-part2.h: New file.
43650
43651         New module 'unicase/totitle'.
43652         * modules/unicase/totitle: New file.
43653         * lib/unicase/totitle.c: New file.
43654
43655         New module 'unicase/tolower'.
43656         * modules/unicase/tolower: New file.
43657         * lib/unicase/tolower.c: New file.
43658
43659         New module 'unicase/toupper'.
43660         * modules/unicase/toupper: New file.
43661         * lib/unicase/toupper.c: New file.
43662         * lib/unicase/simple-mapping.h: New file.
43663
43664         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
43665         (mapping_table): New structure.
43666         (output_simple_mapping): New function.
43667         (main): Invoke output_simple_mapping_test and output_simple_mapping.
43668         * modules/gen-uni-tables (Description): Update.
43669         * lib/unicase/toupper.h: New file, automatically generated by
43670         gen-uni-tables.
43671         * lib/unicase/tolower.h: New file, automatically generated by
43672         gen-uni-tables.
43673         * lib/unicase/totitle.h: New file, automatically generated by
43674         gen-uni-tables.
43675         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
43676         gen-uni-tables.
43677         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
43678         gen-uni-tables.
43679         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
43680         gen-uni-tables.
43681
43682         New module 'unicase/base'.
43683         * modules/unicase/base: New file.
43684         * lib/unicase.h: New file.
43685
43686 2009-02-08  Bruno Haible  <bruno@clisp.org>
43687
43688         New module 'uniwbrk/ulc-wordbreaks'.
43689         * modules/uniwbrk/ulc-wordbreaks: New file.
43690         * lib/uniwbrk/ulc-wordbreaks.c: New file.
43691
43692         New module 'uniwbrk/u32-wordbreaks'.
43693         * modules/uniwbrk/u32-wordbreaks: New file.
43694         * lib/uniwbrk/u32-wordbreaks.c: New file.
43695
43696         New module 'uniwbrk/u16-wordbreaks'.
43697         * modules/uniwbrk/u16-wordbreaks: New file.
43698         * lib/uniwbrk/u16-wordbreaks.c: New file.
43699
43700         New module 'uniwbrk/u8-wordbreaks'.
43701         * modules/uniwbrk/u8-wordbreaks: New file.
43702         * lib/uniwbrk/u8-wordbreaks.c: New file.
43703         * lib/uniwbrk/u-wordbreaks.h: New file.
43704
43705         New module 'uniwbrk/table'.
43706         * modules/uniwbrk/table: New file.
43707         * lib/uniwbrk/wbrktable.h: New file.
43708         * lib/uniwbrk/wbrktable.c: New file.
43709
43710         New module 'uniwbrk/wordbreak-property'.
43711         * modules/uniwbrk/wordbreak-property: New file.
43712         * lib/uniwbrk/wordbreak-property.c: New file.
43713
43714         * lib/gen-uni-tables.c (WBP_*): New enum items.
43715         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
43716         (unicode_org_wbp): New variable.
43717         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
43718         New functions.
43719         (wbp_table): New structure.
43720         (output_wbp, output_wbrk_tables): New functions.
43721         (main): Accept additional argument. Invoke fill_org_wbp,
43722         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
43723         output_wbrk_tables.
43724         * modules/gen-uni-tables (Description): Update.
43725         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
43726         gen-uni-tables.
43727
43728         New module 'uniwbrk/base'.
43729         * modules/uniwbrk/base: New file.
43730         * lib/uniwbrk.h: New file.
43731
43732 2009-02-08  Bruno Haible  <bruno@clisp.org>
43733
43734         Update to Unicode 5.1.0.
43735         * lib/gen-uni-tables.c (is_property_alphabetic): Include
43736         U+2185..U+2188.
43737         (is_property_default_ignorable_code_point): Don't include characters
43738         of category Cc or Cs and not-a-characters.
43739         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
43740         U+0D79, U+109E, U+109F, U+A60C.
43741         * lib/unictype/bidi_of.h: Regenerated.
43742         * lib/unictype/blocks.h: Regenerated.
43743         * lib/unictype/categ_C.h: Regenerated.
43744         * lib/unictype/categ_Cf.h: Regenerated.
43745         * lib/unictype/categ_Cn.h: Regenerated.
43746         * lib/unictype/categ_L.h: Regenerated.
43747         * lib/unictype/categ_Ll.h: Regenerated.
43748         * lib/unictype/categ_Lm.h: Regenerated.
43749         * lib/unictype/categ_Lo.h: Regenerated.
43750         * lib/unictype/categ_Lu.h: Regenerated.
43751         * lib/unictype/categ_M.h: Regenerated.
43752         * lib/unictype/categ_Mc.h: Regenerated.
43753         * lib/unictype/categ_Me.h: Regenerated.
43754         * lib/unictype/categ_Mn.h: Regenerated.
43755         * lib/unictype/categ_N.h: Regenerated.
43756         * lib/unictype/categ_Nd.h: Regenerated.
43757         * lib/unictype/categ_Nl.h: Regenerated.
43758         * lib/unictype/categ_No.h: Regenerated.
43759         * lib/unictype/categ_P.h: Regenerated.
43760         * lib/unictype/categ_Pd.h: Regenerated.
43761         * lib/unictype/categ_Pe.h: Regenerated.
43762         * lib/unictype/categ_Pf.h: Regenerated.
43763         * lib/unictype/categ_Pi.h: Regenerated.
43764         * lib/unictype/categ_Po.h: Regenerated.
43765         * lib/unictype/categ_Ps.h: Regenerated.
43766         * lib/unictype/categ_S.h: Regenerated.
43767         * lib/unictype/categ_Sk.h: Regenerated.
43768         * lib/unictype/categ_Sm.h: Regenerated.
43769         * lib/unictype/categ_So.h: Regenerated.
43770         * lib/unictype/categ_of.h: Regenerated.
43771         * lib/unictype/combining.h: Regenerated.
43772         * lib/unictype/ctype_alnum.h: Regenerated.
43773         * lib/unictype/ctype_alpha.h: Regenerated.
43774         * lib/unictype/ctype_graph.h: Regenerated.
43775         * lib/unictype/ctype_lower.h: Regenerated.
43776         * lib/unictype/ctype_print.h: Regenerated.
43777         * lib/unictype/ctype_punct.h: Regenerated.
43778         * lib/unictype/ctype_upper.h: Regenerated.
43779         * lib/unictype/decdigit.h: Regenerated.
43780         * lib/unictype/digit.h: Regenerated.
43781         * lib/unictype/mirror.h: Regenerated.
43782         * lib/unictype/numeric.h: Regenerated.
43783         * lib/unictype/pr_alphabetic.h: Regenerated.
43784         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
43785         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
43786         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
43787         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
43788         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
43789         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
43790         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
43791         * lib/unictype/pr_combining.h: Regenerated.
43792         * lib/unictype/pr_dash.h: Regenerated.
43793         * lib/unictype/pr_decimal_digit.h: Regenerated.
43794         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
43795         * lib/unictype/pr_deprecated.h: Regenerated.
43796         * lib/unictype/pr_diacritic.h: Regenerated.
43797         * lib/unictype/pr_extender.h: Regenerated.
43798         * lib/unictype/pr_format_control.h: Regenerated.
43799         * lib/unictype/pr_grapheme_base.h: Regenerated.
43800         * lib/unictype/pr_grapheme_extend.h: Regenerated.
43801         * lib/unictype/pr_grapheme_link.h: Regenerated.
43802         * lib/unictype/pr_id_continue.h: Regenerated.
43803         * lib/unictype/pr_id_start.h: Regenerated.
43804         * lib/unictype/pr_ideographic.h: Regenerated.
43805         * lib/unictype/pr_ignorable_control.h: Regenerated.
43806         * lib/unictype/pr_lowercase.h: Regenerated.
43807         * lib/unictype/pr_math.h: Regenerated.
43808         * lib/unictype/pr_numeric.h: Regenerated.
43809         * lib/unictype/pr_other_alphabetic.h: Regenerated.
43810         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
43811         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
43812         * lib/unictype/pr_other_id_continue.h: Regenerated.
43813         * lib/unictype/pr_other_lowercase.h: Regenerated.
43814         * lib/unictype/pr_other_math.h: Regenerated.
43815         * lib/unictype/pr_punctuation.h: Regenerated.
43816         * lib/unictype/pr_sentence_terminal.h: Regenerated.
43817         * lib/unictype/pr_soft_dotted.h: Regenerated.
43818         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
43819         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
43820         * lib/unictype/pr_unified_ideograph.h: Regenerated.
43821         * lib/unictype/pr_uppercase.h: Regenerated.
43822         * lib/unictype/pr_xid_continue.h: Regenerated.
43823         * lib/unictype/pr_xid_start.h: Regenerated.
43824         * lib/unictype/pr_zero_width.h: Regenerated.
43825         * lib/unictype/scripts.h: Regenerated.
43826         * lib/unictype/scripts_byname.gperf: Regenerated.
43827         * lib/unictype/sy_java_ident.h: Regenerated.
43828         * lib/unilbrk/lbrkprop1.h: Regenerated.
43829         * lib/unilbrk/lbrkprop2.h: Regenerated.
43830         * tests/unictype/test-categ_C.c: Regenerated.
43831         * tests/unictype/test-categ_Cf.c: Regenerated.
43832         * tests/unictype/test-categ_Cn.c: Regenerated.
43833         * tests/unictype/test-categ_L.c: Regenerated.
43834         * tests/unictype/test-categ_Ll.c: Regenerated.
43835         * tests/unictype/test-categ_Lm.c: Regenerated.
43836         * tests/unictype/test-categ_Lo.c: Regenerated.
43837         * tests/unictype/test-categ_Lu.c: Regenerated.
43838         * tests/unictype/test-categ_M.c: Regenerated.
43839         * tests/unictype/test-categ_Mc.c: Regenerated.
43840         * tests/unictype/test-categ_Me.c: Regenerated.
43841         * tests/unictype/test-categ_Mn.c: Regenerated.
43842         * tests/unictype/test-categ_N.c: Regenerated.
43843         * tests/unictype/test-categ_Nd.c: Regenerated.
43844         * tests/unictype/test-categ_Nl.c: Regenerated.
43845         * tests/unictype/test-categ_No.c: Regenerated.
43846         * tests/unictype/test-categ_P.c: Regenerated.
43847         * tests/unictype/test-categ_Pd.c: Regenerated.
43848         * tests/unictype/test-categ_Pe.c: Regenerated.
43849         * tests/unictype/test-categ_Pf.c: Regenerated.
43850         * tests/unictype/test-categ_Pi.c: Regenerated.
43851         * tests/unictype/test-categ_Po.c: Regenerated.
43852         * tests/unictype/test-categ_Ps.c: Regenerated.
43853         * tests/unictype/test-categ_S.c: Regenerated.
43854         * tests/unictype/test-categ_Sk.c: Regenerated.
43855         * tests/unictype/test-categ_Sm.c: Regenerated.
43856         * tests/unictype/test-categ_So.c: Regenerated.
43857         * tests/unictype/test-ctype_alnum.c: Regenerated.
43858         * tests/unictype/test-ctype_alpha.c: Regenerated.
43859         * tests/unictype/test-ctype_graph.c: Regenerated.
43860         * tests/unictype/test-ctype_lower.c: Regenerated.
43861         * tests/unictype/test-ctype_print.c: Regenerated.
43862         * tests/unictype/test-ctype_punct.c: Regenerated.
43863         * tests/unictype/test-ctype_upper.c: Regenerated.
43864         * tests/unictype/test-decdigit.h: Regenerated.
43865         * tests/unictype/test-digit.h: Regenerated.
43866         * tests/unictype/test-numeric.h: Regenerated.
43867         * tests/unictype/test-pr_alphabetic.c: Regenerated.
43868         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
43869         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
43870         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
43871         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
43872         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
43873         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
43874         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
43875         * tests/unictype/test-pr_combining.c: Regenerated.
43876         * tests/unictype/test-pr_dash.c: Regenerated.
43877         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
43878         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
43879         * tests/unictype/test-pr_deprecated.c: Regenerated.
43880         * tests/unictype/test-pr_diacritic.c: Regenerated.
43881         * tests/unictype/test-pr_extender.c: Regenerated.
43882         * tests/unictype/test-pr_format_control.c: Regenerated.
43883         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
43884         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
43885         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
43886         * tests/unictype/test-pr_id_continue.c: Regenerated.
43887         * tests/unictype/test-pr_id_start.c: Regenerated.
43888         * tests/unictype/test-pr_ideographic.c: Regenerated.
43889         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
43890         * tests/unictype/test-pr_lowercase.c: Regenerated.
43891         * tests/unictype/test-pr_math.c: Regenerated.
43892         * tests/unictype/test-pr_numeric.c: Regenerated.
43893         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
43894         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
43895         Regenerated.
43896         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
43897         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
43898         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
43899         * tests/unictype/test-pr_other_math.c: Regenerated.
43900         * tests/unictype/test-pr_punctuation.c: Regenerated.
43901         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
43902         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
43903         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
43904         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
43905         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
43906         * tests/unictype/test-pr_uppercase.c: Regenerated.
43907         * tests/unictype/test-pr_xid_continue.c: Regenerated.
43908         * tests/unictype/test-pr_xid_start.c: Regenerated.
43909         * tests/unictype/test-pr_zero_width.c: Regenerated.
43910
43911         Update to Unicode 5.1.0.
43912         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
43913         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
43914         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
43915         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
43916         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
43917         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
43918         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
43919         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
43920         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
43921         (nonspacing_table_ind): Update.
43922         * tests/uniwidth/test-uc_width2.sh: Update expected result.
43923
43924         Update to Unicode 5.1.0.
43925         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
43926         code transform.
43927         * lib/uniname/uniname.c (unicode_character_name,
43928         unicode_name_character): Add the range 0x1Fxxx to the code transform.
43929         * lib/uniname/uninames.h: Regenerated.
43930         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
43931
43932 2009-02-07  Bruno Haible  <bruno@clisp.org>
43933
43934         Merge gen-ctype and gen-lbrk into a single program.
43935         * lib/gen-uni-tables.c: New file, incorporating
43936         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
43937         Add directory prefixes to the names of the generated files.
43938         * lib/unictype/gen-ctype.c: Remove file.
43939         * lib/unilbrk/gen-lbrk.c: Remove file.
43940         * modules/gen-uni-tables: New file.
43941         * modules/unictype/gen-ctype: Remove file.
43942         * modules/unilbrk/gen-lbrk: Remove file.
43943
43944 2009-02-07  Bruno Haible  <bruno@clisp.org>
43945
43946         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
43947
43948         New module 'unistr/u32-strcoll'.
43949         * modules/unistr/u32-strcoll: New file.
43950         * lib/unistr/u32-strcoll.c: New file.
43951
43952         New module 'unistr/u16-strcoll'.
43953         * modules/unistr/u16-strcoll: New file.
43954         * lib/unistr/u16-strcoll.c: New file.
43955
43956         New module 'unistr/u8-strcoll'.
43957         * modules/unistr/u8-strcoll: New file.
43958         * lib/unistr/u8-strcoll.c: New file.
43959         * lib/unistr/u-strcoll.h: New file.
43960
43961 2009-02-07  Bruno Haible  <bruno@clisp.org>
43962
43963         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
43964         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
43965         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
43966         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
43967         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
43968         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
43969
43970 2009-02-07  Bruno Haible  <bruno@clisp.org>
43971
43972         Make 64-bit clean.
43973         * lib/unictype/gen-ctype.c (output_predicate, output_category,
43974         output_combclass, output_bidi_category, output_decimal_digit,
43975         output_digit, output_numeric, output_mirror, output_scripts,
43976         output_ident_category): Use proper width specifier in format strings.
43977
43978 2009-02-07  Bruno Haible  <bruno@clisp.org>
43979
43980         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
43981         failure behaviour.
43982
43983 2009-02-07  Jim Meyering  <meyering@redhat.com>
43984
43985         regex: avoid compilation failure with upcoming gcc-4.4
43986         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
43987         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
43988         "... error: integer overflow in preprocessor expression".
43989
43990 2009-02-05  Ben Pfaff  <blp@gnu.org>
43991
43992         Fix link errors on Windows when close module is used.
43993         * modules/close: Add $(LIB_CLOSE) to Link section.
43994         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
43995         $(LIB_CLOSE) on Windows.
43996
43997 2009-02-05  Jim Meyering  <meyering@redhat.com>
43998
43999         still avoid unused-parameter warnings, but do it cleanly
44000         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
44001         (get_fs_usage): Cast to void instead.
44002         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
44003         (dev_from_mount_options, read_file_system_list): Cast to void.
44004         Prompted by Bruno Haible.
44005
44006 2009-02-04  Jim Meyering  <meyering@redhat.com>
44007
44008         fsusage.c: correct copyright year
44009         * lib/fsusage.c: Reflect year in which the change is pushed into
44010
44011         avoid misc. warnings
44012         * lib/fsusage.c (UNUSED_PARAM): Define.
44013         (get_fs_usage): Mark parameter "disk" as unused.
44014         * lib/getugroups.c (getgrent): Use "void" in prototype.
44015         * lib/mountlist.c: Mark unused parameters.
44016         (read_file_system_list): Declare a local with "const".
44017         * lib/nanosleep.c (getnow): Declare static.
44018         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
44019
44020         dirfd: set errno upon failure
44021         * lib/dirfd.c: Include <errno.h>.
44022         Set errno to ENOTSUP when returning -1.
44023         * modules/dirfd (Depends-on): Add errno.
44024         Suggested by John Kodis <kodis@comcast.net>.
44025
44026 2009-02-01  Bruno Haible  <bruno@clisp.org>
44027
44028         Don't assume sizeof (long) >= sizeof (void *).
44029         * lib/memcmp.c: Include stdint.h.
44030         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
44031         srcp2 to 'const byte *'.
44032         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
44033         types to uintptr_t.
44034         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
44035         * modules/memcmp (Depends-on): Add stdint.
44036         Reported by Ozkan Sezer <sezeroz@gmail.com>.
44037
44038 2009-01-30  Eric Blake  <ebb9@byu.net>
44039
44040         fix more require-before-expand issues
44041         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
44042         expand, AC_PROG_AWK.
44043         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
44044
44045 2009-01-28  Eric Blake  <ebb9@byu.net>
44046
44047         version-etc: use consistent URL formatting
44048         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
44049         Improve formatting.  Use fputs for string without %.
44050
44051 2009-01-28  Jim Meyering  <meyering@redhat.com>
44052
44053         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
44054         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
44055         "underquoted definition of NAME" from autoconf-2.59.
44056
44057 2009-01-28  Bruno Haible  <bruno@clisp.org>
44058
44059         * doc/gnulib.texi: Add "Obsolete modules" to index.
44060
44061 2009-01-28  Jim Meyering  <meyering@redhat.com>
44062
44063         useless-if-before-free: recognize more variants
44064         * build-aux/useless-if-before-free: Also recognize e.g.,
44065         if (NULL != p) free (p);
44066
44067 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
44068
44069         test-getaddrinfo: skip (don't fail) this test when there's no network
44070         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
44071         on the presumption that it means you lack network access.
44072
44073 2009-01-26  Jim Meyering  <meyering@redhat.com>
44074
44075         fflush: avoid warnings on modern systems
44076         * lib/fflush.c (rpl_fflush): Move declarations of locals,
44077         pos and result, into scopes where they're used.
44078
44079 2009-01-26  Eric Blake  <ebb9@byu.net>
44080
44081         Silence warning reintroduced by recent extensions patch.
44082         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
44083         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
44084         autoconf.
44085
44086         Backport improved autoconf semantics of AC_DEFUN_ONCE.
44087         * m4/00gnulib.m4: New file.
44088         * gnulib-tool (func_get_filelist): Always use it.
44089         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
44090         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
44091
44092 2009-01-25  Bruno Haible  <bruno@clisp.org>
44093
44094         Make test-quotearg work on MacOS X and AIX.
44095         * tests/test-quotearg.sh: New file.
44096         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
44097         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
44098         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
44099         include <libintl.h>.
44100         (fake_locale): Remove variable.
44101         (gettext, dgettext, dcgettext): Remove functions.
44102         (main): Instead of setting a fake locale, set a real locale. Call
44103         textdomain and bindtextdomain.
44104         * modules/quotearg-tests (Files): Add the new files.
44105         (Depends-on): Add gettext, setenv, unsetenv.
44106         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
44107         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
44108         Augment TESTS_ENVIRONMENT.
44109
44110 2009-01-25  Bruno Haible  <bruno@clisp.org>
44111
44112         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
44113         fr_FR.ISO8859-1 locale on MacOS X.
44114         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
44115         ja_JP.eucJP locale on MacOS X.
44116         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
44117         zh_CN.GB18030 locale on MacOS X.
44118
44119 2009-01-25  Bruno Haible  <bruno@clisp.org>
44120
44121         Avoid link errors on MacOS X 10.3.
44122         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
44123         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
44124
44125 2009-01-25  Bruno Haible  <bruno@clisp.org>
44126
44127         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
44128         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
44129         * modules/pipe (Files): Remove m4/posix_spawn.m4.
44130         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
44131         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
44132         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
44133         posix_spawnattr_init, posix_spawnattr_setsigmask,
44134         posix_spawnattr_setflags, posix_spawnattr_destroy.
44135
44136         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
44137         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
44138         * modules/execute (Files): Remove m4/posix_spawn.m4.
44139         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
44140         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
44141         posix_spawnattr_init, posix_spawnattr_setsigmask,
44142         posix_spawnattr_setflags, posix_spawnattr_destroy.
44143
44144 2009-01-25  Bruno Haible  <bruno@clisp.org>
44145
44146         * lib/glthread/threadlib.c: Include <stdlib.h>.
44147
44148 2009-01-25  Bruno Haible  <bruno@clisp.org>
44149
44150         * lib/glthread/threadlib.c (dummy): New declaration.
44151
44152 2009-01-25  Bruno Haible  <bruno@clisp.org>
44153
44154         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
44155         multibyte characters also for the GB18030 encoding. Don't crash when
44156         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
44157
44158 2009-01-25  Bruno Haible  <bruno@clisp.org>
44159
44160         Avoid redefining 'struct random_data' on OSF/1 5.1.
44161         * lib/stdlib.in.h: Include <random.h> if it exists.
44162         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
44163         HAVE_RANDOM_H. Include <random.h> when testing whether
44164         'struct random_data' exists.
44165         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
44166
44167 2009-01-25  Bruno Haible  <bruno@clisp.org>
44168
44169         Don't install charset.alias on MacOS X >= 10.3.
44170         * lib/localcharset.c (DARWIN7): New macro.
44171         (get_charset_aliases): Hardcode the result for Darwin7.
44172         * modules/localcharset (install-exec-local): Don't install
44173         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
44174
44175 2009-01-25  Bruno Haible  <bruno@clisp.org>
44176
44177         Don't install charset.alias on mingw and Cygwin.
44178         * modules/localcharset (install-exec-local): Don't install
44179         charset.alias on mingw and Cygwin, if the file does not yet exist.
44180         The result for these platforms is hardcoded in localcharset.c.
44181
44182 2009-01-25  Bruno Haible  <bruno@clisp.org>
44183
44184         Make it possible again to use AC_GNU_SOURCE together with gnulib.
44185         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
44186         before requiring AC_USE_SYSTEM_EXTENSIONS.
44187
44188 2009-01-25  Jim Meyering  <meyering@redhat.com>
44189
44190         c-strtod: avoid warnings
44191         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
44192         "assignment discards qualifiers from pointer target type" warnings.
44193
44194 2009-01-24  Bruno Haible  <bruno@clisp.org>
44195
44196         Add support for non-UTF-8 locales on MacOS X.
44197         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
44198         canonical encodings. For Darwin 7 and newer, don't map traditional
44199         encodings to UTF-8.
44200         Reported by Vincent Lefevre <vincent@vinc17.org>
44201         at <http://savannah.gnu.org/bugs/?25235>.
44202
44203 2009-01-24  Bruno Haible  <bruno@clisp.org>
44204
44205         * doc/gnulib.texi (Obsolete modules): New section.
44206         Reported by Mike Frysinger <vapier@gentoo.org>.
44207
44208 2009-01-24  Bruno Haible  <bruno@clisp.org>
44209
44210         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
44211         (%.dvi): New rule.
44212
44213 2009-01-24  Bruno Haible  <bruno@clisp.org>
44214
44215         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
44216         Reported by Eric Blake.
44217
44218 2009-01-24  Bruno Haible  <bruno@clisp.org>
44219
44220         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
44221         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
44222         Reported by Gary V. Vaughan <gary@gnu.org>.
44223
44224 2009-01-24  Bruno Haible  <bruno@clisp.org>
44225
44226         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
44227
44228 2009-01-23  Bruno Haible  <bruno@clisp.org>
44229
44230         Make c-strtod, c-strtold usable in libraries.
44231         * lib/c-strtod.c: Include string.h instead of xalloc.h.
44232         (C_STRTOD): Call strdup instead of xstrdup.
44233         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
44234         * modules/c-strtold (Depends-on): Likewise.
44235         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
44236         * NEWS: Mention the change.
44237         Reported by Michael Gold <mgold@ncf.ca>.
44238
44239 2009-01-23  Jim Meyering  <meyering@redhat.com>
44240
44241         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
44242         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
44243         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
44244
44245 2009-01-23  Simon Josefsson  <simon@josefsson.org>
44246
44247         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
44248         GNU CoreUtils.
44249         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
44250         * modules/version-etc (Description): Update.
44251
44252 2009-01-22  Bruno Haible  <bruno@clisp.org>
44253
44254         Cache the C locale object.
44255         * lib/c-strtod.c (c_locale_cache): New variable.
44256         (c_locale): New function.
44257         (C_STRTOD): Use it, and don't call freelocale.
44258         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
44259         Suggested by Paolo Bonzini.
44260
44261 2009-01-21  Bruno Haible  <bruno@clisp.org>
44262
44263         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
44264         conditions other than overflow.
44265
44266 2009-01-21  Bruno Haible  <bruno@clisp.org>
44267
44268         * lib/c-strtod.c: Include errno.h.
44269         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
44270         value from STRTOD_L and STRTOD.
44271
44272 2009-01-21  Bruno Haible  <bruno@clisp.org>
44273         and Jim Meyering  <meyering@redhat.com>
44274
44275         nanosleep: skip configure test (fail it) for apple universal builds
44276         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
44277         universal builds, assume that nanosleep does not work.
44278         * modules/nanosleep (Depends-on): Add multiarch.
44279
44280         mktime: skip configure test (fail it) for apple universal builds
44281         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
44282         universal builds, assume that mktime does not work.
44283         * modules/mktime (Depends-on): Add multiarch.
44284
44285 2009-01-21  Eric Blake  <ebb9@byu.net>
44286
44287         multiarch: avoid expand-before-require warning
44288         * modules/multiarch (configure.ac): Require, rather than expand,
44289         gl_MULTIARCH.
44290         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
44291         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
44292         enforce that all clients require it.  Partial reversion of
44293         2008-12-29 patch.
44294
44295         error: avoid expand-before-require warning
44296         * modules/errno (configure.ac): Require, rather than expand,
44297         gl_HEADER_ERRNO_H.
44298         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
44299         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
44300         enforce that all clients require it.
44301
44302         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
44303         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
44304         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
44305         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
44306
44307 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
44308
44309         Revert:
44310         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
44311
44312         regex: do not depend on obsolete modules.
44313         * modules/regex: Remove memcmp and memmove.
44314
44315 2009-01-20  Bruno Haible  <bruno@clisp.org>
44316
44317         Make the 'link' module link on Windows NT 4.
44318         * lib/link.c (_WIN32_WINNT): Don't define.
44319         (CreateHardLinkFuncType): New type.
44320         (CreateHardLinkFunc, initialized): New variables.
44321         (initialize): New function.
44322         (link): Invoke CreateHardLink indirectly through the function pointer.
44323
44324 2009-01-20  Bruno Haible  <bruno@clisp.org>
44325
44326         Fix compilation failure on mingw.
44327         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
44328
44329 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
44330
44331         * doc/c-strtod.texi: Mention a couple of restrictions.
44332
44333 2009-01-20  Jim Meyering  <meyering@redhat.com>
44334
44335         gettimeofday: move more declarations out of functions
44336         * lib/gettimeofday.c: Move extern declarations of tzset and
44337         gmtime out of containing functions.  Prompted by Bruno Haible.
44338
44339 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
44340
44341         regex: do not depend on obsolete modules.
44342         * modules/regex: Remove memcmp and memmove.
44343
44344 2009-01-19  Bruno Haible  <bruno@clisp.org>
44345
44346         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
44347         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
44348         gl_BIGENDIAN, not AC_C_BIGENDIAN.
44349         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
44350         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
44351
44352 2009-01-19  Bruno Haible  <bruno@clisp.org>
44353
44354         * tests/test-link.c: Include <errno.h>.
44355         (main): Exit with code 77 when a hard link cannot be created due to
44356         the file system.
44357         * tests/test-link.sh: Skip test when a hard link cannot be created due
44358         to the file system.
44359         Suggested by Eric Blake.
44360
44361 2009-01-19  Martin Lambers  <marlam@marlam.de>
44362
44363         * modules/link-tests: New file.
44364         * tests/test-link.sh: New file.
44365         * tests/test-link.c: New file.
44366
44367 2009-01-19  Eric Blake  <ebb9@byu.net>
44368
44369         doc: mention another function added in cygwin 1.7.0
44370         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
44371         Another new function in cygwin 1.7.
44372
44373 2009-01-19  Bruno Haible  <bruno@clisp.org>
44374
44375         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
44376         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
44377         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
44378         gl_BIGENDIAN, not AC_C_BIGENDIAN.
44379         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
44380         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
44381         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
44382         * m4/md4.m4 (gl_MD4): Likewise.
44383         * m4/md5.m4 (gl_MD5): Likewise.
44384         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
44385         * m4/sha1.m4 (gl_SHA1): Likewise.
44386         * m4/sha256.m4 (gl_SHA256): Likewise.
44387         * m4/sha512.m4 (gl_SHA512): Likewise.
44388
44389 2009-01-19  Bruno Haible  <bruno@clisp.org>
44390
44391         * modules/uniname/uniname-tests (Depends-on): Add progname.
44392         * tests/uniname/test-uninames.c: Include progname.h.
44393         (main): Call set_program_name.
44394
44395         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
44396         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
44397         (main): Call set_program_name.
44398
44399         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
44400         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
44401         (main): Call set_program_name.
44402
44403         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
44404         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
44405         (main): Call set_program_name.
44406
44407         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
44408         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
44409         (main): Call set_program_name.
44410
44411         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
44412         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
44413         (main): Call set_program_name.
44414
44415         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
44416         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
44417         (main): Call set_program_name.
44418
44419         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
44420         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
44421         (main): Call set_program_name.
44422
44423         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
44424         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
44425         (main): Call set_program_name.
44426
44427 2009-01-19  Eric Blake  <ebb9@byu.net>
44428
44429         test-unistd: test previous patch
44430         * tests/test-unistd.c: Test *_FILENO macros.
44431
44432         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
44433         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
44434         Guarantee a definition.
44435         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
44436         * modules/unistd-safer (Depends-on): Add dependency on unistd.
44437         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
44438         * lib/dup-safer.c (STDERR_FILENO): Likewise.
44439         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
44440         Likewise.
44441         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
44442         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
44443         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
44444         Likewise.
44445         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
44446         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
44447         (STDERR_FILENO): Likewise.
44448         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
44449         (STDERR_FILENO): Likewise.
44450         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
44451         (STDERR_FILENO): Likewise.
44452         Reported by Elbert Pol.
44453
44454 2009-01-19  Eric Blake  <ebb9@byu.net>
44455
44456         doc: mention more functions added in cygwin 1.7.0
44457         * doc/posix-functions/abort.texi (abort): Update wording related
44458         to cygwin.
44459         * doc/posix-functions/daylight.texi (daylight): Likewise.
44460         * doc/posix-functions/optarg.texi (optarg): Likewise.
44461         * doc/posix-functions/optarg.texi (opterr): Likewise.
44462         * doc/posix-functions/optarg.texi (optind): Likewise.
44463         * doc/posix-functions/optarg.texi (optopt): Likewise.
44464         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
44465         worked in 1.5.x, and was withdrawn in 1.7.
44466         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
44467         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
44468         cygwin versions.
44469         * doc/posix-functions/perror.texi (perror): Likewise.
44470         * doc/posix-functions/printf.texi (printf): Likewise.
44471         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
44472         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
44473         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
44474         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
44475         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
44476         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
44477         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
44478         Likewise.
44479         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
44480         Likewise.
44481         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
44482         this function.
44483         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
44484         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
44485         Likewise.
44486         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
44487         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
44488         * doc/posix-functions/confstr.texi (confstr): Likewise.
44489         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
44490         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
44491         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
44492         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
44493         * doc/posix-functions/fputws.texi (fputws): Likewise.
44494         * doc/posix-functions/fwide.texi (fwide): Likewise.
44495         * doc/posix-functions/getwc.texi (getwc): Likewise.
44496         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
44497         * doc/posix-functions/putwc.texi (putwc): Likewise.
44498         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
44499         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
44500         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
44501         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
44502         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
44503         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
44504         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
44505         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
44506         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
44507         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
44508         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
44509
44510 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
44511
44512         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
44513         * lib/ioctl.c: Include <sys/ioctl.h>.
44514
44515 2009-01-19  Simon Josefsson  <simon@josefsson.org>
44516
44517         * modules/getdate-tests (Depends-on): Add progname.
44518         * tests/test-getdate.c: Use progname module, to avoid link errors
44519         on non-glibc systems.
44520
44521 2009-01-18  Simon Josefsson  <simon@josefsson.org>
44522
44523         * modules/filenamecat-tests (Depends-on): Add progname.
44524         * modules/fstrcmp-tests (Depends-on): Likewise.
44525
44526         * tests/test-filenamecat.c: Use progname module, to avoid link
44527         errors on non-glibc systems.
44528         * tests/test-fstrcmp.c: Likewise.
44529
44530 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
44531
44532         gettimeofday: avoid warning: nested extern declaration of 'localtime'
44533         * lib/gettimeofday.c: Move extern declaration out of function.
44534
44535 2009-01-18  Bruno Haible  <bruno@clisp.org>
44536
44537         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
44538         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
44539         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
44540
44541 2009-01-18  Bruno Haible  <bruno@clisp.org>
44542
44543         * lib/strftime.c (MEMPCPY): Remove unused macro.
44544         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
44545
44546 2009-01-18  Martin Lambers  <marlam@marlam.de>
44547
44548         New module 'link'.
44549         * lib/unistd.in.h (link): New declaration.
44550         * lib/link.c: New file.
44551         * m4/link.m4: New file.
44552         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
44553         HAVE_LINK.
44554         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
44555         * modules/link: New file.
44556         * doc/posix-functions/link.texi: Mention the new module.
44557
44558 2009-01-18  Bruno Haible  <bruno@clisp.org>
44559
44560         * tests/test-avltree_list.c (main): Call set_program_name.
44561         * tests/test-avltree_oset.c (main): Likewise.
44562         * tests/test-obstack-printf.c: Include progname.h.
44563         (main): Call set_program_name.
44564         * tests/test-quotearg.c: Include progname.h.
44565         (main): Call set_program_name.
44566         * tests/test-xmemdup0.c: Include progname.h.
44567         (main): Call set_program_name.
44568
44569 2009-01-18  Bruno Haible  <bruno@clisp.org>
44570
44571         New module 'alphasort'.
44572         * lib/dirent.in.h (alphasort): New declaration.
44573         * lib/alphasort.c: New file, from glibc with modifications.
44574         * m4/alphasort.m4: New file.
44575         * modules/alphasort: New file.
44576         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
44577         HAVE_ALPHASORT.
44578         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
44579         HAVE_ALPHASORT.
44580         * doc/posix-functions/alphasort.texi: Mention the new module and the
44581         portability problems.
44582
44583 2009-01-18  Bruno Haible  <bruno@clisp.org>
44584
44585         New module 'scandir'.
44586         * lib/dirent.in.h (scandir): New declaration.
44587         * lib/scandir.c: New file, from glibc with modifications.
44588         * m4/scandir.m4: New file.
44589         * modules/scandir: New file.
44590         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
44591         HAVE_SCANDIR.
44592         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
44593         HAVE_SCANDIR.
44594         * doc/posix-functions/scandir.texi: Mention the new module and the
44595         portability problems.
44596
44597 2009-01-17  Bruno Haible  <bruno@clisp.org>
44598
44599         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
44600         Update documentation.
44601         (func_remove_suffix): Escape all dots in the suffix. Update
44602         documentation.
44603         (func_filter_filelist): Update documentation.
44604         Reported by Ralf Wildenhues.
44605
44606 2009-01-17  Bruno Haible  <bruno@clisp.org>
44607
44608         * modules/dprintf-posix-tests: New file.
44609         * tests/test-dprintf-posix.sh: New file.
44610         * tests/test-dprintf-posix.c: New file.
44611
44612         New modules 'dprintf', 'dprintf-posix'.
44613         * lib/stdio.in.h (dprintf): New declaration.
44614         * lib/dprintf.c: New file.
44615         * m4/dprintf.m4: New file.
44616         * m4/dprintf-posix.m4: New file.
44617         * modules/dprintf: New file.
44618         * modules/dprintf-posix: New file.
44619         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
44620         HAVE_DPRINTF, REPLACE_DPRINTF.
44621         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
44622         HAVE_DPRINTF, REPLACE_DPRINTF.
44623         * doc/posix-functions/dprintf.texi: Mention the new modules.
44624
44625 2009-01-17  Bruno Haible  <bruno@clisp.org>
44626
44627         * modules/vdprintf-posix-tests: New file.
44628         * tests/test-vdprintf-posix.sh: New file.
44629         * tests/test-vdprintf-posix.c: New file.
44630
44631         New modules 'vdprintf', 'vdprintf-posix'.
44632         * lib/stdio.in.h (vdprintf): New declaration.
44633         * lib/vdprintf.c: New file.
44634         * m4/vdprintf.m4: New file.
44635         * m4/vdprintf-posix.m4: New file.
44636         * modules/vdprintf: New file.
44637         * modules/vdprintf-posix: New file.
44638         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
44639         HAVE_VDPRINTF, REPLACE_VDPRINTF.
44640         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
44641         HAVE_VDPRINTF, REPLACE_VDPRINTF.
44642         * doc/posix-functions/vdprintf.texi: Mention the new modules.
44643
44644 2009-01-17  Bruno Haible  <bruno@clisp.org>
44645
44646         Fix replacement of fopen on mingw.
44647         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
44648         mingw.
44649
44650 2009-01-17  Bruno Haible  <bruno@clisp.org>
44651
44652         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
44653         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
44654
44655 2009-01-17  Bruno Haible  <bruno@clisp.org>
44656
44657         Avoid test-fflush2.sh failure on mingw.
44658         * tests/test-fflush2.c: Include binary-io.h.
44659         (main): Put standard input into binary mode.
44660         * modules/fflush-tests (Depends-on): Add binary-io.
44661
44662 2009-01-17  Bruno Haible  <bruno@clisp.org>
44663
44664         * lib/wchar.in.h: In another particular situation, include only the
44665         system's <wchar.h> file.
44666         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
44667         Reported by Albert Chin-A-Young <china@thewrittenword.com>
44668         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
44669
44670 2009-01-17  Bruno Haible  <bruno@clisp.org>
44671
44672         Support for stripping executables in --enable-relocatable.
44673         * build-aux/install-reloc: Expect one more argument, or an environment
44674         variable RELOC_STRIP_PROG. If set, strip the destination program and
44675         its wrapper.
44676         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
44677         RELOC_STRIP_PROG.
44678         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
44679         to set RELOCATABLE_STRIP.
44680         * NEWS: Mention the new Makefile requirement.
44681
44682 2009-01-17  Bruno Haible  <bruno@clisp.org>
44683
44684         * build-aux/install-reloc: Remove debugging information left over by
44685         C compiler on MacOS X.
44686
44687 2009-01-17  Bruno Haible  <bruno@clisp.org>
44688
44689         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
44690         * lib/progreloc.c (find_executable): Fix type of pointer passed to
44691         _NSGetExecutablePath.
44692
44693 2009-01-16  Jim Meyering  <meyering@redhat.com>
44694
44695         strerror: avoid warnings about discarding "const"
44696         * lib/strerror.c (rpl_strerror): Instead of returning a const
44697         string from each and every "case", use a variable, and add a single
44698         cast after the switch.
44699
44700 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
44701
44702         * lib/arpa_inet.in.h: Add extern "C" block for C++.
44703
44704 2009-01-16  Bruno Haible  <bruno@clisp.org>
44705
44706         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
44707         array initializer syntax that also works in C++ mode.
44708         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44709
44710 2009-01-16  Jim Meyering  <meyering@redhat.com>
44711
44712         poll: suppress a warning
44713         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
44714         to ignore "...unsigned expression < 0 is always false" warnings.
44715
44716 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
44717
44718         poll: remove declarations of unused variables
44719         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
44720         sockbuf and optlen.
44721
44722 2009-01-15  Bruno Haible  <bruno@clisp.org>
44723
44724         Make fflush-after-ungetc POSIX compliant on BSD systems.
44725         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
44726         (clear_ungetc_buffer): Implement also for other systems.
44727         (rpl_fflush): On glibc systems, invoke
44728         clear_ungetc_buffer_preserving_position. Otherwise, invoke
44729         clear_ungetc_buffer after fetching the stream's position, not before.
44730
44731 2009-01-15  Bruno Haible  <bruno@clisp.org>
44732
44733         Make fflush-after-ungetc POSIX compliant on glibc systems.
44734         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
44735         after ungetc.
44736         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
44737         (rpl_fflush): On glibc systems, simply call the system's fflush
44738         function after clearing the ungetc buffer.
44739         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
44740         Instead, lseek only to the end of file, then use the system's fseeko
44741         for the rest. On glibc systems, reset the EOF indicator bit.
44742
44743 2009-01-15  Jim Meyering  <meyering@redhat.com>
44744
44745         openmp.m4: revert quote-adding change, for portability to older autoconf
44746         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
44747         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
44748         Simon Josefsson noticed the problem when using autoconf-2.61.
44749
44750 2009-01-15  Bruno Haible  <bruno@clisp.org>
44751
44752         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
44753         * tests/test-fflush2.c (ASSERT): Always fail.
44754         (main): Add two tests for fflush() after ungetc(), taking into account
44755         the Austin Group's clarification.
44756         Suggested by Eric Blake.
44757
44758 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
44759
44760         mktime.m4: remove K&R-style function prototypes
44761         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
44762         for the Sun C++ compiler.
44763
44764 2009-01-14  Bruno Haible  <bruno@clisp.org>
44765
44766         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
44767         while including <wchar.h>.
44768         * lib/wchar.in.h: In two particular situations on HP-UX, include only
44769         the system's <wchar.h> file.
44770         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44771
44772 2009-01-14  Bruno Haible  <bruno@clisp.org>
44773
44774         * m4/csharp.m4: Don't mention gettext on the serial number line.
44775         * m4/csharpexec.m4: Likewise.
44776         * m4/eaccess.m4: Likewise.
44777         * m4/javaexec.m4: Likewise.
44778         * m4/sig_atomic_t.m4: Likewise.
44779         * m4/tmpdir.m4: Likewise.
44780         * m4/intldir.m4: Bump gettext version.
44781         * m4/lib-ld.m4: Likewise.
44782
44783 2009-01-14  Bruno Haible  <bruno@clisp.org>
44784
44785         * lib/progname.c (set_program_name): Add more comments.
44786         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
44787
44788 2009-01-14  Simon Josefsson  <simon@josefsson.org>
44789
44790         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
44791         were sys/stat.h does not define it.
44792
44793 2009-01-14  Jim Meyering  <meyering@redhat.com>
44794
44795         many *.m4 files: improve m4 quoting
44796         99% of this change was performed by running the following commands:
44797         git ls-files | grep '\.m4$' | xargs perl -pi \
44798           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
44799           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
44800           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
44801           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
44802         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
44803         The remainder were to add Copyright dates, increment serial numbers,
44804         undo some changes in comments, exclude m4/intl.m4, and add quotes
44805         around the "1" in ",1" where the unusual spacing prohibited the
44806         above regexps from doing the job.  For more details, see
44807         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
44808         * m4/acl.m4: Modified.
44809         * m4/afs.m4: Likewise.
44810         * m4/alloca.m4: Likewise.
44811         * m4/argp.m4: Likewise.
44812         * m4/argz.m4: Likewise.
44813         * m4/atexit.m4: Likewise.
44814         * m4/bison-i18n.m4: Likewise.
44815         * m4/bison.m4: Likewise.
44816         * m4/byteswap.m4: Likewise.
44817         * m4/c-stack.m4: Likewise.
44818         * m4/c-strtod.m4: Likewise.
44819         * m4/calloc.m4: Likewise.
44820         * m4/canonicalize-lgpl.m4: Likewise.
44821         * m4/chown.m4: Likewise.
44822         * m4/clock_time.m4: Likewise.
44823         * m4/codeset.m4: Likewise.
44824         * m4/copy-file.m4: Likewise.
44825         * m4/csharp.m4: Likewise.
44826         * m4/csharpcomp.m4: Likewise.
44827         * m4/csharpexec.m4: Likewise.
44828         * m4/d-ino.m4: Likewise.
44829         * m4/d-type.m4: Likewise.
44830         * m4/dirfd.m4: Likewise.
44831         * m4/double-slash-root.m4: Likewise.
44832         * m4/eaccess.m4: Likewise.
44833         * m4/eealloc.m4: Likewise.
44834         * m4/environ.m4: Likewise.
44835         * m4/errno_h.m4: Likewise.
44836         * m4/euidaccess.m4: Likewise.
44837         * m4/execute.m4: Likewise.
44838         * m4/fatal-signal.m4: Likewise.
44839         * m4/fchdir.m4: Likewise.
44840         * m4/fcntl_h.m4: Likewise.
44841         * m4/fileblocks.m4: Likewise.
44842         * m4/filenamecat.m4: Likewise.
44843         * m4/findprog.m4: Likewise.
44844         * m4/flexmember.m4: Likewise.
44845         * m4/fnmatch.m4: Likewise.
44846         * m4/fopen.m4: Likewise.
44847         * m4/fpending.m4: Likewise.
44848         * m4/fprintf-posix.m4: Likewise.
44849         * m4/free.m4: Likewise.
44850         * m4/frexp.m4: Likewise.
44851         * m4/frexpl.m4: Likewise.
44852         * m4/fsusage.m4: Likewise.
44853         * m4/ftruncate.m4: Likewise.
44854         * m4/gc-camellia.m4: Likewise.
44855         * m4/gc-random.m4: Likewise.
44856         * m4/gc.m4: Likewise.
44857         * m4/getaddrinfo.m4: Likewise.
44858         * m4/getcwd-abort-bug.m4: Likewise.
44859         * m4/getcwd-path-max.m4: Likewise.
44860         * m4/getdate.m4: Likewise.
44861         * m4/getdomainname.m4: Likewise.
44862         * m4/getgroups.m4: Likewise.
44863         * m4/gethostname.m4: Likewise.
44864         * m4/gethrxtime.m4: Likewise.
44865         * m4/getline.m4: Likewise.
44866         * m4/getloadavg.m4: Likewise.
44867         * m4/getndelim2.m4: Likewise.
44868         * m4/getpass.m4: Likewise.
44869         * m4/gettext.m4: Likewise.
44870         * m4/gettime.m4: Likewise.
44871         * m4/gettimeofday.m4: Likewise.
44872         * m4/gnulib-common.m4: Likewise.
44873         * m4/group-member.m4: Likewise.
44874         * m4/host-os.m4: Likewise.
44875         * m4/iconv.m4: Likewise.
44876         * m4/iconv_open.m4: Likewise.
44877         * m4/inet_ntop.m4: Likewise.
44878         * m4/inet_pton.m4: Likewise.
44879         * m4/inline.m4: Likewise.
44880         * m4/intldir.m4: Likewise.
44881         * m4/intlmacosx.m4: Likewise.
44882         * m4/intmax.m4: Likewise.
44883         * m4/intmax_t.m4: Likewise.
44884         * m4/inttypes.m4: Likewise.
44885         * m4/inttypes_h.m4: Likewise.
44886         * m4/inttypes-pri.m4: Likewise.
44887         * m4/isapipe.m4: Likewise.
44888         * m4/isnand.m4: Likewise.
44889         * m4/isnanf.m4: Likewise.
44890         * m4/isnanl.m4: Likewise.
44891         * m4/javacomp.m4: Likewise.
44892         * m4/javaexec.m4: Likewise.
44893         * m4/jm-winsz1.m4: Likewise.
44894         * m4/jm-winsz2.m4: Likewise.
44895         * m4/lchown.m4: Likewise.
44896         * m4/lcmessage.m4: Likewise.
44897         * m4/ldexpl.m4: Likewise.
44898         * m4/lib-ld.m4: Likewise.
44899         * m4/lib-link.m4: Likewise.
44900         * m4/libsigsegv.m4: Likewise.
44901         * m4/link-follow.m4: Likewise.
44902         * m4/localcharset.m4: Likewise.
44903         * m4/locale-fr.m4: Likewise.
44904         * m4/locale-ja.m4: Likewise.
44905         * m4/locale-tr.m4: Likewise.
44906         * m4/locale-zh.m4: Likewise.
44907         * m4/lock.m4: Likewise.
44908         * m4/longlong.m4: Likewise.
44909         * m4/ls-mntd-fs.m4: Likewise.
44910         * m4/lstat.m4: Likewise.
44911         * m4/malloc.m4: Likewise.
44912         * m4/mathl.m4: Likewise.
44913         * m4/mbrtowc.m4: Likewise.
44914         * m4/mbstate_t.m4: Likewise.
44915         * m4/mbswidth.m4: Likewise.
44916         * m4/memchr.m4: Likewise.
44917         * m4/memcmp.m4: Likewise.
44918         * m4/memcpy.m4: Likewise.
44919         * m4/memmem.m4: Likewise.
44920         * m4/memmove.m4: Likewise.
44921         * m4/mempcpy.m4: Likewise.
44922         * m4/memrchr.m4: Likewise.
44923         * m4/memset.m4: Likewise.
44924         * m4/minmax.m4: Likewise.
44925         * m4/mkdir-slash.m4: Likewise.
44926         * m4/mkdtemp.m4: Likewise.
44927         * m4/mktime.m4: Likewise.
44928         * m4/mmap-anon.m4: Likewise.
44929         * m4/mountlist.m4: Likewise.
44930         * m4/nanosleep.m4: Likewise.
44931         * m4/nls.m4: Likewise.
44932         * m4/nocrash.m4: Likewise.
44933         * m4/open.m4: Likewise.
44934         * m4/openat.m4: Likewise.
44935         * m4/openmp.m4: Likewise.
44936         * m4/pathmax.m4: Likewise.
44937         * m4/perl.m4: Likewise.
44938         * m4/physmem.m4: Likewise.
44939         * m4/pipe.m4: Likewise.
44940         * m4/po.m4: Likewise.
44941         * m4/poll.m4: Likewise.
44942         * m4/posixtm.m4: Likewise.
44943         * m4/posixver.m4: Likewise.
44944         * m4/printf-frexp.m4: Likewise.
44945         * m4/printf-frexpl.m4: Likewise.
44946         * m4/printf-posix.m4: Likewise.
44947         * m4/printf-posix-rpl.m4: Likewise.
44948         * m4/printf.m4: Likewise.
44949         * m4/progtest.m4: Likewise.
44950         * m4/putenv.m4: Likewise.
44951         * m4/readline.m4: Likewise.
44952         * m4/readlink.m4: Likewise.
44953         * m4/readutmp.m4: Likewise.
44954         * m4/realloc.m4: Likewise.
44955         * m4/regex.m4: Likewise.
44956         * m4/relocatable.m4: Likewise.
44957         * m4/relocatable-lib.m4: Likewise.
44958         * m4/rename-dest-slash.m4: Likewise.
44959         * m4/rename.m4: Likewise.
44960         * m4/rmdir-errno.m4: Likewise.
44961         * m4/rmdir.m4: Likewise.
44962         * m4/roundf.m4: Likewise.
44963         * m4/roundl.m4: Likewise.
44964         * m4/rpmatch.m4: Likewise.
44965         * m4/save-cwd.m4: Likewise.
44966         * m4/selinux-selinux-h.m4: Likewise.
44967         * m4/setenv.m4: Likewise.
44968         * m4/settime.m4: Likewise.
44969         * m4/sig2str.m4: Likewise.
44970         * m4/sig_atomic_t.m4: Likewise.
44971         * m4/signalblocking.m4: Likewise.
44972         * m4/signbit.m4: Likewise.
44973         * m4/sigpipe.m4: Likewise.
44974         * m4/sockets.m4: Likewise.
44975         * m4/sockpfaf.m4: Likewise.
44976         * m4/st_dm_mode.m4: Likewise.
44977         * m4/stat-time.m4: Likewise.
44978         * m4/stdbool.m4: Likewise.
44979         * m4/stdint.m4: Likewise.
44980         * m4/stdint_h.m4: Likewise.
44981         * m4/stpcpy.m4: Likewise.
44982         * m4/stpncpy.m4: Likewise.
44983         * m4/strcase.m4: Likewise.
44984         * m4/strchrnul.m4: Likewise.
44985         * m4/strcspn.m4: Likewise.
44986         * m4/strdup.m4: Likewise.
44987         * m4/strftime.m4: Likewise.
44988         * m4/strndup.m4: Likewise.
44989         * m4/strnlen.m4: Likewise.
44990         * m4/strpbrk.m4: Likewise.
44991         * m4/strptime.m4: Likewise.
44992         * m4/strsep.m4: Likewise.
44993         * m4/strtod.m4: Likewise.
44994         * m4/strtoimax.m4: Likewise.
44995         * m4/strtok_r.m4: Likewise.
44996         * m4/strtol.m4: Likewise.
44997         * m4/strtoll.m4: Likewise.
44998         * m4/strtoul.m4: Likewise.
44999         * m4/strtoull.m4: Likewise.
45000         * m4/strtoumax.m4: Likewise.
45001         * m4/strverscmp.m4: Likewise.
45002         * m4/threadlib.m4: Likewise.
45003         * m4/timegm.m4: Likewise.
45004         * m4/tm_gmtoff.m4: Likewise.
45005         * m4/tmpdir.m4: Likewise.
45006         * m4/tmpfile.m4: Likewise.
45007         * m4/tzset.m4: Likewise.
45008         * m4/uintmax_t.m4: Likewise.
45009         * m4/unlinkdir.m4: Likewise.
45010         * m4/unlocked-io.m4: Likewise.
45011         * m4/uptime.m4: Likewise.
45012         * m4/userspec.m4: Likewise.
45013         * m4/utimbuf.m4: Likewise.
45014         * m4/utime.m4: Likewise.
45015         * m4/utimes-null.m4: Likewise.
45016         * m4/utimes.m4: Likewise.
45017         * m4/vararrays.m4: Likewise.
45018         * m4/vasnprintf.m4: Likewise.
45019         * m4/vfprintf-posix.m4: Likewise.
45020         * m4/vprintf-posix.m4: Likewise.
45021         * m4/wait-process.m4: Likewise.
45022         * m4/wchar_t.m4: Likewise.
45023         * m4/wint_t.m4: Likewise.
45024         * m4/write-any-file.m4: Likewise.
45025         * m4/yield.m4: Likewise.
45026
45027 2009-01-13  Bruno Haible  <bruno@clisp.org>
45028
45029         Avoid test-copy-file.sh failures when ACL support insufficient.
45030         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
45031         TESTS_ENVIRONMENT.
45032         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
45033         Reported by Jim Meyering.
45034
45035 2009-01-13  Bruno Haible  <bruno@clisp.org>
45036
45037         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
45038         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
45039         * modules/unistdio/u8-printf-parse (Files): Likewise.
45040         * modules/unistdio/u32-printf-parse (Files): Likewise.
45041         * modules/unistdio/ulc-printf-parse (Files): Likewise.
45042
45043 2009-01-13  Simon Josefsson  <simon@josefsson.org>
45044
45045         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
45046         and m4/inttypes_h.m4 too.
45047
45048 2009-01-12  Eric Blake  <ebb9@byu.net>
45049
45050         tests: IRIX 6.2 cc can't compile -0.0 into .data
45051         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
45052         rather than at compile-time.
45053         * tests/test-floorl.c (minus_zero): Likewise.
45054         * tests/test-frexpl.c (minus_zero): Likewise.
45055         * tests/test-isnan.c (minus_zerol): Likewise.
45056         * tests/test-isnanl.h (minus_zero): Likewise.
45057         * tests/test-ldexpl.c (minus_zero): Likewise.
45058         * tests/test-roundl.c (minus_zero): Likewise.
45059         * tests/test-signbit.c (minus_zerol): Likewise.
45060         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
45061         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
45062         * tests/test-truncl.c (minus_zero): Likewise.
45063         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
45064         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
45065         Reported by Tom G. Christensen and Nelson H. F. Beebe.
45066
45067 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
45068
45069         regex: fix glibc bug 9697
45070         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
45071         handling.
45072
45073 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
45074
45075         regex: fix glibc bug 697
45076         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
45077         being NULL also if there are no backreferences.
45078
45079 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
45080
45081         regex: merge glibc changes
45082         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
45083         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
45084         re_string_skip_chars, re_string_reconstruct): Likewise.
45085         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
45086
45087 2009-01-07  Jim Meyering  <meyering@redhat.com>
45088
45089         poll: filter through cppi
45090         * lib/poll.c: Indent cpp directives to reflect nesting.
45091
45092 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
45093
45094         poll: don't return uninitialized
45095         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
45096
45097 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
45098
45099         avoid compile failure on AIX 6.1
45100         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
45101         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
45102
45103 2009-01-04  Jim Meyering  <meyering@redhat.com>
45104
45105         remove duplicate inclusion of <stdio.h>
45106         * tests/test-fprintf-posix.c: Likewise.
45107         * tests/test-printf-posix.c: Likewise.
45108         * tests/test-snprintf-posix.c: Likewise.
45109         * tests/test-sprintf-posix.c: Likewise.
45110         * tests/test-vasprintf-posix.c: Likewise.
45111         * tests/test-vfprintf-posix.c: Likewise.
45112         * tests/test-vprintf-posix.c: Likewise.
45113         * tests/test-vsnprintf-posix.c: Likewise.
45114         * tests/test-vsprintf-posix.c: Likewise.
45115
45116 2009-01-03  Jim Meyering  <meyering@redhat.com>
45117
45118         gnulib-tool: fix sed-based filtering
45119         * gnulib-tool (func_filter_filelist): Remove extra backslash
45120         in sed_fff_filter definition.
45121
45122 2009-01-02  Jim Meyering  <meyering@redhat.com>
45123
45124         strftime: avoid compilation failure on Solaris 2.6
45125         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
45126         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
45127         Don't #define mbrlen or mbsinit, since now they're guaranteed to
45128         be available.  Reported by Tom G. Christensen.  Details in
45129         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
45130
45131 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45132             Bruno Haible  <bruno@clisp.org>
45133
45134         Speed up gnulib-tool by doing more string processing through shell
45135         built-ins.
45136         * gnulib-tool (fast_func_append): New variable.
45137         (func_remove_prefix, func_remove_suffix): New functions.
45138         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
45139         (func_filter_filelist): New function.
45140         (func_get_dependencies): Use func_remove_suffix instead of sed.
45141         (func_get_automake_snippet): Use func_filter_filelist instead of a
45142         subshell and sed invocation.
45143
45144 2009-01-01  Bruno Haible  <bruno@clisp.org>
45145
45146         Fix a security bug.
45147         * gnulib-tool (func_import, import, update): Don't allow the characters
45148         '"', '$', '`', '\' in macro arguments that become part of commands that
45149         are evaluated.
45150
45151 2009-01-01  Bruno Haible  <bruno@clisp.org>
45152
45153         * gnulib-tool (func_reset_sigpipe): Add more comments.
45154
45155 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45156
45157         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
45158         func_emit_tests_Makefile_am, func_import): Abort loops early if we
45159         already know the answer.
45160
45161 2009-01-01  Jim Meyering  <meyering@redhat.com>
45162
45163         * lib/version-etc.c (version_etc_va): Update copyright year.
45164
45165 2008-12-30  Bruno Haible  <bruno@clisp.org>
45166
45167         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
45168         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
45169         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
45170
45171 2008-12-29  Eric Blake  <ebb9@byu.net>
45172
45173         multiarch: avoid autoconf AC_REQUIRE bug
45174         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
45175         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
45176         2.63 and older.
45177         Reported by Bruno Haible, and analyzed in
45178         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
45179
45180 2008-12-29  Bruno Haible  <bruno@clisp.org>
45181
45182         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
45183         files in subdirectories correctly.
45184         Reported by Ralf Wildenhues.
45185
45186 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45187
45188         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
45189         rather than 'join FILE -', for Solaris join.
45190
45191 2008-12-29  Bruno Haible  <bruno@clisp.org>
45192
45193         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
45194         quoting.
45195         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
45196         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
45197         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
45198         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
45199         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
45200         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
45201         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
45202         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
45203         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
45204         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
45205         * m4/nls.m4 (AM_NLS): Likewise.
45206         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
45207         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
45208         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
45209         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
45210         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
45211         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
45212         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
45213         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
45214         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
45215         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
45216         * m4/xsize.m4 (gl_XSIZE): Likewise.
45217         Suggested by Jim Meyering.
45218
45219 2008-11-17  Bruce Korb  <bkorb@gnu.org>
45220
45221         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
45222         * lib/parse-duration.c: use a switch instead of cascading if's.
45223
45224 2008-12-29  Eric Blake  <ebb9@byu.net>
45225
45226         wchar.h: supply WEOF on Irix 5.3
45227         * lib/wchar.in.h (wint_t): Also supply WEOF.
45228         * lib/wctype.in.h (wint_t): Likewise.
45229         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
45230         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
45231         Reported by Tom G. Christensen.
45232
45233 2008-12-26  Bruno Haible  <bruno@clisp.org>
45234
45235         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
45236         i486, i586, i686.
45237
45238 2008-12-26  Bruno Haible  <bruno@clisp.org>
45239
45240         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
45241
45242 2008-12-26  Bruno Haible  <bruno@clisp.org>
45243
45244         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
45245         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
45246         not __STDC_CONSTANT_MACROS.
45247         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
45248
45249 2008-12-25  Bruno Haible  <bruno@clisp.org>
45250
45251         Add support for universal builds to vasnprintf.
45252         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
45253         universal builds, guess no.
45254         * modules/vasnprintf-posix (Depends-on): Add multiarch.
45255         * modules/vasprintf-posix (Depends-on): Likewise.
45256         * modules/fprintf-posix (Depends-on): Likewise.
45257         * modules/vfprintf-posix (Depends-on): Likewise.
45258         * modules/snprintf-posix (Depends-on): Likewise.
45259         * modules/vsnprintf-posix (Depends-on): Likewise.
45260         * modules/sprintf-posix (Depends-on): Likewise.
45261         * modules/vsprintf-posix (Depends-on): Likewise.
45262         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
45263         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
45264         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
45265         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
45266         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
45267         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
45268         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
45269
45270         Add support for universal builds to <inttypes.h>.
45271         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
45272         _SCNu64_PREFIX): In Apple
45273         universal builds, define directly, using _LP64.
45274         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
45275         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
45276         * modules/inttypes (Depends-on): Add multiarch.
45277         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
45278
45279         Add support for universal builds to <stdint.h>.
45280         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
45281         universal builds, define directly, using _LP64.
45282         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
45283         Apple universal builds, don't test for the size and suffix of ptrdiff_t
45284         and size_t.
45285         * modules/stdint (Depends-on): Add multiarch.
45286         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
45287
45288         New module 'multiarch'.
45289         * modules/multiarch: New file.
45290         * m4/multiarch.m4: New file.
45291
45292 2008-12-25  Bruno Haible  <bruno@clisp.org>
45293
45294         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
45295
45296 2008-12-25  Bruno Haible  <bruno@clisp.org>
45297
45298         * modules/btowc (License): Relicense under LGPLv2+.
45299         * modules/mbsinit (License): Likewise.
45300         * modules/mbrtowc (License): Likewise.
45301         * modules/wcrtomb (License): Likewise.
45302         * modules/streq (License): Likewise.
45303         Reported by David Lutterkort <lutter@redhat.com>.
45304
45305 2008-12-23  Bruno Haible  <bruno@clisp.org>
45306
45307         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
45308
45309 2008-12-23  Bruno Haible  <bruno@clisp.org>
45310
45311         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
45312         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
45313         GETADDRINFO_LIB, not in LIBS.
45314         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
45315         * modules/canon-host (Link): Likewise.
45316         * NEWS: Mention the change.
45317         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
45318         GETADDRINFO_LIB.
45319
45320 2008-12-22  Bruno Haible  <bruno@clisp.org>
45321
45322         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
45323         * doc/posix-functions/iswalpha_l.texi: Likewise.
45324         * doc/posix-functions/iswblank_l.texi: Likewise.
45325         * doc/posix-functions/iswcntrl_l.texi: Likewise.
45326         * doc/posix-functions/iswctype_l.texi: Likewise.
45327         * doc/posix-functions/iswdigit_l.texi: Likewise.
45328         * doc/posix-functions/iswgraph_l.texi: Likewise.
45329         * doc/posix-functions/iswlower_l.texi: Likewise.
45330         * doc/posix-functions/iswprint_l.texi: Likewise.
45331         * doc/posix-functions/iswpunct_l.texi: Likewise.
45332         * doc/posix-functions/iswspace_l.texi: Likewise.
45333         * doc/posix-functions/iswupper_l.texi: Likewise.
45334         * doc/posix-functions/iswxdigit_l.texi: Likewise.
45335         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
45336         * doc/posix-functions/open_wmemstream.texi: Likewise.
45337         * doc/posix-functions/swscanf.texi: Likewise.
45338         * doc/posix-functions/towctrans_l.texi: Likewise.
45339         * doc/posix-functions/towlower.texi: Likewise.
45340         * doc/posix-functions/towlower_l.texi: Likewise.
45341         * doc/posix-functions/towupper.texi: Likewise.
45342         * doc/posix-functions/towupper_l.texi: Likewise.
45343         * doc/posix-functions/vfwprintf.texi: Likewise.
45344         * doc/posix-functions/vfwscanf.texi: Likewise.
45345         * doc/posix-functions/vswscanf.texi: Likewise.
45346         * doc/posix-functions/vwprintf.texi: Likewise.
45347         * doc/posix-functions/vwscanf.texi: Likewise.
45348         * doc/posix-functions/wcpcpy.texi: Likewise.
45349         * doc/posix-functions/wcpncpy.texi: Likewise.
45350         * doc/posix-functions/wcscasecmp.texi: Likewise.
45351         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
45352         * doc/posix-functions/wcscoll_l.texi: Likewise.
45353         * doc/posix-functions/wcsdup.texi: Likewise.
45354         * doc/posix-functions/wcsncasecmp.texi: Likewise.
45355         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
45356         * doc/posix-functions/wcsnlen.texi: Likewise.
45357         * doc/posix-functions/wcsnrtombs.texi: Likewise.
45358         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
45359         * doc/posix-functions/wctrans_l.texi: Likewise.
45360         * doc/posix-functions/wctype_l.texi: Likewise.
45361         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
45362         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
45363         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
45364         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
45365         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
45366         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
45367         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
45368         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
45369         * doc/glibc-functions/wcschrnul.texi: Likewise.
45370         * doc/glibc-functions/wcsftime_l.texi: Likewise.
45371         * doc/glibc-functions/wcstod_l.texi: Likewise.
45372         * doc/glibc-functions/wcstof_l.texi: Likewise.
45373         * doc/glibc-functions/wcstol_l.texi: Likewise.
45374         * doc/glibc-functions/wcstold_l.texi: Likewise.
45375         * doc/glibc-functions/wcstoll_l.texi: Likewise.
45376         * doc/glibc-functions/wcstoq.texi: Likewise.
45377         * doc/glibc-functions/wcstoul_l.texi: Likewise.
45378         * doc/glibc-functions/wcstoull_l.texi: Likewise.
45379         * doc/glibc-functions/wcstouq.texi: Likewise.
45380         * doc/glibc-functions/wmempcpy.texi: Likewise.
45381
45382 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
45383             Eric Blake  <ebb9@byu.net>
45384             Paolo Bonzini  <bonzini@gnu.org>
45385             Bruno Haible  <bruno@clisp.org>
45386
45387         Make c-stack work on Haiku.
45388         * lib/c-stack.c (SA_ONSTACK): Define fallback.
45389         (c_stack_action): Use SA_ONSTACK flag.
45390
45391 2008-12-22  Bruno Haible  <bruno@clisp.org>
45392
45393         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
45394
45395 2008-12-22  Bruno Haible  <bruno@clisp.org>
45396
45397         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
45398         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
45399         being overridden.
45400         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
45401         New macros.
45402         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
45403         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
45404         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
45405         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
45406
45407 2008-12-22  Bruno Haible  <bruno@clisp.org>
45408
45409         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
45410         from test code.
45411
45412 2008-12-22  Eric Blake  <ebb9@byu.net>
45413
45414         Avoid gcc warnings on cygwin.
45415         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
45416         Avoid unused variable.
45417         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
45418         Likewise.
45419
45420 2008-12-22  Bruno Haible  <bruno@clisp.org>
45421
45422         Remove HAVE_MBRTOWC conditionals.
45423         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
45424         (mbscasecmp): Assume mbrtowc function.
45425         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
45426         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
45427         * lib/mbschr.c: Include mbuiter.h unconditionally.
45428         (mbschr): Assume mbrtowc function.
45429         * lib/mbscspn.c: Include mbuiter.h unconditionally.
45430         (mbscspn): Assume mbrtowc function.
45431         * lib/mbslen.c: Include mbuiter.h unconditionally.
45432         (mbslen): Assume mbrtowc function.
45433         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
45434         (mbsncasecmp): Assume mbrtowc function.
45435         * lib/mbsnlen.c: Include mbiter.h unconditionally.
45436         (mbsnlen): Assume mbrtowc function.
45437         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
45438         (mbspbrk): Assume mbrtowc function.
45439         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
45440         (mbspcasecmp): Assume mbrtowc function.
45441         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
45442         (mbsrchr): Assume mbrtowc function.
45443         * lib/mbssep.c: Include mbuiter.h unconditionally.
45444         (mbssep): Assume mbrtowc function.
45445         * lib/mbsspn.c: Include mbuiter.h unconditionally.
45446         (mbsspn): Assume mbrtowc function.
45447         * lib/mbsstr.c: Include mbuiter.h unconditionally.
45448         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
45449         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
45450         (mbstok_r): Assume mbrtowc function.
45451         * lib/propername.c: Include mbuiter.h unconditionally.
45452         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
45453         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
45454         (trim2): Assume mbrtowc function.
45455         * lib/mbswidth.c (mbsinit): Remove fallback definition.
45456         (mbsnwidth): Assume mbrtowc function.
45457         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
45458         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
45459         fallback definitions.
45460         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
45461
45462 2008-12-22  Bruno Haible  <bruno@clisp.org>
45463
45464         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
45465
45466 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
45467
45468         * modules/regex: Request emulations for the mb*/wc* functions we need.
45469         * m4/regex.m4: Don't look for those functions here.
45470         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
45471
45472 2008-12-22  Bruno Haible  <bruno@clisp.org>
45473
45474         * modules/fnmatch (Depends-on): Remove duplicated dependency.
45475
45476 2008-12-21  Bruno Haible  <bruno@clisp.org>
45477
45478         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
45479         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
45480         (Include): Remove conditionalization.
45481         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
45482         (Include): Remove conditionalization.
45483         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
45484         (Include): Remove conditionalization.
45485         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
45486         * m4/mbfile.m4 (gl_MBFILE): Likewise.
45487         * NEWS: Mention the change.
45488         Reported by Alan Hourihane <alanh@fairlite.co.uk>
45489         via Sergey Poznyakoff <gray@gnu.org.ua>.
45490
45491 2008-12-21  Bruno Haible  <bruno@clisp.org>
45492
45493         * MODULES.html.sh (Extended multibyte and wide character utilities
45494         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
45495         wcrtomb, wcsrtombs.
45496         (Support for systems lacking POSIX:2008): Add accept, bind, close,
45497         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
45498         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
45499         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
45500
45501 2008-12-21  Bruno Haible  <bruno@clisp.org>
45502
45503         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
45504
45505 2008-12-21  Bruno Haible  <bruno@clisp.org>
45506
45507         * modules/wcsnrtombs-tests: New file.
45508         * tests/test-wcsnrtombs1.sh: New file.
45509         * tests/test-wcsnrtombs2.sh: New file.
45510         * tests/test-wcsnrtombs3.sh: New file.
45511         * tests/test-wcsnrtombs4.sh: New file.
45512         * tests/test-wcsnrtombs.c: New file.
45513
45514         New module 'wcsnrtombs'.
45515         * lib/wchar.in.h (wcsnrtombs): New declaration.
45516         * lib/wcsnrtombs.c: New file.
45517         * lib/wcsrtombs-state.c: New file.
45518         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
45519         (internal_state): Remove variable.
45520         * m4/wcsnrtombs.m4: New file.
45521         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
45522         compilation units.
45523         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
45524         HAVE_WCSNRTOMBS.
45525         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
45526         HAVE_WCSNRTOMBS.
45527         * modules/wcsnrtombs: New file.
45528         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
45529         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
45530
45531 2008-12-21  Bruno Haible  <bruno@clisp.org>
45532
45533         * modules/wcsrtombs-tests: New file.
45534         * tests/test-wcsrtombs1.sh: New file.
45535         * tests/test-wcsrtombs2.sh: New file.
45536         * tests/test-wcsrtombs3.sh: New file.
45537         * tests/test-wcsrtombs4.sh: New file.
45538         * tests/test-wcsrtombs.c: New file.
45539
45540         New module 'wcsrtombs'.
45541         * lib/wchar.in.h (wcsrtombs): New declaration.
45542         * lib/wcsrtombs.c: New file.
45543         * m4/wcsrtombs.m4: New file.
45544         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
45545         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
45546         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
45547         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
45548         * modules/wcsrtombs: New file.
45549         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
45550         bugs.
45551
45552 2008-12-21  Bruno Haible  <bruno@clisp.org>
45553
45554         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
45555         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
45556         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
45557         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
45558         if not correct.
45559         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
45560         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
45561         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
45562         m4/locale-zh.m4, m4/codeset.m4.
45563         * doc/posix-functions/wcrtomb.texi: Document the bug.
45564
45565 2008-12-21  Bruno Haible  <bruno@clisp.org>
45566
45567         Work around a btowc() bug on IRIX 6.5.
45568         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
45569         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
45570         REPLACE_WTOBC if not.
45571         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
45572         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
45573         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
45574
45575 2008-12-21  Bruno Haible  <bruno@clisp.org>
45576
45577         * modules/wcrtomb-tests: New file.
45578         * tests/test-wcrtomb.sh: New file.
45579         * tests/test-wcrtomb.c: New file.
45580
45581         New module 'wcrtomb'.
45582         * lib/wchar.in.h (wcrtomb): New declaration.
45583         * lib/wcrtomb.c: New file.
45584         * m4/wcrtomb.m4: New file.
45585         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
45586         HAVE_WCRTOMB.
45587         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
45588         HAVE_WCRTOMB.
45589         * modules/wcrtomb: New file.
45590         * doc/posix-functions/wcrtomb.texi: Mention the new module.
45591
45592 2008-12-21  Bruno Haible  <bruno@clisp.org>
45593
45594         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
45595         * modules/mbsrtowcs (Files): Likewise.
45596         * modules/wctob (Files): Likewise.
45597         * modules/c-strcase-tests (Files): Likewise.
45598         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
45599         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
45600         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
45601         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
45602         * modules/vasnprintf-posix-tests (Files): Likewise.
45603
45604 2008-12-21  William Pursell  <bill.pursell@gmail.com>
45605
45606         gitlog-to-changelog: pass all command-line arguments to git-log
45607         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
45608         it is sometimes convenient to filter the commits in various ways.
45609         gitlog-to-changelog only allows --since to specify a start date,
45610         but git-log itself supports many other filtering mechanisms.
45611         At the moment, I want to filter by branch name.  Rather than
45612         adding a --branch option to gitlog-to-changelog, it seems more
45613         flexible to simply pass all options directly to git-log and let
45614         git do the work.  Notice that this effectively makes --since a
45615         redundant option for gitlog-to-changelog, but removing it would
45616         require current usage to change since calls would then require
45617         an additional '--'.
45618
45619 2008-12-21  Bruno Haible  <bruno@clisp.org>
45620
45621         * modules/mbsnrtowcs-tests: New file.
45622         * tests/test-mbsnrtowcs1.sh: New file.
45623         * tests/test-mbsnrtowcs2.sh: New file.
45624         * tests/test-mbsnrtowcs3.sh: New file.
45625         * tests/test-mbsnrtowcs4.sh: New file.
45626         * tests/test-mbsnrtowcs.c: New file.
45627
45628         New module 'mbsnrtowcs'.
45629         * lib/wchar.in.h (mbsnrtowcs): New declaration.
45630         * lib/mbsnrtowcs.c: New file.
45631         * lib/mbsrtowcs-state.c: New file.
45632         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
45633         (internal_state): Remove variable.
45634         * m4/mbsnrtowcs.m4: New file.
45635         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
45636         compilation units.
45637         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
45638         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
45639         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
45640         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
45641         * modules/mbsnrtowcs: New file.
45642         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
45643         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
45644         portability problem.
45645
45646 2008-12-21  Bruno Haible  <bruno@clisp.org>
45647
45648         Work around mbsrtowcs bug.
45649         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
45650         (gl_FUNC_MBSRTOWCS): Invoke it.
45651         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
45652         m4/locale-zh.m4.
45653         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
45654
45655 2008-12-21  Bruno Haible  <bruno@clisp.org>
45656
45657         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
45658
45659 2008-12-21  Bruno Haible  <bruno@clisp.org>
45660
45661         Update doc for AIX.
45662         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
45663         16-bit wchar_t type.
45664         * doc/posix-functions/btowc.texi: Likewise.
45665         * doc/posix-functions/fgetwc.texi: Likewise.
45666         * doc/posix-functions/fgetws.texi: Likewise.
45667         * doc/posix-functions/fputwc.texi: Likewise.
45668         * doc/posix-functions/fputws.texi: Likewise.
45669         * doc/posix-functions/fwide.texi: Likewise.
45670         * doc/posix-functions/fwprintf.texi: Likewise.
45671         * doc/posix-functions/fwscanf.texi: Likewise.
45672         * doc/posix-functions/getwchar.texi: Likewise.
45673         * doc/posix-functions/getwc.texi: Likewise.
45674         * doc/posix-functions/iswalnum.texi: Likewise.
45675         * doc/posix-functions/iswalpha.texi: Likewise.
45676         * doc/posix-functions/iswblank.texi: Likewise.
45677         * doc/posix-functions/iswcntrl.texi: Likewise.
45678         * doc/posix-functions/iswctype.texi: Likewise.
45679         * doc/posix-functions/iswdigit.texi: Likewise.
45680         * doc/posix-functions/iswgraph.texi: Likewise.
45681         * doc/posix-functions/iswlower.texi: Likewise.
45682         * doc/posix-functions/iswprint.texi: Likewise.
45683         * doc/posix-functions/iswpunct.texi: Likewise.
45684         * doc/posix-functions/iswspace.texi: Likewise.
45685         * doc/posix-functions/iswupper.texi: Likewise.
45686         * doc/posix-functions/iswxdigit.texi: Likewise.
45687         * doc/posix-functions/mbrtowc.texi: Likewise.
45688         * doc/posix-functions/mbsrtowcs.texi: Likewise.
45689         * doc/posix-functions/mbstowcs.texi: Likewise.
45690         * doc/posix-functions/mbtowc.texi: Likewise.
45691         * doc/posix-functions/putwchar.texi: Likewise.
45692         * doc/posix-functions/putwc.texi: Likewise.
45693         * doc/posix-functions/swprintf.texi: Likewise.
45694         * doc/posix-functions/tolower.texi: Likewise.
45695         * doc/posix-functions/toupper.texi: Likewise.
45696         * doc/posix-functions/towctrans.texi: Likewise.
45697         * doc/posix-functions/ungetwc.texi: Likewise.
45698         * doc/posix-functions/vswprintf.texi: Likewise.
45699         * doc/posix-functions/wcrtomb.texi: Likewise.
45700         * doc/posix-functions/wcscat.texi: Likewise.
45701         * doc/posix-functions/wcschr.texi: Likewise.
45702         * doc/posix-functions/wcscmp.texi: Likewise.
45703         * doc/posix-functions/wcscoll.texi: Likewise.
45704         * doc/posix-functions/wcscpy.texi: Likewise.
45705         * doc/posix-functions/wcscspn.texi: Likewise.
45706         * doc/posix-functions/wcsftime.texi: Likewise.
45707         * doc/posix-functions/wcslen.texi: Likewise.
45708         * doc/posix-functions/wcsncat.texi: Likewise.
45709         * doc/posix-functions/wcsncmp.texi: Likewise.
45710         * doc/posix-functions/wcsncpy.texi: Likewise.
45711         * doc/posix-functions/wcspbrk.texi: Likewise.
45712         * doc/posix-functions/wcsrchr.texi: Likewise.
45713         * doc/posix-functions/wcsrtombs.texi: Likewise.
45714         * doc/posix-functions/wcsspn.texi: Likewise.
45715         * doc/posix-functions/wcsstr.texi: Likewise.
45716         * doc/posix-functions/wcstod.texi: Likewise.
45717         * doc/posix-functions/wcstof.texi: Likewise.
45718         * doc/posix-functions/wcstoimax.texi: Likewise.
45719         * doc/posix-functions/wcstok.texi: Likewise.
45720         * doc/posix-functions/wcstold.texi: Likewise.
45721         * doc/posix-functions/wcstoll.texi: Likewise.
45722         * doc/posix-functions/wcstol.texi: Likewise.
45723         * doc/posix-functions/wcstombs.texi: Likewise.
45724         * doc/posix-functions/wcstoull.texi: Likewise.
45725         * doc/posix-functions/wcstoul.texi: Likewise.
45726         * doc/posix-functions/wcstoumax.texi: Likewise.
45727         * doc/posix-functions/wcswidth.texi: Likewise.
45728         * doc/posix-functions/wcsxfrm.texi: Likewise.
45729         * doc/posix-functions/wctob.texi: Likewise.
45730         * doc/posix-functions/wctomb.texi: Likewise.
45731         * doc/posix-functions/wctrans.texi: Likewise.
45732         * doc/posix-functions/wctype.texi: Likewise.
45733         * doc/posix-functions/wcwidth.texi: Likewise.
45734         * doc/posix-functions/wmemchr.texi: Likewise.
45735         * doc/posix-functions/wmemcmp.texi: Likewise.
45736         * doc/posix-functions/wmemcpy.texi: Likewise.
45737         * doc/posix-functions/wmemmove.texi: Likewise.
45738         * doc/posix-functions/wmemset.texi: Likewise.
45739         * doc/posix-functions/wprintf.texi: Likewise.
45740         * doc/posix-functions/wscanf.texi: Likewise.
45741
45742 2008-12-21  Bruno Haible  <bruno@clisp.org>
45743
45744         Update doc for HP-UX 11.11.
45745         * doc/posix-functions/btowc.texi: Clarify that the function is missing
45746         in HP-UX version 11.00, not in all versions of HP-UX 11.
45747         * doc/posix-functions/fwide.texi: Likewise.
45748         * doc/posix-functions/fwprintf.texi: Likewise.
45749         * doc/posix-functions/fwscanf.texi: Likewise.
45750         * doc/posix-functions/inet_ntop.texi: Likewise.
45751         * doc/posix-functions/inet_pton.texi: Likewise.
45752         * doc/posix-functions/mbrlen.texi: Likewise.
45753         * doc/posix-functions/mbrtowc.texi: Likewise.
45754         * doc/posix-functions/mbsinit.texi: Likewise.
45755         * doc/posix-functions/mbsrtowcs.texi: Likewise.
45756         * doc/posix-functions/swprintf.texi: Likewise.
45757         * doc/posix-functions/swscanf.texi: Likewise.
45758         * doc/posix-functions/towctrans.texi: Likewise.
45759         * doc/posix-functions/vfwprintf.texi: Likewise.
45760         * doc/posix-functions/vswprintf.texi: Likewise.
45761         * doc/posix-functions/vwprintf.texi: Likewise.
45762         * doc/posix-functions/wcrtomb.texi: Likewise.
45763         * doc/posix-functions/wcsrtombs.texi: Likewise.
45764         * doc/posix-functions/wcsstr.texi: Likewise.
45765         * doc/posix-functions/wctob.texi: Likewise.
45766         * doc/posix-functions/wctrans.texi: Likewise.
45767         * doc/posix-functions/wmemchr.texi: Likewise.
45768         * doc/posix-functions/wmemcmp.texi: Likewise.
45769         * doc/posix-functions/wmemcpy.texi: Likewise.
45770         * doc/posix-functions/wmemmove.texi: Likewise.
45771         * doc/posix-functions/wmemset.texi: Likewise.
45772         * doc/posix-functions/wprintf.texi: Likewise.
45773         * doc/posix-functions/wscanf.texi: Likewise.
45774
45775 2008-12-21  Bruno Haible  <bruno@clisp.org>
45776
45777         Work around a portability problem.
45778         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
45779         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
45780
45781 2008-12-20  Bruno Haible  <bruno@clisp.org>
45782
45783         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
45784         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
45785         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
45786         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
45787         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
45788
45789         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
45790         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
45791         set.
45792         (GNULIB_defined_mbstate_t): New macro.
45793         (mbsinit): Redefine if REPLACE_MBSINIT is set.
45794         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
45795         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
45796         reuses the system's mbrtowc function but works around the bugs.
45797         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
45798         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
45799         macros.
45800         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
45801         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
45802         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
45803         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
45804         REPLACE_MBSINIT if mbsinit needs to be overridden.
45805         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
45806         REPLACE_MBSINIT, REPLACE_MBRTOWC.
45807         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
45808         REPLACE_MBSINIT, REPLACE_MBRTOWC.
45809         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
45810         m4/locale-zh.m4.
45811         (Depends): Add mbsinit.
45812         * modules/mbsinit (Depends): Add mbrtowc.
45813         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
45814
45815 2008-12-20  Bruno Haible  <bruno@clisp.org>
45816
45817         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
45818         so that there are no conversion errors on AIX.
45819         * tests/test-mbsrtowcs.c (main): LIkewise.
45820
45821 2008-12-20  Bruno Haible  <bruno@clisp.org>
45822
45823         Work around wctob bug on Solaris <= 9.
45824         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
45825         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
45826         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
45827         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
45828         * modules/wctob (Files): Add m4/locale-fr.m4.
45829         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
45830
45831 2008-12-20  Bruno Haible  <bruno@clisp.org>
45832
45833         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
45834         /dev/null.
45835         * tests/test-select-in.sh: Likewise.
45836         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45837
45838 2008-12-20  Bruno Haible  <bruno@clisp.org>
45839
45840         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
45841         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
45842         Cygwin 1.5.x.
45843
45844 2008-12-20  Bruno Haible  <bruno@clisp.org>
45845
45846         Ensure mbstate_t is defined on HP-UX 11.11.
45847         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
45848         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
45849         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
45850         AC_USE_SYSTEM_EXTENSIONS.
45851         * modules/fnmatch (Depends-on): Add extensions.
45852         * modules/mbrlen (Depends-on): Likewise.
45853         * modules/mbrtowc (Depends-on): Likewise.
45854         * modules/mbsinit (Depends-on): Likewise.
45855         * modules/mbsrtowcs (Depends-on): Likewise.
45856         * modules/mbswidth (Depends-on): Likewise.
45857         * modules/quotearg (Depends-on): Likewise.
45858         * modules/strftime (Depends-on): Likewise.
45859
45860 2008-12-20  Bruno Haible  <bruno@clisp.org>
45861
45862         Ensure wctob is declared on IRIX 6.5.
45863         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
45864         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
45865         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
45866         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
45867         of HAVE_WCTOB.
45868         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
45869         HAVE_WCTOB.
45870         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
45871
45872 2008-12-19  Bruno Haible  <bruno@clisp.org>
45873
45874         * modules/mbsrtowcs-tests: New file.
45875         * tests/test-mbsrtowcs1.sh: New file.
45876         * tests/test-mbsrtowcs2.sh: New file.
45877         * tests/test-mbsrtowcs3.sh: New file.
45878         * tests/test-mbsrtowcs4.sh: New file.
45879         * tests/test-mbsrtowcs.c: New file.
45880
45881         New module 'mbsrtowcs'.
45882         * lib/wchar.in.h (mbsrtowcs): New declaration.
45883         * lib/mbsrtowcs.c: New file.
45884         * m4/mbsrtowcs.m4: New file.
45885         * modules/mbsrtowcs: New file.
45886         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
45887         HAVE_MBSRTOWCS.
45888         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
45889         HAVE_MBSRTOWCS.
45890         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
45891
45892 2008-12-19  Bruno Haible  <bruno@clisp.org>
45893
45894         New module 'mbrlen'.
45895         * lib/wchar.in.h (mbrlen): New declaration.
45896         * lib/mbrlen.c: New file.
45897         * m4/mbrlen.m4: New file.
45898         * modules/mbrlen: New file.
45899         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
45900         HAVE_MBRLEN.
45901         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
45902         HAVE_MBRLEN.
45903         * doc/posix-functions/mbrlen.texi: Document the new module.
45904
45905 2008-12-19  Bruno Haible  <bruno@clisp.org>
45906
45907         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
45908         * modules/mbrtowc (Depends-on): Add verify.
45909         Suggested by Paul Eggert.
45910
45911 2008-12-18  Bruno Haible  <bruno@clisp.org>
45912
45913         * modules/mbsinit-tests: New file.
45914         * tests/test-mbsinit.sh: New file.
45915         * tests/test-mbsinit.c: New file.
45916
45917 2008-12-18  Bruno Haible  <bruno@clisp.org>
45918
45919         * modules/mbrtowc-tests: New file.
45920         * tests/test-mbrtowc1.sh: New file.
45921         * tests/test-mbrtowc2.sh: New file.
45922         * tests/test-mbrtowc3.sh: New file.
45923         * tests/test-mbrtowc4.sh: New file.
45924         * tests/test-mbrtowc.c: New file.
45925
45926         New module 'mbrtowc'.
45927         * lib/wchar.in.h (mbstate_t): Override when the system does not have
45928         mbsinit and mbrtowc.
45929         (mbrtowc): New declaration.
45930         * lib/mbrtowc.c: New file.
45931         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
45932         * modules/mbrtowc: New file.
45933         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
45934         HAVE_MBRTOWC.
45935         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
45936         HAVE_MBRTOWC.
45937         * doc/posix-functions/mbrtowc.texi: Document the new module.
45938
45939 2008-12-18  Bruno Haible  <bruno@clisp.org>
45940
45941         New module 'wctob'.
45942         * lib/wchar.in.h (wctob): New declaration.
45943         * lib/wctob.c: New file.
45944         * m4/wctob.m4: New file.
45945         * modules/wctob: New file.
45946         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
45947         HAVE_WCTOB.
45948         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
45949         * doc/posix-functions/wctob.texi: Document the new module.
45950
45951 2008-12-18  Bruno Haible  <bruno@clisp.org>
45952
45953         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
45954         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
45955
45956 2008-12-18  Simon Josefsson  <simon@josefsson.org>
45957
45958         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
45959         G. Christensen" <tgc@jupiterrise.com>.
45960
45961         * lib/flock.c: Need to include errno.h.  Reported by "Tom
45962         G. Christensen" <tgc@jupiterrise.com>.
45963
45964         * lib/flock.c: Need to include string.h.  Reported by "Tom
45965         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
45966         <ebb9@byu.net>.
45967
45968 2008-12-18  Bruno Haible  <bruno@clisp.org>
45969
45970         * m4/locale-ja.m4: New file, from GNU gettext.
45971
45972 2008-12-17  Bruno Haible  <bruno@clisp.org>
45973
45974         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
45975         Suggested by Eric Blake.
45976
45977 2008-12-17  Bruno Haible  <bruno@clisp.org>
45978
45979         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
45980
45981 2008-12-17  Bruno Haible  <bruno@clisp.org>
45982
45983         * lib/mbsinit.c: Include verify.h. Verify an assumption.
45984         * modules/mbsinit (Depends-on): Add verify.
45985         Suggested by Paul Eggert.
45986
45987 2008-12-17  Bruno Haible  <bruno@clisp.org>
45988
45989         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
45990         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
45991         gl_FUNC_MBRTOWC.
45992         * m4/mbiter.m4 (gl_MBITER): LIkewise.
45993         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
45994         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
45995         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
45996         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
45997         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
45998         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
45999         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
46000         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
46001         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
46002         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
46003         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
46004         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
46005         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
46006         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
46007         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
46008         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
46009         * modules/trim (configure.ac): Likewise.
46010
46011 2008-12-17  Bruno Haible  <bruno@clisp.org>
46012
46013         * modules/btowc-tests: New file.
46014         * tests/test-btowc1.sh: New file.
46015         * tests/test-btowc2.sh: New file.
46016         * tests/test-btowc.c: New file.
46017
46018         New module 'btowc'.
46019         * lib/wchar.in.h (btowc): New declaration.
46020         * lib/btowc.c: New file.
46021         * m4/btowc.m4: New file.
46022         * modules/btowc: New file.
46023         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
46024         HAVE_BTOWC.
46025         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
46026         * doc/posix-functions/btowc.texi: Document the new module.
46027
46028 2008-12-17  Bruno Haible  <bruno@clisp.org>
46029
46030         New module 'mbsinit'.
46031         * lib/wchar.in.h (mbsinit): New declaration.
46032         * lib/mbsinit.c: New file.
46033         * m4/mbsinit.m4: New file.
46034         * modules/mbsinit: New file.
46035         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
46036         HAVE_MBSINIT.
46037         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
46038         HAVE_MBSINIT.
46039         * doc/posix-functions/mbsinit.texi: Document the new module.
46040
46041 2008-12-16  Bruno Haible  <bruno@clisp.org>
46042
46043         * lib/unistd.in.h: Add comment.
46044         * tests/test-environ.c: Don't include <stdlib.h>.
46045
46046 2008-12-16  Bruno Haible  <bruno@clisp.org>
46047
46048         * lib/parse-duration.h (parse_duration): Document return value
46049         convention.
46050         * lib/parse-duration.c: Include specification header first. Add
46051         comments.
46052         (_): Remove macro.
46053         (parse_year_month_day, parse_hour_minute_second): Move side effects
46054         outside of strchr call.
46055         (parse_non_iso8601): Move side effects outside of isspace call.
46056         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
46057         call.
46058
46059 2008-12-16  Bruno Haible  <bruno@clisp.org>
46060
46061         * tests/test-parse-duration.sh: Produce no output when the test
46062         succeeds.
46063
46064 2008-12-16  Bruno Haible  <bruno@clisp.org>
46065
46066         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
46067         expressions.
46068
46069 2008-12-15  Bruno Haible  <bruno@clisp.org>
46070
46071         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
46072         * doc/glibc-functions/flistxattr.texi: Likewise.
46073         * doc/glibc-functions/fopencookie.texi: Likewise.
46074         * doc/glibc-functions/fremovexattr.texi: Likewise.
46075         * doc/glibc-functions/fsetxattr.texi: Likewise.
46076         * doc/glibc-functions/getxattr.texi: Likewise.
46077         * doc/glibc-functions/lgetxattr.texi: Likewise.
46078         * doc/glibc-functions/listxattr.texi: Likewise.
46079         * doc/glibc-functions/llistxattr.texi: Likewise.
46080         * doc/glibc-functions/lremovexattr.texi: Likewise.
46081         * doc/glibc-functions/lsetxattr.texi: Likewise.
46082         * doc/glibc-functions/removexattr.texi: Likewise.
46083         * doc/glibc-functions/setxattr.texi: Likewise.
46084         * doc/posix-functions/open_memstream.texi: Likewise.
46085
46086 2008-12-15  Eric Blake  <ebb9@byu.net>
46087
46088         Update doc for cygwin 1.7.
46089         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
46090         functions.
46091         * doc/posix-functions/fchmodat.texi: Likewise.
46092         * doc/posix-functions/fchownat.texi: Likewise.
46093         * doc/posix-functions/fdopendir.texi: Likewise.
46094         * doc/posix-functions/fmemopen.texi: Likewise.
46095         * doc/posix-functions/freeaddrinfo.texi: Likewise.
46096         * doc/posix-functions/fstatat.texi: Likewise.
46097         * doc/posix-functions/futimens.texi: Likewise.
46098         * doc/posix-functions/gai_strerror.texi: Likewise.
46099         * doc/posix-functions/getaddrinfo.texi: Likewise.
46100         * doc/posix-functions/getnameinfo.texi: Likewise.
46101         * doc/posix-functions/if_freenameindex.texi: Likewise.
46102         * doc/posix-functions/if_indextoname.texi: Likewise.
46103         * doc/posix-functions/if_nameindex.texi: Likewise.
46104         * doc/posix-functions/if_nametoindex.texi: Likewise.
46105         * doc/posix-functions/insque.texi: Likewise.
46106         * doc/posix-functions/linkat.texi: Likewise.
46107         * doc/posix-functions/llrint.texi: Likewise.
46108         * doc/posix-functions/llrintf.texi: Likewise.
46109         * doc/posix-functions/llrintl.texi: Likewise.
46110         * doc/posix-functions/lockf.texi: Likewise.
46111         * doc/posix-functions/lrintl.texi: Likewise.
46112         * doc/posix-functions/mkdirat.texi: Likewise.
46113         * doc/posix-functions/mkfifoat.texi: Likewise.
46114         * doc/posix-functions/mknodat.texi: Likewise.
46115         * doc/posix-functions/mq_close.texi: Likewise.
46116         * doc/posix-functions/mq_getattr.texi: Likewise.
46117         * doc/posix-functions/mq_notify.texi: Likewise.
46118         * doc/posix-functions/mq_open.texi: Likewise.
46119         * doc/posix-functions/mq_receive.texi: Likewise.
46120         * doc/posix-functions/mq_send.texi: Likewise.
46121         * doc/posix-functions/mq_setattr.texi: Likewise.
46122         * doc/posix-functions/mq_timedreceive.texi: Likewise.
46123         * doc/posix-functions/mq_timedsend.texi: Likewise.
46124         * doc/posix-functions/mq_unlink.texi: Likewise.
46125         * doc/posix-functions/open_memstream.texi: Likewise.
46126         * doc/posix-functions/openat.texi: Likewise.
46127         * doc/posix-functions/posix_fadvise.texi: Likewise.
46128         * doc/posix-functions/posix_fallocate.texi: Likewise.
46129         * doc/posix-functions/posix_madvise.texi: Likewise.
46130         * doc/posix-functions/posix_memalign.texi: Likewise.
46131         * doc/posix-functions/posix_openpt.texi: Likewise.
46132         * doc/posix-functions/readlinkat.texi: Likewise.
46133         * doc/posix-functions/remque.texi: Likewise.
46134         * doc/posix-functions/renameat.texi: Likewise.
46135         * doc/posix-functions/rintl.texi: Likewise.
46136         * doc/posix-functions/sem_unlink.texi: Likewise.
46137         * doc/posix-functions/shm_open.texi: Likewise.
46138         * doc/posix-functions/shm_unlink.texi: Likewise.
46139         * doc/posix-functions/signgam.texi: Likewise.
46140         * doc/posix-functions/sigset.texi: Likewise.
46141         * doc/posix-functions/stpcpy.texi: Likewise.
46142         * doc/posix-functions/stpncpy.texi: Likewise.
46143         * doc/posix-functions/strerror.texi: Likewise.
46144         * doc/posix-functions/strtod.texi: Likewise.
46145         * doc/posix-functions/symlinkat.texi: Likewise.
46146         * doc/posix-functions/unlinkat.texi: Likewise.
46147         * doc/posix-functions/utimensat.texi: Likewise.
46148         * doc/glibc-functions/bindresvport.texi: Likewise.
46149         * doc/glibc-functions/dn_expand.texi: Likewise.
46150         * doc/glibc-functions/exp10.texi: Likewise.
46151         * doc/glibc-functions/exp10f.texi: Likewise.
46152         * doc/glibc-functions/fgetxattr.texi: Likewise.
46153         * doc/glibc-functions/flistxattr.texi: Likewise.
46154         * doc/glibc-functions/fopencookie.texi: Likewise.
46155         * doc/glibc-functions/freeifaddrs.texi: Likewise.
46156         * doc/glibc-functions/fremovexattr.texi: Likewise.
46157         * doc/glibc-functions/fsetxattr.texi: Likewise.
46158         * doc/glibc-functions/getifaddrs.texi: Likewise.
46159         * doc/glibc-functions/getxattr.texi: Likewise.
46160         * doc/glibc-functions/lgetxattr.texi: Likewise.
46161         * doc/glibc-functions/listxattr.texi: Likewise.
46162         * doc/glibc-functions/llistxattr.texi: Likewise.
46163         * doc/glibc-functions/lremovexattr.texi: Likewise.
46164         * doc/glibc-functions/lsetxattr.texi: Likewise.
46165         * doc/glibc-functions/pow10.texi: Likewise.
46166         * doc/glibc-functions/pow10f.texi: Likewise.
46167         * doc/glibc-functions/rcmd_af.texi: Likewise.
46168         * doc/glibc-functions/removexattr.texi: Likewise.
46169         * doc/glibc-functions/res_init.texi: Likewise.
46170         * doc/glibc-functions/res_mkquery.texi: Likewise.
46171         * doc/glibc-functions/res_query.texi: Likewise.
46172         * doc/glibc-functions/res_querydomain.texi: Likewise.
46173         * doc/glibc-functions/res_send.texi: Likewise.
46174         * doc/glibc-functions/rresvport_af.texi: Likewise.
46175         * doc/glibc-functions/setxattr.texi: Likewise.
46176         * doc/glibc-functions/strcasestr.texi: Likewise.
46177
46178 2008-12-15  Bruno Haible  <bruno@clisp.org>
46179
46180         Fix compilation error on OSF/1 4.0.
46181         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
46182         <sys/time.h>, simply delegate to the system header.
46183         Reported by Daniel Richard G. <oss@teragram.com>.
46184
46185 2008-12-15  Bruno Haible  <bruno@clisp.org>
46186
46187         * doc/posix-functions/openat.texi: Mention the 'openat' module.
46188         * doc/posix-functions/fchmodat.texi: Likewise.
46189         * doc/posix-functions/fchownat.texi: Likewise.
46190         * doc/posix-functions/fdopendir.texi: Likewise.
46191         * doc/posix-functions/fstatat.texi: Likewise.
46192         * doc/posix-functions/mkdirat.texi: Likewise.
46193         * doc/posix-functions/unlinkat.texi: Likewise.
46194
46195 2008-12-14  Bruno Haible  <bruno@clisp.org>
46196
46197         Update doc for POSIX:2008.
46198         * doc/posix-functions/faccessat.texi: New file.
46199         * doc/posix-functions/fchmodat.texi: New file.
46200         * doc/posix-functions/fchownat.texi: New file.
46201         * doc/posix-functions/fdopendir.texi: New file.
46202         * doc/posix-functions/fstatat.texi: New file.
46203         * doc/posix-functions/futimens.texi: New file.
46204         * doc/posix-functions/linkat.texi: New file.
46205         * doc/posix-functions/mkdirat.texi: New file.
46206         * doc/posix-functions/mkfifoat.texi: New file.
46207         * doc/posix-functions/mknodat.texi: New file.
46208         * doc/posix-functions/open_wmemstream.texi: New file.
46209         * doc/posix-functions/openat.texi: New file.
46210         * doc/posix-functions/psiginfo.texi: New file.
46211         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
46212         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
46213         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
46214         * doc/posix-functions/readlinkat.texi: New file.
46215         * doc/posix-functions/renameat.texi: New file.
46216         * doc/posix-functions/strerror_l.texi: New file.
46217         * doc/posix-functions/symlinkat.texi: New file.
46218         * doc/posix-functions/unlinkat.texi: New file.
46219         * doc/posix-functions/utimensat.texi: New file.
46220         * doc/gnulib.texi (Function Substitutes): Add these subsections.
46221
46222 2008-12-14  Bruno Haible  <bruno@clisp.org>
46223
46224         Update doc for POSIX:2008.
46225         * doc/posix-functions/alphasort.texi: Renamed from
46226         doc/glibc-functions/alphasort.texi.
46227         * doc/posix-functions/dirfd.texi: Renamed from
46228         doc/glibc-functions/dirfd.texi.
46229         * doc/posix-functions/dprintf.texi: Renamed from
46230         doc/glibc-functions/dprintf.texi.
46231         * doc/posix-functions/duplocale.texi: Renamed from
46232         doc/glibc-functions/duplocale.texi.
46233         * doc/posix-functions/fexecve.texi: Renamed from
46234         doc/glibc-functions/fexecve.texi.
46235         * doc/posix-functions/fmemopen.texi: Renamed from
46236         doc/glibc-functions/fmemopen.texi.
46237         * doc/posix-functions/freelocale.texi: Renamed from
46238         doc/glibc-functions/freelocale.texi.
46239         * doc/posix-functions/getdate_err.texi: Renamed from
46240         doc/glibc-functions/getdate_err.texi.
46241         * doc/posix-functions/isalnum_l.texi: Renamed from
46242         doc/glibc-functions/isalnum_l.texi.
46243         * doc/posix-functions/isalpha_l.texi: Renamed from
46244         doc/glibc-functions/isalpha_l.texi.
46245         * doc/posix-functions/isblank_l.texi: Renamed from
46246         doc/glibc-functions/isblank_l.texi.
46247         * doc/posix-functions/iscntrl_l.texi: Renamed from
46248         doc/glibc-functions/iscntrl_l.texi.
46249         * doc/posix-functions/isdigit_l.texi: Renamed from
46250         doc/glibc-functions/isdigit_l.texi.
46251         * doc/posix-functions/isgraph_l.texi: Renamed from
46252         doc/glibc-functions/isgraph_l.texi.
46253         * doc/posix-functions/islower_l.texi: Renamed from
46254         doc/glibc-functions/islower_l.texi.
46255         * doc/posix-functions/isprint_l.texi: Renamed from
46256         doc/glibc-functions/isprint_l.texi.
46257         * doc/posix-functions/ispunct_l.texi: Renamed from
46258         doc/glibc-functions/ispunct_l.texi.
46259         * doc/posix-functions/isspace_l.texi: Renamed from
46260         doc/glibc-functions/isspace_l.texi.
46261         * doc/posix-functions/isupper_l.texi: Renamed from
46262         doc/glibc-functions/isupper_l.texi.
46263         * doc/posix-functions/iswalnum_l.texi: Renamed from
46264         doc/glibc-functions/iswalnum_l.texi.
46265         * doc/posix-functions/iswalpha_l.texi: Renamed from
46266         doc/glibc-functions/iswalpha_l.texi.
46267         * doc/posix-functions/iswblank_l.texi: Renamed from
46268         doc/glibc-functions/iswblank_l.texi.
46269         * doc/posix-functions/iswcntrl_l.texi: Renamed from
46270         doc/glibc-functions/iswcntrl_l.texi.
46271         * doc/posix-functions/iswctype_l.texi: Renamed from
46272         doc/glibc-functions/iswctype_l.texi.
46273         * doc/posix-functions/iswdigit_l.texi: Renamed from
46274         doc/glibc-functions/iswdigit_l.texi.
46275         * doc/posix-functions/iswgraph_l.texi: Renamed from
46276         doc/glibc-functions/iswgraph_l.texi.
46277         * doc/posix-functions/iswlower_l.texi: Renamed from
46278         doc/glibc-functions/iswlower_l.texi.
46279         * doc/posix-functions/iswprint_l.texi: Renamed from
46280         doc/glibc-functions/iswprint_l.texi.
46281         * doc/posix-functions/iswpunct_l.texi: Renamed from
46282         doc/glibc-functions/iswpunct_l.texi.
46283         * doc/posix-functions/iswspace_l.texi: Renamed from
46284         doc/glibc-functions/iswspace_l.texi.
46285         * doc/posix-functions/iswupper_l.texi: Renamed from
46286         doc/glibc-functions/iswupper_l.texi.
46287         * doc/posix-functions/iswxdigit_l.texi: Renamed from
46288         doc/glibc-functions/iswxdigit_l.texi.
46289         * doc/posix-functions/isxdigit_l.texi: Renamed from
46290         doc/glibc-functions/isxdigit_l.texi.
46291         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
46292         doc/glibc-functions/mbsnrtowcs.texi.
46293         * doc/posix-functions/mkdtemp.texi: Renamed from
46294         doc/glibc-functions/mkdtemp.texi.
46295         * doc/posix-functions/newlocale.texi: Renamed from
46296         doc/glibc-functions/newlocale.texi.
46297         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
46298         doc/glibc-functions/nl_langinfo_l.texi.
46299         * doc/posix-functions/open_memstream.texi: Renamed from
46300         doc/glibc-functions/open_memstream.texi.
46301         * doc/posix-functions/opterr.texi: Renamed from
46302         doc/glibc-functions/opterr.texi.
46303         * doc/posix-functions/optind.texi: Renamed from
46304         doc/glibc-functions/optind.texi.
46305         * doc/posix-functions/optopt.texi: Renamed from
46306         doc/glibc-functions/optopt.texi.
46307         * doc/posix-functions/psignal.texi: Renamed from
46308         doc/glibc-functions/psignal.texi.
46309         * doc/posix-functions/scandir.texi: Renamed from
46310         doc/glibc-functions/scandir.texi.
46311         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
46312         doc/glibc-functions/sched_get_priority_min.texi.
46313         * doc/posix-functions/signgam.texi: Renamed from
46314         doc/glibc-functions/signgam.texi.
46315         * doc/posix-functions/stpcpy.texi: Renamed from
46316         doc/glibc-functions/stpcpy.texi.
46317         * doc/posix-functions/stpncpy.texi: Renamed from
46318         doc/glibc-functions/stpncpy.texi.
46319         * doc/posix-functions/strcasecmp_l.texi: Renamed from
46320         doc/glibc-functions/strcasecmp_l.texi.
46321         * doc/posix-functions/strcoll_l.texi: Renamed from
46322         doc/glibc-functions/strcoll_l.texi.
46323         * doc/posix-functions/strfmon_l.texi: Renamed from
46324         doc/glibc-functions/strfmon_l.texi.
46325         * doc/posix-functions/strftime_l.texi: Renamed from
46326         doc/glibc-functions/strftime_l.texi.
46327         * doc/posix-functions/strncasecmp_l.texi: Renamed from
46328         doc/glibc-functions/strncasecmp_l.texi.
46329         * doc/posix-functions/strndup.texi: Renamed from
46330         doc/glibc-functions/strndup.texi.
46331         * doc/posix-functions/strnlen.texi: Renamed from
46332         doc/glibc-functions/strnlen.texi.
46333         * doc/posix-functions/strsignal.texi: Renamed from
46334         doc/glibc-functions/strsignal.texi.
46335         * doc/posix-functions/strxfrm_l.texi: Renamed from
46336         doc/glibc-functions/strxfrm_l.texi.
46337         * doc/posix-functions/timer_gettime.texi: Renamed from
46338         doc/glibc-functions/timer_gettime.texi.
46339         * doc/posix-functions/tolower_l.texi: Renamed from
46340         doc/glibc-functions/tolower_l.texi.
46341         * doc/posix-functions/toupper_l.texi: Renamed from
46342         doc/glibc-functions/toupper_l.texi.
46343         * doc/posix-functions/towctrans_l.texi: Renamed from
46344         doc/glibc-functions/towctrans_l.texi.
46345         * doc/posix-functions/towlower_l.texi: Renamed from
46346         doc/glibc-functions/towlower_l.texi.
46347         * doc/posix-functions/towupper_l.texi: Renamed from
46348         doc/glibc-functions/towupper_l.texi.
46349         * doc/posix-functions/uselocale.texi: Renamed from
46350         doc/glibc-functions/uselocale.texi.
46351         * doc/posix-functions/vdprintf.texi: Renamed from
46352         doc/glibc-functions/vdprintf.texi.
46353         * doc/posix-functions/wcpcpy.texi:
46354         Renamed from doc/glibc-functions/wcpcpy.texi.
46355         * doc/posix-functions/wcpncpy.texi: Renamed from
46356         doc/glibc-functions/wcpncpy.texi.
46357         * doc/posix-functions/wcscasecmp.texi: Renamed from
46358         doc/glibc-functions/wcscasecmp.texi.
46359         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
46360         doc/glibc-functions/wcscasecmp_l.texi.
46361         * doc/posix-functions/wcscoll_l.texi: Renamed from
46362         doc/glibc-functions/wcscoll_l.texi.
46363         * doc/posix-functions/wcsdup.texi: Renamed from
46364         doc/glibc-functions/wcsdup.texi.
46365         * doc/posix-functions/wcsncasecmp.texi: Renamed from
46366         doc/glibc-functions/wcsncasecmp.texi.
46367         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
46368         doc/glibc-functions/wcsncasecmp_l.texi.
46369         * doc/posix-functions/wcsnlen.texi: Renamed from
46370         doc/glibc-functions/wcsnlen.texi.
46371         * doc/posix-functions/wcsnrtombs.texi: Renamed from
46372         doc/glibc-functions/wcsnrtombs.texi.
46373         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
46374         doc/glibc-functions/wcsxfrm_l.texi.
46375         * doc/posix-functions/wctrans_l.texi: Renamed from
46376         doc/glibc-functions/wctrans_l.texi.
46377         * doc/posix-functions/wctype_l.texi: Renamed from
46378         doc/glibc-functions/wctype_l.texi.
46379         * doc/gnulib.texi (Function Substitutes): Add these subsections.
46380         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
46381         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
46382         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
46383         these subsections.
46384         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
46385         Remove sections.
46386
46387 2008-12-14  Bruno Haible  <bruno@clisp.org>
46388
46389         Update doc for POSIX:2008.
46390         * doc/posix-functions/*.texi: Update URL of POSIX specification.
46391
46392 2008-12-14  Bruno Haible  <bruno@clisp.org>
46393
46394         Update doc for POSIX:2008.
46395         * doc/pastposix-functions/bcmp.texi: Renamed from
46396         doc/posix-functions/bcmp.texi.
46397         * doc/pastposix-functions/bcopy.texi: Renamed from
46398         doc/posix-functions/bcopy.texi.
46399         * doc/pastposix-functions/bsd_signal.texi: Renamed from
46400         doc/posix-functions/bsd_signal.texi.
46401         * doc/pastposix-functions/bzero.texi: Renamed from
46402         doc/posix-functions/bzero.texi.
46403         * doc/pastposix-functions/ecvt.texi: Renamed from
46404         doc/posix-functions/ecvt.texi.
46405         * doc/pastposix-functions/fcvt.texi: Renamed from
46406         doc/posix-functions/fcvt.texi.
46407         * doc/pastposix-functions/ftime.texi: Renamed from
46408         doc/posix-functions/ftime.texi.
46409         * doc/pastposix-functions/gcvt.texi: Renamed from
46410         doc/posix-functions/gcvt.texi.
46411         * doc/pastposix-functions/getcontext.texi: Renamed from
46412         doc/posix-functions/getcontext.texi.
46413         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
46414         doc/posix-functions/gethostbyaddr.texi.
46415         * doc/pastposix-functions/gethostbyname.texi: Renamed from
46416         doc/posix-functions/gethostbyname.texi.
46417         * doc/pastposix-functions/getwd.texi: Renamed from
46418         doc/posix-functions/getwd.texi.
46419         * doc/pastposix-functions/h_errno.texi: Renamed from
46420         doc/posix-functions/h_errno.texi.
46421         * doc/pastposix-functions/index.texi: Renamed from
46422         doc/posix-functions/index.texi.
46423         * doc/pastposix-functions/makecontext.texi: Renamed from
46424         doc/posix-functions/makecontext.texi.
46425         * doc/pastposix-functions/mktemp.texi: Renamed from
46426         doc/posix-functions/mktemp.texi.
46427         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
46428         doc/posix-functions/pthread_attr_getstackaddr.texi.
46429         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
46430         doc/posix-functions/pthread_attr_setstackaddr.texi.
46431         * doc/pastposix-functions/rindex.texi: Renamed from
46432         doc/posix-functions/rindex.texi.
46433         * doc/pastposix-functions/scalb.texi: Renamed from
46434         doc/posix-functions/scalb.texi.
46435         * doc/pastposix-functions/setcontext.texi: Renamed from
46436         doc/posix-functions/setcontext.texi.
46437         * doc/pastposix-functions/swapcontext.texi: Renamed from
46438         doc/posix-functions/swapcontext.texi.
46439         * doc/pastposix-functions/ualarm.texi: Renamed from
46440         doc/posix-functions/ualarm.texi.
46441         * doc/pastposix-functions/usleep.texi: Renamed from
46442         doc/posix-functions/usleep.texi.
46443         * doc/pastposix-functions/vfork.texi: Renamed from
46444         doc/posix-functions/vfork.texi.
46445         * doc/pastposix-functions/wcswcs.texi: Renamed from
46446         doc/posix-functions/wcswcs.texi.
46447         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
46448         (Function Substitutes): Update.
46449
46450 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46451
46452         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
46453         m4/strerror.m4.
46454
46455 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46456             Bruno Haible  <bruno@clisp.org>
46457
46458         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
46459
46460 2008-12-13  Bruno Haible  <bruno@clisp.org>
46461
46462         * modules/strtoull (Depends-on): Remove unistd.
46463
46464 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46465
46466         * modules/strtoull (Depends-on): Add stdlib.
46467
46468 2008-12-11  Simon Josefsson  <simon@josefsson.org>
46469
46470         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
46471
46472 2008-12-10  Jim Meyering  <meyering@redhat.com>
46473
46474         gl_ASSERT: don't say assertions are disabled when they're not
46475         * m4/assert.m4 (gl_ASSERT): Do not make configure report
46476         "checking whether to enable assertions... no", when they are in
46477         fact enabled.  This is solely a bug in the output of configure.
46478         In spite of saying "no", NDEBUG was not defined in that case.
46479         Also, as noted by Eric Blake, leave assertions enabled upon
46480         --enable-assert=INVALID.
46481
46482 2008-12-10  Bruno Haible  <bruno@clisp.org>
46483
46484         Change MODULES.html to refer to POSIX:2008 where possible.
46485         * MODULES.html.sh (POSIX2008_URL): New variable.
46486         (posix_headers): Remove sys/timeb, ucontext.
46487         (posix2001_headers): New variable.
46488         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
46489         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
46490         index, makecontext, mktemp, pthread_attr_getstackaddr,
46491         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
46492         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
46493         (posix2001_functions): New variable.
46494         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
46495         otherwise.
46496
46497 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46498
46499         add missing include to parse-duration.c
46500         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
46501         * modules/parse-duration (Depends-on): Add xalloc.
46502
46503         fix sed script reading maint.mk
46504         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
46505         (syntax-check-rules): Use it.
46506
46507 2008-12-09  Bruno Haible  <bruno@clisp.org>
46508
46509         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
46510         MacOS X 10.4/PowerPC.
46511         Reported by Simon Josefsson.
46512
46513 2008-12-08  Jim Meyering  <meyering@redhat.com>
46514
46515         work around mingw's lack of some S_IF definitions
46516         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
46517         Reported by Simon Josefsson.
46518
46519 2008-12-08  Bruno Haible  <bruno@clisp.org>
46520
46521         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
46522         applied to variables. Needed on MacOS X 10.4/PowerPC.
46523         Reported by Simon Josefsson.
46524
46525 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
46526         and Eric Blake  <ebb9@byu.net>
46527
46528         assert: honor --enable-assert
46529         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
46530         order to honor --enable-assert, rather than treating it as a
46531         synonym for --disable-assert.
46532
46533 2008-12-08  Jim Meyering  <meyering@redhat.com>
46534
46535         * lib/posixtm.c: Remove now-useless declaration of mktime.
46536
46537         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
46538
46539 2008-12-07  Bruno Haible  <bruno@clisp.org>
46540
46541         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
46542         test_once): Mark functions as static.
46543         * tests/test-tls.c (test_tls): Likewise.
46544
46545 2008-12-07  Bruno Haible  <bruno@clisp.org>
46546
46547         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
46548         iconv_register_autodetect.
46549
46550 2008-12-07  Jim Meyering  <meyering@redhat.com>
46551
46552         posixtm.c: avoid a warning
46553         * lib/posixtm.c (posixtime): Don't initialize tm0.
46554         It's no longer needed to placate gcc4's -Wuninitialized,
46555         and the attempt to placate would elicit a new warning.
46556
46557         unicodeio.c: mark unused parameters
46558         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
46559         (fallback_failure_callback): Likewise.
46560
46561 2008-12-07  Bruno Haible  <bruno@clisp.org>
46562
46563         * gnulib-tool (func_create_testdir): When building the tests
46564         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
46565         Reported by Simon Josefsson.
46566
46567 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46568
46569         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
46570
46571 2008-12-06  Bruno Haible  <bruno@clisp.org>
46572
46573         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
46574         Suggested by Eric Blake.
46575
46576 2008-12-06  Bruno Haible  <bruno@clisp.org>
46577
46578         Fix a c-stack test failure on MacOS X.
46579         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
46580         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
46581         handler for SIGBUS as well.
46582         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
46583         install a signal handler for SIGBUS as well.
46584         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
46585
46586 2008-12-06  Bruno Haible  <bruno@clisp.org>
46587
46588         Advocacy documentation.
46589         * doc/gnulib-intro.texi (Benefits): New section.
46590         * doc/gnulib.texi: Update.
46591
46592 2008-12-06  Bruno Haible  <bruno@clisp.org>
46593
46594         Document the 'manywarnings' module.
46595         * doc/manywarnings.texi: New file.
46596         * doc/gnulib.texi: Include it.
46597
46598 2008-12-05  Eric Blake  <ebb9@byu.net>
46599
46600         tests: silence some gcc warnings
46601         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
46602         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
46603         type mismatches.
46604
46605 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46606             Bruno Haible  <bruno@clisp.org>
46607
46608         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
46609
46610 2008-11-29  Jim Meyering  <meyering@redhat.com>
46611
46612         unicodeio.c: mark unused parameters
46613         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
46614         (fallback_failure_callback): Likewise.
46615
46616         fts: fix a thinko
46617         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
46618         (set_stat_type): Return S_IF*-valued "type" directly.
46619         Prompted by James Youngman's spotting a related bug.
46620         Confirmed by further testing through find.
46621
46622         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
46623         * lib/fts.c (D_TYPE): Define.
46624         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
46625         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
46626         (s_ifmt_shift_bits): New function.
46627         (set_stat_type): New function.
46628         (fts_build): When not calling fts_stat, call set_stat_type
46629         to propagate dirent.d_type info to fts_read caller.
46630         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
46631         fts_statp->st_mode type information may be valid.
46632
46633 2008-11-28  Simon Josefsson  <simon@josefsson.org>
46634
46635         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
46636         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
46637         <sds@gnu.org>.
46638
46639 2008-11-20  Bruno Haible  <bruno@clisp.org>
46640
46641         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
46642         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
46643         INCLUDE_NEXT.
46644         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
46645         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
46646         * modules/math (Makefile.am): Substitute
46647         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
46648         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
46649
46650 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
46651             Bruno Haible  <bruno@clisp.org>
46652
46653         * lib/stdint.in.h: Define all type macros so that their expansion is
46654         a single typedef'ed token. Fixes a compilation failure in Boost which
46655         does "using ::int8_t;".
46656
46657 2008-11-18  Simon Josefsson  <simon@josefsson.org>
46658
46659         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
46660         gl_MANYWARN_ALL_GCC.
46661         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
46662         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
46663         * modules/manywarnings: New file.
46664         * MODULES.html.sh: Mention manywarnings module.
46665
46666 2008-11-18  Bruno Haible  <bruno@clisp.org>
46667
46668         * doc/gnulib-tool.texi (Unit tests): New section.
46669
46670 2008-11-18  Simon Josefsson  <simon@josefsson.org>
46671
46672         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
46673         paths like 'lib/po/foo.po'.
46674
46675 2008-11-17  Simon Josefsson  <simon@josefsson.org>
46676
46677         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
46678         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
46679
46680 2008-11-17  Simon Josefsson  <simon@josefsson.org>
46681
46682         * m4/warnings.m4: Use CPPFLAGS to really check whether the
46683         parameter works.
46684
46685 2008-11-17  Simon Josefsson  <simon@josefsson.org>
46686
46687         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
46688
46689 2008-11-17  Bruce Korb  <bkorb@gnu.org>
46690
46691         * modules/parse-duration-tests: New file.
46692         * tests/test-parse-duration.sh: New file.
46693         * tests/test-parse-duration.c: New file.
46694
46695         New module 'parse-duration'.
46696         * lib/parse-duration.h: New file.
46697         * lib/parse-duration.c: New file.
46698         * modules/parse-duration: New file.
46699
46700 2008-11-17  Bruno Haible  <bruno@clisp.org>
46701
46702         * tests/test-select-out.sh: Comment out the first pipe test.
46703         Reported by Simon Josefsson.
46704
46705 2008-11-17  Bruno Haible  <bruno@clisp.org>
46706
46707         * modules/getaddrinfo (Depends-on): Add servent, hostent.
46708         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
46709         gl_HOSTENT.
46710
46711 2008-11-17  Bruno Haible  <bruno@clisp.org>
46712
46713         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
46714         -lnetwork and -lnet. Needed for Haiku and BeOS.
46715
46716 2008-11-16  Bruno Haible  <bruno@clisp.org>
46717
46718         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
46719
46720 2008-11-16  Bruno Haible  <bruno@clisp.org>
46721
46722         Avoid test failure on Haiku.
46723         * tests/test-fsync.c: Include <errno.h>.
46724         (main): Don't require that fsync (0) fails.
46725
46726 2008-11-15  Bruno Haible  <bruno@clisp.org>
46727
46728         New module 'hostent'.
46729         * modules/hostent: New file.
46730         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
46731
46732 2008-11-15  Bruno Haible  <bruno@clisp.org>
46733
46734         New module 'servent'.
46735         * modules/servent: New file.
46736         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
46737
46738 2008-11-15  Bruno Haible  <bruno@clisp.org>
46739
46740         Avoid generating same test program with two different rules.
46741         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
46742         test-frexp to test-frexp-nolibm.
46743         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
46744         test-frexpl to test-frexpl-nolibm.
46745
46746 2008-11-15  Bruno Haible  <bruno@clisp.org>
46747
46748         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
46749         $(FREXPL_LIBM).
46750
46751 2008-11-15  Bruno Haible  <bruno@clisp.org>
46752
46753         * lib/netdb.in.h: Activate the definitions also when the system's
46754         <netdb.h> has 'struct addrinfo'.
46755         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
46756         EAI_OVERFLOW or AI_NUMERICSERV.
46757         * doc/posix-headers/netdb.texi: Document the problem.
46758
46759 2008-11-15  Bruno Haible  <bruno@clisp.org>
46760
46761         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
46762
46763         Make the 'sched' module work on platforms where <sched.h> exists but
46764         is incomplete (such as Haiku).
46765         * lib/sched.in.h; Include the system's <sched.h> if it exists.
46766         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
46767         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
46768         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
46769         HAVE_STRUCT_SCHED_PARAM.
46770         * modules/sched (Depends-on): Add include_next.
46771         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
46772         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
46773         * doc/posix-headers/sched.texi: Document the issue.
46774
46775 2008-11-13  Jim Meyering  <meyering@redhat.com>
46776
46777         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
46778         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
46779         test would fail due to the difference in the Report bugs to ...
46780         line.  The expected address is empty, "<>", while the actual
46781         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
46782
46783 2008-11-12  Bruno Haible  <bruno@clisp.org>
46784
46785         lstat: don't compile lstat.c on systems lacking lstat
46786         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
46787         which don't have lstat; this is handled by lib/sys_stat.in.h already.
46788         Reported by Daniel P. Berrange via Jim Meyering.
46789
46790 2008-11-12  Jim Meyering  <meyering@redhat.com>
46791
46792         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
46793
46794 2008-11-12  Simon Josefsson  <simon@josefsson.org>
46795
46796         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
46797         instead.
46798
46799 2008-11-12  Bruno Haible  <bruno@clisp.org>
46800
46801         * lib/unicodeio.c: Include unistr.h.
46802         (utf8_wctomb): Remove function.
46803         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
46804
46805 2008-11-12  Simon Josefsson  <simon@josefsson.org>
46806
46807         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
46808         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
46809         <bruno@clisp.org>.
46810         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
46811
46812 2008-11-12  Simon Josefsson  <simon@josefsson.org>
46813
46814         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
46815         * doc/gnulib.texi: Add section for warnings.
46816
46817 2008-11-11  Bruno Haible  <bruno@clisp.org>
46818
46819         * lib/sockets.h: Add a comment.
46820
46821 2008-11-11  Karl Berry  <karl@gnu.org>
46822
46823         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
46824
46825 2008-11-11  Eric Blake  <ebb9@byu.net>
46826
46827         fdl.texi: avoid git symlinks
46828         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
46829
46830 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
46831
46832         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
46833
46834 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
46835
46836         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
46837         (gl_WARN_ADD): Substitute $2 if literal.
46838
46839 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
46840
46841         * m4/warning.m4: Remove.
46842
46843 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
46844
46845         * m4/warnings.m4: Almost complete rewrite. :-)
46846
46847 2008-11-10  Simon Josefsson  <simon@josefsson.org>
46848
46849         * modules/warnings: New module.
46850         * m4/warnings.m4: New file.
46851         * MODULES.html.sh: Mention warnings module.
46852         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
46853         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46854
46855 2008-11-10  Eric Blake  <ebb9@byu.net>
46856
46857         fdl.texi: make a symlink to the latest version
46858         * doc/standards.texi: Revert today's earlier change.
46859         * doc/fdl-1.2.texi: Rename from old fdl.texi...
46860         * doc/fdl.texi: ...and replace this with a symlink to the newer
46861         fdl-1.3.texi.
46862
46863 2008-11-10  Bruno Haible  <bruno@clisp.org>
46864
46865         * tests/test-select-fd.c (main): Accept the result file name as fourth
46866         argument.
46867         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
46868         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
46869
46870 2008-11-10  Bruno Haible  <bruno@clisp.org>
46871
46872         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
46873         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
46874         as autoconf-substituted macros.
46875         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
46876         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
46877         gl_NETDB_H_DEFAULTS. Set these variables.
46878         * modules/netdb (Makefile.am): Substitute these variables.
46879
46880 2008-11-10  Eric Blake  <ebb9@byu.net>
46881
46882         standards.texi: include correct file for FDL 1.3
46883         * doc/standards.texi (GNU Free Documentation License): Change
46884         include file to pull in FDL 1.3, not 1.2.
46885
46886         fdl.texi: revert accidental change to license
46887         * doc/fdl.texi: This is FDL 1.2, not 1.3.
46888
46889 2008-11-10  Bruno Haible  <bruno@clisp.org>
46890
46891         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
46892         cross-compiling guesses also when the native compile gives no result.
46893
46894 2008-11-10  Bruno Haible  <bruno@clisp.org>
46895
46896         * lib/spawni.c (__spawni): Force variable into the stack.
46897
46898 2008-11-10  Bruno Haible  <bruno@clisp.org>
46899
46900         Add support for Haiku.
46901         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
46902         glibc and BeOS, but also on Haiku.
46903         * lib/fpurge.c (fpurge): Likewise.
46904         * lib/freadable.c (freadable): Likewise.
46905         * lib/freadahead.c (freadahead): Likewise.
46906         * lib/freading.c (freading): Likewise.
46907         * lib/freadptr.c (freadptr): Likewise.
46908         * lib/freadseek.c (freadptrinc): Likewise.
46909         * lib/fseeko.c (rpl_fseeko): Likewise.
46910         * lib/fseterr.c (fseterr): Likewise.
46911         * lib/fwritable.c (fwritable): Likewise.
46912         * lib/fwriting.c (fwriting): Likewise.
46913         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
46914
46915 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
46916
46917         * lib/config.charset: Treat Haiku like BeOS.
46918
46919 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
46920
46921         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
46922         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
46923
46924 2008-11-08  Bruno Haible  <bruno@clisp.org>
46925
46926         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
46927         AC_CACHE_CHECK.
46928
46929 2008-11-08  Bruno Haible  <bruno@clisp.org>
46930
46931         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
46932
46933 2008-11-08  Bruno Haible  <bruno@clisp.org>
46934
46935         * tests/test-select-fd.c: New file.
46936         * tests/test-select-in.sh: New file.
46937         * tests/test-select-out.sh: New file.
46938         * tests/test-select-stdin.c: New file.
46939         * modules/select-tests (Files): Add the new files.
46940         (Depends-on): Add gettimeofday.
46941         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
46942         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
46943         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
46944
46945 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
46946             Bruno Haible  <bruno@clisp.org>
46947
46948         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
46949
46950 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
46951
46952         * build-aux/pmccabe2html: Added support for C++ source files.
46953
46954 2008-11-05  Ben Pfaff  <blp@gnu.org>
46955
46956         Fix lib/close.c build on Windows.
46957         * modules/close (Files): Add lib/w32sock.h.
46958
46959 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
46960
46961         Accept Bison's NEWS format.
46962         * build-aux/announce-gen (print_news_deltas): Tweak
46963         $re_prefix.
46964
46965 2008-11-04  Bruno Haible  <bruno@clisp.org>
46966
46967         * modules/random_r (Maintainer): Add glibc.
46968
46969 2008-11-04  Simon Josefsson  <simon@josefsson.org>
46970
46971         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
46972         by karl@freefriends.org (Karl Berry).
46973         * doc/alloca.texi: Likewise.
46974         * doc/c-ctype.texi: Likewise.
46975         * doc/c-strcase.texi: Likewise.
46976         * doc/c-strcaseeq.texi: Likewise.
46977         * doc/c-strcasestr.texi: Likewise.
46978         * doc/c-strstr.texi: Likewise.
46979         * doc/c-strtod.texi: Likewise.
46980         * doc/c-strtold.texi: Likewise.
46981         * doc/ctime.texi: Likewise.
46982         * doc/error.texi: Likewise.
46983         * doc/fdl.texi: Likewise.
46984         * doc/gcd.texi: Likewise.
46985         * doc/getdate.texi: Likewise.
46986         * doc/gnulib-intro.texi: Likewise.
46987         * doc/gnulib-tool.texi: Likewise.
46988         * doc/gnulib.texi: Likewise.
46989         * doc/inet_ntoa.texi: Likewise.
46990         * doc/maintain.texi: Likewise.
46991         * doc/make-stds.texi: Likewise.
46992         * doc/quote.texi: Likewise.
46993         * doc/regexprops-generic.texi: Likewise.
46994         * doc/standards.texi: Likewise.
46995         * doc/verify.texi: Likewise.
46996         * doc/visibility.texi: Likewise.
46997         * doc/gnulib.texi (GNU Free Documentation License): Include
46998         fdl-1.3.texi instead of fdl.texi.
46999
47000 2008-11-04  Simon Josefsson  <simon@josefsson.org>
47001
47002         * doc/fdl-1.3.texi: New file, from
47003         <http://www.gnu.org/licenses/fdl-1.3.texi>.
47004         * modules/fdl-1.3: Add.
47005         * MODULES.html.sh: Add fdl-1.3.
47006
47007 2008-11-03  Bruno Haible  <bruno@clisp.org>
47008
47009         Make determination of absolute name of header file work with AIX xlc.
47010         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
47011         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
47012         preprocessing.
47013         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
47014         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
47015
47016 2008-11-03  Simon Josefsson  <simon@josefsson.org>
47017
47018         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
47019         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
47020         <ludo@gnu.org>.
47021
47022 2008-11-02  Bruno Haible  <bruno@clisp.org>
47023
47024         Mark 'strpbrk' obsolete.
47025         * modules/strpbrk (Status, Notice): New sections.
47026         * modules/strtok_r (Depends-on): Add strpbrk.
47027
47028 2008-11-02  Bruno Haible  <bruno@clisp.org>
47029
47030         Mark 'strdup' obsolete.
47031         * modules/strdup (Status, Notice): New sections.
47032         * modules/findprog (Depends-on): Add strdup.
47033         * modules/getaddrinfo (Depends-on): Likewise.
47034         * modules/localename (Depends-on): Likewise.
47035         * modules/relocatable-lib (Depends-on): Likewise.
47036         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
47037         * modules/relocatable-prog (Depends-on): Likewise.
47038         * modules/trim (Depends-on): Likewise.
47039         * modules/unictype/gen-ctype (Depends-on): Likewise.
47040         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
47041
47042 2008-11-02  Bruno Haible  <bruno@clisp.org>
47043
47044         Mark 'strcspn' obsolete.
47045         * modules/strcspn (Status, Notice): New sections.
47046
47047 2008-11-02  Bruno Haible  <bruno@clisp.org>
47048
47049         Mark 'rmdir' obsolete.
47050         * modules/rmdir (Status, Notice): New sections.
47051         * modules/clean-temp (Depends-on): Add rmdir.
47052         * modules/openat (Depends-on): Likewise.
47053
47054 2008-11-02  Bruno Haible  <bruno@clisp.org>
47055
47056         Mark 'raise' obsolete.
47057         * modules/raise (Status, Notice): New sections.
47058         (Include): Specify <signal.h>.
47059         * modules/stdio (Depends-on): Add raise.
47060         * modules/write (Depends-on): Likewise.
47061
47062 2008-11-02  Bruno Haible  <bruno@clisp.org>
47063
47064         Mark 'memset' obsolete.
47065         * modules/memset (Status, Notice): New sections.
47066
47067 2008-11-02  Bruno Haible  <bruno@clisp.org>
47068
47069         Mark 'memmove' obsolete.
47070         * modules/memmove (Status, Notice): New sections.
47071         * modules/argp (Depends-on): Add memmove.
47072         * modules/argz (Depends-on): Likewise.
47073         * modules/canonicalize (Depends-on): Likewise.
47074         * modules/canonicalize-lgpl (Depends-on): Likewise.
47075         * modules/fts (Depends-on): Likewise.
47076         * modules/getcwd (Depends-on): Likewise.
47077         * modules/human (Depends-on): Likewise.
47078         * modules/regex (Depends-on): Likewise.
47079         * modules/striconveh (Depends-on): Likewise.
47080         * modules/trim (Depends-on): Likewise.
47081         * modules/unistr/u8-move (Depends-on): Likewise.
47082         * modules/unistr/u16-move (Depends-on): Likewise.
47083         * modules/unistr/u32-move (Depends-on): Likewise.
47084
47085 2008-11-02  Bruno Haible  <bruno@clisp.org>
47086
47087         Mark 'memcpy' obsolete.
47088         * modules/memcpy (Status, Notice): New sections.
47089
47090 2008-11-02  Bruno Haible  <bruno@clisp.org>
47091
47092         Mark 'memcmp' obsolete.
47093         * modules/memcmp (Status, Notice): New sections.
47094         * modules/argmatch (Depends-on): Add memchr.
47095         * modules/backupfile (Depends-on): Likewise.
47096         * modules/c-strcasestr (Depends-on): Likewise.
47097         * modules/crypto/des (Depends-on): Likewise.
47098         * modules/csharpcomp (Depends-on): Likewise.
47099         * modules/fnmatch (Depends-on): Likewise.
47100         * modules/git-merge-changelog (Depends-on): Likewise.
47101         * modules/isnand (Depends-on): Likewise.
47102         * modules/isnand-nolibm (Depends-on): Likewise.
47103         * modules/isnanf (Depends-on): Likewise.
47104         * modules/isnanf-nolibm (Depends-on): Likewise.
47105         * modules/isnanl (Depends-on): Likewise.
47106         * modules/isnanl-nolibm (Depends-on): Likewise.
47107         * modules/mbchar (Depends-on): Likewise.
47108         * modules/memcoll (Depends-on): Likewise.
47109         * modules/quotearg (Depends-on): Likewise.
47110         * modules/regex (Depends-on): Likewise.
47111         * modules/relocatable-prog (Depends-on): Likewise.
47112         * modules/same (Depends-on): Likewise.
47113         * modules/signbit (Depends-on): Likewise.
47114         * modules/strcasestr-simple (Depends-on): Likewise.
47115         * modules/unictype/gen-ctype (Depends-on): Likewise.
47116         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
47117         * modules/uniname/uniname (Depends-on): Likewise.
47118         * modules/unistr/u8-cmp (Depends-on): Likewise.
47119
47120 2008-11-02  Bruno Haible  <bruno@clisp.org>
47121
47122         Mark 'memchr' obsolete.
47123         * modules/memchr (Status, Notice): New sections.
47124         * modules/argp (Depends-on): Add memchr.
47125         * modules/base64 (Depends-on): Likewise.
47126         * modules/c-strcasestr (Depends-on): Likewise.
47127         * modules/chdir-long (Depends-on): Likewise.
47128         * modules/fnmatch (Depends-on): Likewise.
47129         * modules/getsubopt (Depends-on): Likewise.
47130         * modules/git-merge-changelog (Depends-on): Likewise.
47131         * modules/glob (Depends-on): Likewise.
47132         * modules/strcasestr-simple (Depends-on): Likewise.
47133         * modules/strnlen (Depends-on): Likewise.
47134
47135 2008-11-02  Bruno Haible  <bruno@clisp.org>
47136
47137         Mark 'atexit' obsolete.
47138         * modules/atexit (Status, Notice): New sections.
47139         * modules/chdir-long (Depends-on): Add atexit.
47140         * modules/wait-process (Depends-on): Likewise.
47141
47142 2008-11-02  Bruno Haible  <bruno@clisp.org>
47143
47144         * gnulib-tool: New option --with-obsolete.
47145         (func_usage): Document it.
47146         (func_modules_transitive_closure): Drop obsolete dependencies if
47147         incobsolete is not true.
47148         (func_import): Read and save the incobsolete variable to the cache.
47149
47150 2008-11-02  Bruno Haible  <bruno@clisp.org>
47151
47152         * modules/TEMPLATE-EXTENDED: New field 'Status'.
47153         * gnulib-tool: New option --extract-status.
47154         (func_usage): Document it.
47155         (sed_extract_prog): Recognize it.
47156         (func_get_status): New function.
47157
47158 2008-10-30  Simon Josefsson  <simon@josefsson.org>
47159
47160         * modules/sockets (License): Change from LGPL to LGPLv2+.
47161
47162 2008-10-28  Simon Josefsson  <simon@josefsson.org>
47163
47164         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
47165
47166 2008-10-28  Simon Josefsson  <simon@josefsson.org>
47167
47168         * MODULES.html.sh (Support for systems lacking POSIX:2001):
47169         Mention times and sys_times.
47170         * modules/sys_times, modules/sys_times-tests: New modules.
47171         * modules/times, modules/times-tests: Likewise
47172         * m4/sys_times_h.m4: New file.
47173         * lib/sys_times.in.h: Likewise
47174         * lib/times.c: Likewise.
47175         * tests/test-sys_times.c: Likewise.
47176         * tests/test-times.c: Likewise.
47177         * doc/posix-headers/sys_times.texi: Update.
47178         * doc/posix-functions/times.texi: Update.
47179
47180 2008-10-28  Jim Meyering  <meyering@redhat.com>
47181
47182         * modules/tempname (Depends-on): Add lstat.
47183
47184         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
47185
47186 2008-10-28  Simon Josefsson  <simon@josefsson.org>
47187
47188         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
47189         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
47190         using idiom used elsewhere in gnulib.
47191
47192 2008-10-27  Jim Meyering  <meyering@redhat.com>
47193
47194         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
47195
47196 2008-10-27  Simon Josefsson  <simon@josefsson.org>
47197
47198         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
47199         TESTS_ENVIRONMENT, for shell scripts that needs to call built
47200         programs.
47201         * tests/test-argp-2.sh: Use $EXEEXT when needed.
47202
47203 2008-10-27  Simon Josefsson  <simon@josefsson.org>
47204
47205         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
47206
47207 2008-10-27  Bruno Haible  <bruno@clisp.org>
47208
47209         * tests/test-lstat.c: Include <stdio.h>.
47210
47211 2008-10-27  Simon Josefsson  <simon@josefsson.org>
47212
47213         * modules/lstat-tests: New module.
47214         * tests/test-lstat.c: New file.
47215
47216 2008-10-26  Jim Meyering  <meyering@redhat.com>
47217
47218         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
47219
47220 2008-10-26  Simon Josefsson  <simon@josefsson.org>
47221             Bruno Haible  <bruno@clisp.org>
47222
47223         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
47224         * modules/configmake (Include): Add a note that the include must come
47225         after all system headers.
47226         * lib/javaversion.c: Include configmake.h after all other includes.
47227
47228 2008-10-26  Bruno Haible  <bruno@clisp.org>
47229
47230         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
47231         HAVE_STRUCT_RANDOM_DATA to 1.
47232         (gl_STDLIB_H): Simplify.
47233
47234 2008-10-26  Simon Josefsson  <simon@josefsson.org>
47235
47236         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
47237         substitute HAVE_STRUCT_RANDOM_DATA.
47238         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
47239         random_data.
47240         * modules/stdlib (Makefile.am): Substitute
47241         HAVE_STRUCT_RANDOM_DATA.
47242
47243 2008-10-26  Simon Josefsson  <simon@josefsson.org>
47244
47245         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
47246         * doc/gnulib-intro.texi (Copyright): Likewise.
47247
47248 2008-10-26  Simon Josefsson  <simon@josefsson.org>
47249
47250         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
47251         findings.
47252
47253 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
47254             Bruno Haible  <bruno@clisp.org>
47255
47256         * lib/unistd.in.h: Include <winsock2.h>.
47257         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
47258         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
47259         Provide dummy declarations.
47260         (gethostname): Override.
47261         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
47262         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
47263         gl_PREREQ_SYS_H_WINSOCK2.
47264         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
47265         * doc/posix-functions/gethostname.texi: More details.
47266
47267 2008-10-25  Bruno Haible  <bruno@clisp.org>
47268
47269         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
47270         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
47271         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
47272
47273         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
47274         here ...
47275         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
47276         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
47277         gl_UNISTD_H_DEFAULTS.
47278
47279 2008-10-25  Eric Blake  <ebb9@byu.net>
47280
47281         signbit: avoid spurious compiler failure
47282         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
47283         declarations inside function.
47284
47285 2008-10-24  Simon Josefsson  <simon@josefsson.org>
47286             Bruno Haible  <bruno@clisp.org>
47287
47288         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
47289         * modules/random_r (Depends-on): Add stdint.
47290
47291 2008-10-24  Bruno Haible  <bruno@clisp.org>
47292
47293         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
47294         Eggert.
47295         * modules/strerror (License): Likewise.
47296
47297 2008-10-24  Jim Meyering  <meyering@redhat.com>
47298
47299         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
47300         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
47301
47302 2008-10-24  Eric Blake  <ebb9@byu.net>
47303
47304         getgroups: fix compilation when getgroups is available
47305         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
47306         but with <config.h> override of getgroups disabled.
47307
47308 2008-10-24  Simon Josefsson  <simon@josefsson.org>
47309
47310         * doc/gnulib.texi (Header files): Add note about C++ problems.
47311         Explained by Bruno Haible <bruno@clisp.org>.
47312
47313 2008-10-23  Bruno Haible  <bruno@clisp.org>
47314
47315         Define a dummy SA_NODEFER macro on Interix.
47316         * lib/signal.in.h (SA_NODEFER): Define fallback.
47317         Reported by Aleksey Cheusov <cheusov@tut.by> via
47318         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
47319
47320 2008-10-23  Bruno Haible  <bruno@clisp.org>
47321
47322         * modules/freadahead (License): Change to LGPLv2+.
47323         Suggested by Simon Josefsson.
47324
47325 2008-10-23  Jim Meyering  <meyering@redhat.com>
47326
47327         random_r: new module
47328         * modules/random_r: New file.
47329         * m4/random_r.m4: New file.
47330         * lib/random_r.c: New file, from glibc.
47331         * modules/random_r-tests: New file.
47332         * tests/test-random_r.c: New file.
47333         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
47334          Declare.
47335         (RAND_MAX): Define.
47336         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
47337         * modules/stdlib: Substitute them, too.
47338         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
47339         * doc/glibc-functions/initstate_r.texi: Mention the new module.
47340         * doc/glibc-functions/random_r.texi: Likewise.
47341         * doc/glibc-functions/setstate_r.texi: Likewise.
47342         * doc/glibc-functions/srandom_r.texi: Likewise.
47343         * config/srclist.txt: Mention it.
47344
47345 2008-10-23  David Lutterkort  <lutter@redhat.com>
47346
47347         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
47348         link requirement
47349
47350 2008-10-23  Jim Meyering  <meyering@redhat.com>
47351
47352         selinux-h: mark parameters of stub functions as intentionally unused
47353         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
47354         * lib/se-context.in.h: Likewise.
47355
47356 2008-10-22  Simon Josefsson  <simon@josefsson.org>
47357
47358         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
47359
47360 2008-10-22  Simon Josefsson  <simon@josefsson.org>
47361
47362         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
47363
47364 2008-10-22  Eric Blake  <ebb9@byu.net>
47365
47366         glthread/thread: avoid compiler warning
47367         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
47368         Add unreachable abort to silence compiler.
47369
47370 2008-10-22  Eric Blake  <ebb9@byu.net>
47371
47372         netdb: also supply struct addrinfo for cygwin 1.5.x
47373         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
47374         older cygwin.
47375         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
47376         cygwin.
47377         * doc/posix-headers/netdb.texi (netdb.h): Document this.
47378
47379 2008-10-22  Bruno Haible  <bruno@clisp.org>
47380
47381         * users.txt: Update entry about pspp.
47382
47383 2008-10-21  Bruno Haible  <bruno@clisp.org>
47384
47385         Simplification.
47386         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
47387         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
47388
47389         Simplification.
47390         * lib/ioctl.c (ioctl): Don't undefine.
47391         * lib/socket.c (socket): Don't undefine.
47392
47393         Remove unused module indicator macros.
47394         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
47395         GNULIB_$1 as a C macro.
47396
47397         * doc/posix-functions/close.texi: Undo last change.
47398         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
47399         Windows platforms.
47400
47401 2008-10-21  Bruno Haible  <bruno@clisp.org>
47402
47403         Add gethostname() declaration to <unistd.h>.
47404         * lib/unistd.in.h (gethostname): New declaration.
47405         * lib/gethostname.c: Include <unistd.h>.
47406         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
47407         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
47408         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
47409         and HAVE_GETHOSTNAME.
47410         * modules/gethostname (Depends-on): Add unistd.
47411         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47412         (Include): Specify <unistd.h>.
47413         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
47414         HAVE_GETHOSTNAME.
47415         * tests/test-gethostname.c: Include <unistd.h> first.
47416
47417 2008-10-21  Bruno Haible  <bruno@clisp.org>
47418
47419         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
47420         * modules/select-tests (Depends-on): Likewise.
47421         Reported by Simon Josefsson.
47422
47423 2008-10-21  Simon Josefsson  <simon@josefsson.org>
47424
47425         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
47426         * lib/accept.c: New file, based on winsock.c.
47427         * lib/bind.c: New file, based on winsock.c.
47428         * lib/connect.c: New file, based on winsock.c.
47429         * lib/getpeername.c: New file, based on winsock.c.
47430         * lib/getsockname.c: New file, based on winsock.c.
47431         * lib/getsockopt.c: New file, based on winsock.c.
47432         * lib/ioctl.c: New file, based on winsock.c.
47433         * lib/listen.c: New file, based on winsock.c.
47434         * lib/recv.c: New file, based on winsock.c.
47435         * lib/recvfrom.c: New file, based on winsock.c.
47436         * lib/send.c: New file, based on winsock.c.
47437         * lib/sendto.c: New file, based on winsock.c.
47438         * lib/setsockopt.c: New file, based on winsock.c.
47439         * lib/shutdown.c: New file, based on winsock.c.
47440         * lib/socket.c: New file, based on winsock.c.
47441         * lib/w32sock.h: New file, based on winsock.c.
47442         * lib/winsock.c: Remove file.
47443         * modules/accept: Likewise.
47444         * modules/bind: Likewise.
47445         * modules/connect: Likewise.
47446         * modules/getpeername: Likewise.
47447         * modules/getsockname: Likewise.
47448         * modules/getsockopt: Likewise.
47449         * modules/ioctl: Likewise.
47450         * modules/listen: Likewise.
47451         * modules/recv: Likewise.
47452         * modules/recvfrom: Likewise.
47453         * modules/send: Likewise.
47454         * modules/sendto: Likewise.
47455         * modules/setsockopt: Likewise.
47456         * modules/shutdown: Likewise.
47457         * modules/socket: Use socket.c instead of winsock.c.
47458         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
47459         * doc/posix-functions/accept.texi: Doc fix.
47460         * doc/posix-functions/bind.texi: Doc fix.
47461         * doc/posix-functions/close.texi: Doc fix.
47462         * doc/posix-functions/connect.texi: Doc fix.
47463         * doc/posix-functions/getpeername.texi: Doc fix.
47464         * doc/posix-functions/getsockname.texi: Doc fix.
47465         * doc/posix-functions/getsockopt.texi: Doc fix.
47466         * doc/posix-functions/ioctl.texi: Doc fix.
47467         * doc/posix-functions/listen.texi: Doc fix.
47468         * doc/posix-functions/recv.texi: Doc fix.
47469         * doc/posix-functions/recvfrom.texi: Doc fix.
47470         * doc/posix-functions/send.texi: Doc fix.
47471         * doc/posix-functions/sendto.texi: Doc fix.
47472         * doc/posix-functions/setsockopt.texi: Doc fix.
47473         * doc/posix-functions/shutdown.texi: Doc fix.
47474         * doc/posix-functions/socket.texi: Doc fix.
47475
47476 2008-10-20  Bruno Haible  <bruno@clisp.org>
47477
47478         Take into account the role of SIGABRT_COMPAT on Windows 2008.
47479         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
47480         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
47481         as an alias for SIGABRT.
47482         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
47483         (sigaction): Map it to SIGABRT.
47484         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
47485
47486 2008-10-20  Bruno Haible  <bruno@clisp.org>
47487
47488         * lib/fts.c: Don't include lstat.h.
47489         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
47490
47491         Move the lstat() declaration to <sys/stat.h>.
47492         * lib/lstat.h: Remove file.
47493         * lib/sys_stat.in.h: Add special invocation convention.
47494         (lstat): New declaration.
47495         * lib/lstat.c (orig_lstat): New function.
47496         (rpl_lstat): Use orig_lstat instead of lstat.
47497         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
47498         AC_C_INLINE. Set REPLACE_LSTAT.
47499         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
47500         and REPLACE_LSTAT.
47501         * modules/lstat (Files): Remove lib/lstat.h.
47502         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
47503         (Include): Specify <sys/stat.h> instead of lstat.h.
47504         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
47505         REPLACE_LSTAT.
47506         * NEWS: Mention the change.
47507
47508 2008-10-20  Bruno Haible  <bruno@clisp.org>
47509
47510         * modules/posix_spawn-tests: New file.
47511         * tests/test-posix_spawn3.c: New file.
47512
47513 2008-10-20  Bruno Haible  <bruno@clisp.org>
47514
47515         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
47516         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
47517         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
47518         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
47519         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
47520
47521 2008-10-20  Bruno Haible  <bruno@clisp.org>
47522
47523         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
47524         of posix_spawn on AIX 5.3.
47525
47526 2008-10-20  Bruno Haible  <bruno@clisp.org>
47527
47528         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
47529
47530 2008-10-20  Bruno Haible  <bruno@clisp.org>
47531
47532         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
47533         of AC_LANG_PROGRAM.
47534
47535 2008-10-20  Simon Josefsson  <simon@josefsson.org>
47536
47537         * lib/netdb.in.h: Don't define GNU specific constants until they
47538         are supported or needed.  Reported by Bruno Haible
47539         <bruno@clisp.org>.
47540
47541 2008-10-20  Simon Josefsson  <simon@josefsson.org>
47542
47543         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
47544
47545 2008-10-20  Simon Josefsson  <simon@josefsson.org>
47546
47547         * lib/getaddrinfo.h: Remove file.
47548         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
47549         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
47550         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
47551         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
47552         * modules/netdb: Substitute GNULIB_GETADDRINFO.
47553         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
47554         * tests/test-getaddrinfo.c: Likewise.
47555         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
47556         * NEWS: Mention change.
47557
47558 2008-10-19  Bruno Haible  <bruno@clisp.org>
47559
47560         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
47561
47562 2008-10-19  Bruno Haible  <bruno@clisp.org>
47563
47564         * lib/wait-process.c: Include simply <sys/wait.h>.
47565         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
47566         WIFSTOPPED): Remove fallback definitions.
47567         * modules/wait-process (Depends-on): Add sys_wait.
47568
47569         New module 'sys_wait'.
47570         * modules/sys_wait: New file.
47571         * lib/sys_wait.in.h: New file, partially copied from
47572         lib/wait-process.c.
47573         * m4/sys_wait_h.m4: New file.
47574         * doc/posix-headers/sys_wait.texi: Mention the new module.
47575
47576 2008-10-19  Bruno Haible  <bruno@clisp.org>
47577
47578         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
47579
47580 2008-10-19  Bruno Haible  <bruno@clisp.org>
47581
47582         Assume that waitpid() fills an 'int' status, not a 'union wait'.
47583         * lib/wait-process.c (WAIT_T): Remove type.
47584         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
47585         (wait_subprocess): Update.
47586
47587 2008-10-19  Bruno Haible  <bruno@clisp.org>
47588
47589         New module 'atoll'.
47590         * modules/atoll: New file.
47591         * lib/stdlib.in.h (atoll): New declaration.
47592         * lib/atoll.c: New file, from glibc with modifications.
47593         * m4/atoll.m4: New file.
47594         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
47595         HAVE_ATOLL.
47596         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
47597         * doc/posix-functions/atoll.texi: Mention the new module.
47598
47599 2008-10-19  Bruno Haible  <bruno@clisp.org>
47600
47601         Add strtoull() declaration to <stdlib.h>.
47602         * lib/stdlib.in.h (strtoull): New declaration.
47603         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
47604         Set HAVE_STRTOULL.
47605         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
47606         HAVE_STRTOULL.
47607         * modules/strtoull (Depends-on): Add stdlib.
47608         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47609         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
47610         HAVE_STRTOULL.
47611
47612 2008-10-19  Bruno Haible  <bruno@clisp.org>
47613
47614         Add strtoll() declaration to <stdlib.h>.
47615         * lib/stdlib.in.h (strtoll): New declaration.
47616         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
47617         Set HAVE_STRTOLL.
47618         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
47619         HAVE_STRTOLL.
47620         * modules/strtoll (Depends-on): Add stdlib.
47621         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47622         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
47623
47624 2008-10-19  Bruno Haible  <bruno@clisp.org>
47625
47626         * modules/bcopy (Depends-on): Add strings.
47627         (Include): Specify <strings.h>.
47628
47629 2008-10-19  Bruno Haible  <bruno@clisp.org>
47630
47631         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
47632
47633 2008-10-19  Bruno Haible  <bruno@clisp.org>
47634
47635         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
47636         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
47637         mingw.
47638
47639 2008-10-19  Bruno Haible  <bruno@clisp.org>
47640
47641         * lib/atanl.c: Don't include isnanl.h.
47642         * lib/cosl.c: Likewise.
47643         * lib/ldexpl.c: Likewise.
47644         * lib/logl.c: Likewise.
47645         * lib/sinl.c: Likewise.
47646         * lib/sqrtl.c: Likewise.
47647         * lib/tanl.c: Likewise.
47648
47649         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
47650         * lib/isnanf.h: Remove file.
47651         * lib/isnand.h: Remove file.
47652         * lib/isnanl.h: Remove file.
47653         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
47654         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
47655         macros.
47656         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
47657         HAVE_ISNANF, don't define it as a C macro.
47658         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
47659         HAVE_ISNAND, don't define it as a C macro.
47660         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
47661         HAVE_ISNANL, don't define it as a C macro.
47662         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
47663         HAVE_ISNAN[FDL].
47664         * modules/isnanf (Files): Remove lib/isnanf.h.
47665         (Depends-on): Add math.
47666         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
47667         (Include): Specify <math.h> instead of isnanf.h.
47668         * modules/isnand (Files): Remove lib/isnand.h.
47669         (Depends-on): Add math.
47670         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
47671         (Include): Specify <math.h> instead of isnand.h.
47672         * modules/isnanl (Files): Remove lib/isnanl.h.
47673         (Depends-on): Add math.
47674         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
47675         (Include): Specify <math.h> instead of isnanl.h.
47676         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
47677         HAVE_ISNAN[FDL].
47678         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
47679         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
47680         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
47681         * NEWS: Mention the change.
47682
47683 2008-10-18  Bruno Haible  <bruno@clisp.org>
47684
47685         Add getusershell(), setusershell(), endusershell() declarations to
47686         <unistd.h>.
47687         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
47688         declarations.
47689         * lib/getusershell.c: Include unistd.h.
47690         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
47691         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
47692         HAVE_GETUSERSHELL.
47693         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
47694         and HAVE_GETUSERSHELL.
47695         * modules/getusershell (Depends-on): Add unistd, extensions.
47696         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47697         (Include): Specify <unistd.h>.
47698         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
47699         HAVE_GETUSERSHELL.
47700
47701 2008-10-18  Bruno Haible  <bruno@clisp.org>
47702
47703         Add a getloadavg() declaration to <stdlib.h>.
47704         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
47705         getloadavg declaration.
47706         (getloadavg): New declaration.
47707         * lib/getloadavg.c: Include <stdlib.h> first.
47708         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
47709         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
47710         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
47711         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
47712         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
47713         * modules/getloadavg (Depends-on): Add stdlib, extensions.
47714         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47715         (Include): Specify <stdlib.h>.
47716         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
47717         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
47718
47719 2008-10-18  Bruno Haible  <bruno@clisp.org>
47720
47721         * lib/dirchownmod.c: Don't include lchmod.h.
47722
47723         Move the lchmod() declaration to <sys/stat.h>.
47724         * lib/lchmod.h: Remove file.
47725         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
47726         (lchmod): New declaration, moved here from lib/lchown.h.
47727         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
47728         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
47729         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
47730         and HAVE_LCHMOD.
47731         * modules/lchmod (Files): Remove lib/lchmod.h.
47732         (Depends-on): Add sys_stat, extensions.
47733         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
47734         (Include): Specify <sys/stat.h> instead of lchmod.h.
47735         * modules/sys_stat (Depends-on): Add link-warning.
47736         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
47737         definition of GL_LINK_WARNING.
47738         * NEWS: Mention the change.
47739
47740 2008-10-18  Bruno Haible  <bruno@clisp.org>
47741
47742         * lib/fchdir.c: Don't include dirfd.h.
47743         * lib/fts.c: Likewise.
47744         * lib/getcwd.c: Likewise.
47745         * lib/glob.c: Likewise.
47746
47747         Move the dirfd() declaration to <dirent.h>.
47748         * lib/dirfd.h: Remove file.
47749         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
47750         (dirfd): New declaration.
47751         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
47752         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
47753         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
47754         HAVE_DECL_DIRFD.
47755         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
47756         HAVE_DECL_DIRFD.
47757         * modules/dirfd (Files): Remove lib/dirfd.h.
47758         (Depends-on): Add dirent, extensions.
47759         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
47760         (Include): Specify <dirent.h> instead of dirfd.h.
47761         * modules/dirent (Depends-on): Add link-warning.
47762         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
47763         definition of GL_LINK_WARNING.
47764         * NEWS: Mention the change.
47765
47766 2008-10-18  Bruno Haible  <bruno@clisp.org>
47767
47768         Move the euidaccess() declaration to <unistd.h>.
47769         * lib/euidaccess.h: Remove file.
47770         * lib/unistd.in.h (euidaccess): New declaration.
47771         * lib/euidaccess.c: Don't include euidaccess.h.
47772         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
47773         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
47774         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
47775         and HAVE_EUIDACCESS.
47776         * modules/euidaccess (Files): Remove lib/euidaccess.h.
47777         (Depends-on): Add unistd.
47778         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47779         (Include): Specify <unistd.h> instead of euidaccess.h.
47780         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
47781         HAVE_EUIDACCESS.
47782         * NEWS: Mention the change.
47783
47784 2008-10-18  Bruno Haible  <bruno@clisp.org>
47785
47786         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
47787
47788         Move the getdomainname() declaration to <unistd.h>.
47789         * lib/getdomainname.h: Remove file.
47790         * lib/unistd.in.h (getdomainname): New declaration.
47791         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
47792         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
47793         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
47794         HAVE_GETDOMAINNAME.
47795         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47796         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
47797         * modules/getdomainname (Files): Remove lib/getdomainname.h.
47798         (Depends-on): Add unistd, extensions.
47799         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47800         (Includes): Specify <unistd.h> instead of getdomainname.h.
47801         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
47802         HAVE_GETDOMAINNAME.
47803         * NEWS: Mention the change.
47804
47805 2008-10-18  Bruno Haible  <bruno@clisp.org>
47806
47807         * modules/dirent: New file.
47808         * m4/dirent_h.m4: New file.
47809         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
47810         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
47811         * modules/fchdir (Files): Remove lib/dirent.in.h.
47812         (Depends-on): Add dirent.
47813         (Makefile.am): Move rules to modules/dirent.
47814         * doc/posix-headers/dirent.texi: Mention the new module.
47815
47816 2008-10-18  Bruno Haible  <bruno@clisp.org>
47817
47818         Avoid -Wunused-parameter warnings in public gnulib header files.
47819         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
47820         macro.
47821         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
47822
47823 2008-10-18  Bruno Haible  <bruno@clisp.org>
47824
47825         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
47826         * doc/glibc-functions/error.texi: Mention the module 'error'.
47827         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
47828         * doc/glibc-functions/getdomainname.texi: Mention the module
47829         'getdomainname'.
47830         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
47831         * doc/glibc-functions/getpagesize.texi: Mention the module
47832         'getpagesize'.
47833         * doc/glibc-functions/getusershell.texi: Mention the module
47834         'getusershell'.
47835         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
47836         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
47837         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
47838         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
47839         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
47840         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
47841         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
47842         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
47843         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
47844         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
47845         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
47846         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
47847         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
47848         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
47849
47850 2008-10-17  Bruno Haible  <bruno@clisp.org>
47851
47852         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
47853         HP-UX and IRIX, use -0.0L.
47854         * tests/test-ceill.c (minus_zero): Likewise.
47855         * tests/test-floorl.c (minus_zero): Likewise.
47856         * tests/test-frexpl.c (minus_zero): Likewise.
47857         * tests/test-isnan.c (minus_zerol): Likewise.
47858         * tests/test-isnanl.h (minus_zero): Likewise.
47859         * tests/test-ldexpl.c (minus_zero): Likewise.
47860         * tests/test-roundl.c (minus_zero): Likewise.
47861         * tests/test-signbit.c (minus_zerol): Likewise.
47862         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
47863         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
47864         * tests/test-truncl.c (minus_zero): Likewise.
47865         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
47866         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
47867         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
47868         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
47869
47870 2008-10-17  Bruno Haible  <bruno@clisp.org>
47871
47872         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
47873         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
47874         that it gets activated only for gcc >= 3.0.
47875         * lib/dirent.in.h: Likewise.
47876         * lib/errno.in.h: Likewise.
47877         * lib/fcntl.in.h: Likewise.
47878         * lib/float.in.h: Likewise.
47879         * lib/iconv.in.h: Likewise.
47880         * lib/inttypes.in.h: Likewise.
47881         * lib/locale.in.h: Likewise.
47882         * lib/math.in.h: Likewise.
47883         * lib/netdb.in.h: Likewise.
47884         * lib/netinet_in.in.h: Likewise.
47885         * lib/search.in.h: Likewise.
47886         * lib/signal.in.h: Likewise.
47887         * lib/spawn.in.h: Likewise.
47888         * lib/stdarg.in.h: Likewise.
47889         * lib/stdint.in.h: Likewise.
47890         * lib/stdio.in.h: Likewise.
47891         * lib/stdlib.in.h: Likewise.
47892         * lib/string.in.h: Likewise.
47893         * lib/strings.in.h: Likewise.
47894         * lib/sys_file.in.h: Likewise.
47895         * lib/sys_ioctl.in.h: Likewise.
47896         * lib/sys_select.in.h: Likewise.
47897         * lib/sys_socket.in.h: Likewise.
47898         * lib/sys_stat.in.h: Likewise.
47899         * lib/sys_time.in.h: Likewise.
47900         * lib/sysexits.in.h: Likewise.
47901         * lib/time.in.h: Likewise.
47902         * lib/unistd.in.h: Likewise.
47903         * lib/wchar.in.h: Likewise.
47904         * lib/wctype.in.h: Likewise.
47905         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47906
47907 2008-10-17  Jim Meyering  <meyering@redhat.com>
47908
47909         ignore-value: don't depend on inline module
47910         * modules/ignore-value (Depends-on): Remove 'inline'.
47911         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
47912         Suggestion from Bruno Haible.
47913
47914 2008-10-17  Bruno Haible  <bruno@clisp.org>
47915
47916         New implementation of condition variables for Win32.
47917         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
47918         (gl_linked_waitqueue_t): New type.
47919         (gl_cond_t): Use it.
47920         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
47921         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
47922         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
47923         (glthread_cond_init_func, glthread_cond_wait_func,
47924         glthread_cond_timedwait_func, glthread_cond_signal_func,
47925         glthread_cond_broadcast_func, glthread_cond_destroy_func):
47926         Reimplemented on the basis of gl_linked_waitqueue_t.
47927         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
47928         gl_waitqueue_t.
47929         (gl_rwlock_t): Update.
47930         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
47931
47932 2008-10-17  Simon Josefsson  <simon@josefsson.org>
47933
47934         * modules/recvfrom (Depends-on): Add dependency on getpeername.
47935         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
47936
47937 2008-10-17  Jim Meyering  <meyering@redhat.com>
47938
47939         ignore-value: new module
47940         * modules/ignore-value: New file.
47941         * lib/ignore-value.h: New file.
47942         * MODULES.html.sh (Compiler warning management): New section,
47943         just for this module.  More to come.
47944
47945 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
47946
47947         open-safer.c: avoid 'signed and unsigned in conditional...' warning
47948         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
47949         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
47950
47951 2008-10-16  Jim Meyering  <meyering@redhat.com>
47952
47953         openat-die.c: avoid 'no previous prototype' warning
47954         * lib/openat-die.c: Include "openat.h".
47955         Reported by Reuben Thomas <rrt@sc3d.org>.
47956
47957 2008-10-16  Simon Josefsson  <simon@josefsson.org>
47958
47959         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
47960         * lib/netdb.in.h: Fix typo.
47961         Reported by Bruno Haible  <bruno@clisp.org>
47962
47963         * lib/netdb.in.h: Include sys/socket.h for platforms without
47964         netdb.h, to get structures like hostent on MinGW.
47965         * modules/netdb (Depends-on): Add sys_socket.
47966
47967 2008-10-15  Simon Josefsson  <simon@josefsson.org>
47968
47969         * modules/netdb, modules/netdb-tests: New file.
47970         * m4/netdb_h.m4: New file.
47971         * lib/netdb.in.h: Add, currently just an empty file pending
47972         definitions.
47973         * tests/test-netdb.c: New file.
47974         * doc/posix-headers/netdb.texi: Mention that we replace it if
47975         needed.
47976         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
47977         netdb.
47978
47979 2008-10-15  Simon Josefsson  <simon@josefsson.org>
47980
47981         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
47982         with code.
47983
47984 2008-10-13  Bruno Haible  <bruno@clisp.org>
47985
47986         * lib/glthread/cond.c (glthread_cond_wait_func,
47987         glthread_cond_timedwait_func): Add a comment.
47988
47989 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
47990
47991         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
47992         * tests/test-select.c: Likewise,
47993
47994 2008-10-13  Bruno Haible  <bruno@clisp.org>
47995
47996         * lib/glthread/cond.c (glthread_cond_wait_func,
47997         glthread_cond_timedwait_func): Fix variable name.
47998         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
47999
48000 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
48001
48002         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
48003         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
48004         struct sockaddr.sa_len.
48005         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
48006
48007 2008-10-13  Simon Josefsson  <simon@josefsson.org>
48008
48009         * build-aux/pmccabe2html: Add css and css_url parameters.
48010
48011 2008-10-12  Bruno Haible  <bruno@clisp.org>
48012
48013         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
48014         calling aclx_get.
48015         Reported by Rainer Tammer <tammer@tammer.net>.
48016
48017 2008-10-12  Bruno Haible  <bruno@clisp.org>
48018
48019         Use msvcrt aware primitives for creation/termination of Win32 threads.
48020         * lib/glthread/thread.c: Include <process.h>.
48021         (glthread_create_func): Use _beginthreadex instead of CreateThread.
48022         (wrapper_func): Update signature.
48023         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
48024
48025 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
48026             Bruno Haible  <bruno@clisp.org>
48027
48028         Provide a Win32 implementation of the 'cond' module.
48029         * lib/glthread/cond.h [USE_WIN32]: New implementation.
48030         * lib/glthread/cond.c (glthread_cond_init_func,
48031         glthread_cond_wait_func, glthread_cond_timedwait_func,
48032         glthread_cond_signal_func, glthread_cond_broadcast_func,
48033         glthread_cond_destroy_func) [USE_WIN32]: New functions.
48034         * modules/cond (Dependencies): Add gettimeofday.
48035
48036 2008-10-11  Bruno Haible  <bruno@clisp.org>
48037
48038         Make sleep work on older versions of mingw.
48039         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
48040         only whether it exists.
48041         * doc/posix-functions/sleep.texi: Mention the problem with older
48042         versions of mingw.
48043
48044 2008-10-11  Bruno Haible  <bruno@clisp.org>
48045
48046         New module 'shutdown'.
48047         * modules/shutdown: New file.
48048         * lib/sys_socket.in.h (shutdown): New declaration.
48049         * lib/winsock.c (shutdown): New function.
48050         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
48051         GNULIB_SHUTDOWN.
48052         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
48053         * doc/posix-functions/shutdown.texi: Document the new module.
48054
48055 2008-10-11  Jim Meyering  <meyering@redhat.com>
48056
48057         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
48058
48059 2008-10-11  Bruno Haible  <bruno@clisp.org>
48060
48061         New module 'fclose'.
48062         * modules/fclose: New file.
48063         * lib/stdio.in.h (fclose): New declaration.
48064         * lib/fclose.c: New file.
48065         * m4/fclose.m4: New file.
48066         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
48067         REPLACE_FCLOSE.
48068         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
48069         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
48070         REPLACE_FCLOSE.
48071         * modules/close (Depends-on): fclose.
48072         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
48073
48074 2008-10-11  Bruno Haible  <bruno@clisp.org>
48075
48076         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
48077         set errno and don't call _close.
48078
48079 2008-10-10  Bruno Haible  <bruno@clisp.org>
48080
48081         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
48082         ACL, not afterwards. Fixes test failure on Cygwin.
48083
48084 2008-10-09  Ben Pfaff  <blp@gnu.org>
48085
48086         * build-aux/announce-gen: Fix gnulib version related part of usage
48087         message.  Die with a useful error message if no tarballs are
48088         found.
48089
48090 2008-10-10  Jim Meyering  <meyering@redhat.com>
48091
48092         bootstrap: use git's --depth=N option only if it's supported
48093         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
48094         recognize the --depth option.  Reported by Pádraig Brady.
48095
48096 2008-10-09  Bruno Haible  <bruno@clisp.org>
48097
48098         New module 'ioctl'.
48099         * modules/ioctl: New file.
48100         * lib/sys_socket.in.h (ioctl): Remove declaration.
48101         * lib/winsock.c: Include <sys/ioctl.h>.
48102         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
48103         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
48104         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
48105         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
48106         * doc/posix-functions/ioctl.texi: Mention the new module.
48107
48108 2008-10-09  Bruno Haible  <bruno@clisp.org>
48109
48110         New module 'sys_ioctl'.
48111         * lib/sys_ioctl.in.h: New file.
48112         * m4/sys_ioctl_h.m4: New file.
48113         * modules/sys_ioctl: New file.
48114         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
48115
48116 2008-10-09  Bruno Haible  <bruno@clisp.org>
48117
48118         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
48119         * lib/winsock.c: Include <stdarg.h>.
48120         (rpl_ioctl): Change to second argument 'int' and then varargs.
48121
48122 2008-10-09  Bruno Haible  <bruno@clisp.org>
48123
48124         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
48125         when the sys_socket module is present and the system has <winsock2.h>.
48126
48127 2008-10-09  Bruno Haible  <bruno@clisp.org>
48128
48129         * doc/posix-functions/close.texi: Mention module 'close' instead of
48130         module 'sys_socket'.
48131
48132 2008-10-09  Bruno Haible  <bruno@clisp.org>
48133
48134         * doc/glibc-headers/sys_ioctl.texi: New file.
48135         * doc/gnulib.texi: Include it.
48136
48137 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
48138             Bruno Haible  <bruno@clisp.org>
48139
48140         Combine the two replacements of 'close'.
48141         * lib/sys_socket.in.h (close): Define to a reminder to include
48142         <unistd.h>.
48143         (_gl_close_fd_maybe_socket): New declaration.
48144         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
48145         * lib/winsock.c (close): Remove undefinition.
48146         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
48147         needed for the gnulib module 'close'.
48148         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
48149         define to an error symbol or to a warning, if suitable.
48150         * lib/close.c: Include <sys/socket.h>.
48151         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
48152         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
48153         UNISTD_H_HAVE_WINSOCK2_H.
48154         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
48155         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48156         UNISTD_H_HAVE_WINSOCK2_H.
48157         * modules/sys_socket (Files): Add m4/unistd_h.m4.
48158         (configure.ac): Set a module indicator.
48159         (Makefile.am): Substitute GNULIB_CLOSE.
48160         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
48161         * modules/poll-tests (Depends-on): Add close.
48162         * modules/select-tests (Depends-on): Likewise.
48163
48164 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
48165             Bruno Haible  <bruno@clisp.org>
48166
48167         New module 'close'.
48168         * modules/close: New file.
48169         * lib/unistd.in.h (close): Move declaration out of the
48170         FCHDIR_REPLACEMENT scope.
48171         (_gl_unregister_fd): New declaration.
48172         * lib/close.c: New file.
48173         * lib/fchdir.c (rpl_close): Remove function.
48174         * m4/close.m4: New file.
48175         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
48176         close.
48177         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
48178         REPLACE_CLOSE.
48179         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
48180         REPLACE_CLOSE.
48181         * modules/fchdir (Depends-on): Add close.
48182
48183 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
48184             Bruno Haible  <bruno@clisp.org>
48185
48186         * lib/fcntl.in.h (open): Simplify conditionals.
48187         (_gl_register_fd): New declaration.
48188         * lib/fchdir.c (rpl_open): Remove function.
48189         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
48190         also.
48191         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
48192         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
48193         open.
48194
48195 2008-10-09  Jim Meyering  <meyering@redhat.com>
48196
48197         GNUmakefile: use the more name-space-friendly "_version"
48198         * top/GNUmakefile (_dummy): Update.
48199         (_version): Rename from "version".
48200
48201 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
48202             Bruno Haible  <bruno@clisp.org>
48203
48204         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
48205         rpl_close.
48206         (_gl_register_fd): New function, extracted from rpl_open.
48207         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
48208         (rpl_open, rpl_opendir): Use _gl_register_fd.
48209
48210 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
48211
48212         Fix organization of 'open' replacement.
48213         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
48214         (gl_FUNC_OPEN): Use it.
48215         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
48216
48217 2008-10-08  Bruno Haible  <bruno@clisp.org>
48218
48219         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
48220
48221 2008-10-08  Simon Josefsson  <simon@josefsson.org>
48222
48223         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
48224         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
48225         listen).
48226
48227 2008-10-08  Eric Blake  <ebb9@byu.net>
48228
48229         GNUmakefile: add 'make version' target
48230         * top/GNUmakefile (_curr-ver): Split version update rules...
48231         (version): ...into a target.
48232
48233 2008-10-07  Bruno Haible  <bruno@clisp.org>
48234
48235         Use a more portable replacement expression for -0.0L.
48236         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
48237         instead of -0.0L. Fix m4 quotation.
48238
48239         * tests/test-signbit.c: Include <float.h>.
48240         (minus_zero): New variable.
48241         (test_signbitl): Use minus_zero instead of -zero.
48242         * modules/signbit-tests (Depends-on): Add float.
48243
48244         * tests/test-ceill.c: Include <float.h>.
48245         (zero): Remove variable.
48246         (minus_zero): New variable.
48247         (main): Use minus_zero instead of -zero.
48248         * modules/ceill-tests (Depends-on): Add float.
48249
48250         * tests/test-floorl.c: Include <float.h>.
48251         (zero): Remove variable.
48252         (minus_zero): New variable.
48253         (main): Use minus_zero instead of -zero.
48254         * modules/floorl-tests (Depends-on): Add float.
48255
48256         * tests/test-roundl.c: Include <float.h>.
48257         (zero): Remove variable.
48258         (minus_zero): New variable.
48259         (main): Use minus_zero instead of -zero.
48260         * modules/roundl-tests (Depends-on): Add float.
48261
48262         * tests/test-truncl.c: Include <float.h>.
48263         (zero): Remove variable.
48264         (minus_zero): New variable.
48265         (main): Use minus_zero instead of -zero.
48266         * modules/truncl-tests (Depends-on): Add float.
48267
48268         * tests/test-frexpl.c (zero): Remove variable.
48269         (minus_zero): New variable.
48270         (main): Use minus_zero instead of -zero.
48271         * modules/frexpl-tests (Depends-on): Add float.
48272
48273         * tests/test-isnan.c (zerol): Remove variable.
48274         (minus_zerol): New variable.
48275         (test_long_double): Use minus_zerol instead of -zerol.
48276         * modules/isnan-tests (Depends-on): Add float.
48277
48278         * tests/test-isnanl.h (zero): Remove variable.
48279         (minus_zero): New variable.
48280         (main): Use minus_zero instead of -zero.
48281         * modules/isnanl-nolibm-tests (Depends-on): Add float.
48282         * modules/isnanl-tests (Depends-on): Add float.
48283
48284         * tests/test-ldexpl.c (zero): Remove variable.
48285         (minus_zero): New variable.
48286         (main): Use minus_zero instead of -zero.
48287         * modules/ldexpl-tests (Depends-on): Add float.
48288
48289         * tests/test-snprintf-posix.h (zerol): Remove variable.
48290         (minus_zerol): New variable.
48291         (test_function): Use minus_zerol instead of -zerol.
48292         * modules/snprintf-posix-tests (Depends-on): Add float.
48293         * modules/vsnprintf-posix-tests (Depends-on): Add float.
48294
48295         * tests/test-sprintf-posix.h (zerol): Remove variable.
48296         (minus_zerol): New variable.
48297         (test_function): Use minus_zerol instead of -zerol.
48298         * modules/sprintf-posix-tests (Depends-on): Add float.
48299         * modules/vsprintf-posix-tests (Depends-on): Add float.
48300
48301         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
48302         (minus_zerol): New variable.
48303         (test_function): Use minus_zerol instead of -zerol.
48304         * modules/vasnprintf-posix-tests (Depends-on): Add float.
48305
48306         * tests/test-vasprintf-posix.c (zerol): Remove variable.
48307         (minus_zerol): New variable.
48308         (test_function): Use minus_zerol instead of -zerol.
48309         * modules/vasprintf-posix-tests (Depends-on): Add float.
48310
48311 2008-10-07  Simon Josefsson  <simon@josefsson.org>
48312
48313         * MODULES.html.sh (Support for building documentation): Mention
48314         pmccabe2html.  Sort entries.
48315
48316         Add pmccabe2html module, from gnupdf.
48317         * build-aux/pmccabe.css: New file.
48318         * build-aux/pmccabe2html: New file.
48319         * m4/pmccabe2html.m4: New file.
48320         * modules/pmccabe2html: New file.
48321
48322 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
48323
48324         flock: new module
48325         * MODULES.html.sh: Add to list of modules.
48326         * lib/flock.c: flock implementation for Windows and Unix systems
48327         which have fcntl.
48328         * doc/glibc-functions/flock.texi: Update documentation.
48329         * lib/sys_file.in.h: <sys/file.h> header file.
48330         * m4/flock.m4: M4 macros.
48331         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
48332         * modules/flock: flock module.
48333         * modules/flock-tests: flock tests module.
48334         * modules/sys_file: sys/file.h module.
48335         * tests/test-flock.c: test suite for flock.
48336
48337 2008-10-06  Jim Meyering  <meyering@redhat.com>
48338
48339         bootstrap: check for LT_INIT more portably still ;-)
48340         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
48341         Spotted by Bruno Haible.
48342
48343 2008-10-06  Eric Blake  <ebb9@byu.net>
48344
48345         test-signbit: avoid tripping Irix cc bug on -0.0L
48346         * tests/test-signbit.c (minus_zerol): Delete, and replace with
48347         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
48348         entire testsuite consistent and avoids an Irix 6.2 bug.
48349
48350 2008-10-05  Bruno Haible  <bruno@clisp.org>
48351             Jim Meyering  <jim@meyering.net>
48352
48353         Add an option for ignoring EPIPE during close_stdout.
48354         * lib/closeout.h: Include <stdbool.h>.
48355         (close_stdout_set_ignore_EPIPE): New declaration.
48356         * lib/closeout.c: Include <stdbool.h>.
48357         (ignore_EPIPE): New variable.
48358         (close_stdout_set_ignore_EPIPE): New function.
48359         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
48360         * lib/close-stream.c (close_stream): Mention the possible EPIPE
48361         failure.
48362         * modules/closeout (Depends-on): Add stdbool.
48363
48364 2008-10-05  Bruno Haible  <bruno@clisp.org>
48365
48366         * modules/accept: New file.
48367         * modules/bind: New file.
48368         * modules/connect: New file.
48369         * modules/getpeername: New file.
48370         * modules/getsockname: New file.
48371         * modules/getsockopt: New file.
48372         * modules/listen: New file.
48373         * modules/recv: New file.
48374         * modules/recvfrom: New file.
48375         * modules/send: New file.
48376         * modules/sendto: New file.
48377         * modules/setsockopt: New file.
48378         * modules/socket: New file.
48379         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
48380         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
48381         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
48382         the particular module is requested. Add a link warning when the
48383         particular module is not requested.
48384         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
48385         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
48386         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
48387         the particular module is requested.
48388         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
48389         gl_SYS_SOCKET_H_DEFAULTS): New macros.
48390         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
48391         * modules/sys_socket (Depends-on): Add link-warning.
48392         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
48393         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
48394         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
48395         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
48396         GL_LINK_WARNING.
48397         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
48398         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
48399         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
48400         * doc/posix-functions/getpeername.texi: Mention the new module
48401         'getpeername'.
48402         * doc/posix-functions/getsockname.texi: Mention the new module
48403         'getsockname'.
48404         * doc/posix-functions/getsockopt.texi: Mention the new module
48405         'getsockopt'.
48406         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
48407         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
48408         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
48409         * doc/posix-functions/send.texi: Mention the new module 'send'.
48410         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
48411         * doc/posix-functions/setsockopt.texi: Mention the new module
48412         'setsockopt'.
48413         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
48414         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
48415         listen, connect, accept.
48416         * modules/select-tests (Depends-on): Likewise.
48417
48418 2008-10-05  Bruno Haible  <bruno@clisp.org>
48419
48420         * lib/winsock.c (strerror): Remove unused #undef.
48421         (rpl_close): Remove unused local variable.
48422
48423         * modules/sys_socket (Depends-on); Add errno.
48424
48425 2008-10-05  Bruno Haible  <bruno@clisp.org>
48426
48427         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
48428         (select): Add a link warning when the 'select' module is not used.
48429         * modules/sys_select (Depends-on): Add link-warning.
48430         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
48431         Suggested by Paolo Bonzini.
48432
48433 2008-10-05  Jim Meyering  <meyering@redhat.com>
48434
48435         bootstrap: check for LT_INIT more portably
48436         * build-aux/bootstrap: Avoid using grep -E, since it's not
48437         portable enough.  Suggestion from Bruno Haible.
48438
48439 2008-10-05  Bruno Haible  <bruno@clisp.org>
48440
48441         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
48442         as being fixed by gnulib.
48443
48444 2008-10-05  Bruno Haible  <bruno@clisp.org>
48445
48446         * modules/select-tests: New file, mostly copied from
48447         modules/sys_select-tests.
48448         * tests/test-select.c: New file, mostly copied from
48449         tests/test-sys_select.c.
48450         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
48451         * modules/sys_select-tests (Depends-on): Remove all dependencies.
48452         (Makefile.am): Remove test_sys_select_LDADD.
48453
48454         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
48455         to an undefined symbol, for an error message.
48456         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
48457         (gl_SYS_SELECT_H_DEFAULTS): New macro.
48458         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
48459         winsock-select.c here.
48460         * modules/sys_select (Files): Remove lib/winsock-select.c.
48461         (Depends-on): Remove alloca.
48462         (Makefile.am): Substitute GNULIB_SELECT.
48463         * modules/select: New file.
48464         * doc/posix-functions/select.texi: Update.
48465
48466 2008-10-05  Bruno Haible  <bruno@clisp.org>
48467
48468         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
48469         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
48470         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
48471         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
48472         getdtablesize.
48473         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
48474         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
48475
48476 2008-10-05  Bruno Haible  <bruno@clisp.org>
48477
48478         * modules/getdtablesize-tests: New file.
48479         * tests/test-getdtablesize.c: New file.
48480
48481         New module 'getdtablesize'.
48482         * lib/unistd.in.h (getdtablesize): New declaration.
48483         * lib/getdtablesize.c: New file.
48484         * m4/getdtablesize.m4: New file.
48485         * modules/getdtablesize: New file.
48486         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48487         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
48488         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
48489         HAVE_GETDTABLESIZE.
48490         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
48491
48492 2008-10-05  Bruno Haible  <bruno@clisp.org>
48493
48494         * modules/sched (Makefile.am): Fix typo.
48495         Reported by Simon Josefsson.
48496
48497 2008-10-05  Jim Meyering  <meyering@redhat.com>
48498
48499         bootstrap: check for LT_INIT, too
48500         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
48501         are deprecated.  Suggestion from Ralf Wildenhues.
48502
48503 2008-10-05  Bruno Haible  <bruno@clisp.org>
48504
48505         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
48506         overriding them by ours.
48507         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
48508
48509 2008-10-05  Jim Meyering  <meyering@redhat.com>
48510
48511         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
48512         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
48513         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
48514
48515 2008-10-04  Bruno Haible  <bruno@clisp.org>
48516
48517         * modules/dup2 (License): Change to LGPLv2+.
48518         * modules/sleep (License): Likewise.
48519         * modules/perror (License): Likewise.
48520         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
48521         Blake.
48522         * modules/signal (License): Likewise.
48523         * modules/sigprocmask (License): Likewise.
48524         * modules/raise (License): Change to LGPLv2+, with approval by Jim
48525         Meyering.
48526
48527 2008-10-04  Bruno Haible  <bruno@clisp.org>
48528
48529         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
48530         Reported by Rainer Tammer <tammer@tammer.net>.
48531
48532 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
48533             Bruno Haible  <bruno@clisp.org>
48534
48535         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
48536         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
48537         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
48538
48539 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
48540
48541         filevercmp: new module
48542         * lib/filevercmp.h: New function filevercmp comparing version strings.
48543         * lib/filevercmp.c: Implementation of filevercmp function.
48544         * modules/filevercmp: Module metadata.
48545         * tests/test-filevercmp.c: Unit test for new module.
48546         * modules/filevercmp-tests: Unit test metadata.
48547         * MODULES.html.sh: Add filevercmp module.
48548
48549 2008-10-03  Bruno Haible  <bruno@clisp.org>
48550
48551         * lib/c-ctype.h: Add comment.
48552         Reported by Jim Meyering.
48553
48554 2008-10-02  Bruno Haible  <bruno@clisp.org>
48555
48556         * modules/posix_spawn-internal (Depends-on): Add 'open'.
48557
48558 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
48559
48560         * build-aux/bootstrap: Allow renaming bootstrap, and change the
48561         name of bootstrap.conf accordingly.
48562
48563 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
48564
48565         * build-aux/bootstrap: Install git-merge-changelog configuration
48566         items into .gitconfig if needed.
48567
48568 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
48569
48570         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
48571         git repository, and initialize/update it accordingly.
48572
48573 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
48574
48575         * modules/fsync-tests: New file.
48576         * tests/test-fsync.c: New file.
48577
48578         New module 'fsync'.
48579         * lib/fsync.c: New file.
48580         * m4/fsync.m4: New file.
48581         * modules/fsync: New file.
48582         * lib/unistd.in.h (fsync): New declaration.
48583         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
48584         GNULIB_FSYNC and HAVE_FSYNC.
48585         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
48586         * MODULES.html.sh (posix_functions): Add fsync.
48587         * doc/posix-functions/fsync.texi: Mention the new module.
48588
48589 2008-10-02  Jim Meyering  <meyering@redhat.com>
48590
48591         fts.c: sync with similar code from coreutils' remove.c
48592         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
48593         Guard also with "#if defined __linux__", since for now at least,
48594         this code is Linux-kernel-specific.
48595
48596 2008-10-02  Jim Meyering  <meyering@redhat.com>
48597
48598         fts: bug fixes
48599         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
48600         Include <sys/vfs.h>, not <sys/statfs.h>.
48601
48602         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
48603         Include <sys/vfs.h>, not <sys/statfs.h>.
48604
48605 2008-10-01  Bruno Haible  <bruno@clisp.org>
48606
48607         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
48608         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
48609         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
48610         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
48611         * doc/posix-functions/posix_spawnp.texi: Likewise.
48612         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
48613         whether posix_spawn actually works.
48614         * m4/pipe.m4 (gl_PIPE): Likewise.
48615         * modules/execute (Files): Add m4/posix_spawn.m4.
48616         * modules/pipe (Files): Add m4/posix_spawn.m4.
48617         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
48618
48619 2008-10-01  Jim Meyering  <meyering@redhat.com>
48620
48621         remove trailing spaces
48622         * NEWS: Likewise.
48623         * lib/poll.c (poll): Likewise.
48624         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
48625         * lib/winsock.c (rpl_close): Likewise.
48626         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
48627         * modules/yield: Likewise.
48628         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
48629         * tests/test-sys_select.c (connect_to_socket): Likewise.
48630
48631         fts.c: adjust a new interface to be more generally useful
48632         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
48633         (fts_build): Adjust caller.
48634
48635 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48636
48637         * modules/cond-tests: New file.
48638         * tests/test-cond.c: New file.
48639
48640 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48641             Bruno Haible  <bruno@clisp.org>
48642
48643         * modules/cond (Dependencies): Add errno, time.
48644         * lib/glthread/cond.h: Include <time.h>.
48645         (gl_cond_define, gl_cond_define_initialized): Use the same definition
48646         across platforms.
48647
48648 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48649             Bruno Haible  <bruno@clisp.org>
48650
48651         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
48652
48653 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48654             Bruno Haible  <bruno@clisp.org>
48655
48656         * modules/tls-tests (Depends-on): Add thread, yield.
48657         (configure.ac): Remove all checks.
48658         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
48659         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
48660         gl_thread_self): Remove definitions. Include glthread/thread.h and
48661         glthread/yield.h instead.
48662         (test_tls): Pass an additional NULL argument to gl_thread_join.
48663
48664 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48665             Bruno Haible  <bruno@clisp.org>
48666
48667         * modules/lock-tests (Depends-on): Add thread, yield.
48668         (configure.ac): Remove all checks.
48669         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
48670         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
48671         gl_thread_self): Remove definitions. Include glthread/thread.h and
48672         glthread/yield.h instead.
48673         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
48674         additional NULL argument to gl_thread_join.
48675
48676 2008-09-30  Bruno Haible  <bruno@clisp.org>
48677
48678         Fix the Win32 implementation of the 'thread' module.
48679         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
48680         pointer type.
48681         (gl_thread_self): Invoke gl_thread_self_func.
48682         (gl_thread_self_func): New declaration.
48683         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
48684         (do_init_self_key, init_self_key): New functions.
48685         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
48686         Remove some fields.
48687         (running_threads, running_lock): Remove variables.
48688         (get_current_thread_handle): New function.
48689         (gl_thread_self_func, wrapper_func, glthread_create_func,
48690         glthread_join_func, gl_thread_exit_func): Largely rewritten and
48691         simplified.
48692
48693 2008-09-30  Bruno Haible  <bruno@clisp.org>
48694
48695         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
48696         files.
48697
48698 2008-09-30  Jim Meyering  <meyering@redhat.com>
48699
48700         fts.m4: correct the test for statfs.f_type
48701         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
48702         when checking for statfs.f_type.
48703
48704 2008-09-15  Simon Josefsson  <simon@josefsson.org>
48705
48706         tests: avoid some compiler warnings
48707         * tests/test-memchr.c (main): Pass NULL indirectly.
48708         * tests/test-getdate.c (main): Remove unused variable 'ret'.
48709
48710 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
48711
48712         getdate.y: disallow countable dayshifts like "4 yesterday ago"
48713         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
48714         exactly specified dayshifts.
48715         (dayshift): New rule.
48716         (rel): Add dayshift.
48717         (relative_time_table) [tomorrow, yesterday, today, now]:
48718         Use tDAY_SHIFT in place of tDAY_UNIT.
48719         * tests/test-getdate.c: Add tests for now-disallowed countable
48720         dayshifts, e.g., "4 yesterday ago".
48721
48722 2008-09-29  Bruno Haible  <bruno@clisp.org>
48723
48724         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
48725         * tests/test-posix_spawn1.in.sh: Renamed from
48726         tests/test-posix_spawn.in.sh.
48727         * tests/test-posix_spawn2.c: New file.
48728         * tests/test-posix_spawn2.in.sh: New file.
48729         * modules/posix_spawnp-tests (Files): Update.
48730         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
48731
48732 2008-09-29  Bruno Haible  <bruno@clisp.org>
48733
48734         Propagate effects of putenv/setenv/unsetenv to child processes.
48735         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
48736         * lib/pipe.c (create_pipe): Likewise.
48737
48738 2008-09-29  Bruno Haible  <bruno@clisp.org>
48739
48740         Enable use of shell scripts as executables in mingw.
48741         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
48742         run the program as a shell script.
48743         * lib/pipe.c (create_pipe): Likewise.
48744         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
48745         resulting array.
48746
48747 2008-09-29  Eric Blake  <ebb9@byu.net>
48748
48749         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
48750
48751 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
48752
48753         * doc/posix-functions/accept.texi: Update mingw problems.
48754         * doc/posix-functions/bind.texi: Update mingw problems.
48755         * doc/posix-functions/close.texi: Update mingw problems.
48756         * doc/posix-functions/connect.texi: Update mingw problems.
48757         * doc/posix-functions/getpeername.texi: Update mingw problems.
48758         * doc/posix-functions/getsockname.texi: Update mingw problems.
48759         * doc/posix-functions/getsockopt.texi: Update mingw problems.
48760         * doc/posix-functions/ioctl.texi: Update mingw problems.
48761         * doc/posix-functions/listen.texi: Update mingw problems.
48762         * doc/posix-functions/recv.texi: Update mingw problems.
48763         * doc/posix-functions/recvfrom.texi: Update mingw problems.
48764         * doc/posix-functions/select.texi: Update mingw problems.
48765         * doc/posix-functions/send.texi: Update mingw problems.
48766         * doc/posix-functions/sendto.texi: Update mingw problems.
48767         * doc/posix-functions/setsockopt.texi: Update mingw problems.
48768         * doc/posix-functions/socket.texi: Update mingw problems.
48769
48770 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
48771             Bruno Haible  <bruno@clisp.org>
48772
48773         * lib/sys_select.in.h: Include sys/time.h.
48774         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
48775         * modules/sys_select: Depend on sys_time.
48776         * tests/test-sys_select.c: Test that sys/select.h defines struct
48777         timeval fully.
48778
48779 2008-09-29  Bruno Haible  <bruno@clisp.org>
48780
48781         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
48782         * lib/sys_select.in.h: Likewise.
48783
48784 2008-09-29  Bruno Haible  <bruno@clisp.org>
48785
48786         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
48787
48788 2008-09-29  Bruno Haible  <bruno@clisp.org>
48789
48790         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
48791         Set LIBSOCKET instead of augmenting LIBS.
48792         * modules/sockets (Link): New section.
48793         * modules/sockets-tests (test_sockets_LDADD): New variable.
48794         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
48795         * modules/poll-tests (test_poll_LDADD): New variable.
48796         * NEWS: Document the change.
48797
48798 2008-09-29  Bruno Haible  <bruno@clisp.org>
48799
48800         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
48801         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
48802         ARPA_INET_H directly.
48803         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
48804
48805 2008-09-28  Bruno Haible  <bruno@clisp.org>
48806
48807         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
48808         from gl_HEADER_SYS_SOCKET.
48809         (gl_HEADER_SYS_SOCKET): Invoke it.
48810         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
48811
48812 2008-09-28  Bruno Haible  <bruno@clisp.org>
48813
48814         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
48815         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
48816         Needed on OSF/1 4.0.
48817
48818 2008-09-28  Bruno Haible  <bruno@clisp.org>
48819
48820         Override open more carefully.
48821         * lib/open.c (orig_open): New function.
48822         (rpl_open): Use orig_open instead of open.
48823         * lib/fcntl.in.h: Add special invocation convention.
48824         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
48825         (gl_FUNC_OPEN): Invoke it.
48826
48827         Override freopen more carefully.
48828         * lib/freopen.c (orig_freopen): New function.
48829         (rpl_freopen): Use orig_freopen instead of freopen.
48830         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
48831         (gl_FUNC_FREOPEN): Invoke it.
48832
48833         Override fopen more carefully.
48834         * lib/fopen.c (orig_fopen): New function.
48835         (rpl_fopen): Use orig_fopen instead of fopen.
48836         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
48837         (gl_FUNC_FOPEN): Invoke it.
48838         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
48839
48840 2008-09-28  Bruno Haible  <bruno@clisp.org>
48841
48842         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
48843         SIGPIPE.
48844
48845 2008-09-28  Bruno Haible  <bruno@clisp.org>
48846
48847         * tests/test-sigaction.c (handler, main): Disable the check whether
48848         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
48849         glibc systems with LinuxThreads.
48850
48851 2008-09-28  Bruno Haible  <bruno@clisp.org>
48852
48853         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
48854
48855         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
48856         with AIX xlc.
48857         * lib/fcntl.in.h (open): Likewise.
48858         Reported by Rainer Tammer <tammer@tammer.net>.
48859
48860 2008-09-28  Bruno Haible  <bruno@clisp.org>
48861
48862         * modules/posix_spawnp-tests: New file.
48863         * tests/test-posix_spawn.c: New file.
48864         * tests/test-posix_spawn.in.sh: New file.
48865
48866         New module 'posix_spawnp'.
48867         * modules/posix_spawnp: New file.
48868         * lib/spawnp.c: New file, from GNU libc with modifications.
48869         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
48870
48871         New module 'posix_spawn'.
48872         * modules/posix_spawn: New file.
48873         * lib/spawn.c: New file, from GNU libc with modifications.
48874         * doc/posix-functions/posix_spawn.texi: Mention the new module.
48875
48876         New module 'posix_spawnattr_destroy'.
48877         * modules/posix_spawnattr_destroy: New file.
48878         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
48879         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
48880         module.
48881
48882         New module 'posix_spawnattr_setsigmask'.
48883         * modules/posix_spawnattr_setsigmask: New file.
48884         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
48885         modifications.
48886         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
48887         new module.
48888
48889         New module 'posix_spawnattr_getsigmask'.
48890         * modules/posix_spawnattr_getsigmask: New file.
48891         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
48892         modifications.
48893         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
48894         new module.
48895
48896         New module 'posix_spawnattr_setsigdefault'.
48897         * modules/posix_spawnattr_setsigdefault: New file.
48898         * lib/spawnattr_setdefault.c: New file, from GNU libc with
48899         modifications.
48900         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
48901         new module.
48902
48903         New module 'posix_spawnattr_getsigdefault'.
48904         * modules/posix_spawnattr_getsigdefault: New file.
48905         * lib/spawnattr_getdefault.c: New file, from GNU libc with
48906         modifications.
48907         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
48908         new module.
48909
48910         New module 'posix_spawnattr_setschedpolicy'.
48911         * modules/posix_spawnattr_setschedpolicy: New file.
48912         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
48913         modifications.
48914         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
48915         new module.
48916
48917         New module 'posix_spawnattr_getschedpolicy'.
48918         * modules/posix_spawnattr_getschedpolicy: New file.
48919         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
48920         modifications.
48921         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
48922         new module.
48923
48924         New module 'posix_spawnattr_setschedparam'.
48925         * modules/posix_spawnattr_setschedparam: New file.
48926         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
48927         modifications.
48928         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
48929         new module.
48930
48931         New module 'posix_spawnattr_getschedparam'.
48932         * modules/posix_spawnattr_getschedparam: New file.
48933         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
48934         modifications.
48935         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
48936         new module.
48937
48938         New module 'posix_spawnattr_setpgroup'.
48939         * modules/posix_spawnattr_setpgroup: New file.
48940         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
48941         modifications.
48942         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
48943         module.
48944
48945         New module 'posix_spawnattr_getpgroup'.
48946         * modules/posix_spawnattr_getpgroup: New file.
48947         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
48948         modifications.
48949         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
48950         module.
48951
48952         New module 'posix_spawnattr_setflags'.
48953         * modules/posix_spawnattr_setflags: New file.
48954         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
48955         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
48956         module.
48957
48958         New module 'posix_spawnattr_getflags'.
48959         * modules/posix_spawnattr_getflags: New file.
48960         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
48961         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
48962         module.
48963
48964         New module 'posix_spawnattr_init'.
48965         * modules/posix_spawnattr_init: New file.
48966         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
48967         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
48968         module.
48969
48970         New module 'posix_spawn_file_actions_destroy'.
48971         * modules/posix_spawn_file_actions_destroy: New file.
48972         * lib/spawn_faction_destroy.c: New file, from GNU libc with
48973         modifications.
48974         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
48975         the new module.
48976
48977         New module 'posix_spawn_file_actions_addopen'.
48978         * modules/posix_spawn_file_actions_addopen: New file.
48979         * lib/spawn_faction_addopen.c: New file, from GNU libc with
48980         modifications.
48981         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
48982         the new module.
48983
48984         New module 'posix_spawn_file_actions_adddup2'.
48985         * modules/posix_spawn_file_actions_adddup2: New file.
48986         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
48987         modifications.
48988         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
48989         the new module.
48990
48991         New module 'posix_spawn_file_actions_addclose'.
48992         * modules/posix_spawn_file_actions_addclose: New file.
48993         * lib/spawn_faction_addclose.c: New file, from GNU libc with
48994         modifications.
48995         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
48996         the new module.
48997
48998         New module 'posix_spawn_file_actions_init'.
48999         * modules/posix_spawn_file_actions_init: New file.
49000         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
49001         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
49002         new module.
49003
49004         New module 'posix_spawn-internal'.
49005         * modules/posix_spawn-internal: New file.
49006         * lib/spawn_int.h: New file, from GNU libc with modifications.
49007         * lib/spawni.c: New file, from GNU libc with modifications.
49008         * m4/posix_spawn.m4: New file.
49009
49010         New module 'spawn'.
49011         * modules/spawn: New file.
49012         * lib/spawn.in.h: New file, from GNU libc with modifications.
49013         * m4/spawn_h.m4: New file.
49014         * doc/posix-headers/spawn.texi: Mention the new module.
49015
49016 2008-09-28  Bruno Haible  <bruno@clisp.org>
49017
49018         * modules/sched-tests: New file.
49019         * tests/test-sched.c: New file.
49020
49021         New module 'sched'.
49022         * modules/sched: New file.
49023         * lib/sched.in.h: New file.
49024         * m4/sched_h.m4: New file.
49025         * doc/posix-headers/sched.texi: Mention the new module.
49026
49027 2008-09-27  Eric Blake  <ebb9@byu.net>
49028
49029         Fix previous patch, and tweak references to $0.
49030         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
49031         (func_version, func_gnulib_dir): Don't call this program
49032         gnulib-tool.
49033         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
49034         with using $0 in function.
49035         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
49036         (func_fatal_error): Reuse the name the user invoked us with.
49037
49038 2008-09-27  Bruno Haible  <bruno@clisp.org>
49039
49040         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
49041         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
49042         (gl_ICONV_H): Not here.
49043         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
49044         instead of assigning ICONV_H directly.
49045
49046         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
49047         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
49048         WCHAR_H directly.
49049
49050 2008-09-27  Bruno Haible  <bruno@clisp.org>
49051
49052         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
49053         * modules/arpa_inet (Depends-on): Add link-warning.
49054         (Makefile.am): Insert the definition of GL_LINK-WARNING.
49055         * modules/unistd (Makefile.am): Likewise.
49056
49057 2008-09-26  Bruno Haible  <bruno@clisp.org>
49058
49059         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
49060         variables.
49061         (func_version): Essentially copied from gnulib-tool.
49062         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
49063         func_readlink): Copied from gnulib-tool.
49064
49065 2008-09-26  Bruno Haible  <bruno@clisp.org>
49066
49067         * gnulib-tool (func_version): Change directory to $gnulib_dir before
49068         invoking git-version-gen.
49069
49070 2008-09-26  Bruno Haible  <bruno@clisp.org>
49071
49072         * posix-modules: Update to directory names changed on 2008-01-19.
49073         Remove commas in output before splitting into words. No more need to
49074         avoid 'ftruncate' since 2007-02-19.
49075
49076 2008-09-26  Bruno Haible  <bruno@clisp.org>
49077
49078         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
49079
49080 2008-09-26  Bruno Haible  <bruno@clisp.org>
49081
49082         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
49083         * modules/fwriteerror (Depends-on): Add errno.
49084
49085 2008-09-26  Bruno Haible  <bruno@clisp.org>
49086
49087         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
49088         * tests/test-vc-list-files-cvs.sh: Likewise.
49089
49090 2008-09-26  Bruno Haible  <bruno@clisp.org>
49091
49092         * doc/posix-headers/sys_resource.texi: Reorder items.
49093
49094 2008-09-26  Jim Meyering  <meyering@redhat.com>
49095
49096         fts: tweak inode comparison function
49097         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
49098         inode numbers, as documented.
49099
49100         fts: sort dirent entries on inode number before traversing
49101         This avoids a quadratic, seek-related performance penalty when
49102         operating on a directory containing many entries (measurable at 10k;
49103         3.5 hours at 2 million entries with a cold cache) on certain types
49104         of file systems, including ext3 and ext4, but not tmpfs.
49105         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
49106         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
49107         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
49108         (fs_handles_readdir_ordered_dirents_efficiently): New function.
49109         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
49110         (fts_build): Set the stat.st_ino member from D_INO.
49111         If it is likely to be useful, sort dirent entries on inode number.
49112
49113         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
49114         and the struct statfs.f_type member.
49115         * modules/fts (Depends-on): Add d-ino.
49116
49117 2008-09-26  Bruno Haible  <bruno@clisp.org>
49118
49119         * modules/sigpipe-die (Depends-on): Add sigpipe.
49120
49121         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
49122         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
49123         and GNULIB_STDIO_H_SIGPIPE are set.
49124         * lib/stdio-write.c: New file.
49125         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
49126         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
49127         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
49128         REPLACE_STDIO_WRITE_FUNCS.
49129         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
49130         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
49131         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
49132         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
49133         * modules/stdio (Files): Add lib/stdio-write.c.
49134         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
49135         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
49136         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
49137         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
49138         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
49139         REPLACE_FPRINTF_POSIX.
49140         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
49141         REPLACE_PRINTF_POSIX.
49142         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
49143         REPLACE_VFPRINTF_POSIX.
49144         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
49145         REPLACE_VPRINTF_POSIX.
49146         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
49147         SIGPIPE issue.
49148         * doc/posix-functions/fputc.texi: Likewise.
49149         * doc/posix-functions/fputs.texi: Likewise.
49150         * doc/posix-functions/fwrite.texi: Likewise.
49151         * doc/posix-functions/printf.texi: Likewise.
49152         * doc/posix-functions/putc.texi: Likewise.
49153         * doc/posix-functions/putchar.texi: Likewise.
49154         * doc/posix-functions/puts.texi: Likewise.
49155         * doc/posix-functions/vfprintf.texi: Likewise.
49156         * doc/posix-functions/vprintf.texi: Likewise.
49157
49158         * modules/safe-write (Depends-on): Add write.
49159
49160         * modules/sigpipe-tests: New file.
49161         * tests/test-sigpipe.c: New file.
49162         * tests/test-sigpipe.sh: New file.
49163
49164         * modules/write: New file.
49165         * lib/unistd.in.h: Include <sys/types.h>.
49166         (write): New declaration.
49167         * lib/write.c: New file.
49168         * m4/write.m4: New file.
49169         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
49170         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
49171         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
49172         GNULIB_WRITE, REPLACE_WRITE.
49173         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
49174         and the SIGPIPE issue.
49175
49176         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
49177         (raise): New declaration.
49178         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
49179         (ext_signal): New function.
49180         (rpl_raise): New function.
49181         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
49182         GNULIB_SIGNAL_H_SIGPIPE.
49183         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
49184         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
49185
49186         * modules/sigpipe: New file.
49187         * m4/sigpipe.m4: New file.
49188
49189 2008-09-25  Derek Price  <derek@ximbiot.com>
49190             Bruno Haible  <bruno@clisp.org>
49191
49192         * gnulib-tool (func_import): Report all license incompatibilities, not
49193         just the first one.
49194
49195 2008-09-25  Bruno Haible  <bruno@clisp.org>
49196
49197         * gnulib-tool (func_import): When computing the edits, consider not
49198         only the Makefile.ams that exist but also those that will be generated.
49199
49200 2008-09-25  Simon Josefsson  <simon@josefsson.org>
49201
49202         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
49203         fixes gnulib-tool --test warning about duplicate dependency.
49204
49205 2008-09-25  Bruno Haible  <bruno@clisp.org>
49206
49207         * gnulib-tool: Don't ask the user to perform edits in the generated
49208         Makefile.ams.
49209         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
49210         apply to the Makefile.am being generated.
49211         (func_emit_tests_Makefile_am): Execute edits that apply to the
49212         Makefile.am being generated.
49213         (func_import): Setup list of Makefile.am edits before emitting the
49214         Makefile.ams, not at the end.
49215         (func_create_testdir): Update.
49216         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49217
49218 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49219
49220         * gnulib-tool (func_import): Store the --tests-base option in the
49221         comment in gnulib-cache.m4.
49222
49223 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
49224
49225         * NEWS: Document increased portability that sys_select now provides.
49226
49227         * lib/sys_select.in.h: Install select wrapper.
49228         * lib/sys_socket.in.h: Use more descriptive name when there is no
49229         select wrapper.
49230         * lib/winsock-select.c: New.
49231         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
49232         Require gl_HEADER_SYS_SOCKET.
49233         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
49234         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
49235         * tests/test-sys_select.c: Add functional tests.
49236
49237 2008-09-24  Eric Blake  <ebb9@byu.net>
49238
49239         open, fopen: close fd leak in last patch
49240         * lib/open.c (rpl_open): Close fd before returning error.
49241         * lib/fopen.c (rpl_fopen): Close fd before returning error.
49242         * doc/posix-functions/open.texi (open): Document that Irix also
49243         has the bug.
49244         * doc/posix-functions/fopen.texi (fopen): Likewise.
49245         Reported by Paolo Bonzini.
49246
49247 2008-09-24  Bruno Haible  <bruno@clisp.org>
49248
49249         Ensure that a filename ending in a slash cannot be used to access a
49250         non-directory.
49251         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
49252         to check whether it's really a directory.
49253         * lib/fopen.c: Include fcntl.h, unistd.h.
49254         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
49255         and fdopen().
49256         * modules/fopen (Depends-on): Add unistd.
49257         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
49258         * tests/test-fopen.c (main): Likewise.
49259         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
49260         * doc/posix-functions/fopen.texi: Likewise.
49261         Reported by Eric Blake.
49262
49263 2008-09-23  Eric Blake  <ebb9@byu.net>
49264
49265         c-stack: avoid compiler optimizations when provoking overflow
49266         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
49267         recursion harder to optimize, to ensure a stack overflow occurs.
49268         * tests/test-c-stack.c (recurse): Likewise.
49269         Borrowed from libsigsegv.
49270
49271         c-stack: work around Irix sigaltstack bug
49272         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
49273         whether sigaltstack uses wrong end of stack_t (copied in part from
49274         libsigsegv).
49275         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
49276         Irix bug, without requiring an over-allocation.
49277         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
49278         bug.
49279
49280         fopen: document mingw bug on directories
49281         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
49282         not allowing a stream visiting a directory, even though reading
49283         from such a stream is not portable.
49284
49285 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
49286
49287         * lib/poll.c: Rewrite.
49288         * modules/poll: Depend on alloca.
49289
49290 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
49291
49292         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
49293         instead define prototypes for a full set of wrappers.  Ensure
49294         that Cygwin does not use the compatibility code, which is only
49295         for MinGW.
49296         * lib/winsock.c: New.
49297         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
49298         * modules/sys_socket: Add lib/winsock.c.
49299
49300         * modules/poll-tests: Add errno and perror.
49301         * tests/test-poll.c: Use ioctl, not ioctlsocket.
49302
49303 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
49304
49305         * tests/test-poll.c: Downgrade minimum needed Winsock version.
49306
49307 2008-09-23  Bruno Haible  <bruno@clisp.org>
49308
49309         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
49310         * doc/glibc-functions/*: Likewise.
49311
49312 2008-09-23  Simon Josefsson  <simon@josefsson.org>
49313
49314         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
49315         success.
49316
49317 2008-09-22  Eric Blake  <ebb9@byu.net>
49318             Bruno Haible  <bruno@clisp.org>
49319
49320         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
49321         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
49322         supply %A but mishandle pseudo-NaN.
49323         Reported by Simon Josefsson.
49324
49325 2008-09-21  Bruno Haible  <bruno@clisp.org>
49326
49327         * tests/test-lock.c (main): Tweak skip message.
49328         * tests/test-tls.c (main): Likewise.
49329
49330 2008-09-21  Bruno Haible  <bruno@clisp.org>
49331
49332         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
49333         whether 'struct sigaction' has sa_sigaction here...
49334         (gl_PREREQ_SIG_HANDLER_H): ... not here.
49335         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
49336
49337 2008-09-21  Bruno Haible  <bruno@clisp.org>
49338
49339         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
49340         section.
49341         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
49342         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
49343         the new section.
49344         (Support for obsolete systems lacking POSIX:2001): New section.
49345         (String handling <string.h>): Move strdup to the new section.
49346         Suggested by Simon Josefsson and Paolo Bonzini.
49347
49348 2008-09-21  Bruno Haible  <bruno@clisp.org>
49349
49350         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
49351         exponents in %e and %g results on 'long double'. Needed for mingw's
49352         improved *printf functions.
49353         * tests/test-vasprintf-posix.c (test_function): Likewise.
49354         * tests/test-snprintf-posix.h (test_function): Likewise.
49355         * tests/test-sprintf-posix.h (test_function): Likewise.
49356         Reported by Eric Blake.
49357
49358 2008-09-21  Bruno Haible  <bruno@clisp.org>
49359
49360         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
49361         * tests/test-sprintf-posix.h (test_function): Likewise.
49362
49363 2008-09-21  Bruno Haible  <bruno@clisp.org>
49364
49365         * modules/getpass (Depends-on): Add strdup-posix.
49366
49367         New module 'strdup-posix'.
49368         * modules/strdup-posix: New file.
49369         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
49370         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
49371         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
49372         REPLACE_STRDUP.
49373         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
49374         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
49375         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49376         strdup-posix.
49377
49378         * modules/strdup (Depends-on): Remove malloc-posix.
49379
49380 2008-09-20  Bruno Haible  <bruno@clisp.org>
49381
49382         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
49383         Wildenhues.
49384
49385 2008-09-20  Bruno Haible  <bruno@clisp.org>
49386
49387         Ensure that wint_t gets defined on IRIX 5.3.
49388         * lib/wchar.in.h (wint_t): Define if not defined by the system.
49389         * lib/wctype.in.h (wint_t): Likewise.
49390         (__wctype_wint_t): Remove type.
49391         (isw*): Use wint_t instead of __wctype_wint_t.
49392         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
49393         * modules/wchar (Files): Add m4/wint_t.m4.
49394         (Makefile.am): Substitute HAVE_WINT_T.
49395         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
49396         * tests/test-wctype.c: Check that wint_t is defined.
49397         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
49398         * doc/posix-headers/wctype.texi: Likewise.
49399         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49400
49401 2008-09-18  Bruno Haible  <bruno@clisp.org>
49402
49403         * gnulib-tool (func_exit): Update comment.
49404
49405 2008-09-18  Simon Josefsson  <simon@josefsson.org>
49406
49407         * modules/getaddrinfo (Depends-on): Remove strdup, this module
49408         assumes strdup exists and does not depend on strdup to return
49409         ENOMEM on out of memory conditions.
49410
49411 2008-09-18  Bruno Haible  <bruno@clisp.org>
49412
49413         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
49414         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
49415         digits for the exponent.
49416
49417 2008-09-18  Jim Meyering  <meyering@redhat.com>
49418             Bruno Haible  <bruno@clisp.org>
49419
49420         * lib/vasnprintf.c (decimal_point_char): Define also if
49421         NEED_PRINTF_INFINITE_LONG_DOUBLE.
49422
49423 2008-09-16  Bruno Haible  <bruno@clisp.org>
49424         and Eric Blake  <ebb9@byu.net>
49425
49426         vasnprintf: support Irix 5.3
49427         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
49428         that mishandle long double infinity.
49429         Reported by Tom G. Christensen.
49430
49431 2008-09-16  Bruno Haible  <bruno@clisp.org>
49432
49433         * doc/glibc-functions/scandir.texi: Mention the function is missing on
49434         Solaris 9.
49435         * doc/glibc-functions/alphasort.texi: Likewise.
49436         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
49437
49438 2008-09-16  Jim Meyering  <meyering@redhat.com>
49439
49440         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
49441         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
49442         a umask modification leak out of a subshell.  Otherwise, the
49443         opensolaris /bin/sh would be accepted and thus cause unwarranted
49444         failures in the coreutils test suite.
49445
49446 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
49447
49448         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
49449         to succeed.
49450
49451 2008-09-16  Jim Meyering  <meyering@redhat.com>
49452
49453         avoid spurious test failure when library is built without ACL support
49454         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
49455         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
49456         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
49457         * tests/test-copy-acl.sh: Likewise.
49458
49459 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49460
49461         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
49462         based on character occurrence counts.
49463
49464 2008-09-15  Eric Blake  <ebb9@byu.net>
49465
49466         tests: avoid some compiler warnings
49467         * tests/test-memchr.c (main): Pass NULL indirectly.
49468         * tests/test-closein.c (main): Avoid unused variable.
49469
49470 2008-09-15  Bruno Haible  <bruno@clisp.org>
49471
49472         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
49473         are missing on OpenBSD 4.0 individually.
49474         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49475
49476 2008-09-15  Bruno Haible  <bruno@clisp.org>
49477
49478         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
49479         * doc/posix-functions/strerror.texi: Mention also Cygwin.
49480         * doc/posix-functions/perror.texi: Likewise.
49481         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
49482         is missing.
49483         Reported by Eric Blake.
49484
49485         * lib/errno.in.h: Use replacement values >= 2000.
49486         Reported by Eric Blake.
49487
49488 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49489
49490         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
49491         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
49492         limit.
49493         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
49494         compareseq was aborted.
49495
49496 2008-09-14  Bruno Haible  <bruno@clisp.org>
49497
49498         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
49499         yvec_edit_count.
49500         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
49501         (fstrcmp_bounded): Simplify result computation accordingly.
49502
49503 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49504
49505         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
49506         (fstrcmp): Define in terms of fstrcmp_bounded.
49507         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
49508         lower_bound argument.
49509         Return quickly if the result is certainly < lower_bound.
49510         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
49511
49512 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49513
49514         * lib/diffseq.h (EARLY_ABORT): New macro.
49515         (compareseq): Change return type to bool. Return true when EARLY_ABORT
49516         evaluates to true.
49517
49518 2008-09-14  Bruno Haible  <bruno@clisp.org>
49519
49520         * modules/perror-tests: New file.
49521         * tests/test-perror.sh: New file.
49522         * tests/test-perror.c: New file.
49523
49524         New module 'perror'.
49525         * lib/stdio.in.h (perror): New declaration.
49526         * lib/perror.c: New file.
49527         * m4/perror.m4: New file.
49528         * modules/perror: New file.
49529         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
49530         * doc/posix-functions/perror.texi: Mention the perror module.
49531         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
49532         REPLACE_PERROR.
49533         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
49534         REPLACE_PERROR.
49535
49536 2008-09-14  Bruno Haible  <bruno@clisp.org>
49537
49538         * modules/stdio (Makefile.am): Reorder to match the order in
49539         lib/stdio.in.h.
49540         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
49541
49542 2008-09-13  Bruno Haible  <bruno@clisp.org>
49543
49544         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
49545
49546 2008-09-13  Bruno Haible  <bruno@clisp.org>
49547
49548         Extend strerror to cover the added errno values.
49549         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
49550         (rpl_strerror): Provide error messages for the added errno values and
49551         for the WSA* values.
49552         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
49553         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
49554         strerror.
49555         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
49556         * modules/strerror (Depends-on): Add errno.
49557         * doc/posix-functions/strerror.texi: Document the change.
49558         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
49559         and EOVERFLOW.
49560
49561 2008-09-13  Bruno Haible  <bruno@clisp.org>
49562
49563         * modules/EOVERFLOW: Remove file.
49564         * m4/eoverflow.m4: Remove file.
49565         * modules/EOVERFLOW-tests: Remove file.
49566         * tests/test-EOVERFLOW.c: Remove file.
49567         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
49568         * modules/ftell (Depends-on): Likewise.
49569         * modules/getdelim (Depends-on): Likewise.
49570         * modules/getugroups (Depends-on): Likewise.
49571         * modules/poll (Depends-on): Likewise.
49572         * modules/snprintf (Depends-on): Likewise.
49573         * modules/sprintf-posix (Depends-on): Likewise.
49574         * modules/vasnprintf (Depends-on): Likewise.
49575         * modules/vasprintf (Depends-on): Likewise.
49576         * modules/vfprintf-posix (Depends-on): Likewise.
49577         * modules/vsnprintf (Depends-on): Likewise.
49578         * modules/vsprintf-posix (Depends-on): Likewise.
49579         * modules/xvasprintf (Depends-on): Likewise.
49580         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
49581         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
49582         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
49583         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
49584         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
49585         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
49586         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
49587         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
49588         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
49589         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
49590         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
49591         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
49592         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
49593         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
49594         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
49595         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
49596         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
49597         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
49598         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
49599         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
49600         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
49601         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
49602         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
49603         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
49604         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
49605         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
49606         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
49607         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
49608         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
49609         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
49610         * MODULES.html.sh: Remove EOVERFLOW.
49611         * NEWS: Mention the change.
49612
49613 2008-09-13  Bruno Haible  <bruno@clisp.org>
49614
49615         * modules/errno-tests: New file.
49616         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
49617
49618         * lib/errno.in.h: New file.
49619         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
49620         * modules/errno: New file.
49621         * doc/posix-headers/errno.texi: Update documentation.
49622         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
49623
49624 2008-09-13  Bruno Haible  <bruno@clisp.org>
49625
49626         * tests/test-poll.c: Use #if for native Windows, rather than testing
49627         __MSVCRT__.
49628
49629 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49630             Bruno Haible  <bruno@clisp.org>
49631
49632         * lib/glob.c: Don't include <pwd.h> on native Windows.
49633         (WINDOWS32): New macro.
49634         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
49635
49636 2008-09-13  Bruno Haible  <bruno@clisp.org>
49637
49638         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
49639         (ETIMEDOUT): Remove macro.
49640         (glthread_cond_timedwait_multithreaded): New declaration.
49641         (glthread_cond_timedwait): Use it.
49642         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
49643         (glthread_cond_timedwait_multithreaded): New function.
49644
49645 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
49646
49647         * modules/poll-tests: Do not check for io.h.
49648         * tests/test-poll.c: Check for __MSVCRT__ instead.
49649
49650 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
49651
49652         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
49653         * modules/poll-tests: Add inet_pton, stdbool, sockets.
49654         * tests/test-poll.c: Use them.  Use _pipe on Windows.
49655
49656 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
49657
49658         * modules/poll-tests: New.
49659         * tests/test-poll.c: New.
49660
49661 2008-09-12  Eric Blake  <ebb9@byu.net>
49662
49663         frexp: test for NetBSD failure on -0.0
49664         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
49665         not all, bugs from NetBSD 3.0 have been fixed.
49666         * doc/posix-functions/frexp.texi (frexp): Document bug.
49667         Reported by Thomas Klausner.
49668
49669         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
49670         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
49671         literal -0.0.
49672         Reported by Jonathan C. Patschke <jp@centtech.com>.
49673
49674 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49675
49676         * lib/glthread/cond.h: Use dummy implementation also if
49677         USE_WIN32_THREADS.
49678
49679 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49680
49681         * modules/fnmatch-posix (License): Change to LGPLv2+.
49682         * modules/fnmatch-gnu (License): Likewise.
49683
49684 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49685
49686         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
49687
49688 2008-09-11  Jim Meyering  <meyering@redhat.com>
49689
49690         * users.txt: Add gtk-vnc.
49691
49692 2008-09-08  Simon Josefsson  <simon@josefsson.org>
49693
49694         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
49695         rotate amounts.
49696
49697         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
49698         required for 16-bit and 8-bit rotates.
49699         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
49700         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
49701         UINT8_MAX instead of hard-coded constants.
49702         Suggested by Paul Eggert.
49703
49704 2008-09-07  Bruno Haible  <bruno@clisp.org>
49705
49706         * tests/test-striconveh.c (main): Check behaviour when converting from
49707         UTF-7.
49708
49709         Make striconveh work better with stateful encodings.
49710         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
49711         that iconv does not increment the inptr when returning -1/EINVAL.
49712
49713 2008-09-07  Bruno Haible  <bruno@clisp.org>
49714
49715         * build-aux/config.rpath: Update according to libtool-2.2.6.
49716         * build-aux/config.libpath: Likewise.
49717
49718 2008-09-06  Bruno Haible  <bruno@clisp.org>
49719
49720         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
49721         * lib/freadptr.c (freadptr): Likewise.
49722         * lib/freadseek.c (freadptrinc): Likewise.
49723         Reported by Simon Josefsson.
49724
49725 2008-09-06  Bruno Haible  <bruno@clisp.org>
49726
49727         * modules/freadptr (License): Change to LGPLv2+.
49728         * modules/freadseek (License): Likewise.
49729         Suggested by Eric Blake.
49730
49731         * modules/memchr2 (License): Change to LGPLv2+.
49732         Approved by Eric Blake.
49733
49734 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49735             Bruno Haible  <bruno@clisp.org>
49736
49737         Make gnulib-tool work with native 'sed' on AIX.
49738         * gnulib-tool (sed_noop): New variable.
49739         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
49740         func_add_or_update, func_create_testdir): Use it to initialize sed
49741         script variables.
49742         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49743
49744 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
49745             Bruno Haible  <bruno@clisp.org>
49746
49747         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
49748         also works after #include directives.
49749
49750 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
49751
49752         getdate.y: reject an out-of-range timezone value
49753         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
49754         the range [-24...+24].  When specified with only one or two digits,
49755         * tests/test-getdate.c: Tests for the fix.
49756         * doc/getdate.texi: Document this change.
49757
49758 2008-09-03  Bruno Haible  <bruno@clisp.org>
49759
49760         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
49761
49762 2008-09-02  Simon Josefsson  <simon@josefsson.org>
49763
49764         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
49765         <bruce.korb@gmail.com> with ideas from Ben Pfaff
49766         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
49767         Blake <ebb9@byu.net>.
49768
49769         * tests/test-bitrotate.c: Add more test vectors.
49770
49771 2008-09-02  Eric Blake  <ebb9@byu.net>
49772
49773         vasnprintf-posix: handle large precision via %.*d
49774         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
49775         when handling it ourselves.
49776         * tests/test-vasnprintf-posix.c (test_function): Add test.
49777         * tests/test-snprintf-posix.h (test_function): Likewise.
49778         * tests/test-sprintf-posix.h (test_function): Likewise.
49779         * tests/test-vasprintf-posix.c (test_function): Likewise.
49780         Reported by Alain Guibert.
49781
49782 2008-09-01  Eric Blake  <ebb9@byu.net>
49783
49784         c-stack: make configure-time check more robust
49785         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
49786         successful sigaction call.
49787         Reported by Tom G. Christensen.
49788
49789 2008-09-01  Bruno Haible  <bruno@clisp.org>
49790
49791         New module 'findprog-lgpl'.
49792         * modules/findprog-lgpl: New file.
49793         * lib/findprog-lgpl.c: New file.
49794         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
49795         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
49796         to decide whether to use strdup or xstrdup, concatenated_filename or
49797         xconcatenated_filename.
49798
49799 2008-09-01  Bruno Haible  <bruno@clisp.org>
49800
49801         Split module 'concat-filename' into 'concat-filename' (LGPL) and
49802         'xconcat-filename' (GPL).
49803         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
49804         (License): Change to LGPLv2+.
49805         * modules/xconcat-filename: New file.
49806         * lib/concat-filename.h (concatenated_filename): Change specification.
49807         (xconcatenated_filename): New declaration.
49808         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
49809         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
49810         memory situations.
49811         * lib/xconcat-filename.c: New file.
49812         * NEWS: Mention the change.
49813         * lib/findprog.c: Include concat-filename.h, not filename.h.
49814         (find_in_path): Use xconcatenated_filename instead of
49815         concatenated_filename.
49816         * lib/javacomp.c: Include concat-filename.h, not filename.h.
49817         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
49818         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
49819         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
49820         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
49821         instead of concatenated_filename.
49822         * lib/javaexec.c: Include concat-filename.h, not filename.h.
49823         (execute_java_class): Use xconcatenated_filename instead of
49824         concatenated_filename.
49825         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
49826         * modules/javacomp (Depends-on): Likewise.
49827         * modules/javaexec (Depends-on): Likewise.
49828
49829 2008-09-01  Bruno Haible  <bruno@clisp.org>
49830
49831         Split module 'filename' into 'filename' and 'concat-filename'.
49832         * modules/filename: Keep only lib/filename.h.
49833         (License): Change to LGPLv2+.
49834         * modules/concat-filename: New file, extracted from modules/filename.
49835         * lib/filename.h (concatenated_filename): Remove declaration.
49836         * lib/concat-filename.h: New file, extracted from lib/filename.h.
49837         * lib/concat-filename.c: Include concat-filename.h.
49838         * NEWS: Mention the change.
49839
49840 2008-09-01  Simon Josefsson  <simon@josefsson.org>
49841
49842         * lib/bitrotate.h (rotl8, rotr8): Add.
49843
49844         * modules/bitrotate (configure.ac): Need
49845         AC_REQUIRE([AC_C_INLINE]).
49846         (Description): Mention stdint.h.  Reported by Bruno Haible
49847         <bruno@clisp.org>.
49848
49849         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
49850         Paolo Bonzini <bonzini@gnu.org>.
49851
49852 2008-08-31  Bruno Haible  <bruno@clisp.org>
49853
49854         Assume Solaris specific bi-arch conventions on Solaris systems.
49855         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
49856         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
49857         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
49858         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
49859         like acl_libdirstem.
49860         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
49861         acl_libdirstem.
49862         * NEWS: Mention the change.
49863         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
49864
49865 2008-08-31  Jim Meyering  <meyering@redhat.com>
49866
49867         * lib/strftime.h: Add comments describing the two added arguments.
49868
49869         remove duplicate #include directives
49870         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
49871         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
49872
49873 2008-08-31  Bruno Haible  <bruno@clisp.org>
49874
49875         New module 'sigpipe-die'.
49876         * modules/sigpipe-die: New file.
49877         * lib/sigpipe-die.h: New file.
49878         * lib/sigpipe-die.c: New file.
49879         * MODULES.html.sh (Signal handling): Add sigpipe-die.
49880
49881 2008-08-31  Bruno Haible  <bruno@clisp.org>
49882
49883         Don't override previously installed signal handlers.
49884         * lib/fatal-signal.c (saved_sigactions): New variable.
49885         (uninstall_handlers): Reset the signal to the saved handler, not
49886         to SIG_DFL (except when ignored).
49887         (install_handlers): Save the previous handlers.
49888
49889 2008-08-30  Bruno Haible  <bruno@clisp.org>
49890
49891         * gnulib-tool (func_reset_sigpipe): New function.
49892         (func_get_automake_snippet, func_modules_transitive_closure,
49893         func_import): Invoke it before a join command that reads from stdin,
49894         to avoid "echo: write error: Broken pipe" error messages on stderr.
49895         Reported by Sam Steingold <sds@gnu.org>.
49896
49897 2008-08-30  Bruno Haible  <bruno@clisp.org>
49898
49899         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
49900         Code copied from m4/open.m4.
49901         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
49902         access and the filename ends in a slash. Code copied from lib/open.c.
49903         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
49904         * tests/test-fopen.c (main): Check against bug with trailing slash.
49905
49906 2008-08-29  Bruno Haible  <bruno@clisp.org>
49907
49908         Avoid some "gcc -pedantic" warnings.
49909         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
49910         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
49911         * lib/dirent.in.h: Likewise.
49912         * lib/fcntl.in.h: Likewise.
49913         * lib/float.in.h: Likewise.
49914         * lib/iconv.in.h: Likewise.
49915         * lib/inttypes.in.h: Likewise.
49916         * lib/locale.in.h: Likewise.
49917         * lib/math.in.h: Likewise.
49918         * lib/netinet_in.in.h: Likewise.
49919         * lib/search.in.h: Likewise.
49920         * lib/signal.in.h: Likewise.
49921         * lib/stdarg.in.h: Likewise.
49922         * lib/stdint.in.h: Likewise.
49923         * lib/stdio.in.h: Likewise.
49924         * lib/stdlib.in.h: Likewise.
49925         * lib/string.in.h: Likewise.
49926         * lib/strings.in.h: Likewise.
49927         * lib/sys_select.in.h: Likewise.
49928         * lib/sys_socket.in.h: Likewise.
49929         * lib/sys_stat.in.h: Likewise.
49930         * lib/sys_time.in.h: Likewise.
49931         * lib/sysexits.in.h: Likewise.
49932         * lib/time.in.h: Likewise.
49933         * lib/unistd.in.h: Likewise.
49934         * lib/wchar.in.h: Likewise.
49935         * lib/wctype.in.h: Likewise.
49936         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
49937         * modules/fchdir (Makefile.am): Likewise.
49938         * modules/fcntl (Makefile.am): Likewise.
49939         * modules/float (Makefile.am): Likewise.
49940         * modules/iconv_open (Makefile.am): Likewise.
49941         * modules/inttypes (Makefile.am): Likewise.
49942         * modules/locale (Makefile.am): Likewise.
49943         * modules/math (Makefile.am): Likewise.
49944         * modules/netinet_in (Makefile.am): Likewise.
49945         * modules/search (Makefile.am): Likewise.
49946         * modules/signal (Makefile.am): Likewise.
49947         * modules/stdarg (Makefile.am): Likewise.
49948         * modules/stdint (Makefile.am): Likewise.
49949         * modules/stdio (Makefile.am): Likewise.
49950         * modules/stdlib (Makefile.am): Likewise.
49951         * modules/string (Makefile.am): Likewise.
49952         * modules/strings (Makefile.am): Likewise.
49953         * modules/sys_select (Makefile.am): Likewise.
49954         * modules/sys_socket (Makefile.am): Likewise.
49955         * modules/sys_stat (Makefile.am): Likewise.
49956         * modules/sys_time (Makefile.am): Likewise.
49957         * modules/sysexits (Makefile.am): Likewise.
49958         * modules/time (Makefile.am): Likewise.
49959         * modules/unistd (Makefile.am): Likewise.
49960         * modules/wchar (Makefile.am): Likewise.
49961         * modules/wctype (Makefile.am): Likewise.
49962         Reported by Reuben Thomas <rrt@sc3d.org>.
49963
49964 2008-08-29  Bruno Haible  <bruno@clisp.org>
49965
49966         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
49967         any more.
49968
49969 2008-08-29  Simon Josefsson  <simon@josefsson.org>
49970
49971         * MODULES.html.sh (Misc): Add bitrotate.
49972
49973         * modules/bitrotate: New file.
49974
49975         * lib/bitrotate.h: New file.
49976
49977         * modules/bitrotate-tests: New file.
49978
49979         * tests/test-bitrotate.c: New file.
49980
49981         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
49982         on the bitrotate module.
49983
49984         * lib/arctwo.c: Use new bitrotate module.
49985
49986 2008-08-29  Jim Meyering  <meyering@redhat.com>
49987
49988         bootstrap: merge changes from coreutils
49989         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
49990         of copied files.  Remove a kludge, now that this is fixed.
49991         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
49992         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
49993         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
49994
49995 2008-08-29  Bruno Haible  <bruno@clisp.org>
49996
49997         * MODULES.html.sh: Remove --cvs-urls option.
49998
49999 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
50000
50001         maint.mk: adjust to file name change
50002         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
50003
50004 2008-08-28  Jim Meyering  <meyering@redhat.com>
50005
50006         * modules/getndelim2 (License): Relicense to LGPLv2+.
50007         Approved by Richard Stallman for the version of 1995, and by
50008         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
50009
50010 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
50011
50012         * lib/getdelim.c (flockfile, funlockfile): Make all of them
50013         dummy if one is not available.  Do not touch them if
50014         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
50015         (getc_maybe_unlocked): New.
50016         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
50017
50018 2008-08-26  Eric Blake  <ebb9@byu.net>
50019
50020         doc/INSTALL: resync from autoconf
50021         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
50022         (INSTALL_PRELUDE): Delete; this is done more efficiently by
50023         moving...
50024         * install.texi [!autoconf]: ...here.  Resync from autoconf.
50025         * INSTALL: Regenerate.
50026         * INSTALL.ISO: New file.
50027         * INSTALL.UTF-8: Likewise.
50028
50029 2008-08-26  Jim Meyering  <meyering@redhat.com>
50030
50031         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
50032         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
50033         these definitions conditional, so that they may be overridden, too.
50034
50035 2008-08-26  Bruno Haible  <bruno@clisp.org>
50036
50037         Generate INSTALL file variants with prettier quotes.
50038         * doc/Makefile (INSTALL_PRELUDE): New macro.
50039         (INSTALL): Use it.
50040         (INSTALL.ISO, INSTALL.UTF-8): New rules.
50041
50042 2008-08-26  Bruno Haible  <bruno@clisp.org>
50043
50044         Run makeinfo in an English locale.
50045         * doc/Makefile (MAKEINFO): New variable.
50046
50047 2008-08-26  Bruno Haible  <bruno@clisp.org>
50048
50049         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
50050         Suggested by Eric Blake.
50051
50052 2008-08-25  Bruno Haible  <bruno@clisp.org>
50053
50054         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
50055
50056 2008-08-25  Eric Blake  <ebb9@byu.net>
50057
50058         c-stack: test that stack overflow can be caught
50059         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
50060         that platform allows handling stack overflow; at least OS/2 EMX
50061         has sigaltstack, but crashes before transferring control to
50062         handler on stack overflow.
50063         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
50064         check for HAVE_STACK_OVERFLOW_HANDLING.
50065         Reported by Elbert Pol.
50066
50067 2008-08-25  Bruno Haible  <bruno@clisp.org>
50068
50069         * doc/posix-functions/strftime.texi: Fix description of strftime
50070         module.
50071
50072 2008-08-24  Bruno Haible  <bruno@clisp.org>
50073
50074         * tests/uniwidth/test-uc_width2.c: New file.
50075         * tests/uniwidth/test-uc_width2.sh: New file.
50076         * modules/uniwidth/width-tests (Files): Add the new files.
50077         (TESTS): Add uniwidth/test-uc_width2.sh.
50078         (TESTS_ENVIRONMENT): New variable.
50079         (check_PROGRAMS): Add test-uc_width2.
50080         (test_uc_width2_SOURCES): New variable.
50081
50082         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
50083         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
50084         not 0x00AB.
50085         Reported by Alexander V. Lukyanov <lav@netis.ru>.
50086
50087 2008-08-22  Eric Blake  <ebb9@byu.net>
50088
50089         test-lock, test-tls: mention why a test is skipped
50090         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
50091         skipped.
50092         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
50093
50094         count-one-bits: relax license
50095         * modules/count-one-bits (License): Relicense to LGPLv2+.
50096         Suggested by Ludovic Courtès, approved by Ben Pfaff.
50097
50098 2008-08-22  Andreas Schwab  <schwab@suse.de>
50099
50100         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
50101         Remove spurious space in assignment.
50102
50103 2008-08-21  Simon Josefsson  <simon@josefsson.org>
50104
50105         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
50106         Paul Eggert <eggert@CS.UCLA.EDU>.
50107
50108 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
50109
50110         * modules/gettext: Add m4/threadlib.m4.
50111
50112 2008-08-19  Eric Blake  <ebb9@byu.net>
50113
50114         test-c-stack: fix compilation failure on FreeBSD 5.0
50115         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
50116         headers before <sys/resource.h>.
50117         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
50118         the bug.
50119         Reported by Nelson H. F. Beebe.
50120
50121         strverscmp: migrate from "strverscmp.h" to <string.h>
50122         * modules/string (Makefile.am): Add new hooks.
50123         * modules/strverscmp (Files): Remove strverscmp.h.
50124         (Depends-on): Add string.
50125         (configure.ac): Add indicator.
50126         (Include): Mention new header.
50127         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
50128         defaults.
50129         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
50130         results.
50131         * lib/strverscmp.h: Delete.
50132         * lib/string.in.h (strverscmp): Provide declaration, when needed.
50133         * tests/test-strverscmp.c (includes): Adjust client.
50134         * lib/check-version.c (includes): Likewise.
50135         * NEWS: Document the change.
50136
50137         strverscmp: add unit test
50138         * modules/strverscmp-tests: New file.
50139         * tests/test-strverscmp.c: Likewise.
50140
50141 2008-08-19  Simon Josefsson  <simon@josefsson.org>
50142
50143         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
50144         regarding Windows crypto stuff, from Mono.
50145
50146 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
50147
50148         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
50149         if present, for intel RND.  Return error on failures.
50150
50151 2008-08-18  Ben Pfaff  <blp@gnu.org>
50152
50153         gitlog-to-changelog: give better diagnostic for failed pipe-open
50154         * build-aux/gitlog-to-changelog: Improve error message: suggest
50155         that the version of Git may be too old.
50156
50157 2008-08-18  Simon Josefsson  <simon@josefsson.org>
50158
50159         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
50160         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
50161
50162 2008-08-18  Bruno Haible  <bruno@clisp.org>
50163
50164         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
50165         pthread_in_use().
50166
50167 2008-08-18  Bruno Haible  <bruno@clisp.org>
50168
50169         * lib/glthread/threadlib.c: Include <pthread.h>.
50170
50171 2008-08-18  Bruno Haible  <bruno@clisp.org>
50172
50173         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
50174         glthread_recursive_lock_* macros.
50175         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
50176         Fix syntax error.
50177
50178 2008-08-18  Bruno Haible  <bruno@clisp.org>
50179
50180         * lib/glthread/thread.c: Avoid forcing a context switch right after
50181         thread creation.
50182
50183 2008-08-17  Bruno Haible  <bruno@clisp.org>
50184
50185         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
50186         * lib/glthread/thread.h: Provide Win32 specific implementation.
50187         * modules/thread (Files): Add lib/glthread/thread.c.
50188         (Depends-on): Add lock.
50189         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
50190
50191 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50192
50193         New module 'yield'.
50194         * modules/yield: New file.
50195         * lib/glthread/yield.h: New file.
50196         * m4/yield.m4: New file.
50197         * MODULES.html.sh (Multithreading): Add yield.
50198
50199 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50200
50201         New module 'thread'.
50202         * modules/thread: New file.
50203         * lib/glthread/thread.h: New file.
50204         * m4/thread.m4: New file.
50205         * MODULES.html.sh (Multithreading): Add thread.
50206
50207 2008-08-17  Bruno Haible  <bruno@clisp.org>
50208
50209         * lib/glthread/lock.h: Include <stdlib.h> always.
50210         * lib/glthread/tls.h: Likewise.
50211         * lib/glthread/cond.h: Likewise.
50212
50213 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50214
50215         New module 'cond'.
50216         * modules/cond: New file.
50217         * lib/glthread/cond.h: New file.
50218         * lib/glthread/cond.c: New file.
50219         * m4/cond.m4: New file.
50220         * MODULES.html.sh (Multithreading): Add cond.
50221
50222 2008-08-16  Eric Blake  <ebb9@byu.net>
50223
50224         c-stack: fix regression on Irix 5.3 from 2008-06-21
50225         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
50226         sa_sigaction...
50227         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
50228         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
50229         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
50230         * modules/signal (Makefile.am): Use the value.
50231         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
50232         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
50233         * doc/posix-headers/signal.texi (signal.h): Document this
50234         portability issue.
50235         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
50236         Reported by Tom G. Christensen.
50237
50238 2008-08-17  Bruno Haible  <bruno@clisp.org>
50239
50240         New module 'threadlib'.
50241         * modules/threadlib: New file.
50242         * lib/glthread/threadlib.c: New file, extracted from
50243         lib/glthread/lock.c.
50244         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
50245         functions.
50246         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
50247         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
50248         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
50249         macros.
50250         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
50251         (gl_DISABLE_THREADS): Remove macro.
50252         * modules/lock (Files): Remove build-aux/config.rpath.
50253         (Depends-on): Remove havelib. Add threadlib.
50254         (configure.ac-early): Remove section.
50255         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
50256         * modules/tls (Depends-on): Remove lock. Add threadlib.
50257         (Link): New section, copied from threadlib.
50258         * MODULES.html.sh (Multithreading): Add threadlib.
50259
50260 2008-08-14  Bruno Haible  <bruno@clisp.org>
50261
50262         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
50263         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
50264         glthread_rwlock_unlock, glthread_rwlock_destroy,
50265         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
50266         glthread_recursive_lock_destroy): Define as macros always.
50267         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
50268         glthread_lock_lock.
50269         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
50270         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
50271         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
50272         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
50273         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
50274         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
50275         (glthread_recursive_lock_lock_func): Renamed from
50276         glthread_recursive_lock_lock.
50277         (glthread_recursive_lock_unlock_func): Renamed from
50278         glthread_recursive_lock_unlock.
50279         (glthread_recursive_lock_destroy_func): Renamed from
50280         glthread_recursive_lock_destroy.
50281
50282 2008-08-14  Bruno Haible  <bruno@clisp.org>
50283
50284         * lib/glthread/lock.h: Renamed from lib/lock.h.
50285         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
50286         * lib/glthread/tls.h: Renamed from lib/tls.h.
50287         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
50288         * lib/fstrcmp.c: Update includes.
50289         * lib/strsignal.c: Update includes.
50290         * modules/lock (Files, Makefile.am): Update.
50291         (Include): Change to "glthread/lock.h".
50292         * modules/tls (Files, Makefile.am): Update.
50293         (Include): Change to "glthread/tls.h".
50294         * tests/test-lock.c: Update includes.
50295         * tests/test-tls.c: Update includes.
50296         * NEWS: Mention the renamed header files.
50297
50298 2008-08-11  Jim Meyering  <meyering@redhat.com>
50299
50300         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
50301
50302 2008-08-11  Eric Blake  <ebb9@byu.net>
50303
50304         test-c-stack: avoid C99-ism
50305         * tests/test-c-stack.c (main): Fix whitespace, move declaration
50306         before statement.
50307         Reported by Alain Guibert.
50308
50309 2008-08-10  Jim Meyering  <meyering@redhat.com>
50310
50311         ensure that return value of uinttostr et al are not ignored
50312         * lib/inttostr.h (__GNUC_PREREQ): Define.
50313         (__attribute_warn_unused_result__): Define.
50314         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
50315
50316 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
50317
50318         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
50319         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
50320
50321 2008-08-07  Jim Meyering  <meyering@redhat.com>
50322
50323         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
50324
50325         * modules/mkstemp (License): Relicense under LGPLv2+.
50326         * modules/tempname (License): Likewise.
50327
50328 2008-08-06  Bruno Haible  <bruno@clisp.org>
50329
50330         * lib/poll.c (poll): Further micro-optimization.
50331
50332 2008-08-06  Jim Meyering  <meyering@redhat.com>
50333
50334         inet_pton.c: use locale-independent tolower
50335         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
50336         (inet_pton6): Use c_tolower rather than tolower.
50337         * modules/inet_pton (Depends-on): Add c-ctype.
50338
50339 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
50340
50341         * lib/poll.c (poll): Avoid division when timeout is 0, cache
50342         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
50343
50344 2008-08-06  Jim Meyering  <meyering@redhat.com>
50345
50346         * modules/inet_pton (License): Relicense under LGPLv2+.
50347
50348 2008-08-03  Bruno Haible  <bruno@clisp.org>
50349
50350         Additional non-aborting API for lock and tls.
50351         * lib/lock.h: Include <errno.h>.
50352         (glthread_lock_init): New macro/function.
50353         (gl_lock_init): Define as wrapper around glthread_lock_init.
50354         (glthread_lock_lock): New macro/function.
50355         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
50356         (glthread_lock_unlock): New macro/function.
50357         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
50358         (glthread_lock_destroy): New macro/function.
50359         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
50360         (glthread_rwlock_init): New macro/function.
50361         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
50362         (glthread_rwlock_rdlock): New macro/function.
50363         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
50364         (glthread_rwlock_wrlock): New macro/function.
50365         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
50366         (glthread_rwlock_unlock): New macro/function.
50367         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
50368         (glthread_rwlock_destroy): New macro/function.
50369         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
50370         (glthread_recursive_lock_init): New macro/function.
50371         (gl_recursive_lock_init): Define as wrapper around
50372         glthread_recursive_lock_init.
50373         (glthread_recursive_lock_lock): New macro/function.
50374         (gl_recursive_lock_lock): Define as wrapper around
50375         glthread_recursive_lock_lock.
50376         (glthread_recursive_lock_unlock): New macro/function.
50377         (gl_recursive_lock_unlock): Define as wrapper around
50378         glthread_recursive_lock_unlock.
50379         (glthread_recursive_lock_destroy): New macro/function.
50380         (gl_recursive_lock_destroy): Define as wrapper around
50381         glthread_recursive_lock_destroy.
50382         (glthread_once): New macro/function.
50383         (gl_once): Define as wrapper around glthread_once.
50384         Update function declarations.
50385         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
50386         glthread_rwlock_init. Return error code.
50387         (glthread_rwlock_rdlock_multithreaded): Renamed from
50388         glthread_rwlock_rdlock. Return error code.
50389         (glthread_rwlock_wrlock_multithreaded): Renamed from
50390         glthread_rwlock_wrlock. Return error code.
50391         (glthread_rwlock_unlock_multithreaded): Renamed from
50392         glthread_rwlock_unlock. Return error code.
50393         (glthread_rwlock_destroy_multithreaded): Renamed from
50394         glthread_rwlock_destroy. Return error code.
50395         (glthread_recursive_lock_init_multithreaded): Renamed from
50396         glthread_recursive_lock_init. Return error code.
50397         (glthread_recursive_lock_lock_multithreaded): Renamed from
50398         glthread_recursive_lock_lock. Return error code.
50399         (glthread_recursive_lock_unlock_multithreaded): Renamed from
50400         glthread_recursive_lock_unlock. Return error code.
50401         (glthread_recursive_lock_destroy_multithreaded): Renamed from
50402         glthread_recursive_lock_destroy. Return error code.
50403         (glthread_once_call): Make static.
50404         (glthread_once_multithreaded): Renamed from glthread_once.
50405         * lib/tls.h: Include <errno.h>.
50406         (glthread_tls_key_init): New macro/function.
50407         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
50408         (glthread_tls_set): New macro/function.
50409         (gl_tls_set): Define as wrapper around glthread_tls_set.
50410         (glthread_tls_key_destroy): New macro/function.
50411         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
50412         Update function declarations.
50413         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
50414         glthread_tls_get.
50415         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
50416
50417 2008-08-04  Eric Blake  <ebb9@byu.net>
50418
50419         gnumakefile: use space, not TAB, outside of targets
50420         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
50421
50422 2008-08-02  Jim Meyering  <meyering@redhat.com>
50423
50424         getdate.y: avoid locale-dependent date parsing failure
50425         In Turkish locales, getdate would fail to recognize keywords
50426         containing a lowercase "i".  The solution is not to rely on
50427         locale-sensitive case-conversion.
50428         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
50429         (lookup_word): Use c_toupper in place of toupper.
50430         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
50431         Reported by Vefa Bicakci <bicave@superonline.com> in
50432         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
50433         * modules/getdate (Depends-on): Add c-ctype.
50434
50435 2008-08-02  Bruno Haible  <bruno@clisp.org>
50436
50437         * gnulib-tool (func_import): When updating or creating a .gitignore
50438         file, prepend each added line with a slash, and ignore leading slashes
50439         from the existing lines.
50440         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
50441
50442 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50443
50444         Portability fix for GNU make 3.79.1.
50445         * top/GNUmakefile: Avoid 'else COND', which older GNU make
50446         versions do not understand.
50447
50448 2008-08-01  Bruno Haible  <bruno@clisp.org>
50449
50450         Work around bug of HP-UX 10.20 cc with -0.0 literal.
50451         * tests/test-isnanf.h (zero): New variable.
50452         (main): Avoid literal -0.0f.
50453         * tests/test-isnand.h (zero): New variable.
50454         (main): Avoid literal -0.0.
50455         * tests/test-isnanl.h (zero): New variable.
50456         (main): Avoid literal -0.0L.
50457         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
50458         (test_float, test_double, test_long_double): Avoid literals -0.0f,
50459         -0.0, -0.0L.
50460         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
50461         (test_signbitd): Avoid literal -0.0.
50462         (test_signbitl): Avoid literal -0.0L.
50463         * tests/test-ceilf1.c (zero): New variable.
50464         (main): Avoid literal -0.0f.
50465         * tests/test-ceill.c (zero): New variable.
50466         (main): Avoid literal -0.0L.
50467         * tests/test-floorf1.c (zero): New variable.
50468         (main): Avoid literal -0.0f.
50469         * tests/test-floorl.c (zero): New variable.
50470         (main): Avoid literal -0.0L.
50471         * tests/test-roundf1.c (zero): New variable.
50472         (main): Avoid literal -0.0f.
50473         * tests/test-round1.c (zero): New variable.
50474         (main): Avoid literal -0.0.
50475         * tests/test-roundl.c (zero): New variable.
50476         (main): Avoid literal -0.0L.
50477         * tests/test-truncf1.c (zero): New variable.
50478         (main): Avoid literal -0.0f.
50479         * tests/test-trunc1.c (zero): New variable.
50480         (main): Avoid literal -0.0.
50481         * tests/test-truncl.c (zero): New variable.
50482         (main): Avoid literal -0.0L.
50483         * tests/test-frexp.c (zero): New variable.
50484         (main): Avoid literal -0.0.
50485         * tests/test-frexpl.c (zero): New variable.
50486         (main): Avoid literal -0.0L.
50487         * tests/test-ldexpl.c (zero): New variable.
50488         (main): Avoid literal -0.0L.
50489         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
50490         (zerod, zerol): New variables.
50491         (test_function): Avoid literals -0.0, -0.0L.
50492         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
50493         (zerod, zerol): New variables.
50494         (test_function): Avoid literals -0.0, -0.0L.
50495         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
50496         (zerod, zerol): New variables.
50497         (test_function): Avoid literals -0.0, -0.0L.
50498         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
50499         (zerod, zerol): New variables.
50500         (test_function): Avoid literals -0.0, -0.0L.
50501         * tests/test-strtod.c (zero): New variable.
50502         (main): Avoid literal -0.0.
50503         Reported by Jonathan C. Patschke <jp@centtech.com>.
50504
50505 2008-07-31  Jim Meyering  <meyering@redhat.com>
50506
50507         sha256.h: correct definition of SHA224_DIGEST_SIZE
50508         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
50509         Reported by Paulie Pena IV <paulie4@gmail.com>.
50510         Define as 224 / 8, rather than as a literal.
50511         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
50512         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
50513         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
50514
50515 2008-07-31  Bruno Haible  <bruno@clisp.org>
50516
50517         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
50518         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
50519         Reported by Jonathan Patschke <jp@centtech.com>.
50520
50521 2008-07-31  Bruno Haible  <bruno@clisp.org>
50522
50523         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
50524         Reported by Paolo Bonzini <bonzini@gnu.org>.
50525
50526 2008-07-30  Eric Blake  <ebb9@byu.net>
50527
50528         test-strtod: allow compilation without -lm
50529         * tests/test-strtod.c (main): Avoid link dependence on fabs.
50530         Reported by Dennis Clarke <blastwave@gmail.com>.
50531
50532 2008-07-28  Jim Meyering  <meyering@redhat.com>
50533
50534         bootstrap: work also when there are no .po files in po/
50535         * build-aux/bootstrap (update_po_files): Complete the change
50536         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
50537
50538 2008-07-27  Jim Meyering  <meyering@redhat.com>
50539
50540         * users.txt: Add zile.
50541
50542 2008-07-26  Ben Pfaff  <blp@gnu.org>
50543
50544         Add missing dependencies on new m4/exponent[fdl].m4 files.
50545         * modules/isnanf-nolibm: Add m4/exponentf.m4.
50546         * modules/isnand-nolibm: Add m4/exponentd.m4.
50547         * modules/isnanl-nolibm: Add m4/exponentl.m4.
50548         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
50549         m4/isnan[fdl].m4, because the macros actually used moved.
50550         Reported by Jim Meyering.
50551
50552 2008-07-14  Ben Pfaff  <blp@gnu.org>
50553
50554         Add isinf module.
50555         * lib/isinf.c: New file.
50556         * lib/math.in.h: Define isinf macro if we have decided to replace
50557         it.
50558         * m4/isinf.m4: New file.
50559         * m4/math_h.m4: Initialize and substitute variables for isinf
50560         module.
50561         * modules/isinf: New file.
50562         * modules/isinf-tests: New file.
50563         * modules/math: Add substitutions for new module.
50564         * tests/test-isinf.c: New file.
50565         * doc/posix-functions/isinf.texi: Mention new module.
50566         * MODULES.html.sh: Mention new module.
50567
50568 2008-07-14  Ben Pfaff  <blp@gnu.org>
50569
50570         Factor out some macros for use by additional modules.
50571         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
50572         exponentf.m4.
50573         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
50574         exponentd.m4.
50575         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
50576         file exponentl.m4.
50577         * m4/exponentf.m4: New file.
50578         * m4/exponentd.m4: New file.
50579         * m4/exponentl.m4: New file.
50580         * modules/isnanf: Use new file m4/exponentf.m4.
50581         * modules/isnand: Use new file m4/exponentd.m4.
50582         * modules/isnanl: Use new file m4/exponentl.m4.
50583
50584 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
50585
50586         mktime.c: normalize tp->tm_isdst value to -1/0/1.
50587         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
50588         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
50589         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
50590
50591         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
50592         readlink on platforms without PATH_MAX.
50593
50594 2008-07-21  Eric Blake  <ebb9@byu.net>
50595
50596         Warn, not fail, on stale version.
50597         * top/GNUmakefile (_curr-ver): Tone down previous patch.
50598
50599         Don't allow installation with stale devel version number.
50600         * top/GNUmakefile (_is-install-target): New macro.
50601         (_curr-ver): Forbid installation with stale version number.
50602
50603 2008-07-20  Bruno Haible  <bruno@clisp.org>
50604
50605         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
50606         TESTS_ENVIRONMENT.
50607         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
50608
50609 2008-07-20  Bruno Haible  <bruno@clisp.org>
50610
50611         * lib/c-stack.h (c_stack_action): Add documentation.
50612         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
50613
50614 2008-07-20  Bruno Haible  <bruno@clisp.org>
50615
50616         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
50617         * modules/readlink (License): Likewise.
50618
50619 2008-07-17  Eric Blake  <ebb9@byu.net>
50620
50621         * modules/c-stack (Link): Fix typo.
50622
50623         Make c-stack use libsigsegv, when available.
50624         * modules/c-stack (Depends-on): Add libsigsegv.
50625         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
50626         needed.
50627         * lib/c-stack.c (SIGSTKSZ): Define fallback.
50628         (segv_handler, overflow_handler, c_stack_action)
50629         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
50630         implementation when libsigsegv is available, but only when using
50631         the library is necessary.
50632         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
50633         comment, explaining why XSI check fails on Linux.
50634         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
50635         * tests/test-c-stack2.sh: Tweak skip message.
50636         * NEWS: Document new link-time requirements.
50637
50638 2008-07-16  Eric Blake  <ebb9@byu.net>
50639
50640         c-stack: Expose false positives when not using libsigsegv.
50641         * modules/c-stack-tests (Files): Expand test.
50642         * tests/test-c-stack.c (main): Add means to conditionally trigger
50643         non-overflow SIGSEGV.
50644         * tests/test-c-stack2.sh: New file.
50645
50646 2008-07-14  Bruno Haible  <bruno@clisp.org>
50647
50648         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
50649         Reported by Eric Blake.
50650
50651 2008-07-14  Sam Steingold  <sds@gnu.org>
50652             Bruno Haible  <bruno@clisp.org>
50653
50654         New module libsigsegv.
50655         * modules/libsigsegv: New file.
50656         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
50657         modifications.
50658         * MODULES.html.sh (Signal handling): New section.
50659
50660 2008-07-14  Bruno Haible  <bruno@clisp.org>
50661
50662         * modules/unictype/ctype-* (Description): Add the word "function".
50663         Improves the resulting doc in MODULES.html.
50664
50665 2008-07-12  Ben Pfaff  <blp@gnu.org>
50666
50667         Add longlong module.
50668         * modules/longlong: New file.
50669
50670 2008-07-12  Bruno Haible  <bruno@clisp.org>
50671
50672         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
50673         to empty.
50674
50675 2008-07-10  Ben Pfaff  <blp@gnu.org>
50676
50677         Add isnan module.
50678         * doc/posix-functions/isnan.texi: Mention new module.
50679         * lib/math.in.h: Define isnan macro if we have decided to replace
50680         it.
50681         * m4/isnan.m4: New file.
50682         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
50683         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
50684         also.
50685         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
50686         redundancy.
50687         * m4/math_h.m4: Initialize and substitute variables for isnan
50688         module.
50689         * modules/isnan: New file.
50690         * modules/isnan-tests: New file.
50691         * modules/math: Add substitutions for new module.
50692         * tests/test-isnan.c: New file.
50693         * MODULES.html.sh: Mention new module.
50694
50695 2008-07-10  Ben Pfaff  <blp@gnu.org>
50696
50697         Add isnanf module.
50698         * lib/isnanf.m4: New file.
50699         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
50700         (gl_HAVE_ISNANF_IN_LIBM): New macro.
50701         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
50702         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
50703         * modules/isnanf: New file.
50704         * modules/isnanf-tests: New file.
50705         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
50706         files.
50707         * tests/test-isnanf-nolibm.c: factored most of its contents into
50708         new file tests/test-isnanf.h.
50709         * tests/test-isnanf.h: New file.
50710         * tests/test-isnanf.c: New file.
50711         * MODULES.html.sh: Mention new module.
50712         * doc/glibc-functions/isnanf.texi: Mention new module.
50713
50714 2008-07-10  Ben Pfaff  <blp@gnu.org>
50715
50716         Add isnand module.
50717         * lib/isnand.h: New file.
50718         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
50719         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
50720         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
50721         functionality also.
50722         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
50723         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
50724         (gl_HAVE_ISNAND_IN_LIBM): New macro.
50725         * modules/isnand: New file.
50726         * modules/isnand-tests: New file.
50727         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
50728         files.
50729         * tests/test-isnand-nolibm.c: factored most of its contents into
50730         new file tests/test-isnand.h.
50731         * tests/test-isnand.h: New file.
50732         * tests/test-isnand.c: New file.
50733         * MODULES.html.sh: Mention new module.
50734
50735 2008-07-10  Ben Pfaff  <blp@gnu.org>
50736
50737         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
50738         * lib/isnand.h: Rename lib/isnand-nolibm.h.
50739         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
50740         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
50741         * modules/isnanf-nolibm: Update references to renamed files.
50742         * modules/isnand-nolibm: Likewise.
50743         * modules/isnanf-nolibm-tests: Likewise.
50744         * modules/isnand-nolibm-tests: Likewise.
50745         * lib/frexp.c: Likewise.
50746         * lib/isfinite.c: Likewise.
50747         * lib/signbitd.c: Likewise.
50748         * lib/signbitf.c: Likewise.
50749         * lib/vasnprintf.c: Likewise.
50750         * tests/test-ceilf1.c: Likewise.
50751         * tests/test-ceilf2.c: Likewise.
50752         * tests/test-floorf1.c: Likewise.
50753         * tests/test-floorf2.c: Likewise.
50754         * tests/test-frexp.c: Likewise.
50755         * tests/test-round1.c: Likewise.
50756         * tests/test-round2.c: Likewise.
50757         * tests/test-roundf1.c: Likewise.
50758         * tests/test-strtod.c: Likewise.
50759         * tests/test-trunc1.c: Likewise.
50760         * tests/test-trunc2.c: Likewise.
50761         * tests/test-truncf1.c: Likewise.
50762         * tests/test-truncf2.c: Likewise.
50763         * NEWS: Mention the renamed header files.
50764
50765 2008-07-11  Jim Meyering  <meyering@redhat.com>
50766
50767         vc-list-files: make the last-resort awk code more portable
50768         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
50769         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
50770         does not support it.
50771
50772 2008-07-10  Eric Blake  <ebb9@byu.net>
50773
50774         Work with tar's bootstrap.
50775         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
50776         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
50777         an m4 comment.
50778
50779 2008-07-09  Jim Meyering  <meyering@redhat.com>
50780
50781         posix-shell.m4: fix typo that made this test malfunction
50782         * m4/posix-shell.m4: Remove capitalization in variable name.
50783
50784 2008-07-08  Bruno Haible  <bruno@clisp.org>
50785
50786         * m4/onceonly.m4: Update comments.
50787         Reported by Ben Pfaff <blp@cs.stanford.edu>.
50788
50789 2008-07-04  Jim Meyering  <meyering@redhat.com>
50790
50791         * users.txt: Add vc-dwim.
50792         (bison, coreutils): Use the gitweb URL.
50793
50794 2008-07-03  Jim Meyering  <meyering@redhat.com>
50795
50796         * users.txt: Add libffcall.  From Sam Steingold.
50797
50798 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
50799
50800         getdate.y: do not ignore TZ with relative day, month or year offset
50801         * lib/getdate.y (get_date): Move the tz-handling block to follow the
50802         relative-date-handling, since otherwise, the latter would clobber the
50803         sole output (an updated Start value) of the tz-handling block.
50804         * tests/test-getdate.c: Tests for the fix
50805
50806 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50807
50808         Recognize 'foo_LIBRARIES += libgnu.a'.
50809         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
50810         makefile snippet has already specified an installation location,
50811         also using '+='.
50812
50813 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
50814
50815         getdate.y: factor out common actions
50816         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
50817         Use them in place of open-coded actions.
50818
50819 2008-07-01  Simon Josefsson  <simon@josefsson.org>
50820
50821         Add self-test for getdate module.
50822         * modules/getdate-tests: New file.
50823         * tests/test-getdate.c: New file.
50824
50825 2008-06-29  Bruno Haible  <bruno@clisp.org>
50826
50827         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
50828         .gitignore.
50829         Reported by Sylvain Beucler <beuc@beuc.net>.
50830
50831 2008-06-29  Bruno Haible  <bruno@clisp.org>
50832
50833         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
50834         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
50835
50836 2008-06-29  Bruno Haible  <bruno@clisp.org>
50837
50838         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
50839         EXTRA_DIST.
50840         Reported by Sylvain Beucler <beuc@beuc.net>.
50841
50842 2008-06-26  Jim Meyering  <meyering@redhat.com>
50843
50844         make several modules depend on the "open" module
50845         This provides slightly increased consistency when opening-for-write
50846         the name of a non-directory spelled with a trailing slash.
50847         * modules/chdir-safer: Likewise.
50848         * modules/chown: Likewise.
50849         * modules/clean-temp: Likewise.
50850         * modules/copy-file: Likewise.
50851         * modules/fchdir: Likewise.
50852         * modules/fcntl-safer: Likewise.
50853         * modules/pipe: Likewise.
50854         * modules/utime: Likewise.
50855         Prompted by Eric Blake and Bruno Haible.
50856
50857 2008-06-24  Andreas Schwab  <schwab@suse.de>
50858
50859         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
50860         literals can be used as initializers for global variables.
50861
50862 2008-06-23  Eric Blake  <ebb9@byu.net>
50863
50864         Make gnulib-cache.m4 easier to diff.
50865         * gnulib-tool (func_import): Allow newlines when reading cached
50866         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
50867
50868 2008-06-23  Bruno Haible  <bruno@clisp.org>
50869
50870         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
50871         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
50872         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
50873         m4/signalblocking.m4.
50874         (gl_PREREQ_SIGACTION): Don't invoke it.
50875         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
50876         gl_PREREQ_SIG_HANDLER_H.
50877         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
50878         Don't check for sigaction here.
50879
50880 2008-06-23  Bruno Haible  <bruno@clisp.org>
50881
50882         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
50883         (install_handlers): Don't set the SA_RESETHAND flag.
50884
50885 2008-06-23  Bruno Haible  <bruno@clisp.org>
50886
50887         * m4/sigaction.m4: Comment fixes.
50888         * lib/signal.in.h: Likewise.
50889
50890 2008-06-23  Eric Blake  <ebb9@byu.net>
50891
50892         Fix typo.
50893         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
50894
50895         Avoid SA_ namespace.
50896         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
50897         Reported by Ralf Wildenhues.
50898
50899         Avoid test failure due to SA_RESTORER.
50900         * tests/test-sigaction.c (SA_MASK): New macro.
50901         (main): Avoid failing due to extension flags being set.
50902         Reported by Jim Meyering.
50903
50904         Revert use of sig-handler.h in sigprocmask.c.
50905         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
50906         it requires the existence of struct sigaction.
50907         * lib/sigprocmask.c (handler_t): Restore typedef.
50908         (rpl_signal, old_handlers): Use local type.
50909
50910 2008-06-22  Bruno Haible  <bruno@clisp.org>
50911
50912         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
50913         conditionally.
50914         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50915
50916 2008-06-22  Bruno Haible  <bruno@clisp.org>
50917
50918         * doc/posix-functions/siginterrupt.texi: Move note.
50919
50920         * lib/signal.in.h (SA_RESTART): New macro.
50921         * lib/sigaction.c: Update comment.
50922
50923         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
50924
50925         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
50926         (gl_PREREQ_SIGPROCMASK): Invoke it.
50927         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
50928
50929         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
50930
50931         * lib/sigprocmask.c: Update a comment.
50932
50933 2008-06-21  Eric Blake  <ebb9@byu.net>
50934
50935         Use sigaction module rather than signal().
50936         * modules/c-stack (Depends-on): Add sigaction.
50937         * modules/fatal-signal (Depends-on): Likewise.
50938         * modules/nanosleep (Depends-on): Likewise.
50939         * modules/sigprocmask (Files): Add sig-handler.h.
50940         * modules/sigaction (Files): Likewise.
50941         * lib/sig-handler.h (get_handler): New file, suggested by Paul
50942         Eggert.
50943         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
50944         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
50945         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
50946         (init_fatal_signals): Likewise.
50947         * lib/nanosleep.c (rpl_nanosleep): Likewise.
50948         (siginterrupt): Delete fallback.
50949         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
50950         instead.
50951         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
50952         siginterrupt.
50953
50954         New module sigaction, for mingw.
50955         * modules/sigaction: New module...
50956         * modules/sigaction-tests: ...and its test.
50957         * m4/sigaction.m4: New file.
50958         * lib/sigaction.c: Likewise.
50959         * tests/test-sigaction.c: Likewise.
50960         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
50961         * modules/signal (Makefile.am): Likewise.
50962         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
50963         needed.
50964         * doc/posix-headers/signal.texi (signal.h): Mention provided
50965         types.
50966         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
50967         that sigaction is preferable.
50968         * doc/posix-functions/sigaction.texi (sigaction): Mention new
50969         module.
50970         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50971         sigaction.
50972
50973         Improve robustness of sigprocmask by overriding signal.
50974         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
50975         is in use.
50976         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
50977         (SIGKILL, SIGSTOP): Provide fallbacks.
50978         (rpl_signal): Implement.
50979         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
50980         signal can be called inside handlers.
50981
50982         Fix nanosleep module on mingw.
50983         * modules/nanosleep (Depends-on): Add sys_select.
50984         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
50985
50986         Fix licensing of sigprocmask.
50987         * modules/raise (License): Relicense as LGPL.
50988
50989 2008-06-21  Bruno Haible  <bruno@clisp.org>
50990
50991         * lib/propername.c (proper_name_utf8): Don't use the transliterated
50992         result if it contains question marks.
50993         Reported by Michael Geng <linux@michaelgeng.de>.
50994
50995 2008-06-19  Bruno Haible  <bruno@clisp.org>
50996
50997         Fix CVS-ism.
50998         * doc/gnulib.texi: Include updated-stamp.texi.
50999         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
51000         (updated-stamp.texi): New rule.
51001         (gnulib.info): Depend on it.
51002         * doc/.gitignore: Add updated-stamp.texi.
51003         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
51004
51005 2008-06-19  Bruno Haible  <bruno@clisp.org>
51006
51007         * doc/Makefile (gnulib.info): Update and simplify dependencies.
51008         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51009
51010 2008-06-19  Eric Blake  <ebb9@byu.net>
51011
51012         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
51013         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
51014         Reported by Stepan Kasal.
51015
51016 2008-06-18  Bruno Haible  <bruno@clisp.org>
51017
51018         * lib/fatal-signal.c (init_fatal_signals): Add comment.
51019         Reported by Eric Blake.
51020
51021 2008-06-18  Eric Blake  <ebb9@byu.net>
51022
51023         Work around cygwin 1.5.25 strsignal bug.
51024         * tests/test-strsignal.c: Allow for const char *.
51025         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
51026
51027 2008-06-18  Simon Josefsson  <simon@josefsson.org>
51028
51029         * users.txt: Update URL to article and add author/date
51030         information.
51031
51032 2008-06-17  Bruno Haible  <bruno@clisp.org>
51033
51034         New macro gl_DISABLE_THREADS.
51035         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
51036         if the user did not pass --enable-threads or --disable-threads option.
51037         (gl_DISABLE_THREADS): New macro.
51038         Reported by Eric Blake <ebb9@byu.net>.
51039
51040 2008-06-17  Bruno Haible  <bruno@clisp.org>
51041
51042         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
51043         when the macro ignores it.
51044         Based on a patch by Eric Blake <ebb9@byu.net>.
51045
51046 2008-06-17  Bruno Haible  <bruno@clisp.org>
51047
51048         * modules/tls (License): Change to LGPLv2+.
51049         Reported by Eric Blake.
51050
51051 2008-06-17  Eric Blake  <ebb9@byu.net>
51052
51053         Simplify c-stack prerequisites.
51054         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
51055         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
51056         no longer requires <ucontext.h> to exist.  Optimize setrlimit
51057         check.
51058         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
51059         <sys/resource.h>.
51060
51061         Move c-stack test into testsuite.
51062         * modules/c-stack-tests: New file.
51063         * lib/c-stack.c [DEBUG]: Move test program...
51064         * tests/test-c-stack.c: ...into this new file.  Skip rather than
51065         fail test if sigaltstack is lacking.
51066         * tests/test-c-stack.sh: New driver file.
51067
51068 2008-06-16  Eric Blake  <ebb9@byu.net>
51069
51070         Use raise module consistently.
51071         * modules/fatal-signal (Depends-on): Add raise.
51072         * modules/sigprocmask (Depends-on): Likewise.
51073         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
51074         * lib/sigprocmask.c (sigprocmask): Likewise.
51075         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
51076         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
51077
51078         Fix compliance bug in sigpending.
51079         * lib/sigprocmask.c (sigpending): Return pending array via
51080         parameter, not return value.
51081
51082 2008-06-14  Eric Blake  <ebb9@byu.net>
51083
51084         Improve obstack-printf test code.
51085         * tests/test-obstack-printf.c (test_function): Fix comment, and
51086         simplify usage of obstack_* in macros.  Add a test for coverage.
51087         Reported by Bruno Haible.
51088
51089 2008-06-14  Bruno Haible  <bruno@clisp.org>
51090
51091         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
51092         array size as a constant, not as a const variable.
51093         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
51094         AC_USE_SYSTEM_EXTENSIONS.
51095         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
51096         Test whether the obstack_printf function actually exists.
51097         * modules/obstack-printf (Depends-on): Add extensions.
51098         (Include): Remove obstack.h.
51099         * modules/obstack-printf-posix (Depends-on): Add extensions.
51100         (Include): Remove obstack.h.
51101
51102 2008-06-13  Eric Blake  <ebb9@byu.net>
51103
51104         Add obstack-printf and obstack-printf-posix modules.
51105         * modules/obstack-printf: New file.
51106         * modules/obstack-printf-posix: Likewise.
51107         * MODULES.html.sh (Misc): Mention them.
51108         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
51109         Likewise.
51110         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
51111         Likewise.
51112         * modules/stdio (Makefile.am): Accomodate new modules.
51113         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
51114         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
51115         Declare.
51116         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
51117         functions.
51118         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
51119         (gl_REPLACE_OBSTACK_PRINTF): New macros
51120         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
51121         * tests/test-obstack-printf.c: New file.
51122         * modules/obstack-printf-tests: Likewise.
51123         * modules/obstack-printf-posix-tests: Likewise.
51124
51125 2008-06-11  Bruno Haible  <bruno@clisp.org>
51126
51127         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
51128         * lib/open.c: Include errno.h.
51129         (open): Fail when attempting to write to a file that has a trailing
51130         slash.
51131         * tests/test-open.c (main): Test against trailing slash bug.
51132         * doc/posix-functions/open.texi: Mention the trailing slash bug.
51133
51134 2008-06-10  Bruno Haible  <bruno@clisp.org>
51135
51136         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
51137         for $? to work inside the trap command, with various /bin/sh-s.
51138         * tests/test-vc-list-files-cvs.sh: Likewise.
51139
51140 2008-06-10  Bruno Haible  <bruno@clisp.org>
51141
51142         * lib/acl-internal.h: Don't include gettext.h here.
51143         * lib/set-mode-acl.c: Include gettext.h here.
51144         * lib/copy-acl.c: Likewise.
51145
51146 2008-06-10  Bruno Haible  <bruno@clisp.org>
51147
51148         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
51149         * lib/wait-process.c (wait_subprocess): Likewise.
51150         * lib/execute.h (execute): Add termsigp argument.
51151         * lib/execute.c (execute): Likewise.
51152         * lib/csharpcomp.c (compile_csharp_using_pnet,
51153         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
51154         * lib/csharpexec.c (execute_csharp_using_pnet,
51155         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
51156         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
51157         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
51158         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
51159         is_jikes_present): Update.
51160         * lib/javaexec.c (execute_java_class): Update.
51161         * lib/javaversion.c (execute_and_read_line): Update.
51162         * NEWS: Document the changes.
51163         Reported by Eric Blake.
51164
51165 2008-06-10  Eric Blake  <ebb9@byu.net>
51166
51167         Add missing include.
51168         * tests/test-strstr.c (includes): Add <signal.h>.
51169         * tests/test-strcasestr.c (includes): Likewise.
51170         * tests/test-memmem.c (includes): Likewise.
51171
51172 2008-06-10  Bruno Haible  <bruno@clisp.org>
51173
51174         * lib/wait-process.c (wait_subprocess): Add an assertion.
51175
51176 2008-06-10  Bruno Haible  <bruno@clisp.org>
51177
51178         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
51179
51180 2008-06-10  Bruno Haible  <bruno@clisp.org>
51181
51182         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
51183         using alarm().
51184         * tests/test-strcasestr.c (main): Likewise.
51185         * tests/test-strstr.c (main): Likewise.
51186
51187 2008-06-09  Bruno Haible  <bruno@clisp.org>
51188
51189         Work around the Solaris 10 ACE ACLs ABI change.
51190         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
51191         declare if ACL_NO_TRIVIAL is present.
51192         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
51193         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
51194         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
51195         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
51196         define if ACL_NO_TRIVIAL is present.
51197         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
51198         and use the current ABI.
51199         (file_has_acl): Use same #if condition as elsewhere.
51200         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
51201         in use, and use the current ABI.
51202         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
51203         Reported by Jim Meyering.
51204
51205 2008-06-09  Eric Blake  <ebb9@byu.net>
51206
51207         Work around environments that (stupidly) ignore SIGALRM.
51208         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
51209         before using alarm().
51210         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
51211         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
51212         Reported by Ian Beckwith <ianb@erislabs.net>.
51213
51214         Produce autobuild blurb earlier in log.
51215         * modules/autobuild (configure.ac-early): Move AB_INIT here.
51216
51217 2008-06-09  Jim Meyering  <meyering@redhat.com>
51218         and OndÅ™ej Vašík  <ovasik@redhat.com>
51219
51220         utimens.c: correct kernel bug work-around
51221         OndÅ™ej Vašík found that the invalid return value of 280 indicates
51222         failure, not success, and the kernel bug we're trying to work
51223         around affects not just the utimensat call, but also the fallback
51224         futimens call.
51225         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
51226         not success.
51227         [HAVE_FUTIMENS]: Use the same work-around, here.
51228
51229 2008-06-09  Jim Meyering  <meyering@redhat.com>
51230
51231         add more guards around definition of ACE_-related code
51232         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
51233         ALLOW and ACE_OWNER are also defined.
51234
51235 2008-06-08  Bruno Haible  <bruno@clisp.org>
51236
51237         * lib/acl-internal.h: Add me as co-author.
51238         * lib/file-has-acl.c: Likewise.
51239         * lib/set-mode-acl.c: Likewise.
51240         * lib/copy-acl.c: Likewise.
51241
51242 2008-06-08  Bruno Haible  <bruno@clisp.org>
51243
51244         Add support for AIX ACLs.
51245         * lib/acl-internal.h (acl_nontrivial): New declaration.
51246         * lib/file-has-acl.c (acl_nontrivial): New function.
51247         (file_has_acl): Add implementation using AIX 4 ACL API.
51248         * lib/set-mode-acl.c (qset_acl): Likewise.
51249         * lib/copy-acl.c (qcopy_acl): Likewise.
51250
51251 2008-06-08  Bruno Haible  <bruno@clisp.org>
51252
51253         Add support for HP-UX ACLs.
51254         * lib/acl-internal.h (acl_nontrivial): New declaration.
51255         * lib/file-has-acl.c (acl_nontrivial): New function.
51256         (file_has_acl): Add implementation using HP-UX 11 ACL API.
51257         * lib/set-mode-acl.c (qset_acl): Likewise.
51258         * lib/copy-acl.c (qcopy_acl): Likewise.
51259
51260 2008-06-08  Bruno Haible  <bruno@clisp.org>
51261
51262         Add support for Cygwin ACLs.
51263         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
51264         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
51265         the chmod_or_fchmod call.
51266         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
51267
51268 2008-06-08  Bruno Haible  <bruno@clisp.org>
51269
51270         Fix bug with setuid modes in Solaris 10+ code.
51271         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
51272         succeeded, when the mode contains some special bits.
51273
51274 2008-06-08  Bruno Haible  <bruno@clisp.org>
51275
51276         Add support for Solaris 7..10 ACLs.
51277         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
51278         declarations.
51279         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
51280         functions.
51281         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
51282         * lib/set-mode-acl.c (qset_acl): Likewise.
51283         * lib/copy-acl.c (qcopy_acl): Likewise.
51284
51285 2008-06-08  Bruno Haible  <bruno@clisp.org>
51286
51287         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
51288         declaration.
51289         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
51290         (acl_access_nontrivial): Remove MacOS X case.
51291         (file_has_acl): Use acl_extended_nontrivial.
51292         * lib/copy-acl.c (qcopy_acl): Likewise.
51293
51294 2008-06-08  Bruno Haible  <bruno@clisp.org>
51295
51296         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
51297
51298 2008-06-08  Jim Meyering  <meyering@redhat.com>
51299
51300         * modules/acl (Maintainer): Add Bruno Haible.
51301
51302 2008-06-07  Bruno Haible  <bruno@clisp.org>
51303
51304         Improve support for Tru64 ACLs.
51305         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
51306         ACL on OSF/1.
51307
51308 2008-06-07  Bruno Haible  <bruno@clisp.org>
51309
51310         Add support for MacOS X ACLs.
51311         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
51312         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
51313         * lib/set-mode-acl.c (qset_acl): Likewise.
51314         * lib/copy-acl.c (qcopy_acl): Likewise.
51315
51316 2008-06-07  Bruno Haible  <bruno@clisp.org>
51317
51318         Fix memory leak introduced on 2008-05-22.
51319         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
51320         use.
51321
51322 2008-06-07  Bruno Haible  <bruno@clisp.org>
51323
51324         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
51325         to construct an empty ACL.
51326
51327 2008-06-07  Bruno Haible  <bruno@clisp.org>
51328
51329         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
51330         precisely.
51331         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
51332
51333 2008-06-07  Bruno Haible  <bruno@clisp.org>
51334
51335         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
51336         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
51337
51338 2008-06-07  Bruno Haible  <bruno@clisp.org>
51339
51340         * doc/posix-functions/_setjmp.texi: Explain the use of this function
51341         regardless of POSIX.
51342         * doc/posix-functions/_longjmp.texi: Likewise.
51343         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
51344         SystemV platform in this case.
51345
51346 2008-06-06  Eric Blake  <ebb9@byu.net>
51347
51348         Document abort() bugs.
51349         * doc/posix-functions/abort.texi (abort): Mention anomalies.
51350
51351         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
51352         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
51353         sigsetjmp.
51354         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
51355         siglongjmp, but only as a macro.
51356         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
51357         is obsolete.
51358         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
51359
51360         Tweak documentation to cover cygwin argz bugs.
51361         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
51362         argz bug fix; no code change needed since no cygwin releases
51363         occurred between the last fix and the bug being tested.
51364         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
51365         module and recently fixed cygwin bugs.
51366         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
51367         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
51368         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
51369         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
51370         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
51371         Likewise.
51372         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
51373         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
51374         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
51375         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
51376         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
51377         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
51378         Likewise.
51379
51380         Avoid gcc warning on cygwin.
51381         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
51382         !ACL_NO_TRIVIAL]: Avoid unused variable.
51383
51384 2008-06-05  Eric Blake  <ebb9@byu.net>
51385
51386         Be tolerant of UNKNOWN version in gnulib-tool test dir.
51387         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
51388         git-version-gen fails to come up with a version.
51389         Reported by Simon Josefsson.
51390
51391 2008-06-05  Jim Meyering  <meyering@redhat.com>
51392             Paul Eggert  <eggert@cs.ucla.edu>
51393
51394         utimens.c: work around a probable Linux kernel bug
51395         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
51396         appears to be a kernel bug that causes utimensat to return 280
51397         instead of 0, indicating success.
51398
51399 2008-06-04  Bruno Haible  <bruno@clisp.org>
51400
51401         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
51402         2008-06-01 commit.
51403
51404 2008-06-04  Bruno Haible  <bruno@clisp.org>
51405
51406         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
51407         * lib/file-has-acl.c (acl_access_nontrivial): New function.
51408         (file_has_acl): Use it. Save errno afterwards.
51409         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
51410
51411 2008-06-03  Bruno Haible  <bruno@clisp.org>
51412
51413         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
51414         draft code. Simplify #ifs.
51415         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
51416         Put Solaris code after POSIX-draft code. Fix comments regarding
51417         Solaris 10, HP-UX. Mention Cygwin.
51418         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
51419
51420 2008-06-03  Eric Blake  <ebb9@byu.net>
51421
51422         Provide fallback for older kernels.
51423         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
51424         Provide runtime fallback if kernel lacks support.
51425         Reported by Mike Frysinger.
51426
51427 2008-06-02  Bruno Haible  <bruno@clisp.org>
51428
51429         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
51430         it exists.
51431
51432 2008-06-02  Bruno Haible  <bruno@clisp.org>
51433
51434         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
51435         * lib/copy-acl.c (qcopy_acl): Update comment.
51436
51437 2008-06-02  Bruno Haible  <bruno@clisp.org>
51438
51439         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
51440         like ACL APIs.
51441
51442 2008-06-02  Bruno Haible  <bruno@clisp.org>
51443
51444         * tests/test-file-has-acl.sh: Use different code for Cygwin.
51445         * tests/test-set-mode-acl.sh: Likewise.
51446         * tests/test-copy-acl.sh: Likewise.
51447         * tests/test-copy-file.sh: Likewise.
51448
51449 2008-06-02  Bruno Haible  <bruno@clisp.org>
51450
51451         * tests/test-file-has-acl.sh: Remove unused code.
51452
51453 2008-06-01  Bruno Haible  <bruno@clisp.org>
51454
51455         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
51456         (copy_acl): Just a wrapper around qcopy_acl that emits the error
51457         messages.
51458         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
51459
51460 2008-06-01  Bruno Haible  <bruno@clisp.org>
51461
51462         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
51463         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
51464         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
51465         APIs.
51466         * modules/acl-tests (configure.ac): Remove tests now contained in
51467         m4/acl.m4.
51468
51469 2008-06-02  Jim Meyering  <meyering@redhat.com>
51470
51471         announce-gen: use a better key-server host name
51472         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
51473         it may be more consistently reliable.  Suggested by Werner Koch
51474         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
51475
51476 2008-06-01  Bruno Haible  <bruno@clisp.org>
51477
51478         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
51479         Reported by Voroskoi Andras <voroskoi@gmail.com>.
51480
51481 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
51482
51483         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
51484
51485 2008-06-01  Bruno Haible  <bruno@clisp.org>
51486
51487         New ACL tests.
51488         * tests/test-file-has-acl.sh: New file.
51489         * tests/test-file-has-acl.c: New file.
51490         * tests/test-set-mode-acl.sh: New file.
51491         * tests/test-set-mode-acl.c: New file.
51492         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
51493         * tests/test-copy-acl.c: New file.
51494         * modules/acl-tests: New file, based on modules/copy-file-tests.
51495         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
51496         (Depends-on): Add acl-tests.
51497         (configure.ac): Remove checks.
51498         (Makefile.am): Don't create test-sameacls program here any more.
51499
51500 2008-06-01  Bruno Haible  <bruno@clisp.org>
51501
51502         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
51503         * tests/test-sameacls.c: Include progname.h.
51504         (main): Invoke set_program_name. Portability fixes for MacOS X,
51505         Solaris, HP-UX.
51506
51507 2008-06-01  Bruno Haible  <bruno@clisp.org>
51508
51509         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
51510         function.
51511         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
51512
51513 2008-06-01  Bruno Haible  <bruno@clisp.org>
51514
51515         * modules/rpmatch (Depends-on): Add strdup.
51516
51517 2008-06-01  Bruno Haible  <bruno@clisp.org>
51518
51519         * lib/pipe.c: Include unistd-safer.h.
51520         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
51521         * modules/pipe (Depends-on): Add unistd-safer.
51522
51523 2008-05-30  Simon Josefsson  <simon@josefsson.org>
51524
51525         * modules/autobuild (configure.ac): Call AB_INIT.
51526
51527 2008-05-30  Simon Josefsson  <simon@josefsson.org>
51528
51529         * tests/test-getaddrinfo.c: Don't print debug messages by default.
51530         Suggested by Bruno Haible <bruno@clisp.org>.
51531
51532 2008-05-30  Simon Josefsson  <simon@josefsson.org>
51533
51534         * tests/test-base64.c: Cast size_t to unsigned long when invoking
51535         printf.  Use %lu instead of %d.  Reported by Bruno Haible
51536         <bruno@clisp.org>.
51537
51538 2008-05-29  Eric Blake  <ebb9@byu.net>
51539
51540         Prefer new POSIX 200x interfaces over futimesat.
51541         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
51542         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
51543         when available.
51544         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
51545
51546 2008-05-28  Bruno Haible  <bruno@clisp.org>
51547
51548         * modules/stpcpy (License): Change to LGPLv2+.
51549         Requested by David Lutterkort <dlutter@redhat.com>.
51550
51551 2008-05-27  Bruno Haible  <bruno@clisp.org>
51552
51553         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
51554         current mingw.
51555         Reported by Jose E. Marchesi <jemarch@gnu.org>.
51556
51557 2008-05-27  Bruno Haible  <bruno@clisp.org>
51558
51559         * modules/iconv_open (Link): New section, from module 'iconv'.
51560         * modules/striconv (Link): Likewise.
51561         * modules/striconveh (Link): Likewise.
51562         * modules/xstriconv (Link): Likewise.
51563         * modules/unicodeio (Link): Likewise.
51564         * modules/propername (Link): Likewise.
51565         Reported by Jim Meyering.
51566
51567 2008-05-26  Jim Meyering  <meyering@redhat.com>
51568
51569         sha256: do not artificially restrict buffer length to be < 2^32
51570         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
51571         uint32_t to size_t.
51572         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
51573         to match.
51574
51575         avoid unaligned access errors, e.g., on sparc
51576         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
51577         direct access through a possibly-unaligned uint64* pointer.
51578         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
51579         direct access through a possibly-unaligned uint32* pointer.
51580         Prompted by this patch from Tom "spot" Callaway:
51581         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
51582
51583         sha512.c: fix typo in comment
51584         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
51585
51586 2008-05-25  Bruno Haible  <bruno@clisp.org>
51587
51588         * lib/set-mode-acl.c: Renamed from lib/acl.c.
51589         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
51590         (Makefile.am): Update lib_SOURCES.
51591
51592 2008-05-25  Bruno Haible  <bruno@clisp.org>
51593
51594         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
51595
51596 2008-05-25  Jim Meyering  <meyering@redhat.com>
51597
51598         useless-if-before-free: freed expr may have white-space differences
51599         * build-aux/useless-if-before-free: Recognize cases in which the
51600         freed expression differs from the tested one in embedded white
51601         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
51602         $1 was used, so we can't make any regexp shy.  Improved tests now
51603         detect this.
51604
51605         useless-if-before-free: accept white space in the expression.
51606         * build-aux/useless-if-before-free: For now, any white space
51607         in the expression must be identical in the free argument.
51608
51609         useless-if-before-free: efficiency tweak
51610         * build-aux/useless-if-before-free: Make the expression-matching
51611         regexp "shy".
51612         Make the *outer* regexp shy, not the expr-matching one.
51613
51614         update code-in-comment to accept cast of free arg
51615         * build-aux/useless-if-before-free: Update regexp.
51616
51617 2008-05-25  Bruno Haible  <bruno@clisp.org>
51618
51619         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
51620         * modules/copy-file-tests (Files, Makefile.am): Update.
51621         * tests/test-copy-file.c (func_test_copy): Update.
51622
51623 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
51624
51625         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
51626
51627 2008-05-23  Bruno Haible  <bruno@clisp.org>
51628
51629         Improve support for ACLs on OSF/1.
51630         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
51631         Remove fallback for unknown flavors of ACLs.
51632
51633 2008-05-22  Bruno Haible  <bruno@clisp.org>
51634
51635         Add support for ACLs on OSF/1.
51636         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
51637         replacements.
51638         (acl_free_text): New macro fallback.
51639         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
51640         acl_free.
51641         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
51642         acl_free_text function. Require AC_C_INLINE.
51643
51644 2008-05-22  Bruno Haible  <bruno@clisp.org>
51645
51646         Make copy_acl work on MacOS X 10.5.
51647         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
51648         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
51649         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
51650         If MODE_INSIDE_ACL, don't assume that every system has the same text
51651         representation for ACLs as FreeBSD.
51652         * lib/copy-acl.c (copy_acl): Add support for platforms with
51653         !MODE_INSIDE_ACL.
51654         * lib/file-has-acl.c (file_has_acl): Likewise.
51655         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
51656         FreeBSD, MacOS X, or IRIX, respectively.
51657
51658 2008-05-22  Bruno Haible  <bruno@clisp.org>
51659
51660         * lib/acl.h: Don't include <sys/acl.h>.
51661         (GETACLCNT): Move fallback to lib/acl-internal.h.
51662         * lib/acl-internal.h: Include <sys/acl.h> here.
51663         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
51664
51665 2008-05-22  Bruno Haible  <bruno@clisp.org>
51666
51667         Split off copy_acl function to separate file.
51668         * lib/copy-acl.c: New file, extracted from lib/acl.c.
51669         * lib/acl.c (copy_acl): Moved function to separate file.
51670         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
51671         * modules/acl (Files): Add lib/copy-acl.c.
51672         (Makefiles.am): Augment lib_SOURCES.
51673
51674 2008-05-22  Bruno Haible  <bruno@clisp.org>
51675
51676         * modules/copy-file-tests: New file.
51677         * tests/test-copy-file.sh: New file.
51678         * tests/test-copy-file.c: New file.
51679         * tests/test-copy-file-sameacls.c: New file.
51680
51681 2008-05-22  Eric Blake  <ebb9@byu.net>
51682
51683         Avoid gcc warning.
51684         * tests/test-memcmp.c (main): Pass NULL indirectly.
51685
51686 2008-05-21  Bruno Haible  <bruno@clisp.org>
51687
51688         Add reference doc about ACLs.
51689         * doc/acl-resources.txt: New file.
51690         * doc/acl-cygwin.txt: New file.
51691
51692 2008-05-21  Bruno Haible  <bruno@clisp.org>
51693
51694         Avoid one more warning from gcc.
51695         * lib/vasnprintf.c (IF_LINT): Update comments.
51696         (VASNPRINTF): Use it also for the 'prefix' array initializer.
51697
51698 2008-05-21  Jim Meyering  <meyering@redhat.com>
51699
51700         avoid a warning from gcc
51701         * lib/vasnprintf.c (IF_LINT): Define.
51702         (scale10_round_decimal_long_double):
51703         Use it to avoid a "may be used uninitialized" warning.
51704         (scale10_round_decimal_double): Likewise.
51705
51706 2008-05-21  Simon Josefsson  <simon@josefsson.org>
51707
51708         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
51709         declared.
51710
51711 2008-05-20  Bruno Haible  <bruno@clisp.org>
51712
51713         * tests/test-memcmp.c (main): Test also the sign of the result. Test
51714         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
51715
51716 2008-05-20  Simon Josefsson  <simon@josefsson.org>
51717
51718         * modules/memcmp-tests: New file.
51719         * tests/test-memcmp.c: New file.
51720
51721 2008-05-19  Bruno Haible  <bruno@clisp.org>
51722
51723         * modules/propername (Notice, configure.ac): Put quoted "..." into
51724         --keyword option.
51725         * lib/propername.h: Update comments accordingly.
51726         Reported by Eric Blake.
51727
51728 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
51729
51730         * modules/getpass-gnu (Depends-on): Add fseeko.
51731
51732 2008-05-19  Simon Josefsson  <simon@josefsson.org>
51733
51734         * modules/base64-tests: New file.
51735
51736 2008-05-19  Bo Borgerson <gigabo@gmail.com>
51737
51738         * lib/base64.c (base64_decode_ctx): If a decode context structure
51739         was passed in use it to ignore newlines.  If a context structure
51740         was _not_ passed in, continue to treat newlines as garbage (this
51741         is the historical behavior).  Formerly base64_decode.
51742         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
51743         takes a decode context structure.
51744         * lib/base64.h (base64_decode): Macro for four-argument calls.
51745         (base64_decode_alloc): Likewise.
51746         * lib/base64.c (base64_decode_ctx): If a decode context structure
51747         was passed in use it to ignore newlines.  If a context structure
51748         was _not_ passed in, continue to treat newlines as garbage (this
51749         is the historical behavior).  Formerly base64_decode.
51750         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
51751         takes a decode context structure.
51752         * lib/base64.h (base64_decode): Macro for four-argument calls.
51753         (base64_decode_alloc): Likewise.
51754
51755 2008-05-19  Jim Meyering  <meyering@redhat.com>
51756
51757         avoid a warning from gcc
51758         * lib/trim.c (IF_LINT): Define.
51759         (trim2): Use it to avoid a "may be used uninitialized" warning.
51760
51761         Fix doc typo.
51762         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
51763
51764 2008-05-19  Bruno Haible  <bruno@clisp.org>
51765
51766         * doc/glibc-functions/getpass.texi: Document limits of other
51767         implementations.
51768
51769 2008-05-19  Simon Josefsson  <simon@josefsson.org>
51770             Bruno Haible <bruno@clisp.org>
51771
51772         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
51773
51774 2008-05-18  Bruno Haible  <bruno@clisp.org>
51775
51776         * modules/propername: New file, from GNU gettext.
51777         * lib/propername.h: New file, from GNU gettext.
51778         * lib/propername.c: New file, from GNU gettext.
51779         * MODULES.html.sh (Internationalization functions): Add propername.
51780
51781 2008-05-16  Jim Meyering  <meyering@redhat.com>
51782             Bruno Haible  <bruno@clisp.org>
51783
51784         Avoid some warnings from "gcc -Wshadow".
51785         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
51786
51787 2008-05-15  Eric Blake  <ebb9@byu.net>
51788
51789         Extend previous patch to cygwin 1.7.0.
51790         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
51791         fast implementation in cygwin >= 1.7.0.
51792         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
51793         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
51794
51795 2008-05-15  Bruno Haible  <bruno@clisp.org>
51796
51797         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
51798         implementation in glibc >= 2.9.
51799         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
51800         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
51801
51802 2008-05-15  Bruno Haible  <bruno@clisp.org>
51803
51804         * MODULES.html.sh (Internationalization functions): Remove linebreak.
51805         (Unicode string functions): Add unilbrk/*.
51806         Reported by Karl Berry.
51807
51808 2008-05-15  Eric Blake  <ebb9@byu.net>
51809
51810         Fix violation of <stdbool.h> replacement in regex.
51811         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
51812         * lib/regexec.c (re_search_internal): Likewise.
51813         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
51814
51815 2008-05-15  Jim Meyering  <meyering@redhat.com>
51816
51817         avoid distracting test output when git or cvs is not found
51818         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
51819         * tests/test-vc-list-files-git.sh: Likewise.
51820
51821 2008-05-15  Eric Blake  <ebb9@byu.net>
51822
51823         Glibc finally accepted the memmem speedup code, bugzilla #5514.
51824         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
51825         glibc version.
51826         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
51827         * doc/posix-functions/strstr.texi (strstr): Likewise.
51828         * lib/str-two-way.h (MAX): Sychronize with glibc.
51829
51830 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
51831
51832         * lib/regcomp.c (optimize_utf8): Add a note on why we test
51833         opr.ctx_type.
51834         (calc_first): Initialize constraint field.
51835         (duplicate_node_closure): Use it instead of special casing ANCHORS.
51836         Fix grammar.
51837         (duplicate_node): Merge constraint field for all node types.
51838         (calc_eclosure_iter): Look at constraint field for all node types.
51839         * lib/regex_internal.c (create_cd_newstate): Don't look at
51840         opr.ctx_type.
51841
51842 2008-05-14  Bruno Haible  <bruno@clisp.org>
51843
51844         Help GCC to do better code generation.
51845         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
51846         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
51847         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
51848         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
51849         Declare with attribute 'malloc' if supported.
51850
51851 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
51852
51853         use "echo STR|wc -c" rather than unportable "expr length STR"
51854         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
51855         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
51856
51857 2008-05-14  Jim Meyering  <meyering@redhat.com>
51858
51859         use dd ibs=$n count=1 ... rather than less-portable head -c$n
51860         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
51861         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
51862         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
51863         via Collin Lasse.
51864
51865 2008-05-14  Eric Blake  <ebb9@byu.net>
51866
51867         Avoid quadratic growth in gl_LIBSOURCES.
51868         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
51869         Suggested by Bruno Haible.
51870
51871         Test xmemdup0.
51872         * modules/xmemdup0-tests: New file.
51873         * tests/test-xmemdup0.c: Likewise.
51874
51875 2008-05-13  Eric Blake  <ebb9@byu.net>
51876
51877         Split xmemdup0 into its own module.
51878         * modules/xmemdup0: New file.
51879         * lib/xmemdup0.h: Likewise.
51880         * lib/xmemdup0.c: Likewise.
51881         * MODULES.html.sh (Memory management functions): Add xmemdup0.
51882         * lib/xalloc.h (xmemdup0): Remove.
51883         * lib/xmalloc.c (xmemdup0): Likewise.
51884
51885 2008-05-13  Eric Blake  <ebb9@byu.net>
51886             Bruno Haible  <bruno@clisp.org>
51887
51888         Reduce number of forks required during autoconf.
51889         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
51890         and gl_LIBSOURCES_DIR.
51891         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
51892         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
51893         m4_syscmd per file.
51894         <m4_foreach_w>: Move...
51895         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
51896
51897 2008-05-13  Eric Blake  <ebb9@byu.net>
51898
51899         * gnulib-tool: Fix various comment typos.
51900
51901 2008-05-12  Bruno Haible  <bruno@clisp.org>
51902
51903         Tailor the linebreaking algorithm.
51904         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
51905
51906 2008-05-12  Bruno Haible  <bruno@clisp.org>
51907
51908         Update to Unicode 5.0.0.
51909         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
51910         LBP_JV, LBP_JT. Redistribute values.
51911         (unilbrk_table): Change size.
51912         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
51913         Unicode TR#14 rev. 22.
51914         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
51915         LBP_JV, LBP_JT. Redistribute values.
51916         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
51917         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
51918         Update.
51919         * lib/unilbrk/lbrkprop1.h: Regenerated.
51920         * lib/unilbrk/lbrkprop2.h: Regenerated.
51921         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
51922         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
51923         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
51924         Likewise.
51925         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
51926         Likewise.
51927         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
51928         result.
51929         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
51930         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
51931         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
51932         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
51933         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
51934         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
51935
51936 2008-05-11  Bruno Haible  <bruno@clisp.org>
51937
51938         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
51939
51940 2008-05-11  Bruno Haible  <bruno@clisp.org>
51941
51942         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
51943         * modules/unilbrk/gen-lbrk: New file.
51944
51945 2008-05-11  Bruno Haible  <bruno@clisp.org>
51946
51947         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
51948         * m4/sha512.m4 (gl_SHA512): Likewise.
51949
51950 2008-05-11  Jim Meyering  <meyering@redhat.com>
51951
51952         New modules: crypto/sha256, crypto/sha512 (from coreutils)
51953         * modules/crypto/sha256: New file.
51954         * modules/crypto/sha512: Likewise.
51955         * lib/sha256.c: Likewise.
51956         * lib/sha256.h: Likewise.
51957         * lib/sha512.c: Likewise.
51958         * lib/sha512.h: Likewise.
51959         * lib/u64.h: Likewise.
51960         * m4/sha256.m4: Likewise.
51961         * m4/sha512.m4: Likewise.
51962         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
51963
51964 2008-05-10  Bruno Haible  <bruno@clisp.org>
51965
51966         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
51967         (Input/Output <stdio.h>): Add xprintf.
51968         (Signal handling <signal.h>): Add strsignal.
51969         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
51970         (Core language properties): Add func.
51971         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
51972         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
51973         strings.
51974         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
51975         (Input/output): New section.
51976         (File system functions): Add openat-die, stat-macros.
51977         (Networking functions): Add sockets.
51978         (Unicode string functions): Add unictype/*.
51979         (Support for building libraries and executables): Add gperf.
51980         (Support for building documentation): Add agpl-3.0.
51981         (Misc): Add nocrash.
51982
51983 2008-05-10  Bruno Haible  <bruno@clisp.org>
51984
51985         * modules/unictype/gen-ctype: New file.
51986
51987 2008-05-10  Jim Meyering  <meyering@redhat.com>
51988
51989         Make chdir-safer.c more efficient on a system with no symlinks.
51990         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
51991         also if ELOOP is zero.  Suggested by Bruno Haible.
51992
51993         Make chdir-safer.c slightly safer.
51994         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
51995         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
51996
51997         Avoid compile failure on systems without ELOOP (like mingw).
51998         * lib/chdir-safer.c (ELOOP): Define if not already defined.
51999         Reported by Bruno Haible.
52000
52001 2008-05-10  Bruno Haible  <bruno@clisp.org>
52002
52003         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
52004         (is_utf8_encoding): Use a case-insensitive comparison.
52005         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
52006         streq.
52007
52008 2008-05-10  Bruno Haible  <bruno@clisp.org>
52009
52010         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
52011         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
52012         * lib/unilbrk/ulc-common.h (iconv_string_length,
52013         iconv_string_keeping_offsets): Remove declarations.
52014         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
52015         Don't include <iconv.h>, streq.h, xsize.h.
52016         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
52017         conversion.
52018         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
52019         <iconv.h>, streq.h, xsize.h.
52020         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
52021         conversion.
52022         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
52023         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
52024         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
52025         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
52026
52027 2008-05-10  Bruno Haible  <bruno@clisp.org>
52028
52029         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
52030         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
52031
52032         * modules/unilbrk/u32-width-linebreaks-tests: New file.
52033         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
52034
52035         * modules/unilbrk/u16-width-linebreaks-tests: New file.
52036         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
52037
52038         * modules/unilbrk/u8-width-linebreaks-tests: New file.
52039         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
52040
52041         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
52042         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
52043
52044         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
52045         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
52046
52047         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
52048         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
52049
52050         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
52051         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
52052
52053 2008-05-10  Bruno Haible  <bruno@clisp.org>
52054
52055         Split up 'linebreak' module.
52056         * lib/unilbrk.h: New file, based on lib/linebreak.h.
52057         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
52058         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
52059         modifications.
52060         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
52061         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
52062         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
52063         lib/linebreak.c.
52064         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
52065         lib/linebreak.c.
52066         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
52067         lib/linebreak.c.
52068         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
52069         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
52070         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
52071         lib/linebreak.c.
52072         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
52073         lib/linebreak.c.
52074         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
52075         lib/linebreak.c.
52076         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
52077         lib/linebreak.c.
52078         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
52079         lib/linebreak.c.
52080         * modules/unilbrk/base: New file.
52081         * modules/unilbrk/tables: New file.
52082         * modules/unilbrk/u8-possible-linebreaks: New file.
52083         * modules/unilbrk/u16-possible-linebreaks: New file.
52084         * modules/unilbrk/u32-possible-linebreaks: New file.
52085         * modules/unilbrk/ulc-common: New file.
52086         * modules/unilbrk/ulc-possible-linebreaks: New file.
52087         * modules/unilbrk/u8-width-linebreaks: New file.
52088         * modules/unilbrk/u16-width-linebreaks: New file.
52089         * modules/unilbrk/u32-width-linebreaks: New file.
52090         * modules/unilbrk/ulc-width-linebreaks: New file.
52091         * lib/linebreak.h: Remove file.
52092         * lib/linebreak.c: Remove file.
52093         * m4/linebreak.m4: Remove file.
52094         * modules/linebreak: Remove file.
52095         * NEWS: Mention the changes.
52096
52097 2008-05-09  Eric Blake  <ebb9@byu.net>
52098
52099         Add xmemdup0.
52100         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
52101         implementation.
52102         * lib/xmalloc.c (xmemdup0): New C implementation.
52103
52104 2008-05-08  Bruno Haible  <bruno@clisp.org>
52105
52106         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
52107
52108 2008-05-07  Eric Blake  <ebb9@byu.net>
52109
52110         Support cross-compilation of <wctype.h>.
52111         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
52112         AC_CACHE_CHECK.
52113
52114 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
52115
52116         * build-aux/vc-list-files: Add support for bzr.
52117
52118 2008-05-03  Jim Meyering  <meyering@redhat.com>
52119
52120         avoid failed assertion with tight malloc
52121         * tests/test-getndelim2.c: Correct an off-by-one assertion.
52122
52123 2008-05-03  Simon Josefsson  <simon@josefsson.org>
52124
52125         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
52126         are needed from arpa/inet.h.
52127         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
52128         Reported by Bruno Haible.
52129
52130 2008-05-02  Jim Meyering  <meyering@redhat.com>
52131
52132         avoid compilation error on FreeBSD 6
52133         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
52134
52135 2008-05-01  Jim Meyering  <meyering@redhat.com>
52136
52137         useless-if-before-free: correct --help's exit status description
52138         * build-aux/useless-if-before-free (usage): Like grep, exit 0
52139         for one or more matches, etc.  Reported by Bruno Haible.
52140
52141         vc-list-files: make the stand-alone gnulib test work
52142         * modules/vc-list-files-tests (configure.ac):
52143         Define and AC_SUBST abs_aux_dir.
52144         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
52145         $(abs_top_srcdir) to each script and having each of them
52146         duplicate the work of setting PATH, set PATH here, using
52147         the new variable, abs_aux_dir instead.
52148         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
52149         * tests/test-vc-list-files-git.sh: Likewise.
52150         Reported by Bruno Haible.
52151
52152 2008-05-01  Bruno Haible  <bruno@clisp.org>
52153
52154         * lib/getndelim2.c (getndelim2): Fix newsize computation during
52155         reallocation. Rename 'done' to 'found_delimiter'.
52156
52157 2008-05-01  Jim Meyering  <meyering@redhat.com>
52158
52159         vc-list-files: accommodate /bin/sh like the one from Solaris 10
52160         * build-aux/vc-list-files: Use `...`, not $(...).
52161
52162 2008-04-30  Jim Meyering  <meyering@redhat.com>
52163
52164         add tests for vc-list-files
52165         * modules/vc-list-files-tests: New module.
52166         * tests/test-vc-list-files-cvs.sh: New file.
52167         * tests/test-vc-list-files-git.sh: New file.
52168
52169         avoid a warning from gcc
52170         * lib/getndelim2.c (IF_LINT): Define.
52171         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
52172
52173         vc-list-files: work properly with build-aux/cvsu, too
52174         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
52175         to all cvs-based clauses.
52176
52177         vc-list-files: work properly in the CVS+awk case, too
52178         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
52179
52180         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
52181         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
52182         take more than one file argument, so .  Add quotes, just in case $dir
52183         ever contains a shell meta-character.  Prompted by Soren Hansen in
52184         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
52185
52186 2008-04-29  Eric Blake  <ebb9@byu.net>
52187
52188         Optimize getndelim2 to use block operations when possible.
52189         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
52190         freadseek, and memchr2.
52191         * lib/getndelim2.c (getndelim2): Use them for block reads.
52192
52193 2008-04-29  Bruno Haible  <bruno@clisp.org>
52194
52195         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
52196         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
52197         * modules/inet_ntop (Depends-on): Add extensions.
52198         * modules/inet_pton (Depends-on): Likewise.
52199         Reported by Simon Josefsson.
52200
52201 2008-04-29  Jim Meyering  <meyering@redhat.com>
52202
52203         When the is more than one match in a block, match all of them.
52204         * build-aux/useless-if-before-free: Iterate through each block
52205         until there are no more matches.
52206
52207         Fix broken useless-if-before-free script.
52208         * build-aux/useless-if-before-free: Fix typo: missing "?" after
52209         the expression to match cast of argument to free-like function.
52210
52211 2008-04-29  Eric Blake  <ebb9@byu.net>
52212
52213         Use new header.
52214         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
52215
52216 2008-04-29  Jim Meyering  <meyering@redhat.com>
52217
52218         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
52219         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
52220         by gnulib to exist and to declare e.g., inet_ntop.
52221         Don't include "inet_ntop.h", now removed.
52222
52223         * m4/arpa_inet_h.m4: Remove trailing blanks.
52224
52225 2008-04-29  Eric Blake  <ebb9@byu.net>
52226
52227         Silence valgrind on safe reads beyond potential array bounds.
52228         * lib/rawmemchr.valgrind: New file.
52229         * lib/strchrnul.valgrind: Likewise.
52230         * modules/rawmemchr (Files): Distribute new file.
52231         * modules/strchrnul (Files): Likewise.
52232         Suggested by Bruno Haible.
52233
52234 2008-04-29  Bruno Haible  <bruno@clisp.org>
52235
52236         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
52237         (inet_ntop, inet_pton): Change portability warning's wording.
52238         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
52239         Invoke gl_CHECK_NEXT_HEADERS.
52240         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
52241         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
52242         set ARPA_INET_H.
52243         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
52244         * modules/arpa_inet (Description): No longer only for systems that
52245         lack it.
52246         (Depends-on): Add include_next.
52247         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
52248         HAVE_ARPA_INET_H.
52249
52250 2008-04-29  Jim Meyering  <meyering@redhat.com>
52251
52252         * modules/mkdir (License): Re-license as LGPLv2+.
52253
52254 2008-04-29  Bruno Haible  <bruno@clisp.org>
52255
52256         * modules/rawmemchr (Maintainer): Set to Eric.
52257         * modules/strchrnul (Maintainer): Likewise.
52258
52259 2008-04-29  Simon Josefsson  <simon@josefsson.org>
52260
52261         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
52262         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
52263
52264         * modules/arpa_inet (arpa/inet.h): Use them.
52265
52266 2008-04-28  Eric Blake  <ebb9@byu.net>
52267
52268         Test getndelim2.
52269         * modules/getndelim2-tests: New file.
52270         * tests/test-getndelim2.c: Likewise.
52271         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
52272         stream.
52273         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
52274
52275         * MODULES.html.sh: Document new module.
52276
52277 2008-04-20  Bruno Haible  <bruno@clisp.org>
52278
52279         * lib/c-stack.c (die): Use raise.
52280         * modules/c-stack (Depends-on): Add raise.
52281
52282 2008-04-28  Bruno Haible  <bruno@clisp.org>
52283
52284         Expect rpmatch to be declared.
52285         * lib/yesno.c (rpmatch): Remove declaration.
52286
52287         Declare rpmatch.
52288         * lib/stdlib.in.h (rpmatch): New declaration.
52289         * lib/rpmatch.c: Include <stdlib.h> first.
52290         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
52291         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
52292         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
52293         HAVE_RPMATCH.
52294         * modules/rpmatch (Depends-on): Add stdlib, extensions.
52295         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52296         (Include): Set to <stdlib.h>.
52297         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
52298         HAVE_RPMATCH.
52299         * NEWS: Document the change.
52300
52301 2008-04-28  Bruno Haible  <bruno@clisp.org>
52302
52303         Change rpmatch to use nl_langinfo when appropriate.
52304         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
52305         (N_): New macro.
52306         (localized_pattern): New function/macro.
52307         (try): Remove match, nomatch arguments. Copy the pattern into safe
52308         memory before caching it.
52309         (rpmatch): Use localized_pattern. Add translator comments.
52310         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
52311         Suggested by Eric Blake.
52312         * modules/rpmatch (Depends-on): Add stdbool.
52313
52314 2008-04-28  Eric Blake  <ebb9@byu.net>
52315
52316         Add rawmemchr module, matching glibc.
52317         * modules/string (Makefile.am): New indicator.
52318         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
52319         * lib/string.in.h (rawmemchr): Declare when appropriate.
52320         * modules/rawmemchr: New file.
52321         * m4/rawmemchr.m4: Likewise.
52322         * lib/rawmemchr.c: Likewise.
52323         * modules/rawmemchr-tests: Likewise.
52324         * tests/test-rawmemchr.c: Likewise.
52325         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
52326         module.
52327         * modules/strchrnul (Depends-on): Add rawmemchr.
52328         * lib/strchrnul.c (strchrnul): Optimize a corner case.
52329
52330         Whitespace cleanup.
52331         * tests/test-strchrnul.c: Reindent.
52332         * lib/strchrnul.c: Likewise.
52333
52334         Optimize and test strchrnul.
52335         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
52336         * modules/strchrnul-tests: New file.
52337         * tests/test-strchrnul.c: Likewise.
52338
52339         Remove intprops dependency.
52340         * modules/memchr (Depends-on): Remove intprops.
52341         * modules/memrchr (Depends-on): Likewise.
52342         * modules/memchr2 (Depends-on): Likewise.
52343         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
52344         * lib/memrchr.c (__memrchr): Likewise.
52345         * lib/memrchr2.c (memchr2): Likewise.
52346         Reported by Simon Josefsson.
52347
52348 2008-04-28  Simon Josefsson  <simon@josefsson.org>
52349
52350         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
52351         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52352
52353 2008-04-28  Simon Josefsson  <simon@josefsson.org>
52354
52355         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
52356
52357         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
52358
52359         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
52360
52361         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
52362         declarations.
52363         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
52364
52365         * m4/inet_pton.m4: Don't check for header files.
52366
52367         * m4/inet_ntop.m4: Don't check for header files.
52368
52369 2008-04-28  Simon Josefsson  <simon@josefsson.org>
52370
52371         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
52372         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
52373         trigger for cygwin).
52374         Reported by Bruno Haible  <bruno@clisp.org>.
52375
52376 2008-04-28  Bruno Haible  <bruno@clisp.org>
52377
52378         * doc/posix-functions/strdup.texi: Mention mingw problem.
52379
52380 2008-04-27  Bruno Haible  <bruno@clisp.org>
52381
52382         * modules/stat-time-tests (Depends-on): Add sleep.
52383         * tests/test-stat-time.c (force_unlink): New function.
52384         (cleanup): Use it.
52385         (test_mtime): Remove the ctime related tests.
52386         (test_ctime): New function, containing the ctime related tests.
52387         (main): Call test_ctime, except on native Windows platforms.
52388
52389 2008-04-27  Bruno Haible  <bruno@clisp.org>
52390
52391         * lib/rpmatch.c (rpmatch): Add some comments.
52392         Reported by James Youngman <jay@gnu.org>.
52393
52394 2008-04-27  Bruno Haible  <bruno@clisp.org>
52395
52396         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
52397         quiet NaNs.
52398
52399 2008-04-27  Bruno Haible  <bruno@clisp.org>
52400
52401         Make test-yesno.sh work on mingw.
52402         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
52403         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
52404         (main): Set stdin to binary mode.
52405         * modules/yesno-tests (Depends-on): Add binary-io.
52406
52407 2008-04-27  Bruno Haible  <bruno@clisp.org>
52408
52409         Fix 'isfinite' on x86, x86_64, ia64 platforms.
52410         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
52411         argument that lie outside the IEEE 854 domain.
52412         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
52413         (gl_ISFINITE): Use it.
52414         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
52415
52416 2008-04-27  Bruno Haible  <bruno@clisp.org>
52417
52418         Allow local renaming in config.h.
52419         * lib/memrchr.c (memrchr): Don't undefine outside libc.
52420
52421 2008-04-27  Bruno Haible  <bruno@clisp.org>
52422
52423         * lib/memchr.c (__memchr): Change type of 'i'.
52424         * lib/memchr2.c (memchr2): Likewise.
52425
52426 2008-04-26  Eric Blake  <ebb9@byu.net>
52427         and Bruno Haible  <bruno@clisp.org>
52428
52429         Optimize and test memrchr.
52430         * modules/memrchr (Depends-on): Add intprops.
52431         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
52432         * modules/memrchr-tests: New file.
52433         * tests/test-memrchr.c: New file.
52434
52435 2008-04-26  Bruno Haible  <bruno@clisp.org>
52436
52437         Add tentative support for DragonFly BSD.
52438         * lib/stdio-impl.h: Add macros for DragonFly BSD.
52439         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
52440         fp.
52441         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
52442         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
52443         * lib/fpurge.c (fpurge): Likewise.
52444         * lib/freadable.c (freaadable): Likewise.
52445         * lib/freadahead.c (freadahead): Likewise.
52446         * lib/freading.c (freading): Likewise.
52447         * lib/freadptr.c (freadptr): Likewise.
52448         * lib/freadseek.c (freadptrinc): Likewise.
52449         * lib/fseeko.c (fseeko): Likewise.
52450         * lib/fseterr.c (fseterr): Likewise.
52451         * lib/fwritable.c (fwritable): Likewise.
52452         * lib/fwriting.c (fwriting): Likewise.
52453
52454 2008-04-26  Bruno Haible  <bruno@clisp.org>
52455
52456         * lib/stdio-impl.h: New file.
52457         * lib/fbufmode.c: Include stdio-impl.h.
52458         (fbufmode): Use fp_, remove redundant #defines.
52459         * lib/fflush.c: Include stdio-impl.h.
52460         (clear_ungetc_buffer): Remove redundant #defines.
52461         * lib/fpurge.c: Include stdio-impl.h.
52462         (fpurge): Remove redundant #defines.
52463         * lib/freadable.c: Include stdio-impl.h.
52464         (freadable): Remove redundant #defines.
52465         * lib/freadahead.c: Include stdio-impl.h.
52466         (freadahead): Remove redundant #defines.
52467         * lib/freading.c: Include stdio-impl.h.
52468         (freading): Remove redundant #defines.
52469         * lib/freadptr.c: Include stdio-impl.h.
52470         (freadptr): Remove redundant #defines.
52471         * lib/freadseek.c: Include stdio-impl.h.
52472         (freadptrinc): Remove redundant #defines.
52473         * lib/fseeko.c: Include stdio-impl.h.
52474         (rpl_fseeko): Remove redundant #defines.
52475         * lib/fseterr.c: Include stdio-impl.h.
52476         (fseterr): Remove redundant #defines.
52477         * lib/fwritable.c: Include stdio-impl.h.
52478         (fwritable: Remove redundant #defines.
52479         * lib/fwriting.c: Include stdio-impl.h.
52480         (fwriting): Remove redundant #defines.
52481         * modules/fbufmode (Files): Add lib/stdio-impl.h.
52482         * modules/fflush (Files): Likewise.
52483         * modules/fpurge (Files): Likewise.
52484         * modules/freadable (Files): Likewise.
52485         * modules/freadahead (Files): Likewise.
52486         * modules/freading (Files): Likewise.
52487         * modules/freadptr (Files): Likewise.
52488         * modules/freadseek (Files): Likewise.
52489         * modules/fseeko (Files): Likewise.
52490         * modules/fseterr (Files): Likewise.
52491         * modules/fwritable (Files): Likewise.
52492         * modules/fwriting (Files): Likewise.
52493
52494 2008-04-26  Bruno Haible  <bruno@clisp.org>
52495
52496         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
52497         restore_seek_optimization, update_fpos_cache): New functions, extracted
52498         from rpl_fflush.
52499         (rpl_fflush): Use them.
52500         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
52501         (gl_REPLACE_FFLUSH): Use it.
52502
52503 2008-04-26  Bruno Haible  <bruno@clisp.org>
52504
52505         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
52506         on Solaris.
52507         * tests/test-xstrtoimax.sh: Likewise.
52508         * tests/test-xstrtoumax.sh: Likewise.
52509         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52510
52511 2008-04-26  Bruno Haible  <bruno@clisp.org>
52512
52513         * modules/memchr-tests: New file.
52514         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
52515
52516 2008-04-26  Eric Blake  <ebb9@byu.net>
52517             Bruno Haible  <bruno@clisp.org>
52518
52519         * lib/memchr.c: Include intprops.h.
52520         (__memchr): Optimize parallel detection of matching bytes. Rename local
52521         variables. Add explanatory comments.
52522
52523 2008-04-26  Bruno Haible  <bruno@clisp.org>
52524
52525         Fix module 'memchr', broken since 2000-10-28.
52526         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
52527
52528 2008-04-26  Bruno Haible  <bruno@clisp.org>
52529
52530         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
52531         comments.
52532
52533 2008-04-25  Eric Blake  <ebb9@byu.net>
52534
52535         Use native fstatat on cygwin 1.7.0.
52536         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
52537         first.
52538
52539 2008-04-23  Eric Blake  <ebb9@byu.net>
52540
52541         Improve memchr2 performance.
52542         * lib/memchr2.c (memchr2): Further optimize parallel detection of
52543         NUL bytes.
52544         * modules/memchr2 (Depends-on): Use intprops.h.
52545
52546 2008-04-23  Simon Josefsson  <simon@josefsson.org>
52547
52548         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
52549         an inline function instead of a CPP macro.  Patch by Ben Pfaff
52550         <blp@cs.stanford.edu>.
52551
52552 2008-04-23  Simon Josefsson  <simon@josefsson.org>
52553
52554         * lib/arpa_inet.in.h: New file.
52555
52556         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
52557         (Makefile.am): Sed in substitute header file.
52558
52559         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
52560         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
52561
52562         * modules/inet_ntop (configure.ac): Use
52563         gl_ARPA_INET_MODULE_INDICATOR.
52564
52565         * modules/inet_pton (configure.ac): Use
52566         gl_ARPA_INET_MODULE_INDICATOR.
52567
52568 2008-04-22  Jim Meyering  <meyering@redhat.com>
52569
52570         * modules/verify (License): Re-license as LGPLv2+.
52571
52572 2008-04-22  Simon Josefsson  <simon@josefsson.org>
52573
52574         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
52575         parameter to void* as per POSIX standard (MinGW uses char*).
52576
52577 2008-04-21  Bruno Haible  <bruno@clisp.org>
52578
52579         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
52580         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
52581         Define to replacements if REPLACE_ISWCNTRL is 1.
52582         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
52583         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
52584         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
52585         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
52586         what it fixes.
52587         * doc/posix-functions/iswalpha.texi: Likewise.
52588         * doc/posix-functions/iswblank.texi: Likewise.
52589         * doc/posix-functions/iswcntrl.texi: Likewise.
52590         * doc/posix-functions/iswdigit.texi: Likewise.
52591         * doc/posix-functions/iswgraph.texi: Likewise.
52592         * doc/posix-functions/iswlower.texi: Likewise.
52593         * doc/posix-functions/iswprint.texi: Likewise.
52594         * doc/posix-functions/iswpunct.texi: Likewise.
52595         * doc/posix-functions/iswspace.texi: Likewise.
52596         * doc/posix-functions/iswupper.texi: Likewise.
52597         * doc/posix-functions/iswxdigit.texi: Likewise.
52598         Reported by Alain Guibert.
52599
52600 2008-04-21  Bruno Haible  <bruno@clisp.org>
52601
52602         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
52603         Patch by Alain Guibert.
52604
52605 2008-04-21  Bruno Haible  <bruno@clisp.org>
52606
52607         Fix test failures on mingw.
52608         * tests/test-xstrtol.c (print_no_progname): New function.
52609         (main): Install it in error_print_progname hook.
52610         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
52611         * tests/test-xstrtoimax.sh: Likewise.
52612         * tests/test-xstrtoumax.sh: Likewise.
52613
52614 2008-04-21  Bruno Haible  <bruno@clisp.org>
52615
52616         Fix test failure on mingw.
52617         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
52618
52619 2008-04-21  Bruno Haible  <bruno@clisp.org>
52620
52621         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
52622         Actually assign a value.
52623
52624 2008-04-20  Bruno Haible  <bruno@clisp.org>
52625
52626         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
52627         take 2.
52628         * lib/canonicalize.c (canonicalize_file_name): Elide if the
52629         'canonicalize-lgpl' module is also used.
52630         * lib/canonicalize-lgpl.c: Undo last change.
52631         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
52632
52633 2008-04-20  Bruno Haible  <bruno@clisp.org>
52634
52635         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
52636         config.h. Provide _mkdir based fallback for mingw.
52637         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
52638         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
52639         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
52640         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
52641         rather than defining mkdir in config.h.
52642         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
52643         (gl_SYS_STAT_H_DEFAULTS): New macro.
52644         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
52645         HAVE_IO_H any more.
52646         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
52647         HAVE_DECL_MKDIR and HAVE_IO_H.
52648
52649 2008-04-20  Bruno Haible  <bruno@clisp.org>
52650
52651         * lib/isapipe.c: Port to native Windows platforms.
52652
52653 2008-04-20  Bruno Haible  <bruno@clisp.org>
52654
52655         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
52656
52657 2008-04-21  Eric Blake  <ebb9@byu.net>
52658
52659         Work around preprocessors that don't handle UINTMAX_MAX.
52660         * lib/memchr2.c (memchr2): Avoid embedded #if.
52661         Reported by Alain Guibert, fix suggested by Bruno Haible.
52662
52663 2008-04-21  Simon Josefsson  <simon@josefsson.org>
52664
52665         * doc/posix-functions/strftime.texi (strftime): Explain better
52666         Windows incompatibility.  Suggested by Micah Cowan
52667         <micah@cowan.name>.
52668
52669 2008-04-20  Bruno Haible  <bruno@clisp.org>
52670
52671         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
52672         unistr/u8-mblen.
52673
52674 2008-04-20  Bruno Haible  <bruno@clisp.org>
52675
52676         Fix test failure on platforms with non-GNU iconv.
52677         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
52678         (U_TO_U8): Use it, rather than u16_to_u8.
52679         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
52680         units at the end of the input string.
52681         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
52682
52683 2008-04-20  Bruno Haible  <bruno@clisp.org>
52684
52685         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
52686         when the resulting length is 0.
52687         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
52688
52689 2008-04-20  Bruno Haible  <bruno@clisp.org>
52690
52691         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
52692         works.
52693         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
52694
52695 2008-04-20  Bruno Haible  <bruno@clisp.org>
52696
52697         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
52698         * modules/tsearch-tests (configure.ac): Test for initstate function.
52699
52700 2008-04-20  Bruno Haible  <bruno@clisp.org>
52701
52702         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
52703         for nlink_t if missing.
52704         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
52705
52706 2008-04-19  Bruno Haible  <bruno@clisp.org>
52707
52708         Work around snprintf bug on Linux libc5.
52709         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
52710         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
52711         gl_SNPRINTF_SIZE1.
52712         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52713         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
52714         that test failed.
52715         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
52716         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
52717         * modules/snprintf (Files): Add m4/printf.m4.
52718         * modules/vsnprintf (Files): Likewise.
52719         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
52720         * doc/posix-functions/vsnprintf.texi: Likewise.
52721
52722 2008-04-19  Bruno Haible  <bruno@clisp.org>
52723
52724         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
52725         from 0.0058 to less than 10^-7.
52726
52727 2008-04-19  Bruno Haible  <bruno@clisp.org>
52728
52729         Fix rounding when a precision is given.
52730         * lib/vasnprintf.c (is_borderline): New function.
52731         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
52732         9...9x.
52733         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
52734         %e, %g.
52735         * tests/test-vasprintf-posix.c (test_function): Likewise.
52736         * tests/test-snprintf-posix.h (test_function): Likewise.
52737         * tests/test-sprintf-posix.h (test_function): Likewise.
52738         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
52739         * tests/test-printf-posix.h (test_function): Likewise.
52740         * tests/test-printf-posix.output: Update.
52741         Reported by John Darrington <john@darrington.wattle.id.au> via
52742         Ben Pfaff <blp@cs.stanford.edu>.
52743
52744 2008-04-18  Simon Josefsson  <simon@josefsson.org>
52745
52746         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
52747         Suggested by Bruno Haible <bruno@clisp.org>.
52748
52749 2008-04-17  Bruno Haible  <bruno@clisp.org>
52750
52751         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
52752         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
52753         implementation.
52754         Patch by Bruce Merry <bmerry@gmail.com>.
52755
52756 2008-04-17  Simon Josefsson  <simon@josefsson.org>
52757
52758         * doc/posix-functions/strftime.texi (strftime): Mention that %e
52759         doesn't work under Windows.
52760
52761 2008-04-16  Bruno Haible  <bruno@clisp.org>
52762
52763         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
52764         New macros.
52765         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
52766         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
52767         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
52768         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
52769         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
52770         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
52771         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
52772         macros.
52773         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
52774         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
52775         Northern Sotho, Uighur.
52776
52777 2008-04-16  Bruno Haible  <bruno@clisp.org>
52778
52779         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
52780         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
52781         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
52782         Reported by Daniel Bergström <daniel@octocode.com>.
52783
52784 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
52785             Bruno Haible  <bruno@clisp.org>
52786
52787         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
52788         function.
52789         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
52790         New functions, mostly extracted from gl_locale_name_default.
52791         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
52792
52793 2008-04-16  Eric Blake  <ebb9@byu.net>
52794
52795         Adjust strtod detection to catch glibc 2.7 bug.
52796         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
52797         Reported by John Gatewood Ham.
52798
52799 2008-04-16  Bruno Haible  <bruno@clisp.org>
52800
52801         Add tentative support for Linux libc5.
52802         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
52803         * lib/fpurge.c (fpurge): Likewise.
52804         * lib/freadable.c (freadable): Likewise.
52805         * lib/freadahead.c (freadahead): Likewise.
52806         * lib/freading.c (freading): Likewise.
52807         * lib/freadptr.c (freadptr): Likewise.
52808         * lib/freadseek.c (freadptrinc): Likewise.
52809         * lib/fseeko.c (rpl_fseeko): Likewise.
52810         * lib/fseterr.c (fseterr): Likewise.
52811         * lib/fwritable.c (fwritable): Likewise.
52812         * lib/fwriting.c (fwriting): Likewise.
52813         Reported by Alain Guibert <alguibert+bts@free.fr>.
52814
52815 2008-04-15  Bruno Haible  <bruno@clisp.org>
52816
52817         * modules/mathl (configure.ac): Define module indicator.
52818
52819 2008-04-15  Bruno Haible  <bruno@clisp.org>
52820
52821         * lib/logl.c (logl): Remove unused variables.
52822
52823 2008-04-15  Bruno Haible  <bruno@clisp.org>
52824
52825         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
52826         fails.
52827
52828 2008-04-15  Bruno Haible  <bruno@clisp.org>
52829
52830         * lib/trim.c (trim2): Fix argument of isspace() macro.
52831
52832 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
52833
52834         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
52835         to 0.
52836         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
52837
52838 2008-04-14  Bruno Haible  <bruno@clisp.org>
52839
52840         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
52841         AC_LANG_PROGRAM argument.
52842         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
52843         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
52844         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
52845         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
52846         * m4/math_h.m4 (gl_MATH_H): Likewise.
52847         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
52848         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
52849         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
52850         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
52851         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
52852         * m4/regex.m4 (gl_REGEX): Likewise.
52853         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
52854         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
52855         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
52856         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
52857         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
52858         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
52859         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
52860         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
52861
52862 2008-04-14  Jim Meyering  <meyering@redhat.com>
52863
52864         test-strtod: fix typos: s/abs/fabs/
52865         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
52866
52867 2008-04-13  Bruno Haible  <bruno@clisp.org>
52868
52869         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
52870         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
52871         module is also used and while not building the reloc-wrapper.
52872
52873 2008-04-13  Bruno Haible  <bruno@clisp.org>
52874
52875         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
52876
52877 2008-04-13  Bruno Haible  <bruno@clisp.org>
52878
52879         Fix AIX compilation failure introduced on 2008-04-02.
52880         * tests/test-frexp.c (exp): Undefine before redefining.
52881         * tests/test-frexpl.c (exp): Likewise.
52882
52883 2008-04-13  Bruno Haible  <bruno@clisp.org>
52884
52885         Work around a HP-UX stdio bug.
52886         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
52887         * tests/test-ftello.c (main): Likewise.
52888         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
52889         * doc/posix-functions/ftello.texi: Likewise.
52890
52891 2008-04-13  Bruno Haible  <bruno@clisp.org>
52892
52893         Make test-signbit pass on HP-UX/hppa.
52894         * tests/test-signbit.c (minus_zerol): New variable.
52895         (test_signbitl): Use it.
52896
52897 2008-04-13  Bruno Haible  <bruno@clisp.org>
52898
52899         Make truncl work on OSF/1 4.0.
52900         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
52901         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
52902         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
52903         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
52904         HAVE_DECL_TRUNCL.
52905         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
52906         HAVE_DECL_TRUNCL.
52907         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
52908
52909 2008-04-13  Bruno Haible  <bruno@clisp.org>
52910
52911         * lib/unictype.h: Remove trailing comma from enumeration definitions.
52912
52913 2008-04-13  Bruno Haible  <bruno@clisp.org>
52914
52915         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
52916         expression, so as to avoid HP-UX 11 cc compiler bug.
52917
52918 2008-04-13  Bruno Haible  <bruno@clisp.org>
52919
52920         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
52921
52922 2008-04-13  Bruno Haible  <bruno@clisp.org>
52923
52924         * lib/git-merge-changelog.c: Remove empty declaration outside of
52925         functions.
52926
52927 2008-04-13  Bruno Haible  <bruno@clisp.org>
52928
52929         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
52930
52931 2008-04-13  Bruno Haible  <bruno@clisp.org>
52932
52933         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
52934         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
52935         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
52936         also if it exists but lacks definitions of the SHUT_* macros.
52937         * modules/sys_socket (Description): Update.
52938         Reported by Elbert Pol <e.pol@chello.nl>.
52939
52940 2008-04-13  Bruno Haible  <bruno@clisp.org>
52941
52942         * lib/localcharset.c (OS2): Don't redefine if already defined.
52943         Reported by Elbert Pol <e.pol@chello.nl>.
52944
52945 2008-04-13  Bruno Haible  <bruno@clisp.org>
52946
52947         * lib/binary-io.h [__EMX__]: Include <io.h>.
52948         Reported by Elbert Pol <e.pol@chello.nl>.
52949
52950 2008-04-12  Bruno Haible  <bruno@clisp.org>
52951
52952         * lib/fpucw.h: Enable the definitions also for x86_64.
52953         Needed for NetBSD/x86_64.
52954         Reported by Thomas Klausner <tk@giga.or.at>.
52955
52956 2008-04-12  Bruno Haible  <bruno@clisp.org>
52957
52958         * tests/test-strtod.c: Include isnand.h.
52959         (main): Use isnand instead of isnan.
52960         Reported by Jim Meyering.
52961
52962 2008-04-12  Bruno Haible  <bruno@clisp.org>
52963
52964         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
52965         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
52966
52967 2008-04-12  Jim Meyering  <meyering@redhat.com>
52968
52969         * m4/math_h.m4 (gl_MATH_H): Fix typos.
52970
52971 2008-04-12  Bruno Haible  <bruno@clisp.org>
52972
52973         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
52974         Reported by Elbert Pol <e.pol@chello.nl>.
52975
52976 2008-04-12  Eric Blake  <ebb9@byu.net>
52977
52978         Work around Solaris 10 math.h bug.
52979         * m4/math_h.m4 (gl_MATH_H): Check for bug.
52980         (gl_MATH_H_DEFAULTS): Set up default.
52981         * modules/math (Makefile.am): Replace new indicators.
52982         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
52983         * tests/test-math.c (main): Test this.
52984         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
52985         * doc/posix-headers/math.texi (math.h): Mention bug.
52986         Reported by Nelson H. F. Beebe and Jim Meyering.
52987
52988 2008-04-11  Bruno Haible  <bruno@clisp.org>
52989
52990         Adapt to future versions of Apple GCC.
52991         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
52992         Reported by Peter O'Gorman <peter@pogma.com>.
52993
52994 2008-04-11  Bruno Haible  <bruno@clisp.org>
52995
52996         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
52997
52998 2008-04-11  Bruno Haible  <bruno@clisp.org>
52999
53000         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
53001
53002         * modules/getaddrinfo-tests (Makefile.am): Define
53003         test_getaddrinfo_LDADD.
53004
53005 2008-04-11  Bruno Haible  <bruno@clisp.org>
53006
53007         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
53008         (init): Fix syntax error.
53009         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
53010         is declared.
53011
53012 2008-04-11  Bruno Haible  <bruno@clisp.org>
53013
53014         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
53015         * modules/glob (Depends-on): Add stdbool.
53016
53017 2008-04-11  Bruno Haible  <bruno@clisp.org>
53018
53019         * lib/trim.c: Include <string.h>.
53020
53021 2008-04-11  Eric Blake  <ebb9@byu.net>
53022
53023         Avoid compile failure on OS/2.
53024         * lib/regex_internal.h (internal_function): Disable optimization
53025         on OS/2 (__EMX__), where it caused compiler error.
53026         Reported by Elbert Pol.
53027
53028 2008-04-11  Bruno Haible  <bruno@clisp.org>
53029
53030         Flush the standard error stream before aborting. Needed on mingw.
53031         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
53032         * tests/test-array_list.c (ASSERT): Likewise.
53033         * tests/test-array_oset.c (ASSERT): Likewise.
53034         * tests/test-avltree_list.c (ASSERT): Likewise.
53035         * tests/test-avltree_oset.c (ASSERT): Likewise.
53036         * tests/test-avltreehash_list.c (ASSERT): Likewise.
53037         * tests/test-binary-io.c (ASSERT): Likewise.
53038         * tests/test-byteswap.c (ASSERT): Likewise.
53039         * tests/test-c-ctype.c (ASSERT): Likewise.
53040         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
53041         * tests/test-c-strcasestr.c (ASSERT): Likewise.
53042         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
53043         * tests/test-c-strstr.c (ASSERT): Likewise.
53044         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
53045         * tests/test-canonicalize.c (ASSERT): Likewise.
53046         * tests/test-carray_list.c (ASSERT): Likewise.
53047         * tests/test-ceilf1.c (ASSERT): Likewise.
53048         * tests/test-ceilf2.c (ASSERT): Likewise.
53049         * tests/test-ceill.c (ASSERT): Likewise.
53050         * tests/test-count-one-bits.c (ASSERT): Likewise.
53051         * tests/test-fbufmode.c (ASSERT): Likewise.
53052         * tests/test-fflush2.c (ASSERT): Likewise.
53053         * tests/test-floorf1.c (ASSERT): Likewise.
53054         * tests/test-floorf2.c (ASSERT): Likewise.
53055         * tests/test-floorl.c (ASSERT): Likewise.
53056         * tests/test-fopen.c (ASSERT): Likewise.
53057         * tests/test-fpending.c (ASSERT): Likewise.
53058         * tests/test-fprintf-posix.c (ASSERT): Likewise.
53059         * tests/test-fpurge.c (ASSERT): Likewise.
53060         * tests/test-freadable.c (ASSERT): Likewise.
53061         * tests/test-freadahead.c (ASSERT): Likewise.
53062         * tests/test-freading.c (ASSERT): Likewise.
53063         * tests/test-freadptr.c (ASSERT): Likewise.
53064         * tests/test-freadptr2.c (ASSERT): Likewise.
53065         * tests/test-freadseek.c (ASSERT): Likewise.
53066         * tests/test-freopen.c (ASSERT): Likewise.
53067         * tests/test-frexp.c (ASSERT): Likewise.
53068         * tests/test-frexpl.c (ASSERT): Likewise.
53069         * tests/test-fseek.c (ASSERT): Likewise.
53070         * tests/test-fseeko.c (ASSERT): Likewise.
53071         * tests/test-fstrcmp.c (ASSERT): Likewise.
53072         * tests/test-ftell.c (ASSERT): Likewise.
53073         * tests/test-ftello.c (ASSERT): Likewise.
53074         * tests/test-func.c (ASSERT): Likewise.
53075         * tests/test-fwritable.c (ASSERT): Likewise.
53076         * tests/test-fwriting.c (ASSERT): Likewise.
53077         * tests/test-getdelim.c (ASSERT): Likewise.
53078         * tests/test-getline.c (ASSERT): Likewise.
53079         * tests/test-i-ring.c (ASSERT): Likewise.
53080         * tests/test-iconv-utf.c (ASSERT): Likewise.
53081         * tests/test-iconv.c (ASSERT): Likewise.
53082         * tests/test-isfinite.c (ASSERT): Likewise.
53083         * tests/test-isnand.c (ASSERT): Likewise.
53084         * tests/test-isnanf.c (ASSERT): Likewise.
53085         * tests/test-isnanl.h (ASSERT): Likewise.
53086         * tests/test-ldexpl.c (ASSERT): Likewise.
53087         * tests/test-linked_list.c (ASSERT): Likewise.
53088         * tests/test-linkedhash_list.c (ASSERT): Likewise.
53089         * tests/test-localename.c (ASSERT): Likewise.
53090         * tests/test-lseek.c (ASSERT): Likewise.
53091         * tests/test-mbscasecmp.c (ASSERT): Likewise.
53092         * tests/test-mbscasestr1.c (ASSERT): Likewise.
53093         * tests/test-mbscasestr2.c (ASSERT): Likewise.
53094         * tests/test-mbscasestr3.c (ASSERT): Likewise.
53095         * tests/test-mbscasestr4.c (ASSERT): Likewise.
53096         * tests/test-mbschr.c (ASSERT): Likewise.
53097         * tests/test-mbscspn.c (ASSERT): Likewise.
53098         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
53099         * tests/test-mbspbrk.c (ASSERT): Likewise.
53100         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
53101         * tests/test-mbsrchr.c (ASSERT): Likewise.
53102         * tests/test-mbsspn.c (ASSERT): Likewise.
53103         * tests/test-mbsstr1.c (ASSERT): Likewise.
53104         * tests/test-mbsstr2.c (ASSERT): Likewise.
53105         * tests/test-mbsstr3.c (ASSERT): Likewise.
53106         * tests/test-memchr2.c (ASSERT): Likewise.
53107         * tests/test-memmem.c (ASSERT): Likewise.
53108         * tests/test-open.c (ASSERT): Likewise.
53109         * tests/test-printf-frexp.c (ASSERT): Likewise.
53110         * tests/test-printf-frexpl.c (ASSERT): Likewise.
53111         * tests/test-printf-posix.c (ASSERT): Likewise.
53112         * tests/test-quotearg.c (ASSERT): Likewise.
53113         * tests/test-rbtree_list.c (ASSERT): Likewise.
53114         * tests/test-rbtree_oset.c (ASSERT): Likewise.
53115         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
53116         * tests/test-round1.c (ASSERT): Likewise.
53117         * tests/test-roundf1.c (ASSERT): Likewise.
53118         * tests/test-roundl.c (ASSERT): Likewise.
53119         * tests/test-signbit.c (ASSERT): Likewise.
53120         * tests/test-sleep.c (ASSERT): Likewise.
53121         * tests/test-snprintf-posix.c (ASSERT): Likewise.
53122         * tests/test-snprintf.c (ASSERT): Likewise.
53123         * tests/test-sprintf-posix.c (ASSERT): Likewise.
53124         * tests/test-stat-time.c (ASSERT): Likewise.
53125         * tests/test-strcasestr.c (ASSERT): Likewise.
53126         * tests/test-strerror.c (ASSERT): Likewise.
53127         * tests/test-striconv.c (ASSERT): Likewise.
53128         * tests/test-striconveh.c (ASSERT): Likewise.
53129         * tests/test-striconveha.c (ASSERT): Likewise.
53130         * tests/test-strsignal.c (ASSERT): Likewise.
53131         * tests/test-strstr.c (ASSERT): Likewise.
53132         * tests/test-strtod.c (ASSERT): Likewise.
53133         * tests/test-trunc1.c (ASSERT): Likewise.
53134         * tests/test-trunc2.c (ASSERT): Likewise.
53135         * tests/test-truncf1.c (ASSERT): Likewise.
53136         * tests/test-truncf2.c (ASSERT): Likewise.
53137         * tests/test-truncl.c (ASSERT): Likewise.
53138         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
53139         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
53140         * tests/test-vasnprintf.c (ASSERT): Likewise.
53141         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
53142         * tests/test-vasprintf.c (ASSERT): Likewise.
53143         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
53144         * tests/test-vprintf-posix.c (ASSERT): Likewise.
53145         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
53146         * tests/test-vsnprintf.c (ASSERT): Likewise.
53147         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
53148         * tests/test-wcwidth.c (ASSERT): Likewise.
53149         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
53150         * tests/test-xprintf-posix.c (ASSERT): Likewise.
53151         * tests/test-xvasprintf.c (ASSERT): Likewise.
53152         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
53153         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
53154         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
53155         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
53156         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
53157         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
53158         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
53159         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
53160         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
53161         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
53162         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
53163         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
53164         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
53165         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
53166         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
53167         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
53168         * tests/unictype/test-block_list.c (ASSERT): Likewise.
53169         * tests/unictype/test-block_of.c (ASSERT): Likewise.
53170         * tests/unictype/test-block_test.c (ASSERT): Likewise.
53171         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
53172         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
53173         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
53174         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
53175         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
53176         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
53177         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
53178         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
53179         * tests/unictype/test-combining.c (ASSERT): Likewise.
53180         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
53181         * tests/unictype/test-digit.c (ASSERT): Likewise.
53182         * tests/unictype/test-mirror.c (ASSERT): Likewise.
53183         * tests/unictype/test-numeric.c (ASSERT): Likewise.
53184         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
53185         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
53186         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
53187         * tests/unictype/test-scripts.c (ASSERT): Likewise.
53188         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
53189         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
53190         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
53191         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
53192         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
53193         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
53194         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
53195         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
53196         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
53197         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
53198         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
53199         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
53200         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
53201         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
53202         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
53203         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
53204         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
53205         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
53206         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
53207         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
53208         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
53209         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
53210         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
53211         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
53212         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
53213         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
53214         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
53215         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
53216         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
53217         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
53218         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
53219         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
53220         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
53221         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
53222         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
53223         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
53224         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
53225         Reported by Eric Blake.
53226
53227 2008-04-11  Bruno Haible  <bruno@clisp.org>
53228
53229         * lib/wchar.in.h: Tweak comment.
53230
53231 2008-04-11  Bruno Haible  <bruno@clisp.org>
53232
53233         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
53234         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
53235         gl_COMMON.
53236         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
53237
53238 2008-04-11  Bruno Haible  <bruno@clisp.org>
53239
53240         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
53241
53242 2008-04-11  Simon Josefsson  <simon@josefsson.org>
53243
53244         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
53245         of attempting to use non-existing /dev/*random.  Based on patch
53246         from Adam Strzelecki <ono@java.pl> in
53247         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
53248
53249 2008-04-08  Bruno Haible  <bruno@clisp.org>
53250
53251         Add tentative support for emx+gcc.
53252         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
53253         * lib/fpurge.c (fpurge): Likewise.
53254         * lib/freadable.c (freadable): Likewise.
53255         * lib/freadahead.c (freadahead): Likewise.
53256         * lib/freading.c (freading): Likewise.
53257         * lib/freadptr.c (freadptr): Likewise.
53258         * lib/freadseek.c (freadptrinc): Likewise.
53259         * lib/fseeko.c (rpl_fseeko): Likewise.
53260         * lib/fseterr.c (fseterr): Likewise.
53261         * lib/fwritable.c (fwritable): Likewise.
53262         * lib/fwriting.c (fwriting): Likewise.
53263         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
53264
53265 2008-04-09  Eric Blake  <ebb9@byu.net>
53266
53267         Avoid some autoconf warnings.
53268         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
53269         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
53270         * m4/afs.m4 (gl_AFS): Likewise.
53271         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
53272         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
53273         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
53274         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
53275         (gl_INTEGER_TYPE_SUFFIX): Likewise.
53276         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
53277         (AC_CHECK_DECLS_ONCE): Likewise.
53278         Rename file...
53279         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
53280         gnulib-tool requires autoconf 2.59 or better.
53281         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
53282
53283 2008-04-08  Eric Blake  <ebb9@byu.net>
53284
53285         Use 'git describe --match' if present (added in git 1.5.5).
53286         * build-aux/git-version-gen: Limit result to tags that match 'v*'
53287         if possible.
53288
53289 2008-04-08  Bruno Haible  <bruno@clisp.org>
53290
53291         Add tentative support for OpenServer.
53292         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
53293         _ptr, _cnt.
53294         * lib/fpurge.c (fpurge): Likewise.
53295         * lib/freadable.c (freadable): Likewise.
53296         * lib/freadahead.c (freadahead): Likewise.
53297         * lib/freading.c (freading): Likewise.
53298         * lib/freadptr.c (freadptr): Likewise.
53299         * lib/freadseek.c (freadptrinc): Likewise.
53300         * lib/fseeko.c (rpl_fseeko): Likewise.
53301         * lib/fseterr.c (fseterr): Likewise.
53302         * lib/fwritable.c (fwritable): Likewise.
53303         * lib/fwriting.c (fwriting): Likewise.
53304         Reported by Roger Cornelius <rac@tenzing.org> and
53305         Brian K. White <brian@aljex.com>.
53306
53307 2008-04-06  Jim Meyering  <meyering@redhat.com>
53308
53309         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
53310
53311 2008-04-06  Bruno Haible  <bruno@clisp.org>
53312
53313         Avoid possible error with non-ASCII bytes in UTF-8 locales.
53314         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
53315         * tests/test-printf-posix.sh: Likewise.
53316         * tests/test-vfprintf-posix.sh: Likewise.
53317         * tests/test-vprintf-posix.sh: Likewise.
53318         * tests/test-xprintf-posix.sh: Likewise.
53319
53320 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53321
53322         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
53323         hide error from 'ls', needed on OS/2.
53324         Report by Elbert Pol <elbert.pol@gmail.com>.
53325
53326 2008-04-04  Eric Blake  <ebb9@byu.net>
53327
53328         Make test-fseeko.c failures meaningful.
53329         * tests/test-fseeko.c: Print line number on failure.
53330         * tests/test-fseek.c: Likewise.
53331         Reported by Nelson H. F. Beebe.
53332
53333         Improve strtod bug detection check.
53334         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
53335         required for Solaris 10.
53336         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
53337
53338 2008-04-04  Bruno Haible  <bruno@clisp.org>
53339
53340         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
53341         by m4/setenv.m4.
53342
53343 2008-04-03  Eric Blake  <ebb9@byu.net>
53344
53345         Ensure sane .version contents.
53346         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
53347         version string.
53348         * build-aux/git-version-gen: Improve documentation.
53349
53350         Make GNU make output nicer.
53351         * top/GNUmakefile [!_have-Makefile]: Add dependency on
53352         MAKECMDGOALS to enforce message for all command line targets.  Set
53353         srcdir for use in maint.mk.
53354
53355         Another maintainer tweak.
53356         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
53357         a target that regenerates version.
53358
53359 2008-04-03  Jim Meyering  <meyering@redhat.com>
53360
53361         vc-list-files: don't cause coreutils "make po-check" failure
53362         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
53363
53364 2008-04-03  Eric Blake  <ebb9@byu.net>
53365
53366         Allow VPATH usage of vc-list-files.
53367         * build-aux/vc-list-files (scriptversion): Add timestamp.
53368         (options): Add --help, --version, -C.
53369         (CVS): Support installed cvsu.
53370
53371 2008-04-02  Bruno Haible  <bruno@clisp.org>
53372
53373         Avoid some "statement with no effect" warnings from gcc.
53374         * tests/test-wctype.c (main): Explicitly ignore unused values.
53375         Reported by Jim Meyering.
53376
53377 2008-04-02  Jim Meyering  <meyering@redhat.com>
53378
53379         Avoid some warnings from "gcc -Wshadow".
53380         * tests/test-frexp.c (exp): Define to a different identifier.
53381         * tests/test-frexpl.c (exp): Likewise.
53382
53383 2008-04-03  Jim Meyering  <meyering@redhat.com>
53384
53385         bootstrap: remove dangling *.[ch] symlinks from lib
53386         * build-aux/bootstrap [dangling symlink removal]: Move find's
53387         -depth option to precede all others, to avoid a warning.
53388         Remove *.[ch] files too, and from "$source_base" (usually lib/).
53389
53390 2008-04-02  Bruno Haible  <bruno@clisp.org>
53391
53392         Avoid some warnings from "gcc -Wshadow".
53393         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
53394         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
53395         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
53396         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
53397         Reported by Jim Meyering.
53398
53399 2008-04-01  Bruno Haible  <bruno@clisp.org>
53400
53401         Fix test to work on IRIX 6.5 with cc.
53402         * tests/test-math.c (numeric_equal): New function.
53403         (main): Use it.
53404
53405 2008-04-01  Bruno Haible  <bruno@clisp.org>
53406
53407         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
53408
53409 2008-04-01  Bruno Haible  <bruno@clisp.org>
53410
53411         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
53412         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
53413         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
53414         (Depends-on): Remove math.
53415
53416         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
53417         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
53418         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
53419         (Depends-on): Remove math.
53420
53421         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
53422         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
53423         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
53424         (Depends-on): Remove math.
53425         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
53426         (Depends-on): Remove math.
53427
53428         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
53429         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
53430         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
53431         (Depends-on): Remove math.
53432         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
53433         (Depends-on): Remove math.
53434
53435         * tests/test-round1.c: Include nan.h.
53436         (main): Use NaNd instead of NAN.
53437         * modules/round-tests (Files): Add tests/nan.h.
53438
53439         * tests/test-trunc1.c: Include nan.h.
53440         (main): Use NaNd instead of NAN.
53441         * modules/trunc-tests (Files): Add tests/nan.h.
53442
53443         * tests/test-roundf1.c: Include nan.h.
53444         (main): Use NaNf instead of NAN.
53445         * modules/roundf-tests (Files): Add tests/nan.h.
53446
53447         * tests/test-truncf1.c: Include nan.h.
53448         (main): Use NaNf instead of NAN.
53449         * modules/truncf-tests (Files): Add tests/nan.h.
53450
53451         * tests/test-ceilf1.c: Include nan.h.
53452         (main): Use NaNf instead of NAN.
53453         * modules/ceilf-tests (Files): Add tests/nan.h.
53454
53455         * tests/test-floorf1.c: Include nan.h.
53456         (main): Use NaNf instead of NAN.
53457         * modules/floorf-tests (Files): Add tests/nan.h.
53458
53459         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
53460         (main): Use NaNf instead of NAN.
53461         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
53462
53463         * tests/test-isnand.c: Include nan.h instead of <math.h>.
53464         (main): Use NaNd instead of NAN.
53465         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
53466
53467         * tests/test-frexp.c: Include nan.h.
53468         (main): Use NaNd instead of NAN.
53469         * modules/frexp-tests (Files): Add tests/nan.h.
53470
53471         * lib/isnan.c: Don't include <math.h>.
53472         (FUNC): Don't use NAN macro.
53473         * modules/isnand-nolibm (Depends-on): Remove math.
53474         * modules/isnanf-nolibm (Depends-on): Remove math.
53475         * modules/isnanl (Depends-on): Remove math.
53476         * modules/isnanl-nolibm (Depends-on): Remove math.
53477
53478         * tests/nan.h: New file.
53479
53480 2008-04-01  Eric Blake  <ebb9@byu.net>
53481
53482         Fix typos.
53483         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
53484         values to be the right type.
53485
53486         For now, cater to gnulib strtod inaccuracies.
53487         * tests/test-strtod.c (main): Allow 1-ulp error on expected
53488         fractional results.  While not as nice from a QoI perspective, it
53489         is a quicker patch than correctly implementing decimal to binary
53490         rounding.
53491
53492 2008-03-31  Eric Blake  <ebb9@byu.net>
53493
53494         Guarantee a definition of NAN.
53495         * lib/math.in.h (NAN): Define if missing.
53496         * tests/test-math.c (main): Test it.
53497         * doc/posix-headers/math.texi (math.h): Document this.
53498         * lib/isnan.c (rpl_isnand): Use it.
53499         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
53500         * tests/test-floorf1.c (NaN): Likewise.
53501         * tests/test-frexp.c (NaN): Likewise.
53502         * tests/test-isnand.c (NaN): Likewise.
53503         * tests/test-isnanf.c (NaN): Likewise.
53504         * tests/test-round1.c (NaN): Likewise.
53505         * tests/test-roundf1.c (NaN): Likewise.
53506         * tests/test-snprintf-posix.h (NaN): Likewise.
53507         * tests/test-sprintf-posix.h (NaN): Likewise.
53508         * tests/test-trunc1.c (NaN): Likewise.
53509         * tests/test-truncf1.c (NaN): Likewise.
53510         * tests/test-vasnprintf-posix.c (NaN): Likewise.
53511         * tests/test-vasprintf-posix.c (NaN): Likewise.
53512         * modules/isnand-nolibm (Depends-on): Add math.
53513         * modules/isnanf-nolibm (Depends-on): Likewise.
53514         * modules/isnanl (Depends-on): Likewise.
53515         * modules/isnanl-nolibm (Depends-on): Likewise.
53516         * modules/snprintf-posix-tests (Depends-on): Likewise.
53517         * modules/sprintf-posix-tests (Depends-on): Likewise.
53518         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
53519         * modules/vsprintf-posix-tests (Depends-on): Likewise.
53520         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
53521         * modules/vasprintf-posix-tests (Depends-on): Likewise.
53522
53523 2008-03-31  Bruno Haible  <bruno@clisp.org>
53524
53525         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
53526         * doc/posix-functions/strtod.texi: Likewise.
53527
53528 2008-03-31  Bruno Haible  <bruno@clisp.org>
53529
53530         * tests/test-strtod.c (main): Don't use C99 syntax.
53531
53532 2008-03-31  Bruno Haible  <bruno@clisp.org>
53533
53534         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
53535         Reported by Eric Blake.
53536
53537 2008-03-31  Jim Meyering  <meyering@redhat.com>
53538
53539         Don't compare actual signbit return values.
53540         * tests/test-strtod.c (main): Rather, compare only their
53541         zero/non-zero nature.
53542
53543 2008-03-31  Eric Blake  <ebb9@byu.net>
53544
53545         More strtod documentation.
53546         * doc/posix-functions/strtod.texi (strtod): Interpret more test
53547         failures as distinct bugs.
53548
53549 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
53550
53551         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
53552         Problem reported by Erik Benada in
53553         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
53554
53555 2008-03-30  Bruno Haible  <bruno@clisp.org>
53556
53557         * tests/test-strtod.c: Add comments about which assertion fails on which
53558         platform.
53559         * doc/posix-functions/strtod.texi: Add info about many more platforms.
53560
53561 2008-03-30  Eric Blake  <ebb9@byu.net>
53562
53563         Test signbit behavior on zeros.
53564         * tests/test-signbit.c (test_signbitf): Add tests for zero.
53565         (test_signbitd, test_signbitl): Likewise.
53566
53567         More strtod touchups.
53568         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
53569         sign of negative underflow, for now.  Use .5, not .1.
53570         * doc/posix-functions/strtod.texi (strtod): Mention these
53571         limitations.
53572         Reported by Jim Meyering.
53573
53574 2008-03-30  Bruno Haible  <bruno@clisp.org>
53575
53576         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
53577         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
53578
53579 2008-03-30  Bruno Haible  <bruno@clisp.org>
53580
53581         Avoid failure when attempting to return empty iconv results on some
53582         platforms.
53583         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
53584         allocation, don't report ENOMEM when the resulting string is empty.
53585
53586 2008-03-30  Bruno Haible  <bruno@clisp.org>
53587
53588         Fix buffer overrun.
53589         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
53590         Don't consider the width for tmp_length. Check count against tmp_length
53591         before doing the padding. Ensure enough allocation during padding.
53592
53593 2008-03-30  Eric Blake  <ebb9@byu.net>
53594
53595         strtod touchups.
53596         * lib/strtod.c (strtod): Avoid compiler warnings.
53597         Reported by Jim Meyering.
53598
53599 2008-03-30  Bruno Haible  <bruno@clisp.org>
53600
53601         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
53602         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
53603         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
53604         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
53605         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
53606         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
53607         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
53608         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
53609
53610         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
53611         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
53612         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
53613         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
53614         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
53615         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
53616         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
53617         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
53618
53619         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
53620         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
53621         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
53622         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
53623         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
53624         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
53625         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
53626         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
53627
53628         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
53629         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
53630
53631         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
53632         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
53633
53634         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
53635         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
53636
53637         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
53638         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
53639         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
53640
53641         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
53642         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
53643         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
53644
53645         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
53646         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
53647         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
53648
53649         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
53650         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
53651         * modules/vasprintf (Depends-on): Add EOVERFLOW.
53652
53653         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
53654         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
53655         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
53656         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
53657         (Depends-on): Add EOVERFLOW.
53658         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
53659         (Depends-on): Add EOVERFLOW.
53660         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
53661         (Depends-on): Add EOVERFLOW.
53662         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
53663         (Depends-on): Add EOVERFLOW.
53664         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
53665         (Depends-on): Add EOVERFLOW.
53666         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
53667         (Depends-on): Add EOVERFLOW.
53668         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
53669         (Depends-on): Add EOVERFLOW.
53670         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
53671         (Depends-on): Add EOVERFLOW.
53672
53673         * lib/sprintf.c (EOVERFLOW): Remove fallback.
53674         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
53675         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
53676
53677         * lib/snprintf.c (EOVERFLOW): Remove fallback.
53678         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
53679         * modules/snprintf (Depends-on): Add EOVERFLOW.
53680
53681         * lib/poll.c (EOVERFLOW): Remove fallback.
53682         * modules/poll (Depends-on): Add EOVERFLOW.
53683
53684         * lib/getugroups.c (EOVERFLOW): Remove fallback.
53685         * modules/getugroups (Depends-on): Add EOVERFLOW.
53686
53687         * lib/getdelim.c (EOVERFLOW): Remove fallback.
53688         * modules/getdelim (Depends-on): Add EOVERFLOW.
53689
53690         * lib/ftell.c (EOVERFLOW): Remove fallback.
53691         * modules/ftell (Depends-on): Add EOVERFLOW.
53692
53693         * lib/fprintf.c (EOVERFLOW): Remove fallback.
53694         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
53695         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
53696
53697         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
53698
53699         * modules/EOVERFLOW-tests: New file.
53700         * tests/test-EOVERFLOW.c: New file.
53701
53702         * modules/EOVERFLOW: New file.
53703         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
53704
53705 2008-03-30  Bruno Haible  <bruno@clisp.org>
53706
53707         Fix bug introduced on 2007-06-10.
53708         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
53709         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
53710
53711 2008-03-30  Bruno Haible  <bruno@clisp.org>
53712
53713         Improve freadseek's efficiency after ungetc.
53714         * lib/freadseek.c: Include freadahead.h.
53715         (freadptrinc): New function, extracted from freadseek.
53716         (freadseek): Use it in a loop. Use freadahead to determine the number
53717         of loop iterations.
53718         * modules/freadseek (Depends-on): Add freadahead.
53719         (configure.ac): Require AC_C_INLINE.
53720
53721 2008-03-30  Bruno Haible  <bruno@clisp.org>
53722
53723         * lib/freadseek.c (freadseek): Don't ignore the return value of
53724         freadptr.
53725
53726 2008-03-29  Eric Blake  <ebb9@byu.net>
53727
53728         Add hex float support.
53729         * modules/strtod (Depends-on): Add c-ctype.
53730         (Link): Mention POW_LIB.
53731         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
53732         whitespace between 'e' and exponent.
53733         * tests/test-strtod.c (main): Enable hex float tests.
53734         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
53735         now provides.
53736
53737         Document various strtod bugs, with some fixes.
53738         * doc/posix-functions/strtod.texi (strtod): Document bugs with
53739         "-0x", "inf", "nan", and hex constants.
53740         * doc/posix-functions/atof.texi (atof): Likewise.
53741         * modules/stdlib (Makefile.am): Support strtod.
53742         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
53743         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
53744         detect additional strtod bugs.
53745         * lib/stdlib.in.h (rpl_strtod): Add declarations.
53746         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
53747         bool where appropriate.  Parse 'inf' and 'nan'.
53748         * tests/test-strtod.c: New file.
53749         * modules/strtod (Depends-on): Add stdbool, stdlib.
53750         (configure.ac): Turn on module indicator.
53751         * modules/strtod-tests: New module.
53752
53753 2008-03-29  Eric Blake  <ebb9@byu.net>
53754
53755         Fix ftell on mingw.
53756         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
53757         * modules/ftell-tests (Depends-on): Add binary-io.
53758         * modules/ftello-tests (Depends-on): Likewise.
53759         * tests/test-ftell.c (main): Enhance test to cover behavior after
53760         ungetc.  Enforce binary mode.
53761         * tests/test-ftello.c (main): Likewise.
53762
53763         Pass test-freadseek on cygwin.
53764         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
53765         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
53766         ungetc buffer.
53767
53768         * tests/test-fflush2.c (main): Fix typo.
53769
53770 2008-03-29  Bruno Haible  <bruno@clisp.org>
53771
53772         * tests/test-fflush2.c (main): Temporarily disable the contents of
53773         this test.
53774         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
53775         Reported by Eric Blake.
53776
53777 2008-03-28  Simon Josefsson  <simon@josefsson.org>
53778
53779         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
53780         (GC_SHA224_DIGEST_SIZE): Add.
53781
53782         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
53783         (gc_hash_digest_length): Likewise.
53784         (gc_hash_buffer): Likewise.
53785
53786 2008-03-25  Bruno Haible  <bruno@clisp.org>
53787
53788         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
53789         detail which gettext release to use.
53790         Reported by Simon Josefsson.
53791
53792 2008-03-26  Jim Meyering  <meyering@redhat.com>
53793
53794         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
53795         * modules/gnumakefile (clean-GNUmakefile): Also, use
53796         test ... && ... || : syntax rather than if-then ... fi.
53797
53798         gnumakefile: Don't double-quote-expand $(VPATH) value.
53799         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
53800
53801 2008-03-24  Eric Blake  <ebb9@byu.net>
53802
53803         Alter GNUmakefile to install into top directory.
53804         * modules/maintainer-makefile: Split, and add dependency...
53805         * modules/gnumakefile: to this new module.
53806         * build-aux/GNUmakefile: Move...
53807         * top/GNUmakefile: ...here.
53808         * build-aux/maint.mk: Move...
53809         * top/maint.mk: ...here.
53810         * MODULES.html.sh (Support for maintaining...): Document new
53811         module.
53812
53813 2008-03-23  Bruno Haible  <bruno@clisp.org>
53814
53815         * gnulib-tool: New options --vc-files, --no-vc-files.
53816         (func_usage): Document them.
53817         (vc_files): New variable.
53818         (func_import): Consider vc_files.
53819         (func_create_testdir): Set vc_files to empty.
53820         Suggested by Jim Meyering and Karl Berry.
53821
53822 2008-03-23  Bruno Haible  <bruno@clisp.org>
53823
53824         Fix regex compilation error on HP-UX 11.
53825         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
53826         * modules/regex (Files): Add m4/mbstate_t.m4.
53827         Reported by Ton Voon <ton.voon@altinity.com>.
53828
53829 2008-03-23  Bruno Haible  <bruno@clisp.org>
53830
53831         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
53832
53833 2008-03-23  Eric Blake  <ebb9@byu.net>
53834             Bruno Haible  <bruno@clisp.org>
53835
53836         Install files from top/ in the destination directory.
53837         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
53838         augmentation also for the files from top/.
53839         (func_import, func_create_testdir): Rewrite file names:
53840         top/filename -> filename.
53841
53842 2008-03-23  Bruno Haible  <bruno@clisp.org>
53843
53844         Tweak "gnulib --version" output.
53845         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
53846
53847 2008-03-23  Bruno Haible  <bruno@clisp.org>
53848
53849         Tweak "gnulib --version" output.
53850         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
53851         rather than contents of ChangeLog, when possible.
53852
53853 2008-03-21  Eric Blake  <ebb9@byu.net>
53854
53855         More --version tweaks.
53856         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
53857         date of last ChangeLog entry.
53858
53859 2008-03-21  Jim Meyering  <meyering@redhat.com>
53860
53861         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
53862
53863 2008-03-20  Eric Blake  <ebb9@byu.net>
53864
53865         VPATH fix.
53866         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
53867
53868 2008-03-20  Simon Josefsson  <simon@josefsson.org>
53869
53870         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
53871         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
53872
53873 2008-03-20  Eric Blake  <ebb9@byu.net>
53874
53875         Sync GNUmakefile with coreutils.
53876         * build-aux/GNUmakefile (have-Makefile): Rename...
53877         (_have-Makefile): ...to this, for namespace consideration.
53878         (GNUmakefile.cfg): Include, if present.
53879         (_autoreconf): Define a default.
53880         (_is-dist-target): New rule for rebuilds to pick up intra-release
53881         version.
53882         (maint-cfg.mk): Rename...
53883         (cfg.mk): ...to this.
53884
53885 2008-03-18  Jim Meyering  <meyering@redhat.com>
53886
53887         New script and module: mktempd
53888         * MODULES.html.sh (maint+release support): Add mktempd.
53889         * build-aux/mktempd: New file.
53890         * modules/mktempd: New file.
53891
53892 2008-03-15  Jim Meyering  <meyering@redhat.com>
53893
53894         Undo last change.
53895         * lib/sha1.c, lib/md5.c: 63 != ~63.
53896         Reported by Andreas Schwab.
53897
53898         sha1.c, md5.c: Hoist a redundant expression.
53899         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
53900         "ctx->buflen" only once, before calling *_process_block.
53901         * lib/md5.c (md5_process_bytes): Likewise.
53902
53903 2008-03-14  Eric Blake  <ebb9@byu.net>
53904
53905         Bump copyright year in files generated by gnulib-tool.
53906         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
53907         gnulib-tool, rather than hard-coding it.
53908
53909         Fix 'gnulib-tool --version' output to work with git.
53910         * gnulib-tool (func_gnulib_dir): New function, extracted from...
53911         (startup): ...here.
53912         (func_version): Use it to invoke git-version-gen, rather than
53913         relying on CVS keyword expansion.  Modernize wording.
53914         (cvsdatestamp, last_checkin_date, version): Kill unused
53915         variables.
53916
53917 2008-03-12  Jim Meyering  <meyering@redhat.com>
53918
53919         Recognize optional cast of the argument to free.
53920         * build-aux/useless-if-before-free: Update regexps.
53921
53922         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
53923
53924 2008-03-11  Bruno Haible  <bruno@clisp.org>
53925
53926         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
53927         by a single package.
53928         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
53929         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
53930         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
53931         Reported by Sam Steingold <sds@gnu.org>.
53932
53933 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
53934
53935         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
53936         repositories.
53937
53938 2008-03-11  Bruno Haible  <bruno@clisp.org>
53939
53940         Avoid conflicts between local macro definitions.
53941         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
53942         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
53943
53944 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
53945             Bruno Haible  <bruno@clisp.org>
53946
53947         Make va_copy work with some version of xlc on AIX 5.1.
53948         * lib/stdarg.in.h: New file.
53949         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
53950         On AIX, use a <stdarg.h> file substitute.
53951         * modules/stdarg (Files): Add lib/stdarg.in.h.
53952         (Depends-on): Add include_next.
53953         (Makefile.am): Build a stdarg.h substitute if requested.
53954         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
53955
53956 2008-03-10  Bruno Haible  <bruno@clisp.org>
53957
53958         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
53959         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
53960         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
53961
53962 2008-03-10  Bruno Haible  <bruno@clisp.org>
53963
53964         * modules/stdlib (Depends-on): Add include_next, remove
53965         absolute-header.
53966
53967 2008-03-09  Bruno Haible  <bruno@clisp.org>
53968
53969         * lib/freadahead.h (freadahead): Document more precisely.
53970         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
53971         the sum of both buffer sizes.
53972         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
53973         * NEWS: Document the change.
53974
53975 2008-03-09  Bruno Haible  <bruno@clisp.org>
53976
53977         Extend freadptr to return also the buffer size.
53978         * lib/freadptr.h (freadptr): Add sizep argument.
53979         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
53980         (freadptr): Add sizep argument. Determine buffer size like freadahead
53981         does.
53982         * tests/test-freadptr.c: Don't include freadahead.h.
53983         (main): Adapt for new calling convention of freadptr.
53984         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
53985         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
53986         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
53987         tests/test-freadptr2.sh.
53988         (Depends): Remove freadahead.
53989         (TESTS): Add test-freadptr2.sh.
53990         (check_PROGRAMS): Add test-freadptr2.
53991
53992 2008-03-09  Bruno Haible  <bruno@clisp.org>
53993
53994         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
53995         Report and solution by Simon Josefsson.
53996
53997 2008-03-06  Bruno Haible  <bruno@clisp.org>
53998
53999         Make fflush after ungetc work on BSD platforms.
54000         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
54001         * tests/test-fflush2.c: New file.
54002         * tests/test-fflush2.sh: New file.
54003         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
54004         tests/test-fflush2.c.
54005         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
54006         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
54007
54008 2008-03-06  Eric Blake  <ebb9@byu.net>
54009
54010         Likewise for ftello.
54011         * modules/ftello (Dependencies): Add extensions.
54012         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
54013
54014 2008-03-06  Bruno Haible  <bruno@clisp.org>
54015
54016         * modules/fseeko (Dependencies): Add extensions.
54017         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
54018         Needed on glibc systems.
54019
54020 2008-03-06  Bruno Haible  <bruno@clisp.org>
54021
54022         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
54023         email address.
54024         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
54025
54026 2008-03-06  Bruno Haible  <bruno@clisp.org>
54027
54028         * users.txt: Add libgnupdf.
54029
54030 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
54031
54032         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
54033         (Header File Substitutes, Function Substitutes,
54034         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
54035         (Build robot for gnulib): Fix typo.
54036
54037 2008-03-06  Bruno Haible  <bruno@clisp.org>
54038
54039         * doc/gnulib-tool.texi (VCS Issues): Small updates.
54040         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
54041
54042 2008-03-06  Bruno Haible  <bruno@clisp.org>
54043
54044         * doc/func.texi: New file, extracted from doc/gnulib.texi.
54045         * doc/gnulib.texi: Include it.
54046
54047 2008-03-06  Simon Josefsson  <simon@josefsson.org>
54048
54049         * modules/func (License): Change license to unlimited; there was
54050         no LGPL parts in the module anyway.
54051
54052 2008-03-06  Simon Josefsson  <simon@josefsson.org>
54053
54054         * modules/__func__: Renamed to modules/func.
54055         * modules/__func__-tests: Renamed to modules/func-tests.
54056         * tests/test-__func__.c: Renamed to tests/test-func.c.
54057         * m4/__func__.m4: Renamed to m4/func.m4.
54058         * doc/gnulib.texi (__func__): Section renamed to func.
54059         Suggested by Eric Blake <ebb9@byu.net>.
54060
54061 2008-03-06  Simon Josefsson  <simon@josefsson.org>
54062
54063         * doc/gnulib.texi (__func__): Use C99 terminology when talking
54064         about __func__.  Make example self-contained.  Suggested by Eric
54065         Blake <ebb9@byu.net>.
54066
54067         * tests/test-__func__.c (main): Avoid extraneous () around __func.
54068         Suggested by Eric Blake <ebb9@byu.net>.
54069
54070 2008-03-06  Simon Josefsson  <simon@josefsson.org>
54071
54072         * modules/__func__: New file.
54073         * modules/__func__-tests: New file.
54074         * tests/test-__func__.c: New file.
54075         * m4/__func__.m4: New file.
54076         * doc/gnulib.texi (__func__): Document __func__ module.
54077
54078 2008-03-05  Simon Josefsson  <simon@josefsson.org>
54079
54080         * modules/byteswap (License): Re-license as LGPLv2+.
54081
54082 2008-03-05  Simon Josefsson  <simon@josefsson.org>
54083
54084         * doc/Makefile: Add pdf target.
54085
54086 2008-03-05  Simon Josefsson  <simon@josefsson.org>
54087
54088         * modules/inline (License): Use 'unlimited', since there are only
54089         *.m4 files in this module.
54090
54091 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
54092             Bruno Haible  <bruno@clisp.org>
54093
54094         Add support for HP C 7.1 on OpenVMS 8.3.
54095         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
54096
54097 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
54098
54099         Update VMS specifics.
54100         * lib/getopt.c [VMS]: Remove include of unixlib.h.
54101
54102 2008-03-02  Jim Meyering  <meyering@redhat.com>
54103
54104         Remove the last dependency on the "free" module.
54105         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
54106         Reported by Bob Proulx.
54107
54108         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
54109
54110         Remove useless "if" tests before free.  Deprecate "free" module.
54111         * doc/posix-functions/free.texi: Mention that this
54112         module is no longer useful.
54113         * modules/free (Notice): Say this module is obsolete.
54114         * modules/readutmp (Depends-on): Remove free.
54115         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
54116         * lib/putenv.c (putenv): Likewise.
54117         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
54118         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
54119         * tests/test-c-strcasestr.c (main): Likewise.
54120         * tests/test-c-strstr.c (main): Likewise.
54121         * tests/test-mbscasestr1.c (main): Likewise.
54122         * tests/test-mbscasestr2.c (main): Likewise.
54123         * tests/test-mbsstr1.c (main): Likewise.
54124         * tests/test-mbsstr2.c (main): Likewise.
54125         * tests/test-memmem.c (main): Likewise.
54126         * tests/test-strcasestr.c (main): Likewise.
54127         * tests/test-striconv.c (main): Likewise.
54128         * tests/test-striconveh.c (main): Likewise.
54129         * tests/test-striconveha.c (main): Likewise.
54130         * tests/test-strstr.c (main): Likewise.
54131
54132         * build-aux/git-version-gen: Adjust a comment and the Usage string.
54133
54134         bootstrap: sync from coreutils again
54135         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
54136
54137 2008-03-01  Jim Meyering  <meyering@redhat.com>
54138
54139         bootstrap: sync from coreutils
54140         * build-aux/bootstrap (update_po_files): Copy a .po file into place
54141         also when the target doesn't exist.
54142
54143 2008-03-01  Eric Blake  <ebb9@byu.net>
54144
54145         Fix bugs in last patch.
54146         * lib/memchr2.c (memchr2): Fix typo.
54147         * tests/test-memchr2.c: Test previous bug, and don't use GNU
54148         extension.
54149         Reported by Bruce Korb.
54150
54151         New module 'memchr2'.
54152         * modules/memchr2: New file.
54153         * modules/memchr2-tests: Likewise.
54154         * lib/memchr2.h: Likewise.
54155         * lib/memchr2.c: Likewise, based on memchr.c.
54156         * tests/test-memchr2.c: New test.
54157         * MODULES.html.sh (String handling): Add memchr2.
54158
54159 2008-02-29  Bruno Haible  <bruno@clisp.org>
54160
54161         * modules/freadseek-tests: New file.
54162         * tests/test-freadseek.sh: New file.
54163         * tests/test-freadseek.c: New file.
54164
54165         New module 'freadseek'.
54166         * modules/freadseek: New file.
54167         * lib/freadseek.h: New file.
54168         * lib/freadseek.c: New file.
54169         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
54170
54171 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
54172
54173         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
54174         wydawca.
54175
54176         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
54177         program_invocation_name and program_invocation_short_name are
54178         present.
54179
54180 2008-02-28  Bruno Haible  <bruno@clisp.org>
54181
54182         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
54183         * tests/test-freadptr.sh: Also test non-seekable stdin.
54184
54185 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
54186
54187         * build-aux/bootstrap (source_base, m4_base)
54188         (doc_base, tests_base): New variables.
54189         (gnulib_tool_options): Do not hardcode base directories, use
54190         the above variables instead.
54191
54192 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
54193
54194         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
54195
54196 2008-02-28  Bruno Haible  <bruno@clisp.org>
54197
54198         * modules/freadptr-tests: New file.
54199         * tests/test-freadptr.sh: New file.
54200         * tests/test-freadptr.c: New file.
54201
54202         New module 'freadptr'.
54203         * modules/freadptr: New file.
54204         * lib/freadptr.h: New file.
54205         * lib/freadptr.c: New file.
54206         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
54207
54208 2008-02-26  Karl Berry  <karl@freefriends.org>
54209
54210         Sync from Libtool:
54211         * libltdl/argz.c (argz_add, argz_count): New functions.
54212         * libltdl/argz.in.h: Declare them.
54213         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
54214
54215 2008-02-22  Bruno Haible  <bruno@clisp.org>
54216
54217         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
54218         is a pointer type.  Needed for HP-UX 10.
54219         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
54220         * doc/posix-functions/gmtime_r.texi: Likewise.
54221         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
54222
54223 2008-02-24  Bruno Haible  <bruno@clisp.org>
54224
54225         * modules/environ-tests: New file.
54226         * tests/test-environ.c: New file.
54227
54228         New module 'environ'.
54229         * modules/environ: New file.
54230         * lib/unistd.in.h (environ): New declaration.
54231         * m4/environ.m4: New file.
54232         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
54233         after use.
54234         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
54235         HAVE_DECL_ENVIRON.
54236         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
54237         HAVE_DECL_ENVIRON.
54238         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
54239         wrong claim that 'environ' is missing on some systems.
54240         * modules/execute (Depends-on): Add environ.
54241         * lib/execute.c (environ): Remove fallback declaration.
54242         * modules/pipe (Depends-on): Add environ.
54243         * lib/pipe.c (environ): Remove fallback declaration.
54244         * modules/setenv (Depends-on): Add environ.
54245         * lib/setenv.c (environ): Remove fallback declaration.
54246         * modules/unsetenv (Depends-on): Add environ.
54247         * lib/unsetenv.c (environ): Remove fallback declaration.
54248         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
54249         m4/environ.m4.
54250         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
54251         (gl_PREREQ_UNSETENV): Likewise.
54252
54253 2008-02-24  Bruno Haible  <bruno@clisp.org>
54254
54255         * doc/posix-functions/environ.texi: Document the MacOS X problem.
54256
54257 2008-02-20  Bob Proulx  <bob@proulx.com>
54258
54259         Enable use of older two part flavor 'git describe'.
54260         * build-aux/git-version-gen: If using the older two part flavor of
54261         git version then recreate the third part now present in the
54262         newer three part flavor of git describe.
54263
54264 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
54265
54266         * lib/fts.c (fts_build): Typo correction to comment.
54267
54268 2008-02-17  Bruno Haible  <bruno@clisp.org>
54269
54270         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
54271         generating no-op conflicts.
54272
54273 2008-02-17  Bruno Haible  <bruno@clisp.org>
54274
54275         Speed up by 10%.
54276         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
54277         result_entries, rather than an index-based loop.
54278
54279 2008-02-17  Bruno Haible  <bruno@clisp.org>
54280
54281         Speed up by 25%.
54282         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
54283         'hashcode_cached'.
54284         (entry_create): New function.
54285         (entry_hashcode): Use the cached hashcode if possible.
54286         (read_changelog_file, try_split_merged_entry): Use entry_create.
54287
54288 2008-02-17  Bruno Haible  <bruno@clisp.org>
54289
54290         Speed up from O(n^2) to O(n) for long ChangeLog files.
54291         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
54292         (read_changelog_file): Change implementation of entries_reversed list
54293         to rbtreehash.
54294         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
54295
54296 2008-02-17  Bruno Haible  <bruno@clisp.org>
54297
54298         New option --split-merged-entry.
54299         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
54300         (find_paragraph_end, try_split_merged_entry): New functions.
54301         (long_options): Add option --split-merged-entry.
54302         (usage): Document option --split-merged-entry.
54303         (main): Implement option --split-merged-entry.
54304         Reported by Eric Blake.
54305
54306 2008-02-17  Bruno Haible  <bruno@clisp.org>
54307
54308         * lib/git-merge-changelog.c: Include c-strstr.h.
54309         (main): Support the "git pull --rebase" situation.
54310         * modules/git-merge-changelog (Depends-on): Add c-strstr.
54311         Reported by Eric Blake.
54312
54313 2008-02-16  Eric Blake  <ebb9@byu.net>
54314
54315         Avoid doubling \ in common case of "c-maybe" quoting style.
54316         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
54317         eliding outer quotes.
54318         * lib/quotearg.h: Document this.
54319         * tests/test-quotearg.c (result_strings, inputs, results_g)
54320         (flag_results, locale_results): Test it by adding a new string to
54321         each test group.
54322         (compare_strings): Test new string.
54323
54324 2008-02-13  Eric Blake  <ebb9@byu.net>
54325
54326         Avoid trigraph quoting in default output.
54327         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
54328         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
54329         unless explicitly requested.
54330         * tests/test-quotearg.c (flag_results, main): Add additional tests.
54331
54332 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
54333
54334         Don't rely on signed integer overflowing to negative value.
54335         * lib/getugroups.c (getugroups): Include <limits.h>.
54336         Instead, compare against INT_MAX, and increment only if the test passes.
54337
54338 2008-02-13  Jim Meyering  <meyering@redhat.com>
54339         and Eric Blake  <ebb9@byu.net>
54340
54341         Avoid shadowing warning and compile errors on Linux.
54342         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
54343         forwarding macros on Linux.
54344         (dcgettext): Define a stub, for Linux.
54345         (results_g, main): Avoid warnings.
54346
54347 2008-02-12  Eric Blake  <ebb9@byu.net>
54348
54349         Silence warning in last patch.
54350         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
54351
54352         Quotearg part 4: add tests, fix c-maybe colon quoting.
54353         * lib/quotearg.h: Improve documentation.
54354         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
54355         escapes when adding outer quotes.  When quoting trigraphs, use
54356         valid C notation.  When quoting NUL, omit extra characters if next
54357         character is not digit.  Alter prototype.
54358         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
54359         callers.
54360         * modules/quotearg-tests: New module.
54361         * tests/test-quotearg.c: New test.
54362
54363 2008-02-07  Eric Blake  <ebb9@byu.net>
54364
54365         Quotearg part 3: add flag to control outer quote elision.
54366         * lib/quotearg.h (c_maybe_quoting_style): New style.
54367         (enum quoting_flags): Better documentation of flags.
54368         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
54369         c-maybe style.
54370         (quotearg_buffer_restyled): Handle new flag to elide outer
54371         quotes.
54372
54373         Quotearg part 2: add flag that can control NUL elision.
54374         * lib/quotearg.h (set_quoting_flags): New prototype.
54375         * lib/quotearg.c (struct quoting_options): Add flag field.
54376         (set_quoting_flags): New function.
54377         (quotearg_buffer_restyled): Add flags parameter.
54378         (quotearg_alloc_mem): Set the flag if length cannot be returned.
54379         (quotearg_n_options): Set the flag, since length cannot be
54380         returned.
54381         (quoting_options_from_style): Default flags correctly.
54382
54383         Quotearg part 1: more wrappers, restore quotearg_char state.
54384         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
54385         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
54386         (quotearg_colon_mem): New wrappers.
54387         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
54388         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
54389         functions.
54390         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
54391         (quotearg_colon_mem): New functions.
54392
54393 2008-02-11  Bruno Haible  <bruno@clisp.org>
54394
54395         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
54396         library in the current directory: it does not work with parallel make.
54397         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54398
54399 2008-02-11  Bruno Haible  <bruno@clisp.org>
54400
54401         * .gitattributes: New file.
54402
54403 2008-02-11  Jim Meyering  <meyering@redhat.com>
54404
54405         useless-if-before-free: Fix reversed exit values.
54406         * build-aux/useless-if-before-free: Use correct values
54407         for EXIT_MATCH and EXIT_NO_MATCH.
54408
54409         * build-aux/useless-if-before-free: Close stdout carefully.
54410
54411 2008-02-10  Bruno Haible  <bruno@clisp.org>
54412
54413         New module 'git-merge-changelog'.
54414         * modules/git-merge-changelog: New file.
54415         * lib/git-merge-changelog.c: New file.
54416
54417 2008-02-10  Jim Meyering  <meyering@redhat.com>
54418
54419         useless-if-before-free: New option: --list (-l).
54420
54421         useless-if-before-free: Don't exit immediately upon open failure.
54422         * build-aux/useless-if-before-free: Exit 2 for errors.
54423         Upon failure to open a file, don't exit immediately.
54424         Rather, just warn and continue with any remaining files.
54425
54426 2008-02-10  Bruno Haible  <bruno@clisp.org>
54427
54428         New abstract list operation 'node_set_value'.
54429         * lib/gl_list.h (gl_list_node_set_value): New function.
54430         (struct gl_list_implementation): New field node_set_value.
54431         * lib/gl_list.c (gl_list_node_set_value): New function.
54432         * lib/gl_array_list.c (gl_array_node_set_value): New function.
54433         (gl_array_list_implementation): Update.
54434         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
54435         (gl_carray_list_implementation): Update.
54436         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
54437         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
54438         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
54439         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
54440         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
54441         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
54442         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
54443         Update.
54444         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
54445         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
54446         (gl_sublist_list_implementation): Update.
54447
54448 2008-02-10  Bruno Haible  <bruno@clisp.org>
54449
54450         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
54451         Needed when ELEMENT is #defined to 'some_type *'.
54452
54453 2008-02-10  Jim Meyering  <meyering@redhat.com>
54454
54455         New script and module: useless-if-before-free
54456         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
54457         * build-aux/useless-if-before-free: New file.
54458         * modules/useless-if-before-free: New file.
54459
54460         * build-aux/gitlog-to-changelog: Use committer date, not author date.
54461
54462         xstrtol_error: Fix typo.
54463         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
54464         s/exit_failure/exit_status/.
54465
54466 2008-02-09  Jim Meyering  <meyering@redhat.com>
54467
54468         New script and module: gitlog-to-changelog
54469         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
54470         * modules/gitlog-to-changelog: New file.
54471         * build-aux/gitlog-to-changelog: New file.
54472
54473 2008-02-08  Jim Meyering  <meyering@redhat.com>
54474
54475         Avoid two "parameter unused" warnings.
54476         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
54477         Mark "st" as used.
54478
54479         Use "git COMMAND", not "git-COMMAND".
54480         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
54481         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
54482         * build-aux/git-version-gen: Use "git status", not "git-status".
54483
54484 2008-02-07  Bruno Haible  <bruno@clisp.org>
54485
54486         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
54487         Avoids a crash on Windows Vista.
54488         Reported by Adam Strzelecki <ono@java.pl> via
54489         Simon Josefsson <simon@josefsson.org>.
54490
54491 2008-02-06  Bruno Haible  <bruno@clisp.org>
54492
54493         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
54494         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
54495         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
54496         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
54497         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54498         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54499         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
54500         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
54501         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54502         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54503         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54504         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54505         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54506         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54507         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54508         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
54509         left-adjust flag.
54510         * tests/test-snprintf-posix.h (test_function): Likewise.
54511         * tests/test-sprintf-posix.h (test_function): Likewise.
54512         * tests/test-vasprintf-posix.c (test_function): Likewise.
54513         * doc/posix-functions/fprintf.texi: Update.
54514         * doc/posix-functions/printf.texi: Update.
54515         * doc/posix-functions/snprintf.texi: Update.
54516         * doc/posix-functions/sprintf.texi: Update.
54517         * doc/posix-functions/vfprintf.texi: Update.
54518         * doc/posix-functions/vprintf.texi: Update.
54519         * doc/posix-functions/vsnprintf.texi: Update.
54520         * doc/posix-functions/vsprintf.texi: Update.
54521         Reported by Peter Fales <psfales@alcatel-lucent.com>.
54522
54523 2008-02-06  Bruno Haible  <bruno@clisp.org>
54524
54525         Fix bug introduced on 2008-01-26.
54526         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
54527
54528 2008-02-06  Bruno Haible  <bruno@clisp.org>
54529
54530         Fix bug introduced on 2007-06-10.
54531         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
54532         !NEED_PRINTF_FLAG_ZERO.
54533
54534 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
54535
54536         getloadavg: use libperfstat on AIX5
54537         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
54538
54539 2008-02-03  Bruno Haible  <bruno@clisp.org>
54540
54541         * lib/diffseq.h: Add comments about required #includes.
54542         Reported by Michael Biggs <gnulib@doubleplum.net>.
54543
54544 2008-02-01  Bruno Haible  <bruno@clisp.org>
54545
54546         * users.txt: Add gnuit.
54547
54548 2008-01-31  Bruno Haible  <bruno@clisp.org>
54549
54550         * lib/md4.c (set_uint32): Mark as inline.
54551         * lib/md5.c (set_uint32): Likewise.
54552         * lib/sha1.c (set_uint32): Likewise.
54553         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
54554         * m4/md5.m4 (gl_MD5): Likewise.
54555         * m4/sha1.m4 (gl_SHA1): Likewise.
54556
54557 2008-01-31  Jim Meyering  <meyering@redhat.com>
54558
54559         Use "sizeof VAR", rather than a literal "4".
54560         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
54561         * lib/md4.c (md4_read_ctx): Likewise.
54562         * lib/sha1.c (sha1_read_ctx): Likewise.
54563
54564 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54565
54566         * tests/test-sha1.c: New file, based on test-md5.c.
54567
54568         * modules/crypto/sha1-tests: New file.
54569
54570 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54571
54572         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
54573
54574 2008-01-31  Jim Meyering  <meyering@redhat.com>
54575
54576         Prefer "sizeof v" over the equivalent "4".
54577         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
54578         * lib/md5.c (set_uint32): Likewise.
54579         * lib/sha1.c (set_uint32): Likewise.
54580
54581 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54582
54583         * lib/sha1.c (set_uint32): Mark function as static.
54584
54585 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54586
54587         md2: clarify comments to say that alignment is not required.
54588         * lib/md2.h: Remove warning about alignment in comment.
54589         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
54590         never been required.
54591
54592 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54593
54594         md4: adapt alignment constraint fix from sha1.
54595         * lib/md4.c (set_uint32): New function, from sha1.c
54596         (md4_read_ctx): Use it.
54597         (md4_finish_ctx): Doc fix.
54598         * lib/md4.h: Doc fix.
54599
54600 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54601
54602         md5: adapt alignment constraint fix from sha1.
54603         * lib/md5.c (set_uint32): New function, from sha1.c
54604         (md5_read_ctx): Use it.
54605         (md5_finish_ctx): Doc fix.
54606         * lib/md5.h: Doc fix.
54607
54608 2008-01-30  Peter Palfrader  <weasel@debian.org>
54609
54610         sha1: remove the result buffer alignment constraint
54611         * lib/sha1.c (set_uint32): New function.
54612         (sha1_read_ctx): Rewrite to remove the result buffer alignment
54613         constraint.
54614         (sha1_finish_ctx): Remove comment warning about alignment constraint.
54615         * lib/sha1.h: Likewise.
54616
54617 2008-01-30  Andreas Schwab  <schwab@suse.de>
54618             Bruno Haible  <bruno@clisp.org>
54619
54620         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
54621         correct definition of LDBL_MIN_EXP.
54622
54623 2008-01-30  Karl Berry  <karl@gnu.org>
54624
54625         * config/srclist-update: try to preserve x bit on updates.
54626         * config/srclistvars.sh: update for karl.
54627
54628 2008-01-29  Jim Meyering  <meyering@redhat.com>
54629
54630         vasnprintf.c: Avoid warning about unused label
54631         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
54632         "overflow" label definition and associated code with the
54633         same cpp condition that guards the sole use of that label.
54634
54635 2008-01-26  Bruno Haible  <bruno@clisp.org>
54636
54637         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
54638         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
54639         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
54640         * lib/isnanl-nolibm.h (isnanl): Likewise.
54641         Reported by Paul Eggert <eggert@cs.ucla.edu>.
54642
54643 2008-01-26  Bruno Haible  <bruno@clisp.org>
54644
54645         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
54646         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
54647
54648 2008-01-26  Bruno Haible  <bruno@clisp.org>
54649
54650         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
54651         GCC >= 4.0 built-in.
54652         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
54653
54654 2008-01-26  Bruno Haible  <bruno@clisp.org>
54655
54656         Rename isnan, applicable to 'double' only, to isnand.
54657         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
54658         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
54659         (configure.ac): Update.
54660         (Include): Replace "isnan.h" with "isnand.h".
54661         * m4/isnand.m4: Renamed from m4/isnan.m4.
54662         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
54663         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
54664         instead of isnan.c.
54665         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
54666         instead of HAVE_ISNAN_IN_LIBC.
54667         (isnand): Renamed from isnan.
54668         * lib/isnand.c: New file.
54669         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
54670         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
54671         (Makefile.am): Update.
54672         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
54673         Include isnand.h instead of isnan.h.
54674         (main): Test isnand instead of isnan.
54675         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
54676         isnan-nolibm.
54677         * modules/frexp (Depends-on): Likewise.
54678         * modules/frexp-tests (Depends-on): Likewise.
54679         * modules/frexp-nolibm (Depends-on): Likewise.
54680         * modules/frexp-nolibm-tests (Depends-on): Likewise.
54681         * modules/isfinite (Depends-on): Likewise.
54682         * modules/round-tests (Depends-on): Likewise.
54683         * modules/signbit (Depends-on): Likewise.
54684         * modules/signbit-tests (Depends-on): Likewise.
54685         * modules/snprintf-posix (Depends-on): Likewise.
54686         * modules/sprintf-posix (Depends-on): Likewise.
54687         * modules/trunc-tests (Depends-on): Likewise.
54688         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
54689         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
54690         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
54691         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
54692         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
54693         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
54694         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
54695         * modules/vasnprintf-posix (Depends-on): Likewise.
54696         * modules/vasprintf-posix (Depends-on): Likewise.
54697         * modules/vfprintf-posix (Depends-on): Likewise.
54698         * modules/vsnprintf-posix (Depends-on): Likewise.
54699         * modules/vsprintf-posix (Depends-on): Likewise.
54700         * lib/frexp.c: Include isnand.h instead of isnan.h.
54701         (ISNAN): Set to isnand instead of isnan.
54702         * lib/isfinite.c: Include isnand.h instead of isnan.h.
54703         (gl_isfinited): Use isnand instead of isnan.
54704         * lib/signbitd.c: Include isnand.h instead of isnan.h.
54705         (gl_signbitd): Use isnand instead of isnan.
54706         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
54707         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
54708         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
54709         (main): Use isnand instead of isnan.
54710         * tests/test-round1.c: Include isnand.h.
54711         (main): Use isnand instead of isnan.
54712         * tests/test-round2.c: Include isnand.h instead of isnan.h.
54713         (ISNAN): Set to isnand instead of isnan.
54714         * tests/test-trunc1.c: Include isnand.h.
54715         (main): Use isnand instead of isnan.
54716         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
54717         (equal): Use isnand instead of isnan.
54718         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
54719         isnand-nolibm.
54720         * NEWS: Mention the change.
54721
54722 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
54723             Bruno Haible  <bruno@clisp.org>
54724
54725         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
54726         the GCC builtins for signbits are present and set
54727         REPLACE_SIGNBIT_USING_GCC if so.
54728         * lib/math.in.h (signbit): Define using GCC builtins if
54729         REPLACE_SIGNBIT_USING_GCC is set.
54730         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
54731         REPLACE_SIGNBIT_USING_GCC.
54732         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
54733
54734 2008-01-25  Jim Meyering  <meyering@redhat.com>
54735
54736         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
54737         * lib/poll.c: Include <config.h>, not "config.h".
54738         * tests/test-getaddrinfo.c: Likewise.
54739
54740 2008-01-25  Simon Josefsson  <simon@josefsson.org>
54741
54742         * modules/sockets-tests: New file.
54743
54744 2008-01-24  Simon Josefsson  <simon@josefsson.org>
54745
54746         * modules/sockets: New module, can be used to call WSA_Startup and
54747         WSA_Cleanup when needed.
54748
54749         * lib/sockets.h, lib/sockets.c: New files.
54750
54751         * m4/sockets.m4: New file.
54752
54753         * tests/test-sockets.c: New file.
54754
54755 2008-01-19  Bruno Haible  <bruno@clisp.org>
54756
54757         * doc/posix-headers: Renamed from doc/headers.
54758         * doc/posix-functions: Renamed from doc/functions.
54759         * doc/gnulib.texi: Update.
54760
54761 2008-01-19  Bruno Haible  <bruno@clisp.org>
54762
54763         * doc/glibc-functions/strcasestr.texi: Include contents of
54764         doc/functions/strcasestr.texi, fixing the list of platforms.
54765         * doc/functions/strcasestr.texi: Remove file.
54766
54767 2008-01-19  Bruno Haible  <bruno@clisp.org>
54768
54769         * doc/glibc-functions/memmem.texi: Include contents of
54770         doc/functions/memmem.texi.
54771         * doc/functions/memmem.texi: Remove file.
54772
54773 2008-01-18  Bruno Haible  <bruno@clisp.org>
54774
54775         * doc/glibc-functions/*.texi: New files.
54776         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
54777         to use the new files.
54778
54779 2008-01-17  Bruno Haible  <bruno@clisp.org>
54780
54781         * tests/test-gethostname.c (main): Fix printf statement.
54782
54783 2008-01-17  Simon Josefsson  <simon@josefsson.org>
54784
54785         * modules/gethostname-tests: New file.
54786
54787         * tests/test-gethostname.c: New file.
54788
54789 2008-01-17  Simon Josefsson  <simon@josefsson.org>
54790
54791         * lib/gethostname.c: Include string.h unconditionally, strncpy is
54792         used by the UNAME case.  Reported by Bruno Haible
54793         <bruno@clisp.org>.
54794
54795 2008-01-17  Eric Blake  <ebb9@byu.net>
54796
54797         Convert c-strcasestr to be more efficient.
54798         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
54799         (Depends-on): Add c-strcase, remove malloca, strnlen.
54800         * tests/test-c-strcasestr.c (main): Enhance test.
54801         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
54802
54803 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
54804
54805         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
54806         Use it in creating po/Makevars.
54807
54808 2008-01-15  Simon Josefsson  <simon@josefsson.org>
54809
54810         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
54811         Applications that requires it should initialize libgcrypt
54812         manually.
54813
54814 2008-01-16  Simon Josefsson  <simon@josefsson.org>
54815
54816         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
54817
54818 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
54819
54820         Fix problem with getdate on mingw32 reported by Simon Josefsson
54821         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
54822         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
54823         tzname", when deciding whether to declare tzname.
54824         * lib/strftime.c (tzname): Likewise.
54825
54826 2008-01-15  Bruno Haible  <bruno@clisp.org>
54827
54828         Work around a MacOS X 10.5 bug in frexpl().
54829         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
54830         * doc/functions/frexpl.texi: Document the bug.
54831         Reported by Elias Pipping <pipping@gentoo.org>.
54832
54833 2008-01-14  Eric Blake  <ebb9@byu.net>
54834
54835         Touch up previous patch.
54836         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
54837         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
54838
54839         Convert strcasestr module to use Two-Way algorithm.
54840         * modules/strcasestr-simple: New module, based on the old
54841         strcasestr, but with Two-Way rather than KMP.
54842         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
54843         * lib/string.in.h (rpl_strcasestr): Declare.
54844         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
54845         performance.
54846         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
54847         * modules/string (Makefile.am): Support strcasestr.
54848         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
54849         * modules/strcasestr-tests (Depends-on): Check for alarm.
54850         * tests/test-strcasestr.c: Augment test.
54851         * lib/str-two-way.h: Clean up stray macro.
54852         * NEWS: Document new module.
54853         * MODULES.html.sh (string handling): Likewise.
54854         * doc/functions/strcasestr.texi: New file.
54855         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
54856         here, since it is not a POSIX function.
54857
54858 2008-01-14  Colin Watson  <cjwatson@debian.org>
54859             Bruno Haible  <bruno@clisp.org>
54860
54861         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
54862         works fine; if not, set REPLACE_STRSIGNAL.
54863         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
54864         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54865         REPLACE_STRSIGNAL.
54866         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
54867         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
54868         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
54869
54870 2008-01-14  Bruno Haible  <bruno@clisp.org>
54871
54872         * modules/strsignal (Include): Change to <string.h>.
54873
54874 2008-01-14  Colin Watson  <cjwatson@debian.org>
54875
54876         * modules/argp (Notice): Add a notice recommending to change
54877         XGETTEXT_OPTIONS.
54878         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
54879
54880 2008-01-13  Colin Watson  <cjwatson@debian.org>
54881
54882         * modules/strsignal-tests: New file.
54883         * tests/test-strsignal.c: New file.
54884
54885         * lib/strsignal.c: New file, from glibc with modifications.
54886         * lib/siglist.h: New file, from glibc with modifications.
54887         * lib/string.in.h (strsignal): New declaration.
54888         * m4/strsignal.m4: New file.
54889         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54890         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
54891         * modules/strsignal: New file.
54892         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
54893         HAVE_DECL_STRSIGNAL.
54894
54895 2008-01-13  Bruno Haible  <bruno@clisp.org>
54896
54897         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
54898         locale encoding is not ASCII. Needed for OpenBSD 4.0.
54899         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
54900         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
54901
54902 2008-01-13  Bruno Haible  <bruno@clisp.org>
54903
54904         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
54905         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
54906         * lib/argp.h (__attribute__): Likewise.
54907         * lib/c-stack.c (__attribute__): Likewise.
54908         * lib/error.h (__attribute__): Likewise.
54909         * lib/fts.c (__attribute__): Likewise.
54910         * lib/openat.h (__attribute__): Likewise.
54911         * lib/stdio.in.h (__attribute__): Likewise.
54912         * lib/string.in.h (__attribute__): Likewise.
54913         * lib/utimens.c (__attribute__): Likewise.
54914         * lib/vasnprintf.h (__attribute__): Likewise.
54915         * lib/xalloc.h (__attribute__): Likewise.
54916         * lib/xprintf.h (__attribute__): Likewise.
54917         * lib/xstrtol.h (__attribute__): Likewise.
54918         * lib/xvasprintf.h (__attribute__): Likewise.
54919
54920 2008-01-12  Bruno Haible  <bruno@clisp.org>
54921
54922         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
54923         * doc/glibc-headers/a.out.texi: New file.
54924         * doc/glibc-headers/aliases.texi: New file.
54925         * doc/glibc-headers/alloca.texi: New file.
54926         * doc/glibc-headers/ar.texi: New file.
54927         * doc/glibc-headers/argp.texi: New file.
54928         * doc/glibc-headers/argz.texi: New file.
54929         * doc/glibc-headers/byteswap.texi: New file.
54930         * doc/glibc-headers/crypt.texi: New file.
54931         * doc/glibc-headers/endian.texi: New file.
54932         * doc/glibc-headers/envz.texi: New file.
54933         * doc/glibc-headers/err.texi: New file.
54934         * doc/glibc-headers/error.texi: New file.
54935         * doc/glibc-headers/execinfo.texi: New file.
54936         * doc/glibc-headers/fpu_control.texi: New file.
54937         * doc/glibc-headers/fstab.texi: New file.
54938         * doc/glibc-headers/fts.texi: New file.
54939         * doc/glibc-headers/getopt.texi: New file.
54940         * doc/glibc-headers/ieee754.texi: New file.
54941         * doc/glibc-headers/ifaddrs.texi: New file.
54942         * doc/glibc-headers/libintl.texi: New file.
54943         * doc/glibc-headers/mcheck.texi: New file.
54944         * doc/glibc-headers/mntent.texi: New file.
54945         * doc/glibc-headers/obstack.texi: New file.
54946         * doc/glibc-headers/paths.texi: New file.
54947         * doc/glibc-headers/printf.texi: New file.
54948         * doc/glibc-headers/pty.texi: New file.
54949         * doc/glibc-headers/resolv.texi: New file.
54950         * doc/glibc-headers/shadow.texi: New file.
54951         * doc/glibc-headers/sysexits.texi: New file.
54952         * doc/glibc-headers/ttyent.texi: New file.
54953
54954 2008-01-12  Jim Meyering  <meyering@redhat.com>
54955
54956         announce-gen: emit Gnulib's git-based version string.
54957         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
54958         New option --gnulib-version=V, where V is expected to be
54959         the output of running git describe in the gnulib directory.
54960         (get_tool_versions): Request feedback on xdelta.  I suspect it's
54961         not useful, and plan to stop publishing an xdelta file with each
54962         coreutils release.
54963
54964         * build-aux/announce-gen: Also check for lzma-compressed files.
54965
54966 2008-01-11  Bruno Haible  <bruno@clisp.org>
54967
54968         * tests/test-memmem.c (main): Increase maximum allowed time.
54969         * tests/test-strstr.c (main): Likewise.
54970
54971 2008-01-11  Bruno Haible  <bruno@clisp.org>
54972
54973         * doc/functions/memmem.texi: Add more precisions about platforms.
54974         * doc/functions/strstr.texi: Likewise.
54975
54976 2008-01-10  Eric Blake  <ebb9@byu.net>
54977
54978         * m4/strstr.m4: Delete cruft from copy-n-paste.
54979         Reported by Bruno Haible.
54980
54981 2008-01-10  Bruno Haible  <bruno@clisp.org>
54982
54983         Make c-strstr rely on strstr.
54984         * lib/c-strstr.c: Don't include str-kmp.h.
54985         (c_strstr): Define in terms of strstr.
54986         * modules/c-strstr (Files): Remove lib/str-kmp.h.
54987         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
54988
54989 2008-01-10  Bruno Haible  <bruno@clisp.org>
54990
54991         * doc/gnulib.texi (String Functions in C Locale): New section.
54992         * doc/c-ctype.texi: New file.
54993         * doc/c-strcase.texi: New file.
54994         * doc/c-strcaseeq.texi: New file.
54995         * doc/c-strcasestr.texi: New file.
54996         * doc/c-strstr.texi: New file.
54997         * doc/c-strtod.texi: New file.
54998         * doc/c-strtold.texi: New file.
54999
55000 2008-01-10  Eric Blake  <ebb9@byu.net>
55001
55002         * lib/relocatable.h: Fix a comment.
55003
55004 2008-01-10  Eric Blake  <ebb9@byu.net>
55005
55006         Share two-way algorithm.
55007         * lib/str-two-way.h: New file, merged from...
55008         * lib/memmem.c: ...here...
55009         * lib/strstr.c: ...and here.
55010         * modules/memmem (Files): Use it.
55011         * modules/strstr (Files): Likewise.
55012
55013         Avoid quadratic strstr implementations.
55014         * lib/strstr.c: New file.
55015         * m4/strstr.m4: Likewise.
55016         * modules/strstr: Likewise.
55017         * modules/strstr-tests: Likewise.
55018         * tests/test-strstr.c: Likewise.
55019         * lib/string.in.h (rpl_strstr): Declare.
55020         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
55021         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
55022         * modules/string (Makefile.am): Likewise.
55023         * MODULES.html.sh (string handling): Mention new module.
55024         * doc/functions/strstr.texi (strstr): Document the bug.
55025
55026 2008-01-10  Bruno Haible  <bruno@clisp.org>
55027
55028         * lib/relocatable.h (relocate): State whether result is freshly
55029         allocated or not.
55030         * lib/relocatable.c (relocate): Return a freshly allocated string
55031         instead of a pointer to a privately held string.
55032         Reported by Sylvain Beucler <beuc@gnu.org>.
55033
55034 2008-01-10  Colin Watson  <cjwatson@debian.org>
55035
55036         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
55037         s/S_ISNLK/S_ISLNK/.
55038
55039 2008-01-09  Bruno Haible  <bruno@clisp.org>
55040
55041         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
55042         and other files.
55043         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
55044         if it's only a guess.
55045         * modules/memmem: Simplify by depending on memmem-simple.
55046
55047 2008-01-09  Bruno Haible  <bruno@clisp.org>
55048
55049         Work around OpenBSD 4.0 tdelete() bug.
55050         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
55051         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
55052         macros and don't redefine the enum values.
55053         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
55054         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
55055         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
55056
55057 2008-01-09  Bruno Haible  <bruno@clisp.org>
55058
55059         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
55060         (main): Don't perform the tests if setlocale did not install a UTF-8
55061         locale. Needed on OpenBSD 4.0.
55062         * modules/wcwidth-tests (Depends-on): Add localcharset.
55063
55064 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
55065
55066         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
55067         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
55068         * NEWS: announce this.
55069         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
55070
55071 2008-01-09  Simon Josefsson  <simon@josefsson.org>
55072         and Eric Blake  <ebb9@byu.net>
55073
55074         Add memmem-simple module.
55075         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
55076         (gl_FUNC_MEMMEM): Separate performance from presence checks.
55077         * modules/memmem-simple: New file.
55078         * modules/memmem (Description): Tweak.
55079         * MODULES.html.sh (string handling): Mention new module.
55080         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
55081         addressed by memmem-simple.
55082         * NEWS: Document the difference.
55083
55084 2008-01-09  Eric Blake  <ebb9@byu.net>
55085
55086         Give gcc some memmem optimization hints.
55087         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
55088         (strcasestr): Declare as pure.
55089         * modules/memmem (Maintainer): Claim my implementation.
55090
55091 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55092
55093         Support AIX 6.1 and higher.
55094         * build-aux/config.libpath: Likewise.
55095         * build-aux/config.rpath: Likewise.
55096
55097 2008-01-08  Jim Meyering  <meyering@redhat.com>
55098             Bruno Haible  <bruno@clisp.org>
55099
55100         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
55101         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
55102         Reported by Peter Fales in
55103         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
55104
55105 2008-01-08  Bruno Haible  <bruno@clisp.org>
55106
55107         * modules/unictype/category-of (Depends-on): Add
55108         unictype/category-none.
55109         * modules/unictype/category-and-tests (Depends-on): Add
55110         unictype/category-{L,N,Lu,Nd}.
55111         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
55112         * modules/unictype/category-or-tests (Depends-on): Add
55113         unictype/category-{L,N}.
55114         * modules/unictype/category-name-tests (Depends-on): Add
55115         unictype/category-{Z,Nl}.
55116         Reported by Simon Josefsson.
55117
55118 2008-01-08  Bruno Haible  <bruno@clisp.org>
55119
55120         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
55121         convention better.
55122         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
55123         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
55124         Reported by Peter Miller <millerp@canb.auug.org.au>.
55125
55126 2008-01-08  Eric Blake  <ebb9@byu.net>
55127
55128         Rewrite memmem to guarantee linear complexity without malloc.
55129         * lib/memmem.c (memmem): Use Two-Way rather than
55130         Knuth-Morris-Pratt, to allow O(1) space usage.
55131         (critical_factorization, two_way_short_needle)
55132         (two_way_long_needle): New functions.
55133         (knuth_morris_pratt): Delete.
55134         * modules/memmem (Depends-on): No longer need malloca or stdbool.
55135         Add stdint.
55136         * tests/test-memmem.c (main): Add tests for periodic needle and
55137         sublinear performance.
55138         * doc/functions/memmem.texi (memmem): Document other deficiencies
55139         in cygwin and older glibc.
55140
55141 2008-01-08  Bruno Haible  <bruno@clisp.org>
55142
55143         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
55144         augmentation.
55145
55146 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
55147
55148         Add a configure time option: --disable-acl.
55149         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
55150         AC_ARG_ENABLE(acl).
55151
55152 2008-01-06  Simon Josefsson  <simon@josefsson.org>
55153
55154         * tests/test-localename.c: Don't include obsolete "setenv.h".
55155
55156         * modules/localename-tests (Depends-on): Need unsetenv.
55157
55158 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55159
55160         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
55161
55162 2008-01-06  Colin Watson  <cjwatson@debian.org>
55163
55164         * users.txt: Add man-db.
55165
55166 2008-01-07  Bruno Haible  <bruno@clisp.org>
55167
55168         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
55169         previous section name.
55170
55171 2008-01-07  Bruno Haible  <bruno@clisp.org>
55172
55173         * lib/progname.c (set_program_name): Don't strip off a leading
55174         "lt-" prefix outside a .libs directory.
55175         Suggested by Paul Eggert.
55176
55177 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
55178             Bruno Haible  <bruno@clisp.org>
55179
55180         Improve memory cleanup in 'relocatable' module.
55181         * lib/relocatable.h (compute_curr_prefix): Change return type to
55182         'char *'.
55183         * lib/relocatable.c (compute_curr_prefix): Change return type to
55184         'char *'. Free curr_installdir after use.
55185         (relocate): Free curr_prefix_better after use.
55186         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
55187
55188 2008-01-01  Bruno Haible  <bruno@clisp.org>
55189
55190         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
55191         failure on older glibc systems.
55192         Reported by Peter Fales <psfales@alcatel-lucent.com>.
55193
55194 2008-01-05  Eric Blake  <ebb9@byu.net>
55195
55196         Avoid quadratic system memmem.
55197         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
55198         Reported by Ralf Wildenhues.
55199
55200         Fix memmem test for mingw.
55201         * modules/memmem-tests (configure.ac): Check for alarm.
55202         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
55203         it.
55204         * doc/functions/memmem.texi: New file.
55205         * doc/gnulib.texi (Function Substitutes): Add memmem.
55206         Reported by Bruno Haible.
55207
55208 2008-01-04  Bruno Haible  <bruno@clisp.org>
55209
55210         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
55211         Require gl_HEADER_STRINGS_H_DEFAULTS, not
55212         gl_HEADER_STRING_H_DEFAULTS.
55213
55214 2008-01-04  Eric Blake  <ebb9@byu.net>
55215
55216         Shorten duration of memmem test.
55217         * tests/test-memmem.c (main): Use alarm to declare failure if test
55218         is taking too long.
55219         Reported by Ralf Wildenhues.
55220
55221 2007-12-21  Simon Josefsson  <simon@josefsson.org>
55222
55223         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
55224         string, needed by strerror.
55225
55226 2008-01-03  Colin Watson  <cjwatson@debian.org>
55227             Bruno Haible  <bruno@clisp.org>
55228
55229         * doc/gnulib-tool.texi (Localization): New section.
55230
55231 2008-01-02  Bruno Haible  <bruno@clisp.org>
55232
55233         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
55234         variables to 'unsigned char *' type.
55235         Reported by Paul Eggert.
55236
55237 2008-01-02  Jim Meyering  <jim@meyering.net>
55238
55239         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
55240
55241 2007-12-31  Jim Meyering  <jim@meyering.net>
55242
55243         Avoid use of private FTS type name.
55244         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
55245
55246 2007-12-30  Karl Berry  <karl@gnu.org>
55247
55248         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
55249         work around defect in Texinfo and/or the standalone Info browser.
55250
55251 2007-12-30  Bruno Haible  <bruno@clisp.org>
55252
55253         Unify 5 copies of the KMP code.
55254         * lib/str-kmp.h: New file.
55255         * lib/c-strcasestr.c: Include str-kmp.h.
55256         (knuth_morris_pratt): Remove function.
55257         (c_strcasestr): Update.
55258         * lib/c-strstr.c: Include str-kmp.h.
55259         (knuth_morris_pratt): Remove function.
55260         (c_strcasestr): Update.
55261         * lib/mbscasestr.c: Include str-kmp.h.
55262         (knuth_morris_pratt_unibyte): Remove function.
55263         * lib/mbsstr.c: Include str-kmp.h.
55264         (knuth_morris_pratt_unibyte): Remove function.
55265         * lib/strcasestr.c: Include str-kmp.h.
55266         (knuth_morris_pratt): Remove function.
55267         (strcasestr): Update.
55268         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
55269         * modules/c-strstr (Files): Likewise.
55270         * modules/mbscasestr (Files): Likewise.
55271         * modules/mbsstr (Files): Likewise.
55272         * modules/strcasestr (Files): Likewise.
55273         Suggested by Paul Eggert.
55274
55275 2007-12-30  Bruno Haible  <bruno@clisp.org>
55276
55277         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
55278         defined.
55279
55280 2007-12-30  Bruno Haible  <bruno@clisp.org>
55281
55282         * lib/xmalloca.h: Include xalloc.h.
55283         (xnmalloca): New macro.
55284
55285 2007-12-30  Bruno Haible  <bruno@clisp.org>
55286
55287         * lib/malloca.h (nmalloca): New macro.
55288         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
55289         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
55290         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
55291         knuth_morris_pratt_multibyte): Likewise.
55292         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
55293         knuth_morris_pratt_multibyte): Likewise.
55294         * lib/memmem.c (knuth_morris_pratt): Likewise.
55295         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
55296
55297 2007-12-25  Bruno Haible  <bruno@clisp.org>
55298
55299         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
55300         * lib/glob.c: Don't include openat.h.
55301         (link_exists2_p): Add back the code that deals with the
55302         !GLOB_ALTDIRFUNC case.
55303         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
55304         let it do the filename concatenation.
55305         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
55306         * modules/glob (Depends-on): Remove openat.
55307
55308 2007-12-31  Bruno Haible  <bruno@clisp.org>
55309
55310         * modules/dirfd (License): Change to LGPLv2+.
55311         Approved by Jim Meyering.
55312
55313 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
55314
55315         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
55316         when multiplying M by sizeof (size_t).
55317
55318 2007-12-10  Martin Lambers  <marlam@marlam.de>
55319
55320         Override getpagesize on mingw.
55321         * lib/getpagesize.c: New file.
55322         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
55323         * modules/getpagesize (Files): Add lib/getpagesize.c.
55324         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
55325         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55326         REPLACE_GETPAGESIZE.
55327         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
55328
55329 2007-12-25  Bruno Haible  <bruno@clisp.org>
55330
55331         * modules/localcharset (Notice): New field.
55332         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
55333         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
55334
55335 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
55336             Bruno Haible  <bruno@clisp.org>
55337
55338         Avoid using the syntax symbol() in formatted documentation.
55339         * MODULES.html.sh (func_module): When replacing symbol() with a
55340         hyperlink, remove the parentheses. Show an error if some remain.
55341         Recognize and render the '...' syntax.
55342         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
55343         Rework. Add paragraph about GCC's inlining.
55344         * doc/alloca.texi: Likewise.
55345         * doc/error.texi: Remove parentheses from symbol reference.
55346         * doc/gnulib-intro.texi: Likewise.
55347         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
55348         * modules/fnmatch (Description): Reword to say "the ... function".
55349         * modules/full-read (Description): Likewise.
55350         * modules/full-write (Description): Likewise.
55351         * modules/safe-read (Description): Likewise.
55352         * modules/safe-write (Description): Likewise.
55353         * modules/strchrnul (Description): Likewise.
55354         * modules/trim (Description): Likewise.
55355         * modules/error (Description): Remove parentheses from symbol
55356         references.
55357         * modules/verror (Description): Likewise.
55358         Reported by Karl Berry.
55359
55360 2007-12-25  Bruno Haible  <bruno@clisp.org>
55361
55362         Fixup after 2007-10-16 commit.
55363         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
55364
55365 2007-12-24  Bruno Haible  <bruno@clisp.org>
55366
55367         Make --enable-relocatable work with DESTDIR.
55368         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
55369         to compute installdir from destprog.
55370         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
55371         also set the RELOC_DESTDIR variable.
55372         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
55373
55374 2007-12-24  Bruno Haible  <bruno@clisp.org>
55375
55376         Fix link error due to xalloc_die().
55377         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
55378         of xreadlink.
55379         * lib/relocwrapper.c: Update comments.
55380         * build-aux/install-reloc: Remove xreadlink.c from file list.
55381         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
55382         xreadlink.c.
55383         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
55384
55385 2007-12-24  Bruno Haible  <bruno@clisp.org>
55386
55387         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
55388         * lib/setenv.h: Remove file.
55389         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
55390         lib/setenv.h.
55391         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
55392         (Depends-on): Add stdlib.
55393         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
55394         gl_FUNC_UNSETENV.
55395         (Include): Replace setenv.h with <stdlib.h>.
55396         * modules/unsetenv: New file.
55397         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
55398         * lib/unsetenv.c: Include <stdlib.h> first.
55399         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
55400         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
55401         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
55402         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
55403         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
55404         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
55405         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
55406         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
55407         * doc/functions/unsetenv.texi: Update.
55408         * modules/xsetenv (Depends-on): Add unsetenv.
55409         * modules/getdate (Depends-on): Likewise.
55410         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
55411         * lib/xsetenv.c: Don't include setenv.h.
55412         * lib/getdate.y: Likewise.
55413         * lib/relocwrapper.c: Likewise.
55414         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
55415         (Depends-on): Add stdlib.
55416         * NEWS: Mention the changes.
55417         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
55418
55419 2007-12-23  Bruno Haible  <bruno@clisp.org>
55420
55421         * lib/memmem.c (memmem): Use lowercase variable names. Tab
55422         indentation.
55423
55424 2007-12-23  Bruno Haible  <bruno@clisp.org>
55425
55426         * lib/c-strcasestr.c: Add more comments.
55427         * lib/c-strstr.c: Likewise.
55428         * lib/mbscasestr.c: Likewise.
55429         * lib/mbsstr.c: Likewise.
55430         * lib/strcasestr.c: Likewise.
55431         * lib/memmem.c: Likewise.
55432
55433 2007-12-23  Bruno Haible  <bruno@clisp.org>
55434
55435         * tests/test-memmem.c: Include <string.h> first.
55436
55437 2007-12-22  Bruno Haible  <bruno@clisp.org>
55438
55439         * gnulib-tool (func_create_testdir): Change $auxdir while generating
55440         the contents of $testsbase.
55441         Reported by Ralf Wildenhues.
55442
55443 2007-12-22  Bruno Haible  <bruno@clisp.org>
55444
55445         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
55446         two variables local_ldadd_before, local_ldadd_last.
55447
55448 2007-12-20  Eric Blake  <ebb9@byu.net>
55449
55450         Work around circular library issue when cross-compiling.
55451         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
55452         that progname.o does not need to pull in rpl_memcmp.
55453
55454 2007-12-19  Eric Blake  <ebb9@byu.net>
55455
55456         Fix memmem to avoid O(n^2) worst-case complexity.
55457         * lib/memmem.c (knuth_morris_pratt): New function.
55458         (memmem): Use it if first few naive iterations fail.
55459         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
55460         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
55461         * modules/memchr (License): Likewise.
55462         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
55463         malloca.
55464         * tests/test-memmem.c: Rewrite, borrowing ideas from
55465         test-mbsstr1.c; the old version wouldn't even compile!
55466         * modules/memmem-tests: New file.
55467         * lib/string.in.h (rpl_memmem): Add declaration.
55468         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
55469         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
55470         REPLACE_MEMMEM.
55471
55472 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
55473
55474         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
55475         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
55476         before any system include files, and undef after them all.  This
55477         should fix a problem on VMS reported by John E. Malmberg in
55478         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
55479
55480 2007-12-17  Eric Blake  <ebb9@byu.net>
55481
55482         Revert addition of verify, for BSD/OS.
55483         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
55484         can't handle large files, for the sake of obsolete platforms.
55485         * modules/fseeko (Depends-on): Remove verify.
55486         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
55487         * doc/functions/ftello.texi (ftello): Likewise.
55488         * doc/functions/fgetpos.texi (fgetpos): Likewise.
55489         Reported by Larry Jones.
55490
55491 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
55492
55493         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
55494         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
55495
55496 2007-12-17  Jim Meyering  <meyering@redhat.com>
55497
55498         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
55499         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
55500         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
55501         * modules/getcwd (Depends-on): Add openat.
55502         Reported by Petr Salinger.
55503
55504 2007-12-17  Bruno Haible  <bruno@clisp.org>
55505
55506         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
55507         avoid a segmentation fault of the configure test on x86_64 systems.
55508
55509 2007-12-15  Jim Meyering  <meyering@redhat.com>
55510
55511         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
55512
55513 2007-12-13  Eric Blake  <ebb9@byu.net>
55514
55515         Another fseek test.
55516         * tests/test-fseek.c (main): Also test ungetc handling.
55517         * tests/test-fseeko.c (main): Likewise.
55518         * modules/fseeko (Depends-on): Add verify.
55519         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
55520         large.
55521         Reported by Larry Jones.
55522
55523         Fix fseeko on mingw.
55524         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
55525         seek.
55526
55527         Beef up fseek tests.
55528         * tests/test-fseek.c (main): Also test eof handling.
55529         * tests/test-fseeko.c (main): Likewise.
55530         Reported by Larry Jones.
55531
55532 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
55533
55534         Fix fseeko on BSD-based platforms.
55535         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
55536         successful seek.
55537
55538 2007-12-12  Eric Blake  <ebb9@byu.net>
55539
55540         Allow circular dependency of separate libtests.a
55541         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
55542         when use_libtests.
55543
55544 2007-12-11  Eric Blake  <ebb9@byu.net>
55545
55546         Fix bug with -0.0L in previous patch.
55547         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
55548         * tests/test-isnan.c (main): Also test on zeroes.
55549         * tests/test-isnanf.c (main): Likewise.
55550         * tests/test-isnanl.h (main): Likewise.
55551
55552         Detect pseudo-denormals on x86 even when cross-compiling.
55553         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
55554         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
55555         invalid bit patterns that happen to satisfy ==.
55556
55557         Avoid link failures with separate libtests.a.
55558         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
55559         last, to satisfy circular dependencies.
55560
55561 2007-12-11  Eric Blake  <ebb9@byu.net>
55562         and Bruno Haible  <bruno@clisp.org>
55563
55564         Fix OpenBSD 4.0 <float.h> handling of long double.
55565         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
55566         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
55567         * doc/headers/float.texi (float.h): Document OpenBSD bug.
55568
55569 2007-12-11  Jim Meyering  <meyering@redhat.com>
55570
55571         * users.txt: Add libvirt.
55572
55573         Support versions of autoconf prior to 2.59c.
55574         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
55575         if it is not already defined.
55576
55577 2007-12-09  Bruno Haible  <bruno@clisp.org>
55578
55579         Let 'gnulib-tool --import' collect sources needed for the tests in
55580         tests/ rather than in lib/.
55581         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
55582         argument. If true, add rules to generate libtests.a, and put libtests.a
55583         into $(LDADD). Consider source files in subdirectories and set
55584         uses_subdirs.
55585         (func_emit_initmacro_start, func_emit_initmacro_end,
55586         func_emit_initmacro_done): Pass all arguments explicitly.
55587         (func_import): Determine two module lists main_modules,
55588         testsrelated_modules. Determine use_libtests. Determine two variables
55589         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
55590         instead of just sed_transform_lib_file. Determine two variables
55591         main_files and testsrelated_files. Compute 'files' as the union of
55592         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
55593         func_add_or_update. In the generated gnulib-comp.m4, collect the
55594         object files for tests/ in different variables than those for lib/.
55595         Substitute LIBTESTS_LIBDEPS.
55596         (func_create_testdir): Combine the uses_subdirs results from
55597         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
55598
55599 2007-12-09  Bruno Haible  <bruno@clisp.org>
55600
55601         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
55602         the build-aux directory.
55603
55604 2007-12-09  Bruno Haible  <bruno@clisp.org>
55605
55606         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
55607         introduced on 2006-09-09.
55608
55609 2007-12-07  Jim Meyering  <meyering@redhat.com>
55610
55611         Let these macros work also with autoconf-2.59.
55612         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
55613         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
55614         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
55615
55616 2007-12-06  Jim Meyering  <meyering@redhat.com>
55617
55618         Avoid a configure-time syntax error in gl_FUNC_ACL.
55619         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
55620         function in each branch, before testing the cache variable.
55621
55622 2007-12-04  Eric Blake  <ebb9@byu.net>
55623
55624         Make scripts executable.
55625         * build-aux/config.guess: Add execute permissions.
55626         * build-aux/config.sub: Likewise.
55627         * build-aux/gendocs.sh: Likewise.
55628
55629         Fix frexp on mingw.
55630         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
55631         cross-compiling.
55632         * doc/functions/frexp.texi (frexp): Document the bug.
55633
55634         Make cygwin fseeko check more reliable.
55635         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
55636         version numbers, rather than unrelated feature check.
55637         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
55638         * doc/functions/ftello.texi (ftello): Likewise.
55639         Reported by Bruno Haible.
55640
55641         * m4/strerror.m4: Bump version number.
55642
55643 2007-12-03  Bruno Haible  <bruno@clisp.org>
55644
55645         * doc/functions/mprotect.texi: Mention the mingw problem.
55646
55647 2007-12-03  Eric Blake  <ebb9@byu.net>
55648
55649         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
55650         REPLACE_STRERROR is initialized before this macro.
55651
55652 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
55653
55654         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
55655         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
55656         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
55657         put -lsec in even for programs other than 'ls'.  This fixes a problem
55658         for gettext reported by Bruno Haible in
55659         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
55660         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
55661         Add support for Solaris 10.  This isn't efficient, but should get the
55662         job done for now.
55663
55664 2007-12-03  James Youngman  <jay@gnu.org>
55665
55666         * doc/regexprops-generic.texi: change "an close-group" to "a
55667         close-group" and "illegal" to "not allowed".
55668
55669 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55670
55671         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
55672         pr_byname.h. Needed for the rare case when the maintainer has done
55673         "make maintainer-clean" in the source directory and then attempts a
55674         build outside the source directory.
55675         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
55676         scripts_byname.h.
55677
55678 2007-12-02  Martin Lambers <marlam@marlam.de>
55679             Bruno Haible  <bruno@clisp.org>
55680
55681         * lib/getpagesize.h: Remove file.
55682         * lib/unistd.in.h: Include declaration of getpagesize here.
55683         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
55684         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
55685         HAVE_SYS_PARAM_H.
55686         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
55687         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
55688         * modules/getpagesize (Files): Remove lib/getpagesize.h.
55689         (Depends-on): Add unistd.
55690         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55691         (Include): Use <unistd.h> instead of getpagesize.h.
55692         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
55693         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
55694         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
55695         gl_GETPAGESIZE invocation, already handled by module dependency.
55696         * lib/pagealign_alloc.c: Don't include getpagesize.h.
55697
55698 2007-12-02  Bruno Haible  <bruno@clisp.org>
55699
55700         * modules/strings-tests: New file.
55701         * tests/test-strings.c: New file.
55702
55703         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
55704         * lib/strings.in.h: New file.
55705         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
55706         * m4/strings_h.m4: New file.
55707         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
55708         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
55709         * modules/strings: New file.
55710         * modules/string (Makefile.am): Update.
55711         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
55712         Reported by Karl Berry.
55713
55714 2007-12-01  Eric Blake  <ebb9@byu.net>
55715
55716         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
55717         accomodate fix in cygwin 1.5.25.
55718
55719 2007-12-01  Jim Meyering  <meyering@redhat.com>
55720
55721         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
55722         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
55723         that would inhibit utf8-optimization of a regexp containing line-
55724         or buffer-anchors, e.g., `^', `$'.
55725
55726 2007-11-30  Bruno Haible  <bruno@clisp.org>
55727
55728         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
55729         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
55730         glthread_recursive_lock_init.
55731         * lib/lock.c (glthread_recursive_lock_init)
55732         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
55733         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55734
55735 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
55736
55737         New function qset_acl, like set_acl but with syscall semantics.
55738         * lib/acl.h (qset_acl): New decl.
55739         * lib/acl.c (qset_acl): New function.
55740         (set_acl): Use new function.  Use more-consistent diagnostics.
55741
55742 2007-11-28  Jim Meyering  <meyering@redhat.com>
55743
55744         * modules/physmem (License): Change from GPL to LGPLv2+.
55745
55746 2007-11-26  Bruno Haible  <bruno@clisp.org>
55747
55748         * lib/vasnprintf.c (decode_long_double): Don't abort if the
55749         'long double' type has excess precision.
55750         Reported by Jim Meyering in
55751         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
55752
55753 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55754
55755         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
55756         Sync from <http://gnu.org/licenses>.
55757         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
55758         with license text from same location.
55759         * doc/maintain.texi, doc/standards.texi:  Sync from
55760         <http://savannah.gnu.org/projects/gnustandards>.
55761
55762 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
55763         and Jim Meyering  <meyering@redhat.com>
55764
55765         Adjust getdate' grammar to accept a slightly more regular language.
55766         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
55767         Before, the former was rejected.
55768         * lib/getdate.y (digits_to_date_time): New function, factored
55769         out of ...
55770         (number): ...here.  Just call digits_to_date_time.
55771         (hybrid): New non-terminal to handle an <unsigned number,
55772         signed relative offset> sequence consistently.
55773
55774 2007-11-18  Jim Meyering  <meyering@redhat.com>
55775
55776         Pull my changes from coreutils:
55777         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
55778         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
55779         use of $gnulib_tool_option_extras, so that it's separated from the
55780         preceding argument.
55781
55782         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
55783         * build-aux/bootstrap (cp_mark_as_generated): Create any required
55784         parent destination directories before copying a file into place.
55785
55786 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
55787
55788         bootstrap: work also with 4-argument variant of AC_INIT
55789         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
55790
55791 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
55792
55793         Port test-getaddrinfo to Solaris.
55794         Problem reported by Bruno Haible in
55795         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
55796         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
55797         explanation of setting 'hints'.
55798         Don't reject an implementation merely because it returns EAI_SERVICE.
55799         (EAI_SERVICE): Define to 0 if not defined.
55800
55801 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
55802
55803         The license of gnu-make and posix-shell is now "GPLed build tool".
55804         * modules/gnu-make (License): Likewise.
55805         * modules/posix-shell (License): Likewise.
55806
55807         New module posix-shell, for determining a POSIX shell
55808         or perhaps something that is close enough to a POSIX shell.
55809         * m4/posix-shell.m4: New file.
55810         * modules/posix-shell: New file.
55811
55812         * MODULES.html.sh: Mention new module.
55813
55814         New module gnu-make, for determining whether we're using GNU Make.
55815         * m4/gnu-make.m4: New file.
55816         * modules/gnu-make: New file.
55817         * MODULES.html.sh: Mention new module.
55818
55819 2007-11-14  Jim Meyering  <meyering@redhat.com>
55820
55821         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
55822         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
55823         use this macro to create a function _definition_.
55824         Remove useless "#undef ARGMATCH_DIE".
55825
55826 2007-11-14  Bruno Haible  <bruno@clisp.org>
55827
55828         * lib/config.charset: Update for OpenBSD 4.1.
55829         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
55830
55831 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
55832
55833         Document 64-bit #if problems in stdint.texi.
55834         * doc/headers/stdint.texi (stdint.h): Mention problems with
55835         64-bit-#if, and how to work around them.
55836
55837         Don't insist on 'long long int' support in the preprocessor.  It
55838         breaks too many things.  For example, PRIdMAX still uses a 'long
55839         long int' format with the latest Sun compiler, even though
55840         HAVE_LONG_LONG_INT isn't defined due to that compiler's
55841         preprocessor problem.  This causes the latest coreutils to dump
55842         core on Solaris 10 sparc with the Sun C compiler.
55843         Instead, fix the 2007-10-16 problem in a different way, by evaluating
55844         the troublesome expressions at configure-time, not at #if-time.
55845         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
55846         preprocessor.
55847         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
55848         compile-time C checks, done at 'configure'-time.
55849         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
55850         * modules/inttypes (Makefile): Substitute the new symbols that
55851         gl_INTTYPES_H now generates.
55852         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
55853
55854 2007-11-12  Bruno Haible  <bruno@clisp.org>
55855
55856         Tests for Unicode character classification functions.
55857
55858         * modules/unictype/bidicategory-byname-tests: New file.
55859         * modules/unictype/bidicategory-name-tests: New file.
55860         * modules/unictype/bidicategory-of-tests: New file.
55861         * modules/unictype/bidicategory-test-tests: New file.
55862         * modules/unictype/block-list-tests: New file.
55863         * modules/unictype/block-of-tests: New file.
55864         * modules/unictype/block-test-tests: New file.
55865         * modules/unictype/category-C-tests: New file.
55866         * modules/unictype/category-Cc-tests: New file.
55867         * modules/unictype/category-Cf-tests: New file.
55868         * modules/unictype/category-Cn-tests: New file.
55869         * modules/unictype/category-Co-tests: New file.
55870         * modules/unictype/category-Cs-tests: New file.
55871         * modules/unictype/category-L-tests: New file.
55872         * modules/unictype/category-Ll-tests: New file.
55873         * modules/unictype/category-Lm-tests: New file.
55874         * modules/unictype/category-Lo-tests: New file.
55875         * modules/unictype/category-Lt-tests: New file.
55876         * modules/unictype/category-Lu-tests: New file.
55877         * modules/unictype/category-M-tests: New file.
55878         * modules/unictype/category-Mc-tests: New file.
55879         * modules/unictype/category-Me-tests: New file.
55880         * modules/unictype/category-Mn-tests: New file.
55881         * modules/unictype/category-N-tests: New file.
55882         * modules/unictype/category-Nd-tests: New file.
55883         * modules/unictype/category-Nl-tests: New file.
55884         * modules/unictype/category-No-tests: New file.
55885         * modules/unictype/category-P-tests: New file.
55886         * modules/unictype/category-Pc-tests: New file.
55887         * modules/unictype/category-Pd-tests: New file.
55888         * modules/unictype/category-Pe-tests: New file.
55889         * modules/unictype/category-Pf-tests: New file.
55890         * modules/unictype/category-Pi-tests: New file.
55891         * modules/unictype/category-Po-tests: New file.
55892         * modules/unictype/category-Ps-tests: New file.
55893         * modules/unictype/category-S-tests: New file.
55894         * modules/unictype/category-Sc-tests: New file.
55895         * modules/unictype/category-Sk-tests: New file.
55896         * modules/unictype/category-Sm-tests: New file.
55897         * modules/unictype/category-So-tests: New file.
55898         * modules/unictype/category-Z-tests: New file.
55899         * modules/unictype/category-Zl-tests: New file.
55900         * modules/unictype/category-Zp-tests: New file.
55901         * modules/unictype/category-Zs-tests: New file.
55902         * modules/unictype/category-and-not-tests: New file.
55903         * modules/unictype/category-and-tests: New file.
55904         * modules/unictype/category-byname-tests: New file.
55905         * modules/unictype/category-name-tests: New file.
55906         * modules/unictype/category-none-tests: New file.
55907         * modules/unictype/category-of-tests: New file.
55908         * modules/unictype/category-or-tests: New file.
55909         * modules/unictype/category-test-withtable-tests: New file.
55910         * modules/unictype/combining-class-tests: New file.
55911         * modules/unictype/ctype-alnum-tests: New file.
55912         * modules/unictype/ctype-alpha-tests: New file.
55913         * modules/unictype/ctype-blank-tests: New file.
55914         * modules/unictype/ctype-cntrl-tests: New file.
55915         * modules/unictype/ctype-digit-tests: New file.
55916         * modules/unictype/ctype-graph-tests: New file.
55917         * modules/unictype/ctype-lower-tests: New file.
55918         * modules/unictype/ctype-print-tests: New file.
55919         * modules/unictype/ctype-punct-tests: New file.
55920         * modules/unictype/ctype-space-tests: New file.
55921         * modules/unictype/ctype-upper-tests: New file.
55922         * modules/unictype/ctype-xdigit-tests: New file.
55923         * modules/unictype/decimal-digit-tests: New file.
55924         * modules/unictype/digit-tests: New file.
55925         * modules/unictype/mirror-tests: New file.
55926         * modules/unictype/numeric-tests: New file.
55927         * modules/unictype/property-alphabetic-tests: New file.
55928         * modules/unictype/property-ascii-hex-digit-tests: New file.
55929         * modules/unictype/property-bidi-arabic-digit-tests: New file.
55930         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
55931         * modules/unictype/property-bidi-block-separator-tests: New file.
55932         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
55933         * modules/unictype/property-bidi-common-separator-tests: New file.
55934         * modules/unictype/property-bidi-control-tests: New file.
55935         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
55936         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
55937         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
55938         * modules/unictype/property-bidi-european-digit-tests: New file.
55939         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
55940         * modules/unictype/property-bidi-left-to-right-tests: New file.
55941         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
55942         * modules/unictype/property-bidi-other-neutral-tests: New file.
55943         * modules/unictype/property-bidi-pdf-tests: New file.
55944         * modules/unictype/property-bidi-segment-separator-tests: New file.
55945         * modules/unictype/property-bidi-whitespace-tests: New file.
55946         * modules/unictype/property-byname-tests: New file.
55947         * modules/unictype/property-combining-tests: New file.
55948         * modules/unictype/property-composite-tests: New file.
55949         * modules/unictype/property-currency-symbol-tests: New file.
55950         * modules/unictype/property-dash-tests: New file.
55951         * modules/unictype/property-decimal-digit-tests: New file.
55952         * modules/unictype/property-default-ignorable-code-point-tests: New file.
55953         * modules/unictype/property-deprecated-tests: New file.
55954         * modules/unictype/property-diacritic-tests: New file.
55955         * modules/unictype/property-extender-tests: New file.
55956         * modules/unictype/property-format-control-tests: New file.
55957         * modules/unictype/property-grapheme-base-tests: New file.
55958         * modules/unictype/property-grapheme-extend-tests: New file.
55959         * modules/unictype/property-grapheme-link-tests: New file.
55960         * modules/unictype/property-hex-digit-tests: New file.
55961         * modules/unictype/property-hyphen-tests: New file.
55962         * modules/unictype/property-id-continue-tests: New file.
55963         * modules/unictype/property-id-start-tests: New file.
55964         * modules/unictype/property-ideographic-tests: New file.
55965         * modules/unictype/property-ids-binary-operator-tests: New file.
55966         * modules/unictype/property-ids-trinary-operator-tests: New file.
55967         * modules/unictype/property-ignorable-control-tests: New file.
55968         * modules/unictype/property-iso-control-tests: New file.
55969         * modules/unictype/property-join-control-tests: New file.
55970         * modules/unictype/property-left-of-pair-tests: New file.
55971         * modules/unictype/property-line-separator-tests: New file.
55972         * modules/unictype/property-logical-order-exception-tests: New file.
55973         * modules/unictype/property-lowercase-tests: New file.
55974         * modules/unictype/property-math-tests: New file.
55975         * modules/unictype/property-non-break-tests: New file.
55976         * modules/unictype/property-not-a-character-tests: New file.
55977         * modules/unictype/property-numeric-tests: New file.
55978         * modules/unictype/property-other-alphabetic-tests: New file.
55979         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
55980         * modules/unictype/property-other-grapheme-extend-tests: New file.
55981         * modules/unictype/property-other-id-continue-tests: New file.
55982         * modules/unictype/property-other-id-start-tests: New file.
55983         * modules/unictype/property-other-lowercase-tests: New file.
55984         * modules/unictype/property-other-math-tests: New file.
55985         * modules/unictype/property-other-uppercase-tests: New file.
55986         * modules/unictype/property-paired-punctuation-tests: New file.
55987         * modules/unictype/property-paragraph-separator-tests: New file.
55988         * modules/unictype/property-pattern-syntax-tests: New file.
55989         * modules/unictype/property-pattern-white-space-tests: New file.
55990         * modules/unictype/property-private-use-tests: New file.
55991         * modules/unictype/property-punctuation-tests: New file.
55992         * modules/unictype/property-quotation-mark-tests: New file.
55993         * modules/unictype/property-radical-tests: New file.
55994         * modules/unictype/property-sentence-terminal-tests: New file.
55995         * modules/unictype/property-soft-dotted-tests: New file.
55996         * modules/unictype/property-space-tests: New file.
55997         * modules/unictype/property-terminal-punctuation-tests: New file.
55998         * modules/unictype/property-test-tests: New file.
55999         * modules/unictype/property-titlecase-tests: New file.
56000         * modules/unictype/property-unassigned-code-value-tests: New file.
56001         * modules/unictype/property-unified-ideograph-tests: New file.
56002         * modules/unictype/property-uppercase-tests: New file.
56003         * modules/unictype/property-variation-selector-tests: New file.
56004         * modules/unictype/property-white-space-tests: New file.
56005         * modules/unictype/property-xid-continue-tests: New file.
56006         * modules/unictype/property-xid-start-tests: New file.
56007         * modules/unictype/property-zero-width-tests: New file.
56008         * modules/unictype/scripts-tests: New file.
56009         * modules/unictype/syntax-c-ident-tests: New file.
56010         * modules/unictype/syntax-c-whitespace-tests: New file.
56011         * modules/unictype/syntax-java-ident-tests: New file.
56012         * modules/unictype/syntax-java-whitespace-tests: New file.
56013         * tests/unictype/test-bidi_byname.c: New file.
56014         * tests/unictype/test-bidi_name.c: New file.
56015         * tests/unictype/test-bidi_of.c: New file.
56016         * tests/unictype/test-bidi_test.c: New file.
56017         * tests/unictype/test-block_list.c: New file.
56018         * tests/unictype/test-block_of.c: New file.
56019         * tests/unictype/test-block_test.c: New file.
56020         * tests/unictype/test-categ_and.c: New file.
56021         * tests/unictype/test-categ_and_not.c: New file.
56022         * tests/unictype/test-categ_byname.c: New file.
56023         * tests/unictype/test-categ_name.c: New file.
56024         * tests/unictype/test-categ_none.c: New file.
56025         * tests/unictype/test-categ_of.c: New file.
56026         * tests/unictype/test-categ_or.c: New file.
56027         * tests/unictype/test-categ_test_withtable.c: New file.
56028         * tests/unictype/test-combining.c: New file.
56029         * tests/unictype/test-decdigit.c: New file.
56030         * tests/unictype/test-digit.c: New file.
56031         * tests/unictype/test-mirror.c: New file.
56032         * tests/unictype/test-numeric.c: New file.
56033         * tests/unictype/test-pr_byname.c: New file.
56034         * tests/unictype/test-pr_test.c: New file.
56035         * tests/unictype/test-predicate-part1.h: New file.
56036         * tests/unictype/test-predicate-part2.h: New file.
56037         * tests/unictype/test-scripts.c: New file.
56038         * tests/unictype/test-sy_c_ident.c: New file.
56039         * tests/unictype/test-sy_java_ident.c: New file.
56040
56041         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
56042         for Unicode 5.0.0.
56043         * tests/unictype/test-categ_Cc.c: Likewise.
56044         * tests/unictype/test-categ_Cf.c: Likewise.
56045         * tests/unictype/test-categ_Cn.c: Likewise.
56046         * tests/unictype/test-categ_Co.c: Likewise.
56047         * tests/unictype/test-categ_Cs.c: Likewise.
56048         * tests/unictype/test-categ_L.c: Likewise.
56049         * tests/unictype/test-categ_Ll.c: Likewise.
56050         * tests/unictype/test-categ_Lm.c: Likewise.
56051         * tests/unictype/test-categ_Lo.c: Likewise.
56052         * tests/unictype/test-categ_Lt.c: Likewise.
56053         * tests/unictype/test-categ_Lu.c: Likewise.
56054         * tests/unictype/test-categ_M.c: Likewise.
56055         * tests/unictype/test-categ_Mc.c: Likewise.
56056         * tests/unictype/test-categ_Me.c: Likewise.
56057         * tests/unictype/test-categ_Mn.c: Likewise.
56058         * tests/unictype/test-categ_N.c: Likewise.
56059         * tests/unictype/test-categ_Nd.c: Likewise.
56060         * tests/unictype/test-categ_Nl.c: Likewise.
56061         * tests/unictype/test-categ_No.c: Likewise.
56062         * tests/unictype/test-categ_P.c: Likewise.
56063         * tests/unictype/test-categ_Pc.c: Likewise.
56064         * tests/unictype/test-categ_Pd.c: Likewise.
56065         * tests/unictype/test-categ_Pe.c: Likewise.
56066         * tests/unictype/test-categ_Pf.c: Likewise.
56067         * tests/unictype/test-categ_Pi.c: Likewise.
56068         * tests/unictype/test-categ_Po.c: Likewise.
56069         * tests/unictype/test-categ_Ps.c: Likewise.
56070         * tests/unictype/test-categ_S.c: Likewise.
56071         * tests/unictype/test-categ_Sc.c: Likewise.
56072         * tests/unictype/test-categ_Sk.c: Likewise.
56073         * tests/unictype/test-categ_Sm.c: Likewise.
56074         * tests/unictype/test-categ_So.c: Likewise.
56075         * tests/unictype/test-categ_Z.c: Likewise.
56076         * tests/unictype/test-categ_Zl.c: Likewise.
56077         * tests/unictype/test-categ_Zp.c: Likewise.
56078         * tests/unictype/test-categ_Zs.c: Likewise.
56079         * tests/unictype/test-ctype_alnum.c: Likewise.
56080         * tests/unictype/test-ctype_alpha.c: Likewise.
56081         * tests/unictype/test-ctype_blank.c: Likewise.
56082         * tests/unictype/test-ctype_cntrl.c: Likewise.
56083         * tests/unictype/test-ctype_digit.c: Likewise.
56084         * tests/unictype/test-ctype_graph.c: Likewise.
56085         * tests/unictype/test-ctype_lower.c: Likewise.
56086         * tests/unictype/test-ctype_print.c: Likewise.
56087         * tests/unictype/test-ctype_punct.c: Likewise.
56088         * tests/unictype/test-ctype_space.c: Likewise.
56089         * tests/unictype/test-ctype_upper.c: Likewise.
56090         * tests/unictype/test-ctype_xdigit.c: Likewise.
56091         * tests/unictype/test-decdigit.h: Likewise.
56092         * tests/unictype/test-digit.h: Likewise.
56093         * tests/unictype/test-numeric.h: Likewise.
56094         * tests/unictype/test-pr_alphabetic.c: Likewise.
56095         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
56096         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
56097         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
56098         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
56099         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
56100         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
56101         * tests/unictype/test-pr_bidi_control.c: Likewise.
56102         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
56103         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
56104         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
56105         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
56106         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
56107         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
56108         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
56109         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
56110         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
56111         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
56112         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
56113         * tests/unictype/test-pr_combining.c: Likewise.
56114         * tests/unictype/test-pr_composite.c: Likewise.
56115         * tests/unictype/test-pr_currency_symbol.c: Likewise.
56116         * tests/unictype/test-pr_dash.c: Likewise.
56117         * tests/unictype/test-pr_decimal_digit.c: Likewise.
56118         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
56119         * tests/unictype/test-pr_deprecated.c: Likewise.
56120         * tests/unictype/test-pr_diacritic.c: Likewise.
56121         * tests/unictype/test-pr_extender.c: Likewise.
56122         * tests/unictype/test-pr_format_control.c: Likewise.
56123         * tests/unictype/test-pr_grapheme_base.c: Likewise.
56124         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
56125         * tests/unictype/test-pr_grapheme_link.c: Likewise.
56126         * tests/unictype/test-pr_hex_digit.c: Likewise.
56127         * tests/unictype/test-pr_hyphen.c: Likewise.
56128         * tests/unictype/test-pr_id_continue.c: Likewise.
56129         * tests/unictype/test-pr_id_start.c: Likewise.
56130         * tests/unictype/test-pr_ideographic.c: Likewise.
56131         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
56132         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
56133         * tests/unictype/test-pr_ignorable_control.c: Likewise.
56134         * tests/unictype/test-pr_iso_control.c: Likewise.
56135         * tests/unictype/test-pr_join_control.c: Likewise.
56136         * tests/unictype/test-pr_left_of_pair.c: Likewise.
56137         * tests/unictype/test-pr_line_separator.c: Likewise.
56138         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
56139         * tests/unictype/test-pr_lowercase.c: Likewise.
56140         * tests/unictype/test-pr_math.c: Likewise.
56141         * tests/unictype/test-pr_non_break.c: Likewise.
56142         * tests/unictype/test-pr_not_a_character.c: Likewise.
56143         * tests/unictype/test-pr_numeric.c: Likewise.
56144         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
56145         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
56146         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
56147         * tests/unictype/test-pr_other_id_continue.c: Likewise.
56148         * tests/unictype/test-pr_other_id_start.c: Likewise.
56149         * tests/unictype/test-pr_other_lowercase.c: Likewise.
56150         * tests/unictype/test-pr_other_math.c: Likewise.
56151         * tests/unictype/test-pr_other_uppercase.c: Likewise.
56152         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
56153         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
56154         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
56155         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
56156         * tests/unictype/test-pr_private_use.c: Likewise.
56157         * tests/unictype/test-pr_punctuation.c: Likewise.
56158         * tests/unictype/test-pr_quotation_mark.c: Likewise.
56159         * tests/unictype/test-pr_radical.c: Likewise.
56160         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
56161         * tests/unictype/test-pr_soft_dotted.c: Likewise.
56162         * tests/unictype/test-pr_space.c: Likewise.
56163         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
56164         * tests/unictype/test-pr_titlecase.c: Likewise.
56165         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
56166         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
56167         * tests/unictype/test-pr_uppercase.c: Likewise.
56168         * tests/unictype/test-pr_variation_selector.c: Likewise.
56169         * tests/unictype/test-pr_white_space.c: Likewise.
56170         * tests/unictype/test-pr_xid_continue.c: Likewise.
56171         * tests/unictype/test-pr_xid_start.c: Likewise.
56172         * tests/unictype/test-pr_zero_width.c: Likewise.
56173         * tests/unictype/test-sy_c_whitespace.c: Likewise.
56174         * tests/unictype/test-sy_java_whitespace.c: Likewise.
56175
56176 2007-11-12  Bruno Haible  <bruno@clisp.org>
56177
56178         Unicode character classification functions.
56179         * lib/unictype.h: New file.
56180         * modules/unictype/base: New file.
56181         * modules/unictype/category-L: New file.
56182         * modules/unictype/category-Lu: New file.
56183         * modules/unictype/category-Ll: New file.
56184         * modules/unictype/category-Lt: New file.
56185         * modules/unictype/category-Lm: New file.
56186         * modules/unictype/category-Lo: New file.
56187         * modules/unictype/category-M: New file.
56188         * modules/unictype/category-Mn: New file.
56189         * modules/unictype/category-Mc: New file.
56190         * modules/unictype/category-Me: New file.
56191         * modules/unictype/category-N: New file.
56192         * modules/unictype/category-Nd: New file.
56193         * modules/unictype/category-Nl: New file.
56194         * modules/unictype/category-No: New file.
56195         * modules/unictype/category-P: New file.
56196         * modules/unictype/category-Pc: New file.
56197         * modules/unictype/category-Pd: New file.
56198         * modules/unictype/category-Ps: New file.
56199         * modules/unictype/category-Pe: New file.
56200         * modules/unictype/category-Pi: New file.
56201         * modules/unictype/category-Pf: New file.
56202         * modules/unictype/category-Po: New file.
56203         * modules/unictype/category-S: New file.
56204         * modules/unictype/category-Sm: New file.
56205         * modules/unictype/category-Sc: New file.
56206         * modules/unictype/category-Sk: New file.
56207         * modules/unictype/category-So: New file.
56208         * modules/unictype/category-Z: New file.
56209         * modules/unictype/category-Zs: New file.
56210         * modules/unictype/category-Zl: New file.
56211         * modules/unictype/category-Zp: New file.
56212         * modules/unictype/category-C: New file.
56213         * modules/unictype/category-Cc: New file.
56214         * modules/unictype/category-Cf: New file.
56215         * modules/unictype/category-Cs: New file.
56216         * modules/unictype/category-Co: New file.
56217         * modules/unictype/category-Cn: New file.
56218         * modules/unictype/category-or: New file.
56219         * modules/unictype/category-of: New file.
56220         * modules/unictype/category-test: New file.
56221         * modules/unictype/category-test-withtable: New file.
56222         * modules/unictype/category-byname: New file.
56223         * modules/unictype/category-none: New file.
56224         * modules/unictype/category-and: New file.
56225         * modules/unictype/category-and-not: New file.
56226         * modules/unictype/category-name: New file.
56227         * modules/unictype/combining-class: New file.
56228         * modules/unictype/category-all: New file.
56229         * modules/unictype/bidicategory-all: New file.
56230         * modules/unictype/bidicategory-byname: New file.
56231         * modules/unictype/bidicategory-name: New file.
56232         * modules/unictype/bidicategory-of: New file.
56233         * modules/unictype/bidicategory-test: New file.
56234         * modules/unictype/decimal-digit: New file.
56235         * modules/unictype/digit: New file.
56236         * modules/unictype/numeric: New file.
56237         * modules/unictype/mirror: New file.
56238         * modules/unictype/property-white-space: New file.
56239         * modules/unictype/property-alphabetic: New file.
56240         * modules/unictype/property-other-alphabetic: New file.
56241         * modules/unictype/property-not-a-character: New file.
56242         * modules/unictype/property-default-ignorable-code-point: New file.
56243         * modules/unictype/property-other-default-ignorable-code-point: New
56244         file.
56245         * modules/unictype/property-deprecated: New file.
56246         * modules/unictype/property-logical-order-exception: New file.
56247         * modules/unictype/property-variation-selector: New file.
56248         * modules/unictype/property-private-use: New file.
56249         * modules/unictype/property-unassigned-code-value: New file.
56250         * modules/unictype/property-uppercase: New file.
56251         * modules/unictype/property-other-uppercase: New file.
56252         * modules/unictype/property-lowercase: New file.
56253         * modules/unictype/property-other-lowercase: New file.
56254         * modules/unictype/property-titlecase: New file.
56255         * modules/unictype/property-soft-dotted: New file.
56256         * modules/unictype/property-id-start: New file.
56257         * modules/unictype/property-other-id-start: New file.
56258         * modules/unictype/property-id-continue: New file.
56259         * modules/unictype/property-other-id-continue: New file.
56260         * modules/unictype/property-xid-start: New file.
56261         * modules/unictype/property-xid-continue: New file.
56262         * modules/unictype/property-pattern-white-space: New file.
56263         * modules/unictype/property-pattern-syntax: New file.
56264         * modules/unictype/property-join-control: New file.
56265         * modules/unictype/property-grapheme-base: New file.
56266         * modules/unictype/property-grapheme-extend: New file.
56267         * modules/unictype/property-other-grapheme-extend: New file.
56268         * modules/unictype/property-grapheme-link: New file.
56269         * modules/unictype/property-bidi-control: New file.
56270         * modules/unictype/property-bidi-left-to-right: New file.
56271         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
56272         * modules/unictype/property-bidi-arabic-right-to-left: New file.
56273         * modules/unictype/property-bidi-european-digit: New file.
56274         * modules/unictype/property-bidi-eur-num-separator: New file.
56275         * modules/unictype/property-bidi-eur-num-terminator: New file.
56276         * modules/unictype/property-bidi-arabic-digit: New file.
56277         * modules/unictype/property-bidi-common-separator: New file.
56278         * modules/unictype/property-bidi-block-separator: New file.
56279         * modules/unictype/property-bidi-segment-separator: New file.
56280         * modules/unictype/property-bidi-whitespace: New file.
56281         * modules/unictype/property-bidi-non-spacing-mark: New file.
56282         * modules/unictype/property-bidi-boundary-neutral: New file.
56283         * modules/unictype/property-bidi-pdf: New file.
56284         * modules/unictype/property-bidi-embedding-or-override: New file.
56285         * modules/unictype/property-bidi-other-neutral: New file.
56286         * modules/unictype/property-hex-digit: New file.
56287         * modules/unictype/property-ascii-hex-digit: New file.
56288         * modules/unictype/property-ideographic: New file.
56289         * modules/unictype/property-unified-ideograph: New file.
56290         * modules/unictype/property-radical: New file.
56291         * modules/unictype/property-ids-binary-operator: New file.
56292         * modules/unictype/property-ids-trinary-operator: New file.
56293         * modules/unictype/property-zero-width: New file.
56294         * modules/unictype/property-space: New file.
56295         * modules/unictype/property-non-break: New file.
56296         * modules/unictype/property-iso-control: New file.
56297         * modules/unictype/property-format-control: New file.
56298         * modules/unictype/property-dash: New file.
56299         * modules/unictype/property-hyphen: New file.
56300         * modules/unictype/property-punctuation: New file.
56301         * modules/unictype/property-line-separator: New file.
56302         * modules/unictype/property-paragraph-separator: New file.
56303         * modules/unictype/property-quotation-mark: New file.
56304         * modules/unictype/property-sentence-terminal: New file.
56305         * modules/unictype/property-terminal-punctuation: New file.
56306         * modules/unictype/property-currency-symbol: New file.
56307         * modules/unictype/property-math: New file.
56308         * modules/unictype/property-other-math: New file.
56309         * modules/unictype/property-paired-punctuation: New file.
56310         * modules/unictype/property-left-of-pair: New file.
56311         * modules/unictype/property-combining: New file.
56312         * modules/unictype/property-composite: New file.
56313         * modules/unictype/property-decimal-digit: New file.
56314         * modules/unictype/property-numeric: New file.
56315         * modules/unictype/property-diacritic: New file.
56316         * modules/unictype/property-extender: New file.
56317         * modules/unictype/property-ignorable-control: New file.
56318         * modules/unictype/property-test: New file.
56319         * modules/unictype/property-byname: New file.
56320         * modules/unictype/property-all: New file.
56321         * modules/unictype/scripts: New file.
56322         * modules/unictype/scripts-all: New file.
56323         * modules/unictype/block-of: New file.
56324         * modules/unictype/block-test: New file.
56325         * modules/unictype/block-list: New file.
56326         * modules/unictype/block-all: New file.
56327         * modules/unictype/syntax-c-whitespace: New file.
56328         * modules/unictype/syntax-java-whitespace: New file.
56329         * modules/unictype/syntax-c-ident: New file.
56330         * modules/unictype/syntax-java-ident: New file.
56331         * modules/unictype/ctype-alnum: New file.
56332         * modules/unictype/ctype-alpha: New file.
56333         * modules/unictype/ctype-cntrl: New file.
56334         * modules/unictype/ctype-digit: New file.
56335         * modules/unictype/ctype-graph: New file.
56336         * modules/unictype/ctype-lower: New file.
56337         * modules/unictype/ctype-print: New file.
56338         * modules/unictype/ctype-punct: New file.
56339         * modules/unictype/ctype-space: New file.
56340         * modules/unictype/ctype-upper: New file.
56341         * modules/unictype/ctype-xdigit: New file.
56342         * modules/unictype/ctype-blank: New file.
56343         * lib/unictype/bidi_byname.c: New file.
56344         * lib/unictype/bidi_name.c: New file.
56345         * lib/unictype/bidi_of.c: New file.
56346         * lib/unictype/bidi_test.c: New file.
56347         * lib/unictype/bitmap.h: New file.
56348         * lib/unictype/block_test.c: New file.
56349         * lib/unictype/blocks.c: New file.
56350         * lib/unictype/categ_C.c: New file.
56351         * lib/unictype/categ_Cc.c: New file.
56352         * lib/unictype/categ_Cf.c: New file.
56353         * lib/unictype/categ_Cn.c: New file.
56354         * lib/unictype/categ_Co.c: New file.
56355         * lib/unictype/categ_Cs.c: New file.
56356         * lib/unictype/categ_L.c: New file.
56357         * lib/unictype/categ_Ll.c: New file.
56358         * lib/unictype/categ_Lm.c: New file.
56359         * lib/unictype/categ_Lo.c: New file.
56360         * lib/unictype/categ_Lt.c: New file.
56361         * lib/unictype/categ_Lu.c: New file.
56362         * lib/unictype/categ_M.c: New file.
56363         * lib/unictype/categ_Mc.c: New file.
56364         * lib/unictype/categ_Me.c: New file.
56365         * lib/unictype/categ_Mn.c: New file.
56366         * lib/unictype/categ_N.c: New file.
56367         * lib/unictype/categ_Nd.c: New file.
56368         * lib/unictype/categ_Nl.c: New file.
56369         * lib/unictype/categ_No.c: New file.
56370         * lib/unictype/categ_P.c: New file.
56371         * lib/unictype/categ_Pc.c: New file.
56372         * lib/unictype/categ_Pd.c: New file.
56373         * lib/unictype/categ_Pe.c: New file.
56374         * lib/unictype/categ_Pf.c: New file.
56375         * lib/unictype/categ_Pi.c: New file.
56376         * lib/unictype/categ_Po.c: New file.
56377         * lib/unictype/categ_Ps.c: New file.
56378         * lib/unictype/categ_S.c: New file.
56379         * lib/unictype/categ_Sc.c: New file.
56380         * lib/unictype/categ_Sk.c: New file.
56381         * lib/unictype/categ_Sm.c: New file.
56382         * lib/unictype/categ_So.c: New file.
56383         * lib/unictype/categ_Z.c: New file.
56384         * lib/unictype/categ_Zl.c: New file.
56385         * lib/unictype/categ_Zp.c: New file.
56386         * lib/unictype/categ_Zs.c: New file.
56387         * lib/unictype/categ_and.c: New file.
56388         * lib/unictype/categ_and_not.c: New file.
56389         * lib/unictype/categ_byname.c: New file.
56390         * lib/unictype/categ_name.c: New file.
56391         * lib/unictype/categ_none.c: New file.
56392         * lib/unictype/categ_of.c: New file.
56393         * lib/unictype/categ_or.c: New file.
56394         * lib/unictype/categ_test.c: New file.
56395         * lib/unictype/combining.c: New file.
56396         * lib/unictype/ctype_alnum.c: New file.
56397         * lib/unictype/ctype_alpha.c: New file.
56398         * lib/unictype/ctype_blank.c: New file.
56399         * lib/unictype/ctype_cntrl.c: New file.
56400         * lib/unictype/ctype_digit.c: New file.
56401         * lib/unictype/ctype_graph.c: New file.
56402         * lib/unictype/ctype_lower.c: New file.
56403         * lib/unictype/ctype_print.c: New file.
56404         * lib/unictype/ctype_punct.c: New file.
56405         * lib/unictype/ctype_space.c: New file.
56406         * lib/unictype/ctype_upper.c: New file.
56407         * lib/unictype/ctype_xdigit.c: New file.
56408         * lib/unictype/decdigit.c: New file.
56409         * lib/unictype/digit.c: New file.
56410         * lib/unictype/identsyntaxmap.h: New file.
56411         * lib/unictype/mirror.c: New file.
56412         * lib/unictype/numeric.c: New file.
56413         * lib/unictype/pr_alphabetic.c: New file.
56414         * lib/unictype/pr_ascii_hex_digit.c: New file.
56415         * lib/unictype/pr_bidi_arabic_digit.c: New file.
56416         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
56417         * lib/unictype/pr_bidi_block_separator.c: New file.
56418         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
56419         * lib/unictype/pr_bidi_common_separator.c: New file.
56420         * lib/unictype/pr_bidi_control.c: New file.
56421         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
56422         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
56423         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
56424         * lib/unictype/pr_bidi_european_digit.c: New file.
56425         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
56426         * lib/unictype/pr_bidi_left_to_right.c: New file.
56427         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
56428         * lib/unictype/pr_bidi_other_neutral.c: New file.
56429         * lib/unictype/pr_bidi_pdf.c: New file.
56430         * lib/unictype/pr_bidi_segment_separator.c: New file.
56431         * lib/unictype/pr_bidi_whitespace.c: New file.
56432         * lib/unictype/pr_byname.c: New file.
56433         * lib/unictype/pr_byname.gperf: New file.
56434         * lib/unictype/pr_combining.c: New file.
56435         * lib/unictype/pr_composite.c: New file.
56436         * lib/unictype/pr_currency_symbol.c: New file.
56437         * lib/unictype/pr_dash.c: New file.
56438         * lib/unictype/pr_decimal_digit.c: New file.
56439         * lib/unictype/pr_default_ignorable_code_point.c: New file.
56440         * lib/unictype/pr_deprecated.c: New file.
56441         * lib/unictype/pr_diacritic.c: New file.
56442         * lib/unictype/pr_extender.c: New file.
56443         * lib/unictype/pr_format_control.c: New file.
56444         * lib/unictype/pr_grapheme_base.c: New file.
56445         * lib/unictype/pr_grapheme_extend.c: New file.
56446         * lib/unictype/pr_grapheme_link.c: New file.
56447         * lib/unictype/pr_hex_digit.c: New file.
56448         * lib/unictype/pr_hyphen.c: New file.
56449         * lib/unictype/pr_id_continue.c: New file.
56450         * lib/unictype/pr_id_start.c: New file.
56451         * lib/unictype/pr_ideographic.c: New file.
56452         * lib/unictype/pr_ids_binary_operator.c: New file.
56453         * lib/unictype/pr_ids_trinary_operator.c: New file.
56454         * lib/unictype/pr_ignorable_control.c: New file.
56455         * lib/unictype/pr_iso_control.c: New file.
56456         * lib/unictype/pr_join_control.c: New file.
56457         * lib/unictype/pr_left_of_pair.c: New file.
56458         * lib/unictype/pr_line_separator.c: New file.
56459         * lib/unictype/pr_logical_order_exception.c: New file.
56460         * lib/unictype/pr_lowercase.c: New file.
56461         * lib/unictype/pr_math.c: New file.
56462         * lib/unictype/pr_non_break.c: New file.
56463         * lib/unictype/pr_not_a_character.c: New file.
56464         * lib/unictype/pr_numeric.c: New file.
56465         * lib/unictype/pr_other_alphabetic.c: New file.
56466         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
56467         * lib/unictype/pr_other_grapheme_extend.c: New file.
56468         * lib/unictype/pr_other_id_continue.c: New file.
56469         * lib/unictype/pr_other_id_start.c: New file.
56470         * lib/unictype/pr_other_lowercase.c: New file.
56471         * lib/unictype/pr_other_math.c: New file.
56472         * lib/unictype/pr_other_uppercase.c: New file.
56473         * lib/unictype/pr_paired_punctuation.c: New file.
56474         * lib/unictype/pr_paragraph_separator.c: New file.
56475         * lib/unictype/pr_pattern_syntax.c: New file.
56476         * lib/unictype/pr_pattern_white_space.c: New file.
56477         * lib/unictype/pr_private_use.c: New file.
56478         * lib/unictype/pr_punctuation.c: New file.
56479         * lib/unictype/pr_quotation_mark.c: New file.
56480         * lib/unictype/pr_radical.c: New file.
56481         * lib/unictype/pr_sentence_terminal.c: New file.
56482         * lib/unictype/pr_soft_dotted.c: New file.
56483         * lib/unictype/pr_space.c: New file.
56484         * lib/unictype/pr_terminal_punctuation.c: New file.
56485         * lib/unictype/pr_test.c: New file.
56486         * lib/unictype/pr_titlecase.c: New file.
56487         * lib/unictype/pr_unassigned_code_value.c: New file.
56488         * lib/unictype/pr_unified_ideograph.c: New file.
56489         * lib/unictype/pr_uppercase.c: New file.
56490         * lib/unictype/pr_variation_selector.c: New file.
56491         * lib/unictype/pr_white_space.c: New file.
56492         * lib/unictype/pr_xid_continue.c: New file.
56493         * lib/unictype/pr_xid_start.c: New file.
56494         * lib/unictype/pr_zero_width.c: New file.
56495         * lib/unictype/scripts.c: New file.
56496         * lib/unictype/sy_c_ident.c: New file.
56497         * lib/unictype/sy_c_whitespace.c: New file.
56498         * lib/unictype/sy_java_ident.c: New file.
56499         * lib/unictype/sy_java_whitespace.c: New file.
56500
56501         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
56502         Unicode 5.0.0.
56503         * lib/unictype/blocks.h: Likewise.
56504         * lib/unictype/categ_C.h: Likewise.
56505         * lib/unictype/categ_Cc.h: Likewise.
56506         * lib/unictype/categ_Cf.h: Likewise.
56507         * lib/unictype/categ_Cn.h: Likewise.
56508         * lib/unictype/categ_Co.h: Likewise.
56509         * lib/unictype/categ_Cs.h: Likewise.
56510         * lib/unictype/categ_L.h: Likewise.
56511         * lib/unictype/categ_Ll.h: Likewise.
56512         * lib/unictype/categ_Lm.h: Likewise.
56513         * lib/unictype/categ_Lo.h: Likewise.
56514         * lib/unictype/categ_Lt.h: Likewise.
56515         * lib/unictype/categ_Lu.h: Likewise.
56516         * lib/unictype/categ_M.h: Likewise.
56517         * lib/unictype/categ_Mc.h: Likewise.
56518         * lib/unictype/categ_Me.h: Likewise.
56519         * lib/unictype/categ_Mn.h: Likewise.
56520         * lib/unictype/categ_N.h: Likewise.
56521         * lib/unictype/categ_Nd.h: Likewise.
56522         * lib/unictype/categ_Nl.h: Likewise.
56523         * lib/unictype/categ_No.h: Likewise.
56524         * lib/unictype/categ_P.h: Likewise.
56525         * lib/unictype/categ_Pc.h: Likewise.
56526         * lib/unictype/categ_Pd.h: Likewise.
56527         * lib/unictype/categ_Pe.h: Likewise.
56528         * lib/unictype/categ_Pf.h: Likewise.
56529         * lib/unictype/categ_Pi.h: Likewise.
56530         * lib/unictype/categ_Po.h: Likewise.
56531         * lib/unictype/categ_Ps.h: Likewise.
56532         * lib/unictype/categ_S.h: Likewise.
56533         * lib/unictype/categ_Sc.h: Likewise.
56534         * lib/unictype/categ_Sk.h: Likewise.
56535         * lib/unictype/categ_Sm.h: Likewise.
56536         * lib/unictype/categ_So.h: Likewise.
56537         * lib/unictype/categ_Z.h: Likewise.
56538         * lib/unictype/categ_Zl.h: Likewise.
56539         * lib/unictype/categ_Zp.h: Likewise.
56540         * lib/unictype/categ_Zs.h: Likewise.
56541         * lib/unictype/categ_of.h: Likewise.
56542         * lib/unictype/combining.h: Likewise.
56543         * lib/unictype/ctype_alnum.h: Likewise.
56544         * lib/unictype/ctype_alpha.h: Likewise.
56545         * lib/unictype/ctype_blank.h: Likewise.
56546         * lib/unictype/ctype_cntrl.h: Likewise.
56547         * lib/unictype/ctype_digit.h: Likewise.
56548         * lib/unictype/ctype_graph.h: Likewise.
56549         * lib/unictype/ctype_lower.h: Likewise.
56550         * lib/unictype/ctype_print.h: Likewise.
56551         * lib/unictype/ctype_punct.h: Likewise.
56552         * lib/unictype/ctype_space.h: Likewise.
56553         * lib/unictype/ctype_upper.h: Likewise.
56554         * lib/unictype/ctype_xdigit.h: Likewise.
56555         * lib/unictype/decdigit.h: Likewise.
56556         * lib/unictype/digit.h: Likewise.
56557         * lib/unictype/mirror.h: Likewise.
56558         * lib/unictype/numeric.h: Likewise.
56559         * lib/unictype/pr_alphabetic.h: Likewise.
56560         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
56561         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
56562         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
56563         * lib/unictype/pr_bidi_block_separator.h: Likewise.
56564         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
56565         * lib/unictype/pr_bidi_common_separator.h: Likewise.
56566         * lib/unictype/pr_bidi_control.h: Likewise.
56567         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
56568         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
56569         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
56570         * lib/unictype/pr_bidi_european_digit.h: Likewise.
56571         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
56572         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
56573         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
56574         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
56575         * lib/unictype/pr_bidi_pdf.h: Likewise.
56576         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
56577         * lib/unictype/pr_bidi_whitespace.h: Likewise.
56578         * lib/unictype/pr_combining.h: Likewise.
56579         * lib/unictype/pr_composite.h: Likewise.
56580         * lib/unictype/pr_currency_symbol.h: Likewise.
56581         * lib/unictype/pr_dash.h: Likewise.
56582         * lib/unictype/pr_decimal_digit.h: Likewise.
56583         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
56584         * lib/unictype/pr_deprecated.h: Likewise.
56585         * lib/unictype/pr_diacritic.h: Likewise.
56586         * lib/unictype/pr_extender.h: Likewise.
56587         * lib/unictype/pr_format_control.h: Likewise.
56588         * lib/unictype/pr_grapheme_base.h: Likewise.
56589         * lib/unictype/pr_grapheme_extend.h: Likewise.
56590         * lib/unictype/pr_grapheme_link.h: Likewise.
56591         * lib/unictype/pr_hex_digit.h: Likewise.
56592         * lib/unictype/pr_hyphen.h: Likewise.
56593         * lib/unictype/pr_id_continue.h: Likewise.
56594         * lib/unictype/pr_id_start.h: Likewise.
56595         * lib/unictype/pr_ideographic.h: Likewise.
56596         * lib/unictype/pr_ids_binary_operator.h: Likewise.
56597         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
56598         * lib/unictype/pr_ignorable_control.h: Likewise.
56599         * lib/unictype/pr_iso_control.h: Likewise.
56600         * lib/unictype/pr_join_control.h: Likewise.
56601         * lib/unictype/pr_left_of_pair.h: Likewise.
56602         * lib/unictype/pr_line_separator.h: Likewise.
56603         * lib/unictype/pr_logical_order_exception.h: Likewise.
56604         * lib/unictype/pr_lowercase.h: Likewise.
56605         * lib/unictype/pr_math.h: Likewise.
56606         * lib/unictype/pr_non_break.h: Likewise.
56607         * lib/unictype/pr_not_a_character.h: Likewise.
56608         * lib/unictype/pr_numeric.h: Likewise.
56609         * lib/unictype/pr_other_alphabetic.h: Likewise.
56610         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
56611         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
56612         * lib/unictype/pr_other_id_continue.h: Likewise.
56613         * lib/unictype/pr_other_id_start.h: Likewise.
56614         * lib/unictype/pr_other_lowercase.h: Likewise.
56615         * lib/unictype/pr_other_math.h: Likewise.
56616         * lib/unictype/pr_other_uppercase.h: Likewise.
56617         * lib/unictype/pr_paired_punctuation.h: Likewise.
56618         * lib/unictype/pr_paragraph_separator.h: Likewise.
56619         * lib/unictype/pr_pattern_syntax.h: Likewise.
56620         * lib/unictype/pr_pattern_white_space.h: Likewise.
56621         * lib/unictype/pr_private_use.h: Likewise.
56622         * lib/unictype/pr_punctuation.h: Likewise.
56623         * lib/unictype/pr_quotation_mark.h: Likewise.
56624         * lib/unictype/pr_radical.h: Likewise.
56625         * lib/unictype/pr_sentence_terminal.h: Likewise.
56626         * lib/unictype/pr_soft_dotted.h: Likewise.
56627         * lib/unictype/pr_space.h: Likewise.
56628         * lib/unictype/pr_terminal_punctuation.h: Likewise.
56629         * lib/unictype/pr_titlecase.h: Likewise.
56630         * lib/unictype/pr_unassigned_code_value.h: Likewise.
56631         * lib/unictype/pr_unified_ideograph.h: Likewise.
56632         * lib/unictype/pr_uppercase.h: Likewise.
56633         * lib/unictype/pr_variation_selector.h: Likewise.
56634         * lib/unictype/pr_white_space.h: Likewise.
56635         * lib/unictype/pr_xid_continue.h: Likewise.
56636         * lib/unictype/pr_xid_start.h: Likewise.
56637         * lib/unictype/pr_zero_width.h: Likewise.
56638         * lib/unictype/scripts.h: Likewise.
56639         * lib/unictype/scripts_byname.gperf: Likewise.
56640         * lib/unictype/sy_c_ident.h: Likewise.
56641         * lib/unictype/sy_c_whitespace.h: Likewise.
56642         * lib/unictype/sy_java_ident.h: Likewise.
56643         * lib/unictype/sy_java_whitespace.h: Likewise.
56644
56645         * lib/unictype/Makefile: New file.
56646         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
56647         glibc.
56648         * lib/unictype/3level.h: New file, copied from glibc.
56649         * lib/unictype/3levelbit.h: New file.
56650
56651 2007-11-11  Bruno Haible  <bruno@clisp.org>
56652
56653         * modules/gperf: New file.
56654         * modules/iconv_open (Depends-on): Add it.
56655         (Makefile.am): Remove the GPERF definition.
56656
56657 2007-11-11  Bruno Haible  <bruno@clisp.org>
56658
56659         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
56660         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
56661
56662 2007-11-11  Bruno Haible  <bruno@clisp.org>
56663
56664         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
56665         (usage): Remove function.
56666
56667 2007-11-11  Bruno Haible  <bruno@clisp.org>
56668
56669         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
56670         gl_FUNC_CEILF_LIBS.
56671         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
56672         gl_FUNC_CEIL_LIBS.
56673         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
56674         gl_FUNC_CEILL_LIBS.
56675         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
56676         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
56677         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
56678
56679 2007-11-11  Bruno Haible  <bruno@clisp.org>
56680
56681         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
56682         roundf were declared but do not exist on functions.
56683         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
56684         roundl were declared but do not exist on functions.
56685         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
56686         HAVE_FLOORL_AND_CEILL, respectively.
56687         Needed for Sun C on Solaris 10.
56688
56689 2007-11-11  Bruno Haible  <bruno@clisp.org>
56690
56691         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
56692         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
56693         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
56694         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
56695         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
56696         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
56697         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
56698         HAVE_DECL_ROUNDF.
56699         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
56700         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
56701         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
56702         of HAVE_DECL_ROUND*.
56703         * modules/math (Makefile.am): Update.
56704
56705 2007-11-10  Bruno Haible  <bruno@clisp.org>
56706
56707         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
56708         ptrdiff_t as m4/intl.m4.
56709
56710 2007-11-10  Jim Meyering  <meyering@redhat.com>
56711
56712         Avoid link failure for the argmatch test.
56713         * tests/test-argmatch.c (usage): Define function to avoid a link
56714         failure: argmatch_die requires a usage function.
56715
56716 2007-11-09  Bruno Haible  <bruno@clisp.org>
56717
56718         * doc/functions/snprintf.texi: Mention BeOS deficiency.
56719         * doc/functions/vsnprintf.texi: Likewise.
56720         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
56721         with a size argument < 2.
56722
56723 2007-11-09  Bruno Haible  <bruno@clisp.org>
56724
56725         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
56726         buffer. Fixes an inefficiency introduced on 2007-11-03.
56727
56728 2007-11-09  Bruno Haible  <bruno@clisp.org>
56729
56730         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
56731         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
56732
56733 2007-11-08  Jim Meyering  <meyering@redhat.com>
56734
56735         Change cache variable name prefix "jm_" to "gl_" everywhere.
56736         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
56737         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
56738         * m4/uptime.m4: s/gl_/jm_/
56739
56740 2007-11-07  Bruno Haible  <bruno@clisp.org>
56741
56742         Update to GNU gettext 0.17.
56743         * m4/intl.m4: Update to GNU gettext 0.17.
56744         * m4/po.m4: Likewise.
56745         * modules/gettext (Files): Remove m4/ulonglong.m4.
56746         (configure.ac): Require gettext infrastructure from version 0.17.
56747
56748 2007-11-06  Bruno Haible  <bruno@clisp.org>
56749
56750         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
56751         symbolic values are not defined in a public header.
56752         * lib/freadable.c (freadable) [QNX]: Likewise.
56753         * lib/freadahead.c (freadahead) [QNX]: Likewise.
56754         * lib/freading.c (freading) [QNX]: Likewise.
56755         * lib/fseterr.c (fseterr) [QNX]: Likewise.
56756         * lib/fwritable.c (fwritable) [QNX]: Likewise.
56757         * lib/fwriting.c (fwriting) [QNX]: Likewise.
56758         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
56759         Reported by Alain Magloire.
56760
56761         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
56762
56763 2007-11-05  Bruno Haible  <bruno@clisp.org>
56764
56765         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
56766         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
56767         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
56768         Reported by Eric Blake.
56769
56770 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56771             Bruno Haible  <bruno@clisp.org>
56772
56773         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
56774         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
56775         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
56776         (malloc): Undefine also before including <stdlib.h>.
56777         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
56778         Needed on OSF/1 4.0.
56779
56780 2007-11-05  Jim Meyering  <meyering@redhat.com>
56781
56782         git-version-gen: sync from coreutils.
56783         * build-aux/git-version-gen: Add comments.
56784         Change the first '-' to '.' in the snapshot version string,
56785         e.g., 6.9-377-08144 -> 6.9.377-08144
56786         Remove first parameter.
56787         Don't declare a version "-dirty" merely because a time
56788         stamp has changed.
56789
56790 2007-11-04  Bruno Haible  <bruno@clisp.org>
56791
56792         * lib/lock.h: Protect all macro definitions containing an 'if'
56793         statement through a "do { ... } while (0)".
56794         * lib/tls.h: Likewise.
56795
56796 2007-11-04  Bruno Haible  <bruno@clisp.org>
56797
56798         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
56799
56800 2007-11-04  Bruno Haible  <bruno@clisp.org>
56801
56802         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
56803         * modules/fprintf-posix (Depends-on): Add nocrash.
56804         * modules/snprintf-posix (Depends-on): Likewise.
56805         * modules/sprintf-posix (Depends-on): Likewise.
56806         * modules/vasnprintf-posix (Depends-on): Likewise.
56807         * modules/vasprintf-posix (Depends-on): Likewise.
56808         * modules/vfprintf-posix (Depends-on): Likewise.
56809         * modules/vsnprintf-posix (Depends-on): Likewise.
56810         * modules/vsprintf-posix (Depends-on): Likewise.
56811         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
56812         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
56813         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
56814         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
56815         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
56816         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
56817         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
56818
56819 2007-11-04  Bruno Haible  <bruno@clisp.org>
56820
56821         * modules/nocrash: New file.
56822         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
56823         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
56824
56825 2007-11-04  Bruno Haible  <bruno@clisp.org>
56826
56827         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
56828         precision handling.
56829         * tests/test-vasprintf-posix.c (test_function): Likewise.
56830         * tests/test-snprintf-posix.h (test_function): Likewise.
56831         * tests/test-sprintf-posix.h (test_function): Likewise.
56832
56833         Fix *printf behaviour for large precisions on mingw and BeOS.
56834         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
56835         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
56836         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
56837         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
56838         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56839         gl_PRINTF_PRECISION and test its result. Invoke
56840         gl_PREREQ_VASNPRINTF_PRECISION.
56841         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56842         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56843         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56844         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56845         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56846         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56847         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56848         * doc/functions/fprintf.texi: Update.
56849         * doc/functions/printf.texi: Update.
56850         * doc/functions/snprintf.texi: Update.
56851         * doc/functions/sprintf.texi: Update.
56852         * doc/functions/vfprintf.texi: Update.
56853         * doc/functions/vprintf.texi: Update.
56854         * doc/functions/vsnprintf.texi: Update.
56855         * doc/functions/vsprintf.texi: Update.
56856
56857 2007-11-04  Bruno Haible  <bruno@clisp.org>
56858
56859         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
56860
56861 2007-11-04  Bruno Haible  <bruno@clisp.org>
56862
56863         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
56864         Reported by Sylvain Beucler <beuc@gnu.org>.
56865
56866 2007-11-03  Bruno Haible  <bruno@clisp.org>
56867
56868         * tests/test-fprintf-posix2.sh: New file.
56869         * tests/test-fprintf-posix2.c: New file.
56870         * modules/fprintf-posix-tests (Files): Add them.
56871         (TESTS): Add test-fprintf-posix2.sh.
56872         (configure.ac): Check for getrlimit and setrlimit.
56873         (check_PROGRAMS): Add test-fprintf-posix2.
56874
56875         * tests/test-printf-posix2.sh: New file.
56876         * tests/test-printf-posix2.c: New file.
56877         * modules/printf-posix-tests (Files): Add them.
56878         (TESTS): Add test-printf-posix2.sh.
56879         (configure.ac): Check for getrlimit and setrlimit.
56880         (check_PROGRAMS): Add test-printf-posix2.
56881
56882         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
56883         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
56884         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
56885         (decode_double): New function, copied from decode_long_double.
56886         (scale10_round_decimal_decoded): New function, extracted from
56887         scale10_round_decimal_long_double.
56888         (scale10_round_decimal_long_double): Use it.
56889         (scale10_round_decimal_double): New function.
56890         (floorlog10): New function.
56891         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
56892         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
56893         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
56894         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56895         gl_PRINTF_ENOMEM and test its result. Invoke
56896         gl_PREREQ_VASNPRINTF_ENOMEM.
56897         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56898         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56899         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56900         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56901         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56902         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56903         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56904         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
56905         * modules/snprintf-posix (Depends-on): Likewise.
56906         * modules/sprintf-posix (Depends-on): Likewise.
56907         * modules/vasnprintf-posix (Depends-on): Likewise.
56908         * modules/vasprintf-posix (Depends-on): Likewise.
56909         * modules/vfprintf-posix (Depends-on): Likewise.
56910         * modules/vsnprintf-posix (Depends-on): Likewise.
56911         * modules/vsprintf-posix (Depends-on): Likewise.
56912         * doc/functions/fprintf.texi: Update.
56913         * doc/functions/printf.texi: Update.
56914         * doc/functions/snprintf.texi: Update.
56915         * doc/functions/sprintf.texi: Update.
56916         * doc/functions/vfprintf.texi: Update.
56917         * doc/functions/vprintf.texi: Update.
56918         * doc/functions/vsnprintf.texi: Update.
56919         * doc/functions/vsprintf.texi: Update.
56920
56921 2007-11-03  Bruno Haible  <bruno@clisp.org>
56922
56923         * modules/frexp-nolibm-tests: New file.
56924
56925         * modules/frexp-nolibm: New file.
56926         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
56927
56928 2007-11-03  Bruno Haible  <bruno@clisp.org>
56929
56930         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
56931         value is C99 compliant.
56932         Needed for OSF/1 5.1.
56933
56934 2007-11-03  Bruno Haible  <bruno@clisp.org>
56935
56936         Fix out-of-memory handling of vasnprintf.
56937         * lib/printf-parse.c: Include <errno.h>.
56938         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
56939         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
56940         is already set.
56941
56942 2007-11-02  Eric Blake  <ebb9@byu.net>
56943
56944         Fix tests on cygwin.
56945         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
56946
56947 2007-11-01  Bruno Haible  <bruno@clisp.org>
56948
56949         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
56950         warning.
56951         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
56952         needed for POSIX compatibility.
56953
56954 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
56955
56956         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
56957         for compatibility with GNU.
56958
56959 2007-11-01  Bruno Haible  <bruno@clisp.org>
56960
56961         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
56962         (putenv): Renamed from rpl_putenv. Change argument type from
56963         'const char *' to 'char *'.
56964         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
56965         of defining putenv in config.h, just set REPLACE_PUTENV.
56966         * modules/putenv (Depends-on): Add stdlib.
56967         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56968         (Include): Use <stdlib.h>.
56969         * lib/stdlib.in.h (putenv): New declaration.
56970         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
56971         REPLACE_PUTENV.
56972         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
56973         REPLACE_PUTENV.
56974         Needed for MacOS X 10.5.0.
56975         Reported by Peter O'Gorman <peter@pogma.com>.
56976
56977 2007-11-01  Jim Meyering  <meyering@redhat.com>
56978
56979         Treat an empty date string exactly like "0".
56980         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
56981         if the remaining date string (to be parsed) is empty, use "0".
56982         Reported by Mischa Molhoek and discussed in this thread:
56983         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
56984
56985 2007-10-31  Bruno Haible  <bruno@clisp.org>
56986
56987         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
56988         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
56989         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
56990         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
56991         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
56992         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
56993
56994 2007-10-31  Bruno Haible  <bruno@clisp.org>
56995
56996         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
56997         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
56998         (AC_TYPE_LONG_LONG_INT): Use it.
56999         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
57000         it as well.
57001         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
57002         to m4/longlong.m4.
57003         * modules/stdint (Files): Remove m4/ulonglong.m4.
57004         * modules/strtoull (Files): Use m4/longlong.m4 instead of
57005         m4/ulonglong.m4.
57006         * modules/strtoumax (Files): Likewise.
57007
57008 2007-10-30  Bruno Haible  <bruno@clisp.org>
57009
57010         * modules/xvasprintf-posix: New file.
57011         Suggested by Eric Blake.
57012
57013 2007-10-30  Bruno Haible  <bruno@clisp.org>
57014
57015         * modules/xprintf-posix-tests: New file.
57016         * tests/test-xprintf-posix.sh: New file.
57017         * tests/test-xprintf-posix.c: New file.
57018         * tests/test-xfprintf-posix.c: New file.
57019
57020         * modules/xprintf-posix: New file.
57021
57022 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57023
57024         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
57025         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
57026         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
57027
57028 2007-10-29  Bruno Haible  <bruno@clisp.org>
57029
57030         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
57031         contain the special marker '_cv_'.
57032         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
57033         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
57034         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
57035         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
57036         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
57037         Reported by Ralf Wildenhues.
57038
57039 2007-10-29  Bruno Haible  <bruno@clisp.org>
57040
57041         * gnulib-tool (func_import): When --lgpl is not specified, set
57042         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
57043         GPLv3.
57044         Reported by Simon Josefsson.
57045
57046 2007-10-28  Bruno Haible  <bruno@clisp.org>
57047
57048         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
57049         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
57050         HAVE_DECL_ISFINITE.
57051         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
57052         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
57053         HAVE_DECL_ISFINITE.
57054
57055 2007-10-28  Bruno Haible  <bruno@clisp.org>
57056
57057         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
57058         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
57059
57060 2007-10-28  Bruno Haible  <bruno@clisp.org>
57061
57062         Fix link errors with Sun C 5.0 on Solaris 10.
57063         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
57064         function is declared but not present in the compiler's libm.
57065         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
57066         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
57067         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
57068         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
57069         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
57070         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
57071         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
57072         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
57073         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
57074         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
57075         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
57076         HAVE_DECL_FLOORL.
57077
57078 2007-10-28  Bruno Haible  <bruno@clisp.org>
57079
57080         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
57081         gl_FUNC_FLOORL. Cache the result.
57082         (gl_FUNC_FLOORL): Use it.
57083         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
57084         gl_FUNC_CEILL. Cache the result.
57085         (gl_FUNC_CEILL): Use it.
57086
57087         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
57088         gl_FUNC_FLOOR. Cache the result.
57089         (gl_FUNC_FLOOR): Use it.
57090         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
57091         gl_FUNC_CEIL. Cache the result.
57092         (gl_FUNC_CEIL): Use it.
57093
57094         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
57095         gl_FUNC_FLOORF. Cache the result.
57096         (gl_FUNC_FLOORF): Use it.
57097         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
57098         gl_FUNC_CEILF. Cache the result.
57099         (gl_FUNC_CEILF): Use it.
57100
57101 2007-10-28  Bruno Haible  <bruno@clisp.org>
57102
57103         * gnulib-tool: Allow specifying the LGPL version number through
57104         --lgpl=2 or --lgpl=3.
57105         (func_usage): Document --lgpl with argument.
57106         Handle --lgpl=... arguments.
57107         (func_import): Recognize also gl_LGPL calls with an argument. When
57108         --lgpl=2 is used and the module's license is just LGPL, report an
57109         error. Set sed_transform_lib_file according to the lgpl variable. In
57110         the generated files, use --lgpl or gl_LGPL invocations with argument,
57111         if necessary.
57112         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
57113         an LGPv2+ license.
57114         * doc/gnulib-tool.texi (Modified imports): Update explanation of
57115         gl_LGPL macro.
57116
57117 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57118             Bruno Haible  <bruno@clisp.org>
57119
57120         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
57121         (u16_uctomb_aux): Likewise.
57122         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
57123         !HAVE_INLINE.
57124         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
57125
57126 2007-10-28  Bruno Haible  <bruno@clisp.org>
57127
57128         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
57129         Invoke AM_GETTEXT_OPTION if it exists.
57130         * modules/vasprintf: Likewise.
57131         * modules/verror: Likewise.
57132         * modules/xprintf: Likewise.
57133         * modules/xvasprintf: Likewise.
57134
57135 2007-10-27  Ben Pfaff  <blp@gnu.org>
57136
57137         * lib/math.in.h: Define isfinite macro and prototypes for
57138         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
57139         implementations.
57140         * m4/math_h.m4: New substitutions for isfinite module.
57141         * lib/isfinite.c: New file.
57142         * m4/isfinite.m4: New file.
57143         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
57144         * modules/isfinite: New file.
57145         * modules/isfinite-tests: New file.
57146         * tests/tests-isfinite.c: New file.
57147         * doc/functions/isfinite.texi: Mention isfinite module.
57148         * MODULES.html.sh: Mention new module.
57149
57150 2007-10-27  Ben Pfaff  <blp@gnu.org>
57151
57152         Ralf Wildenhues reported that Tru64 4.0D declares the round
57153         functions but does not have definitions.
57154         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
57155         cannot be found in any library, set the output variable to
57156         "missing" instead of "".
57157         * m4/round.m4: Also use our substitute if we cannot find round in
57158         any library, even if it is declared.
57159         * m4/roundf.m4: Likewise for roundf.
57160         * m4/roundl.m4: Likewise for roundl.
57161         * lib/math.in.h: Undefine roundf, round, roundl before defining
57162         their replacements, to allow for hypothetical systems where these
57163         may be defined as macros but not available in libraries.
57164
57165 2007-10-27  Bruno Haible  <bruno@clisp.org>
57166
57167         * doc/gnulib.texi: Invoke @firstparagraphindent.
57168         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
57169         changes in gnulib.
57170         (Source changes): New section.
57171
57172 2007-10-26  Bruno Haible  <bruno@clisp.org>
57173
57174         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
57175         borrowed from autoconf.
57176
57177 2007-10-26  Bruno Haible  <bruno@clisp.org>
57178
57179         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
57180         strerror returned the empty string. Needed on HP-UX 11.00.
57181
57182 2007-10-24  Micah Cowan  <micah@cowan.name>
57183
57184         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
57185         * build-aux/bootstrap: Remove support for now-unnecessary option,
57186         --cvs-user, and envvars CVS_USER, CVS_RSH.
57187
57188 2007-10-24  Jim Meyering  <meyering@redhat.com>
57189
57190         Avoid diagnostics from sha1sum when there is no cached checksum.
57191         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
57192         if the po.s1 file hasn't been created yet.
57193
57194         * build-aux/bootstrap: Sync from coreutils:
57195         2007-10-24  Jim Meyering  <meyering@redhat.com>
57196         Get gnulib from the git repository, not from an obsolete cvs one.
57197         * build-aux/bootstrap: Suggestion from Micah Cowan.
57198         2007-10-04  Jim Meyering  <jim@meyering.net>
57199         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
57200         (update_po_files): Work also when there are no .po files in po/.
57201
57202 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57203
57204         * README: Append ".git" to git and cg examples.
57205         Problem reported by Benoit Sigoure.
57206
57207 2007-10-23  Micah Cowan  <micah@cowan.name>
57208
57209         * users.txt: Add wget.
57210
57211 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57212
57213         Fix linking of some unistdio tests on FreeBSD.
57214         * modules/unistdio/u16-vsnprintf-tests
57215         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
57216         * modules/unistdio/u16-vsprintf-tests
57217         (test_u16_vsnprintf1_LDADD): Likewise.
57218         * modules/unistdio/u32-vsnprintf-tests
57219         (test_u32_vsnprintf1_LDADD): Likewise.
57220         * modules/unistdio/u32-vsprintf-tests
57221         (test_u32_vsprintf1_LDADD): Likewise.
57222         * modules/unistdio/u8-vsnprintf-tests
57223         (test_u8_vsnprintf1_LDADD): Likewise.
57224         * modules/unistdio/u8-vsprintf-tests
57225         (test_u8_vsprintf1_LDADD): Likewise.
57226         * modules/unistdio/ulc-vsnprintf-tests
57227         (test_ulc_vsnprintf1_LDADD): Likewise.
57228         * modules/unistdio/ulc-vsprintf-tests
57229         (test_ulc_vsprintf1_LDADD): Likewise.
57230
57231         Fix linking of some uniconv tests on FreeBSD.
57232         * modules/uniconv/u16-conv-from-enc-tests
57233         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
57234         * modules/uniconv/u16-conv-to-enc-tests
57235         (test_u16_conv_to_enc_LDADD): Likewise.
57236         * modules/uniconv/u16-strconv-from-enc-tests
57237         (test_u16_strconv_from_enc_LDADD): Likewise.
57238         * modules/uniconv/u16-strconv-to-enc-tests
57239         (test_u16_strconv_to_enc_LDADD): Likewise.
57240         * modules/uniconv/u32-conv-from-enc-tests
57241         (test_u32_conv_from_enc_LDADD): Likewise.
57242         * modules/uniconv/u32-conv-to-enc-tests
57243         (test_u32_conv_to_enc_LDADD): Likewise.
57244         * modules/uniconv/u32-strconv-from-enc-tests
57245         (test_u32_strconv_from_enc_LDADD): Likewise.
57246         * modules/uniconv/u32-strconv-to-enc-tests
57247         (test_u32_strconv_to_enc_LDADD): Likewise.
57248         * modules/uniconv/u8-conv-from-enc-tests
57249         (test_u8_conv_from_enc_LDADD): Likewise.
57250         * modules/uniconv/u8-conv-to-enc-tests
57251         (test_u8_conv_to_enc_LDADD): Likewise.
57252         * modules/uniconv/u8-strconv-from-enc-tests
57253         (test_u8_strconv_from_enc_LDADD): Likewise.
57254         * modules/uniconv/u8-strconv-to-enc-tests
57255         (test_u8_strconv_to_enc_LDADD): Likewise.
57256
57257 2007-10-22  Bruno Haible  <bruno@clisp.org>
57258
57259         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
57260         size.
57261
57262 2007-10-22  Eric Blake  <ebb9@byu.net>
57263
57264         Tweak x*printf documentation.
57265         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
57266         variable name and comments.
57267         Suggested by Bruno Haible.
57268
57269 2007-10-22  Bruno Haible  <bruno@clisp.org>
57270
57271         * lib/acl.c (copy_acl): Fix file name in comment.
57272
57273 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
57274
57275         Fix Tru64 problem with stdbool.h.
57276         * lib/stdbool.in.h (false, true):
57277         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
57278         Don't declare as an enum in this situation; it runs afoul of Tru64.
57279         Problem reported by Steven M. Schweda in
57280         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
57281
57282 2007-10-22  Eric Blake  <ebb9@byu.net>
57283
57284         Also wrap vf?printf.
57285         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
57286         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
57287         (xvprintf, xvfprintf): New functions.
57288
57289 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57290
57291         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
57292         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
57293
57294         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
57295         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
57296
57297 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
57298
57299         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
57300         by Bruno Haible.
57301
57302 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57303
57304         * lib/getloadavg.c
57305         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
57306         Undef `sys' after including sys/table.h, for Tru64 4.0D.
57307
57308         * tests/test-i-ring.c: Work for C89.
57309
57310 2007-10-22  Bruno Haible  <bruno@clisp.org>
57311
57312         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
57313         -1u, in preprocessor expression, so that we don't test for the bug
57314         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
57315         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
57316
57317 2007-10-22  Eric Blake  <ebb9@byu.net>
57318
57319         * tests/test-yesno.sh: Silence stderr during test.
57320
57321 2007-10-22  Simon Josefsson  <simon@josefsson.org>
57322
57323         * modules/crypto/gc-camellia: New file.
57324
57325         * m4/gc-camellia.m4: New file.
57326
57327         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
57328
57329         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
57330
57331 2007-10-22  Simon Josefsson  <simon@josefsson.org>
57332
57333         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
57334         --help to stdout.  Reported by sms@antinode.org (Steven
57335         M. Schweda).
57336
57337 2007-10-22  Simon Josefsson  <simon@josefsson.org>
57338
57339         * users.txt: Fix link to libksba.
57340
57341 2007-10-21  Ben Pfaff  <blp@gnu.org>
57342
57343         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
57344         round.c roundf implementation that depends on floorf and ceilf to
57345         be tested unconditionally.
57346
57347 2007-10-21  Ben Pfaff  <blp@gnu.org>
57348
57349         * m4/check-libm-func.m4: Removed.
57350         * m4/check-math-lib.m4: New file.
57351         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
57352         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
57353         definition and lack of AC_LIBOBJ([roundf]).
57354         * m4/roundl.m4: Ditto, and similarly for roundl.
57355         * modules/round: Reference new m4 file.
57356         * modules/roundf: Ditto.
57357         * modules/roundl: Ditto.
57358         * tests/test-round2.c (main): Use ROUND instead of round.
57359         Bug report from Bruno Haible.
57360
57361 2007-10-21  Bruno Haible  <bruno@clisp.org>
57362
57363         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
57364         context.
57365
57366 2007-10-21  Bruno Haible  <bruno@clisp.org>
57367
57368         * tests/test-wcwidth.c (main): Allow negative result for some control
57369         characters.
57370
57371         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
57372         Needed on OSF/1 5.1.
57373
57374 2007-10-21  Bruno Haible  <bruno@clisp.org>
57375
57376         * tests/test-floorf1.c: Include isnanf.h.
57377         (main): Use isnanf() instead of isnan().
57378         * tests/test-ceilf1.c: Include isnanf.h.
57379         (main): Use isnanf() instead of isnan().
57380         * tests/test-truncf1.c: Include isnanf.h.
57381         (main): Use isnanf() instead of isnan().
57382         * tests/test-roundf1.c: Include isnanf.h.
57383         (main): Use isnanf() instead of isnan().
57384
57385 2007-10-21  Eric Blake  <ebb9@byu.net>
57386
57387         * users.txt: Update URL for m4.
57388
57389 2007-10-21  Bruno Haible  <bruno@clisp.org>
57390
57391         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
57392
57393 2007-10-21  Bruno Haible  <bruno@clisp.org>
57394
57395         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
57396         Git's management files if the CVS files are not present.
57397
57398 2007-10-20  Bruno Haible  <bruno@clisp.org>
57399
57400         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
57401         gcc-3.4.x.
57402
57403 2007-10-20  Ben Pfaff  <blp@gnu.org>
57404
57405         * lib/math.in.h: Declare round, roundf, roundl if we are providing
57406         implementations.
57407         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
57408         * lib/round.c: New file.
57409         * lib/roundf.c: New file.
57410         * lib/roundl.c: New file.
57411         * m4/round.m4: New file.
57412         * m4/roundf.m4: New file.
57413         * m4/roundl.m4: New file.
57414         * m4/check-libm-func-m4: New file.
57415         * modules/math: Replace round, roundf, roundl related @VARS@ in
57416         math.in.h.
57417         * modules/round: New file.
57418         * modules/round-tests: New file.
57419         * modules/roundf: New file.
57420         * modules/roundf-tests: New file.
57421         * modules/roundl: New file.
57422         * modules/roundl-tests: New file.
57423         * tests/test-round1.c: New file.
57424         * tests/test-round2.c: New file.
57425         * tests/test-roundf1.c: New file.
57426         * tests/test-roundf2.c: New file.
57427         * tests/test-roundl.c: New file.
57428         * doc/functions/round.texi: Mention round module.
57429         * doc/functions/roundf.texi: Mention roundf module.
57430         * doc/functions/roundl.texi: Mention roundl module.
57431         * MODULES.html.sh: Mention new modules.
57432         Thanks to Bruno Haible for suggestions.
57433
57434 2007-10-20  Jim Meyering  <meyering@redhat.com>
57435
57436         * lib/xprintf.c: Include <config.h> unconditionally.
57437
57438         Change xprintf's license to GPL.
57439         * modules/xprintf (License): s/LGPL/GPL/, since this module
57440         depends on modules (exit and exitfail) which are GPL.
57441         Suggestion from Bruno Haible.
57442
57443         xprintf fixes.
57444         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
57445         Use a clearer diagnostic.
57446         Patch from Bruno Haible.
57447
57448 2007-10-20  Bruno Haible  <bruno@clisp.org>
57449
57450         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
57451         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
57452         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57453
57454 2007-10-20  Bruno Haible  <bruno@clisp.org>
57455
57456         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
57457         precision in the comparison result > x - 1 or similar.
57458         * tests/test-ceilf2.c (correct_result_p): Likewise.
57459         * tests/test-truncf2.c (correct_result_p): Likewise.
57460         * tests/test-trunc2.c (correct_result_p): Likewise.
57461         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57462
57463 2007-10-20  Bruno Haible  <bruno@clisp.org>
57464
57465         * modules/ceil: New file.
57466         * m4/ceil.m4: New file.
57467         * doc/functions/ceil.texi: Mention the 'ceil' module.
57468
57469 2007-10-20  Bruno Haible  <bruno@clisp.org>
57470
57471         * modules/floor: New file.
57472         * m4/floor.m4: New file.
57473         * doc/functions/floor.texi: Mention the 'floor' module.
57474
57475 2007-10-20  Bruno Haible  <bruno@clisp.org>
57476
57477         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
57478         of %a.
57479         * modules/floorf-tests (Depends-on): Likewise.
57480         * modules/truncf-tests (Depends-on): Likewise.
57481         * modules/trunc-tests (Depends-on): Likewise.
57482         Reported by Ben Pfaff.
57483
57484 2007-10-19  Jim Meyering  <meyering@redhat.com>
57485
57486         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
57487         Don't bother testing specific errno values.  Just test ferror.
57488
57489         New module: xprintf
57490         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
57491
57492 2007-10-19  Bruno Haible  <bruno@clisp.org>
57493
57494         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
57495         syntax.
57496         * modules/javaexec (Makefile.am): Likewise.
57497         * modules/relocatable-prog (Makefile.am): Likewise.
57498         Suggested by Jim Meyering.
57499
57500 2007-10-18  Bruno Haible  <bruno@clisp.org>
57501
57502         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
57503         Reported by Jim Meyering.
57504
57505 2007-10-18  Eric Blake  <ebb9@byu.net>
57506
57507         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
57508
57509 2007-10-18  Bruno Haible  <bruno@clisp.org>
57510
57511         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
57512         the format string into writable memory. Needed in Fortify conditions.
57513
57514 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
57515             Bruno Haible  <bruno@clisp.org>
57516
57517         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
57518         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
57519         * modules/trim (Depends-on): Add mbchar.
57520         (configure.ac): Add gl_FUNC_MBRTOWC.
57521         (Makefile.am): Augment lib_SOURCES.
57522
57523 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
57524
57525         Modify glob.c to use fstatat and dirfd, to simplify it.
57526         Suggested by Eric Blake.
57527         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
57528         Don't include <stdbool.h>; not used.
57529         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
57530         (link_exists_p): Simplify implementation, since we can now assume
57531         dirfd and fstatat.
57532         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
57533
57534 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57535
57536         * gnulib-tool (func_get_dependencies): Fix sed script to
57537         match only tests.
57538
57539 2007-10-17  Bruno Haible  <bruno@clisp.org>
57540
57541         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
57542         allow locale names without encoding suffix.
57543         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
57544         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
57545
57546 2007-10-16  Bruno Haible  <bruno@clisp.org>
57547
57548         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
57549         * lib/getgroups.c (getgroups): Likewise.
57550         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
57551
57552 2007-10-16  Bruno Haible  <bruno@clisp.org>
57553
57554         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
57555         * modules/malloc-posix (License): Likewise.
57556         * modules/realloc-posix (License): Likewise.
57557         * modules/calloc-posix (License): Likewise.
57558         * modules/intprops (License): Change from GPL to LGPL, with
57559         Paul Eggert's approval.
57560
57561 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
57562
57563         Merge glibc changes into lib/glob.c.
57564
57565         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
57566         2007-10-15 04:59:03 UTC.  Here are the changes:
57567
57568         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
57569
57570         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
57571
57572         * lib/glob.c: Add some branch prediction throughout.
57573
57574         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
57575
57576         [BZ #5103]
57577         * lib/glob.c (glob): Recognize patterns starting \/.
57578
57579         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
57580
57581         [BZ #3996]
57582         * lib/glob.c (attribute_hidden): Define if not defined.
57583         (glob): Unescape dirname, filename or username when needed and not
57584         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
57585         is NULL.  Handle unescaped [ in pattern without closing ].
57586         Don't pass GLOB_CHECK down to recursive glob for directories.
57587         (__glob_pattern_type): New function.
57588         (__glob_pattern_p): Implement using __glob_pattern_type.
57589         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
57590         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
57591         Remove unreachable code.
57592
57593         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
57594
57595         * lib/glob.c (glob_in_dir): Add some comments and asserts to
57596         explain why there are no leaks.
57597
57598         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
57599
57600         [BZ #3253]
57601         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
57602         time, rather allocate increasingly bigger arrays of pointers, if
57603         possible with alloca, if too large with malloc.
57604
57605 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
57606
57607         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
57608         Problem reported by H.Merijn Brand in
57609         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
57610         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
57611         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
57612
57613 2007-10-15  Bruno Haible  <bruno@clisp.org>
57614
57615         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
57616         with explicit rpl_ prefix.
57617         * lib/fopen.c (fopen): Likewise.
57618         * lib/freopen.c (freopen): Likewise.
57619         * lib/iconv.c (iconv): Likewise.
57620         * lib/iconv_close.c (iconv_close): Likewise.
57621
57622 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57623
57624         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
57625
57626 2007-10-15  Bruno Haible  <bruno@clisp.org>
57627
57628         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
57629         <stddef.h> instead of <stdlib.h> since we only need NULL.
57630         Reported by Ben Pfaff <blp@cs.stanford.edu>.
57631
57632 2007-10-15  Bruno Haible  <bruno@clisp.org>
57633
57634         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
57635         Replace paragraph talking about LIBOBJS.
57636         Reported by Colin Watson <cjwatson@debian.org>.
57637
57638 2007-10-15  Bruno Haible  <bruno@clisp.org>
57639
57640         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
57641         <stdlib.h> before using NULL.
57642
57643 2007-10-15  Simon Josefsson  <simon@josefsson.org>
57644
57645         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
57646         Reported by Albert Chin <china@thewrittenword.com>.
57647
57648 2007-10-14  Bruno Haible  <bruno@clisp.org>
57649
57650         * modules/iconv_open-utf-tests: New file.
57651         * tests/test-iconv-utf.c: New file.
57652
57653         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
57654         * modules/iconv_open-utf: New file.
57655         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
57656         (iconv, iconv_close): New declarations.
57657         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
57658         be defined.
57659         (iconv_open): Add special handling of conversion between UTF-8 and
57660         UTF-{16,32}{BE,LE}.
57661         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
57662         * lib/iconv_close.c: New file.
57663         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
57664         gl_FUNC_ICONV_OPEN.
57665         (gl_FUNC_ICONV_OPEN): Use it.
57666         (gl_FUNC_ICONV_OPEN_UTF): New macro.
57667         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
57668         and REPLACE_ICONV_UTF.
57669         * modules/iconv_open (Depends-on): Add c-strcase.
57670         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
57671         ICONV_CONST.
57672         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
57673
57674 2007-10-13  Albert Chin  <china@thewrittenword.com>
57675             Bruno Haible  <bruno@clisp.org>
57676
57677         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
57678         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
57679
57680 2007-10-13  Bruno Haible  <bruno@clisp.org>
57681
57682         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
57683         defined, use the ISO C99 inline semantics.
57684         * lib/argp.h (ARGP_EI): Likewise.
57685
57686 2007-10-13  Bruno Haible  <bruno@clisp.org>
57687
57688         Handle 'inline' change in gcc 4.3.0.
57689         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
57690         argp_fmtstream_write, argp_fmtstream_set_lmargin,
57691         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
57692         argp_fmtstream_point): Disable 'extern' declaration if the function
57693         definition is going to be provided inline.
57694         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
57695         semantics, not the ISO C99 inline semantics.
57696         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
57697         'extern' declaration if the function definition is going to be provided
57698         inline.
57699         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
57700         the GNU C inline semantics, not the ISO C99 inline semantics. With
57701         GCC 4.2, avoid a warning.
57702
57703 2007-10-13  Bruno Haible  <bruno@clisp.org>
57704
57705         * lib/freading.h (freading): Enable the use of __freading for
57706         glibc >= 2.7.
57707         * lib/freading.c (freading): Likewise.
57708
57709 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
57710
57711         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
57712         "warning: C99 inline functions are not supported; using GNU89".
57713
57714 2007-10-12  Bruno Haible  <bruno@clisp.org>
57715
57716         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
57717         of 2.
57718         * tests/test-ceilf2.c: New file.
57719         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
57720
57721         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
57722         * modules/ceilf-tests: Update.
57723
57724 2007-10-12  Bruno Haible  <bruno@clisp.org>
57725
57726         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
57727         of 2.
57728         * tests/test-floorf2.c: New file.
57729         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
57730
57731         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
57732         * modules/floorf-tests: Update.
57733
57734 2007-10-12  Bruno Haible  <bruno@clisp.org>
57735
57736         * tests/test-trunc2.c: New file.
57737         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
57738
57739         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
57740         * modules/trunc-tests: Update.
57741
57742 2007-10-12  Bruno Haible  <bruno@clisp.org>
57743
57744         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
57745         of 2.
57746         * tests/test-truncf2.c: New file.
57747         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
57748
57749         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
57750         * modules/truncf-tests: Update.
57751
57752 2007-10-11  Eric Blake  <ebb9@byu.net>
57753
57754         Don't claim strerror is broken on Interix.
57755         * doc/functions/strerror.texi (strerror): Known broken systems are
57756         now Solaris 8, and not Interix.
57757         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
57758         Interix on cross-compile.
57759         Reported by Martin Koeppe in
57760         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
57761
57762 2007-10-11  Bruno Haible  <bruno@clisp.org>
57763
57764         * modules/i-ring-tests: New file.
57765         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
57766         instead of assert.
57767
57768 2007-10-11  Bruno Haible  <bruno@clisp.org>
57769
57770         * modules/filenamecat-tests: New file.
57771         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
57772         * lib/filenamecat.c: Remove test code.
57773
57774 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
57775
57776         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
57777
57778         * lib/strerror.c: Include <string.h> always, to test interface,
57779         and to remove the need for the dummy.
57780         Include intprops.h to compute width instead of doing it ourselves
57781         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
57782         (strerror): Define it to return NULL if there's no system strerror.
57783         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
57784         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
57785         ancient pre-strerror Unix systems well any more.  Saying "unknown
57786         system error" is enough.
57787         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
57788         simpler strerror.c implementation.
57789         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
57790         Simplify the tests to reflect the simpler strerror implementation.
57791         * modules/strerror (Depends-on): Add intprops.
57792
57793 2007-10-09  Eric Blake  <ebb9@byu.net>
57794
57795         Silence test-fpending.
57796         * modules/fpending-tests (Files): Add wrapper script.
57797         * tests/test-fpending.sh: New file.
57798
57799 2007-10-09  Bruno Haible  <bruno@clisp.org>
57800
57801         * MODULES.html.sh (func_module): Don't create a hyperlink for
57802         function names like 'printf_frexp'.
57803         (Misc): Add crc, memxor.
57804         (Characteristics of floating types): New section.
57805         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
57806         isnanf-nolibm, signbit, trunc, truncf, truncl.
57807         (Enhancements for ISO C 99 functions): New subsection Input/output.
57808         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
57809         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
57810         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
57811         (Compatibility checks for POSIX:2001 functions): Add clock-time.
57812         (Enhancements for POSIX:2001 functions): Add chdir-long.
57813         (File system functions): Add areadlink, chdir-safer, read-file.
57814         Remove cycle-check.
57815         (File system as inode set): New section.
57816         (Date and time): Add gethrxtime.
57817         (Multithreading): Add openmp.
57818         (Internationalization functions): Add localename.
57819         (Unicode string functions): Add unistr/u*-mbsnlen.
57820         (Support for maintaining and releasing projects): Add git-version-gen.
57821         (Lone files): Remove directories.
57822
57823 2007-10-08  Ben Pfaff  <blp@gnu.org>
57824
57825         * lib/xmalloca.h: Fix typo in comment.
57826
57827 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
57828
57829         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
57830         when avoiding problems with integer overflow.  Use a portable test
57831         instead.
57832
57833 2007-10-08  Simon Josefsson  <simon@josefsson.org>
57834
57835         * modules/dummy (License): Change to LGPLv2+.
57836         * modules/float (License): Likewise
57837         * modules/realloc (License): Likewise
57838         * modules/stdlib (License): Likewise
57839
57840 2007-10-07  Bruno Haible  <bruno@clisp.org>
57841
57842         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
57843         * floor.c (TWO_MANT_DIG): Likewise.
57844         * ceil.c (TWO_MANT_DIG): Likewise.
57845         Reported by Ben Pfaff.
57846
57847 2007-10-07  Bruno Haible  <bruno@clisp.org>
57848
57849         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
57850         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
57851         * lib/frexp.c (FUNC): Likewise.
57852         * lib/printf-frexp.h (printf_frexp): Likewise.
57853         * lib/printf-frexpl.h (printf_frexpl): Likewise.
57854         * lib/printf-frexp.c (FUNC): Likewise.
57855         Suggested by Jim Meyering.
57856
57857 2007-10-07  Jim Meyering  <meyering@redhat.com>
57858
57859         Make xnanosleep's integer overflow test more robust.
57860         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
57861         so that gcc-4.3.0 doesn't optimize away this test for overflow.
57862
57863 2007-10-07  Bruno Haible  <bruno@clisp.org>
57864
57865         * NEWS: Mention the license change.
57866
57867         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
57868         abbreviations in the modules files.
57869
57870         Change copyright notice from GPLv2+ to GPLv3+.
57871         * README: Change copyright notice.
57872         * MODULES.html.sh: Likewise.
57873         * build-aux/bootstrap.conf: Likewise.
57874         * build-aux/config.libpath: Likewise.
57875         * build-aux/csharpcomp.sh.in: Likewise.
57876         * build-aux/csharpexec.sh.in: Likewise.
57877         * build-aux/install-reloc: Likewise.
57878         * build-aux/javacomp.sh.in: Likewise.
57879         * build-aux/javaexec.sh.in: Likewise.
57880         * build-aux/ldd.sh.in: Likewise.
57881         * build-aux/reloc-ldflags: Likewise.
57882         * build-aux/relocatable.sh.in: Likewise.
57883         * build-aux/x-to-1.in: Likewise.
57884         * check-module: Likewise.
57885         * config/srclistvars.sh: Likewise.
57886         * gnulib-tool: Likewise.
57887         * lib/acl-internal.h: Likewise.
57888         * lib/acl.c: Likewise.
57889         * lib/acl.h: Likewise.
57890         * lib/acl_entries.c: Likewise.
57891         * lib/areadlink-with-size.c: Likewise.
57892         * lib/areadlink.c: Likewise.
57893         * lib/areadlink.h: Likewise.
57894         * lib/argmatch.c: Likewise.
57895         * lib/argmatch.h: Likewise.
57896         * lib/argp-ba.c: Likewise.
57897         * lib/argp-eexst.c: Likewise.
57898         * lib/argp-fmtstream.c: Likewise.
57899         * lib/argp-fmtstream.h: Likewise.
57900         * lib/argp-fs-xinl.c: Likewise.
57901         * lib/argp-help.c: Likewise.
57902         * lib/argp-namefrob.h: Likewise.
57903         * lib/argp-parse.c: Likewise.
57904         * lib/argp-pin.c: Likewise.
57905         * lib/argp-pv.c: Likewise.
57906         * lib/argp-pvh.c: Likewise.
57907         * lib/argp-xinl.c: Likewise.
57908         * lib/argp.h: Likewise.
57909         * lib/at-func.c: Likewise.
57910         * lib/atanl.c: Likewise.
57911         * lib/backupfile.c: Likewise.
57912         * lib/backupfile.h: Likewise.
57913         * lib/basename.c: Likewise.
57914         * lib/binary-io.h: Likewise.
57915         * lib/byteswap.in.h: Likewise.
57916         * lib/c-stack.c: Likewise.
57917         * lib/c-stack.h: Likewise.
57918         * lib/c-strcasestr.c: Likewise.
57919         * lib/c-strcasestr.h: Likewise.
57920         * lib/c-strstr.c: Likewise.
57921         * lib/c-strstr.h: Likewise.
57922         * lib/c-strtod.c: Likewise.
57923         * lib/calloc.c: Likewise.
57924         * lib/canon-host.c: Likewise.
57925         * lib/canon-host.h: Likewise.
57926         * lib/canonicalize-lgpl.c: Likewise.
57927         * lib/canonicalize.c: Likewise.
57928         * lib/canonicalize.h: Likewise.
57929         * lib/ceil.c: Likewise.
57930         * lib/ceilf.c: Likewise.
57931         * lib/ceill.c: Likewise.
57932         * lib/chdir-long.c: Likewise.
57933         * lib/chdir-long.h: Likewise.
57934         * lib/chdir-safer.c: Likewise.
57935         * lib/chdir-safer.h: Likewise.
57936         * lib/chown.c: Likewise.
57937         * lib/classpath.c: Likewise.
57938         * lib/classpath.h: Likewise.
57939         * lib/clean-temp.c: Likewise.
57940         * lib/clean-temp.h: Likewise.
57941         * lib/cloexec.c: Likewise.
57942         * lib/close-stream.c: Likewise.
57943         * lib/closein.c: Likewise.
57944         * lib/closein.h: Likewise.
57945         * lib/closeout.c: Likewise.
57946         * lib/closeout.h: Likewise.
57947         * lib/concat-filename.c: Likewise.
57948         * lib/copy-file.c: Likewise.
57949         * lib/copy-file.h: Likewise.
57950         * lib/count-one-bits.h: Likewise.
57951         * lib/crc.c: Likewise.
57952         * lib/crc.h: Likewise.
57953         * lib/creat-safer.c: Likewise.
57954         * lib/csharpcomp.c: Likewise.
57955         * lib/csharpcomp.h: Likewise.
57956         * lib/csharpexec.c: Likewise.
57957         * lib/csharpexec.h: Likewise.
57958         * lib/cycle-check.c: Likewise.
57959         * lib/cycle-check.h: Likewise.
57960         * lib/diacrit.c: Likewise.
57961         * lib/diacrit.h: Likewise.
57962         * lib/diffseq.h: Likewise.
57963         * lib/dirchownmod.c: Likewise.
57964         * lib/dirent.in.h: Likewise.
57965         * lib/dirfd.c: Likewise.
57966         * lib/dirfd.h: Likewise.
57967         * lib/dirname.c: Likewise.
57968         * lib/dirname.h: Likewise.
57969         * lib/dummy.c: Likewise.
57970         * lib/dup-safer.c: Likewise.
57971         * lib/dup2.c: Likewise.
57972         * lib/eealloc.h: Likewise.
57973         * lib/error.c: Likewise.
57974         * lib/error.h: Likewise.
57975         * lib/euidaccess.c: Likewise.
57976         * lib/exclude.c: Likewise.
57977         * lib/exclude.h: Likewise.
57978         * lib/execute.c: Likewise.
57979         * lib/execute.h: Likewise.
57980         * lib/exitfail.c: Likewise.
57981         * lib/exitfail.h: Likewise.
57982         * lib/expl.c: Likewise.
57983         * lib/fatal-signal.c: Likewise.
57984         * lib/fatal-signal.h: Likewise.
57985         * lib/fbufmode.c: Likewise.
57986         * lib/fbufmode.h: Likewise.
57987         * lib/fchdir.c: Likewise.
57988         * lib/fchmodat.c: Likewise.
57989         * lib/fchownat.c: Likewise.
57990         * lib/fcntl--.h: Likewise.
57991         * lib/fcntl-safer.h: Likewise.
57992         * lib/fcntl.in.h: Likewise.
57993         * lib/fd-safer.c: Likewise.
57994         * lib/fflush.c: Likewise.
57995         * lib/file-has-acl.c: Likewise.
57996         * lib/file-set.c: Likewise.
57997         * lib/file-type.c: Likewise.
57998         * lib/file-type.h: Likewise.
57999         * lib/fileblocks.c: Likewise.
58000         * lib/filemode.c: Likewise.
58001         * lib/filemode.h: Likewise.
58002         * lib/filename.h: Likewise.
58003         * lib/filenamecat.c: Likewise.
58004         * lib/filenamecat.h: Likewise.
58005         * lib/findprog.c: Likewise.
58006         * lib/findprog.h: Likewise.
58007         * lib/float.in.h: Likewise.
58008         * lib/floor.c: Likewise.
58009         * lib/floorf.c: Likewise.
58010         * lib/floorl.c: Likewise.
58011         * lib/fopen-safer.c: Likewise.
58012         * lib/fopen.c: Likewise.
58013         * lib/fpending.c: Likewise.
58014         * lib/fpending.h: Likewise.
58015         * lib/fprintf.c: Likewise.
58016         * lib/fprintftime.h: Likewise.
58017         * lib/fpucw.h: Likewise.
58018         * lib/fpurge.c: Likewise.
58019         * lib/fpurge.h: Likewise.
58020         * lib/freadable.c: Likewise.
58021         * lib/freadable.h: Likewise.
58022         * lib/freadahead.c: Likewise.
58023         * lib/freadahead.h: Likewise.
58024         * lib/freading.c: Likewise.
58025         * lib/freading.h: Likewise.
58026         * lib/free.c: Likewise.
58027         * lib/freopen.c: Likewise.
58028         * lib/frexp.c: Likewise.
58029         * lib/frexpl.c: Likewise.
58030         * lib/fseek.c: Likewise.
58031         * lib/fseterr.c: Likewise.
58032         * lib/fseterr.h: Likewise.
58033         * lib/fstatat.c: Likewise.
58034         * lib/fstrcmp.c: Likewise.
58035         * lib/fstrcmp.h: Likewise.
58036         * lib/fsusage.c: Likewise.
58037         * lib/fsusage.h: Likewise.
58038         * lib/ftell.c: Likewise.
58039         * lib/ftello.c: Likewise.
58040         * lib/fts-cycle.c: Likewise.
58041         * lib/fts.c: Likewise.
58042         * lib/fts_.h: Likewise.
58043         * lib/full-read.c: Likewise.
58044         * lib/full-read.h: Likewise.
58045         * lib/full-write.c: Likewise.
58046         * lib/full-write.h: Likewise.
58047         * lib/fwritable.c: Likewise.
58048         * lib/fwritable.h: Likewise.
58049         * lib/fwriteerror.c: Likewise.
58050         * lib/fwriteerror.h: Likewise.
58051         * lib/fwriting.c: Likewise.
58052         * lib/fwriting.h: Likewise.
58053         * lib/gcd.c: Likewise.
58054         * lib/gcd.h: Likewise.
58055         * lib/getcwd.c: Likewise.
58056         * lib/getdate.h: Likewise.
58057         * lib/getdate.y: Likewise.
58058         * lib/getdomainname.c: Likewise.
58059         * lib/getdomainname.h: Likewise.
58060         * lib/getgroups.c: Likewise.
58061         * lib/gethostname.c: Likewise.
58062         * lib/gethrxtime.c: Likewise.
58063         * lib/gethrxtime.h: Likewise.
58064         * lib/getloadavg.c: Likewise.
58065         * lib/getndelim2.c: Likewise.
58066         * lib/getndelim2.h: Likewise.
58067         * lib/getnline.c: Likewise.
58068         * lib/getnline.h: Likewise.
58069         * lib/getopt.c: Likewise.
58070         * lib/getopt.in.h: Likewise.
58071         * lib/getopt1.c: Likewise.
58072         * lib/getopt_int.h: Likewise.
58073         * lib/getpagesize.h: Likewise.
58074         * lib/getsubopt.c: Likewise.
58075         * lib/gettime.c: Likewise.
58076         * lib/getugroups.c: Likewise.
58077         * lib/getugroups.h: Likewise.
58078         * lib/getusershell.c: Likewise.
58079         * lib/gl_anyavltree_list1.h: Likewise.
58080         * lib/gl_anyavltree_list2.h: Likewise.
58081         * lib/gl_anyhash_list1.h: Likewise.
58082         * lib/gl_anyhash_list2.h: Likewise.
58083         * lib/gl_anylinked_list1.h: Likewise.
58084         * lib/gl_anylinked_list2.h: Likewise.
58085         * lib/gl_anyrbtree_list1.h: Likewise.
58086         * lib/gl_anyrbtree_list2.h: Likewise.
58087         * lib/gl_anytree_list1.h: Likewise.
58088         * lib/gl_anytree_list2.h: Likewise.
58089         * lib/gl_anytree_oset.h: Likewise.
58090         * lib/gl_anytreehash_list1.h: Likewise.
58091         * lib/gl_anytreehash_list2.h: Likewise.
58092         * lib/gl_array_list.c: Likewise.
58093         * lib/gl_array_list.h: Likewise.
58094         * lib/gl_array_oset.c: Likewise.
58095         * lib/gl_array_oset.h: Likewise.
58096         * lib/gl_avltree_list.c: Likewise.
58097         * lib/gl_avltree_list.h: Likewise.
58098         * lib/gl_avltree_oset.c: Likewise.
58099         * lib/gl_avltree_oset.h: Likewise.
58100         * lib/gl_avltreehash_list.c: Likewise.
58101         * lib/gl_avltreehash_list.h: Likewise.
58102         * lib/gl_carray_list.c: Likewise.
58103         * lib/gl_carray_list.h: Likewise.
58104         * lib/gl_linked_list.c: Likewise.
58105         * lib/gl_linked_list.h: Likewise.
58106         * lib/gl_linkedhash_list.c: Likewise.
58107         * lib/gl_linkedhash_list.h: Likewise.
58108         * lib/gl_list.c: Likewise.
58109         * lib/gl_list.h: Likewise.
58110         * lib/gl_oset.c: Likewise.
58111         * lib/gl_oset.h: Likewise.
58112         * lib/gl_rbtree_list.c: Likewise.
58113         * lib/gl_rbtree_list.h: Likewise.
58114         * lib/gl_rbtree_oset.c: Likewise.
58115         * lib/gl_rbtree_oset.h: Likewise.
58116         * lib/gl_rbtreehash_list.c: Likewise.
58117         * lib/gl_rbtreehash_list.h: Likewise.
58118         * lib/gl_sublist.c: Likewise.
58119         * lib/gl_sublist.h: Likewise.
58120         * lib/group-member.c: Likewise.
58121         * lib/group-member.h: Likewise.
58122         * lib/hard-locale.c: Likewise.
58123         * lib/hard-locale.h: Likewise.
58124         * lib/hash-pjw.c: Likewise.
58125         * lib/hash-pjw.h: Likewise.
58126         * lib/hash-triple.c: Likewise.
58127         * lib/hash.c: Likewise.
58128         * lib/hash.h: Likewise.
58129         * lib/human.c: Likewise.
58130         * lib/human.h: Likewise.
58131         * lib/i-ring.c: Likewise.
58132         * lib/i-ring.h: Likewise.
58133         * lib/idcache.c: Likewise.
58134         * lib/imaxabs.c: Likewise.
58135         * lib/imaxdiv.c: Likewise.
58136         * lib/inet_pton.c: Likewise.
58137         * lib/inet_pton.h: Likewise.
58138         * lib/intprops.h: Likewise.
58139         * lib/inttostr.c: Likewise.
58140         * lib/inttostr.h: Likewise.
58141         * lib/inttypes.in.h: Likewise.
58142         * lib/isapipe.c: Likewise.
58143         * lib/isdir.c: Likewise.
58144         * lib/isnan.c: Likewise.
58145         * lib/isnan.h: Likewise.
58146         * lib/isnanf.c: Likewise.
58147         * lib/isnanf.h: Likewise.
58148         * lib/isnanl-nolibm.h: Likewise.
58149         * lib/isnanl.c: Likewise.
58150         * lib/isnanl.h: Likewise.
58151         * lib/javacomp.c: Likewise.
58152         * lib/javacomp.h: Likewise.
58153         * lib/javaexec.c: Likewise.
58154         * lib/javaexec.h: Likewise.
58155         * lib/javaversion.c: Likewise.
58156         * lib/javaversion.h: Likewise.
58157         * lib/javaversion.java: Likewise.
58158         * lib/lbrkprop.h: Likewise.
58159         * lib/lchmod.h: Likewise.
58160         * lib/lchown.c: Likewise.
58161         * lib/ldexpl.c: Likewise.
58162         * lib/linebreak.c: Likewise.
58163         * lib/linebreak.h: Likewise.
58164         * lib/linebuffer.c: Likewise.
58165         * lib/linebuffer.h: Likewise.
58166         * lib/locale.in.h: Likewise.
58167         * lib/logl.c: Likewise.
58168         * lib/long-options.c: Likewise.
58169         * lib/long-options.h: Likewise.
58170         * lib/lstat.c: Likewise.
58171         * lib/lstat.h: Likewise.
58172         * lib/math.in.h: Likewise.
58173         * lib/mbchar.c: Likewise.
58174         * lib/mbchar.h: Likewise.
58175         * lib/mbfile.h: Likewise.
58176         * lib/mbiter.h: Likewise.
58177         * lib/mbscasecmp.c: Likewise.
58178         * lib/mbscasestr.c: Likewise.
58179         * lib/mbschr.c: Likewise.
58180         * lib/mbscspn.c: Likewise.
58181         * lib/mbslen.c: Likewise.
58182         * lib/mbsncasecmp.c: Likewise.
58183         * lib/mbsnlen.c: Likewise.
58184         * lib/mbspbrk.c: Likewise.
58185         * lib/mbspcasecmp.c: Likewise.
58186         * lib/mbsrchr.c: Likewise.
58187         * lib/mbssep.c: Likewise.
58188         * lib/mbsspn.c: Likewise.
58189         * lib/mbsstr.c: Likewise.
58190         * lib/mbstok_r.c: Likewise.
58191         * lib/mbswidth.c: Likewise.
58192         * lib/mbswidth.h: Likewise.
58193         * lib/mbuiter.h: Likewise.
58194         * lib/memcasecmp.c: Likewise.
58195         * lib/memcasecmp.h: Likewise.
58196         * lib/memchr.c: Likewise.
58197         * lib/memcmp.c: Likewise.
58198         * lib/memcoll.c: Likewise.
58199         * lib/memcoll.h: Likewise.
58200         * lib/memcpy.c: Likewise.
58201         * lib/memrchr.c: Likewise.
58202         * lib/mkancesdirs.c: Likewise.
58203         * lib/mkdir-p.c: Likewise.
58204         * lib/mkdir-p.h: Likewise.
58205         * lib/mkdir.c: Likewise.
58206         * lib/mkdirat.c: Likewise.
58207         * lib/mkdtemp.c: Likewise.
58208         * lib/mkstemp-safer.c: Likewise.
58209         * lib/mkstemp.c: Likewise.
58210         * lib/modechange.c: Likewise.
58211         * lib/modechange.h: Likewise.
58212         * lib/mountlist.c: Likewise.
58213         * lib/mountlist.h: Likewise.
58214         * lib/mpsort.c: Likewise.
58215         * lib/nanosleep.c: Likewise.
58216         * lib/obstack.c: Likewise.
58217         * lib/obstack.h: Likewise.
58218         * lib/open-safer.c: Likewise.
58219         * lib/open.c: Likewise.
58220         * lib/openat-die.c: Likewise.
58221         * lib/openat-priv.h: Likewise.
58222         * lib/openat-proc.c: Likewise.
58223         * lib/openat.c: Likewise.
58224         * lib/openat.h: Likewise.
58225         * lib/pagealign_alloc.c: Likewise.
58226         * lib/pagealign_alloc.h: Likewise.
58227         * lib/physmem.c: Likewise.
58228         * lib/physmem.h: Likewise.
58229         * lib/pipe-safer.c: Likewise.
58230         * lib/pipe.c: Likewise.
58231         * lib/pipe.h: Likewise.
58232         * lib/posixtm.c: Likewise.
58233         * lib/posixtm.h: Likewise.
58234         * lib/posixver.c: Likewise.
58235         * lib/printf-frexp.c: Likewise.
58236         * lib/printf-frexp.h: Likewise.
58237         * lib/printf-frexpl.c: Likewise.
58238         * lib/printf-frexpl.h: Likewise.
58239         * lib/printf.c: Likewise.
58240         * lib/progname.c: Likewise.
58241         * lib/progname.h: Likewise.
58242         * lib/progreloc.c: Likewise.
58243         * lib/putenv.c: Likewise.
58244         * lib/quote.c: Likewise.
58245         * lib/quote.h: Likewise.
58246         * lib/quotearg.c: Likewise.
58247         * lib/quotearg.h: Likewise.
58248         * lib/raise.c: Likewise.
58249         * lib/readline.c: Likewise.
58250         * lib/readline.h: Likewise.
58251         * lib/readlink.c: Likewise.
58252         * lib/readtokens.c: Likewise.
58253         * lib/readtokens.h: Likewise.
58254         * lib/readtokens0.c: Likewise.
58255         * lib/readtokens0.h: Likewise.
58256         * lib/readutmp.c: Likewise.
58257         * lib/readutmp.h: Likewise.
58258         * lib/realloc.c: Likewise.
58259         * lib/relocwrapper.c: Likewise.
58260         * lib/rename-dest-slash.c: Likewise.
58261         * lib/rename.c: Likewise.
58262         * lib/rmdir.c: Likewise.
58263         * lib/rpmatch.c: Likewise.
58264         * lib/safe-read.c: Likewise.
58265         * lib/safe-read.h: Likewise.
58266         * lib/safe-write.c: Likewise.
58267         * lib/safe-write.h: Likewise.
58268         * lib/same-inode.h: Likewise.
58269         * lib/same.c: Likewise.
58270         * lib/same.h: Likewise.
58271         * lib/save-cwd.c: Likewise.
58272         * lib/save-cwd.h: Likewise.
58273         * lib/savedir.c: Likewise.
58274         * lib/savedir.h: Likewise.
58275         * lib/savewd.c: Likewise.
58276         * lib/savewd.h: Likewise.
58277         * lib/search.in.h: Likewise.
58278         * lib/setenv.c: Likewise.
58279         * lib/setenv.h: Likewise.
58280         * lib/settime.c: Likewise.
58281         * lib/sh-quote.c: Likewise.
58282         * lib/sh-quote.h: Likewise.
58283         * lib/sig2str.c: Likewise.
58284         * lib/sig2str.h: Likewise.
58285         * lib/signal.in.h: Likewise.
58286         * lib/signbitd.c: Likewise.
58287         * lib/signbitf.c: Likewise.
58288         * lib/signbitl.c: Likewise.
58289         * lib/sigprocmask.c: Likewise.
58290         * lib/sincosl.c: Likewise.
58291         * lib/sleep.c: Likewise.
58292         * lib/sprintf.c: Likewise.
58293         * lib/sqrtl.c: Likewise.
58294         * lib/stat-time.h: Likewise.
58295         * lib/stdio--.h: Likewise.
58296         * lib/stdio-safer.h: Likewise.
58297         * lib/stdlib--.h: Likewise.
58298         * lib/stdlib-safer.h: Likewise.
58299         * lib/stdlib.in.h: Likewise.
58300         * lib/stpcpy.c: Likewise.
58301         * lib/stpncpy.c: Likewise.
58302         * lib/strchrnul.c: Likewise.
58303         * lib/strcspn.c: Likewise.
58304         * lib/strerror.c: Likewise.
58305         * lib/strftime.c: Likewise.
58306         * lib/strftime.h: Likewise.
58307         * lib/striconveh.c: Likewise.
58308         * lib/striconveh.h: Likewise.
58309         * lib/striconveha.c: Likewise.
58310         * lib/striconveha.h: Likewise.
58311         * lib/stripslash.c: Likewise.
58312         * lib/strnlen1.c: Likewise.
58313         * lib/strnlen1.h: Likewise.
58314         * lib/strtod.c: Likewise.
58315         * lib/strtoimax.c: Likewise.
58316         * lib/strtok_r.c: Likewise.
58317         * lib/strtol.c: Likewise.
58318         * lib/strtoll.c: Likewise.
58319         * lib/strtoul.c: Likewise.
58320         * lib/strtoull.c: Likewise.
58321         * lib/sysexits.in.h: Likewise.
58322         * lib/tempname.c: Likewise.
58323         * lib/tempname.h: Likewise.
58324         * lib/timespec.h: Likewise.
58325         * lib/tls.c: Likewise.
58326         * lib/tls.h: Likewise.
58327         * lib/tmpdir.c: Likewise.
58328         * lib/tmpdir.h: Likewise.
58329         * lib/tmpfile-safer.c: Likewise.
58330         * lib/tmpfile.c: Likewise.
58331         * lib/trigl.c: Likewise.
58332         * lib/trigl.h: Likewise.
58333         * lib/trim.c: Likewise.
58334         * lib/trim.h: Likewise.
58335         * lib/trunc.c: Likewise.
58336         * lib/truncf.c: Likewise.
58337         * lib/truncl.c: Likewise.
58338         * lib/tsearch.c: Likewise.
58339         * lib/unicodeio.c: Likewise.
58340         * lib/unicodeio.h: Likewise.
58341         * lib/unistd--.h: Likewise.
58342         * lib/unistd-safer.h: Likewise.
58343         * lib/unistdio/ulc-fprintf.c: Likewise.
58344         * lib/unistdio/ulc-vfprintf.c: Likewise.
58345         * lib/unlinkdir.c: Likewise.
58346         * lib/unlinkdir.h: Likewise.
58347         * lib/unlocked-io.h: Likewise.
58348         * lib/unsetenv.c: Likewise.
58349         * lib/userspec.c: Likewise.
58350         * lib/utime.c: Likewise.
58351         * lib/utimecmp.c: Likewise.
58352         * lib/utimecmp.h: Likewise.
58353         * lib/utimens.c: Likewise.
58354         * lib/verify.h: Likewise.
58355         * lib/verror.c: Likewise.
58356         * lib/verror.h: Likewise.
58357         * lib/version-etc-fsf.c: Likewise.
58358         * lib/version-etc.c: Likewise.
58359         * lib/version-etc.h: Likewise.
58360         * lib/vfprintf.c: Likewise.
58361         * lib/vprintf.c: Likewise.
58362         * lib/vsprintf.c: Likewise.
58363         * lib/w32spawn.h: Likewise.
58364         * lib/wait-process.c: Likewise.
58365         * lib/wait-process.h: Likewise.
58366         * lib/wcwidth.c: Likewise.
58367         * lib/write-any-file.c: Likewise.
58368         * lib/xalloc-die.c: Likewise.
58369         * lib/xalloc.h: Likewise.
58370         * lib/xasprintf.c: Likewise.
58371         * lib/xgetcwd.c: Likewise.
58372         * lib/xgetcwd.h: Likewise.
58373         * lib/xgetdomainname.c: Likewise.
58374         * lib/xgetdomainname.h: Likewise.
58375         * lib/xgethostname.c: Likewise.
58376         * lib/xmalloc.c: Likewise.
58377         * lib/xmalloca.c: Likewise.
58378         * lib/xmalloca.h: Likewise.
58379         * lib/xmemcoll.c: Likewise.
58380         * lib/xnanosleep.c: Likewise.
58381         * lib/xreadlink.c: Likewise.
58382         * lib/xreadlink.h: Likewise.
58383         * lib/xsetenv.c: Likewise.
58384         * lib/xsetenv.h: Likewise.
58385         * lib/xstriconv.c: Likewise.
58386         * lib/xstriconv.h: Likewise.
58387         * lib/xstrndup.c: Likewise.
58388         * lib/xstrndup.h: Likewise.
58389         * lib/xstrtod.c: Likewise.
58390         * lib/xstrtod.h: Likewise.
58391         * lib/xstrtol-error.c: Likewise.
58392         * lib/xstrtol.c: Likewise.
58393         * lib/xstrtol.h: Likewise.
58394         * lib/xtime.h: Likewise.
58395         * lib/xvasprintf.c: Likewise.
58396         * lib/xvasprintf.h: Likewise.
58397         * lib/yesno.c: Likewise.
58398         * lib/yesno.h: Likewise.
58399         * posix-modules: Likewise.
58400         * tests/test-alloca-opt.c: Likewise.
58401         * tests/test-arcfour.c: Likewise.
58402         * tests/test-arctwo.c: Likewise.
58403         * tests/test-argmatch.c: Likewise.
58404         * tests/test-argp-2.sh: Likewise.
58405         * tests/test-argp.c: Likewise.
58406         * tests/test-arpa_inet.c: Likewise.
58407         * tests/test-array_list.c: Likewise.
58408         * tests/test-array_oset.c: Likewise.
58409         * tests/test-atexit.c: Likewise.
58410         * tests/test-avltree_list.c: Likewise.
58411         * tests/test-avltree_oset.c: Likewise.
58412         * tests/test-avltreehash_list.c: Likewise.
58413         * tests/test-base64.c: Likewise.
58414         * tests/test-binary-io.c: Likewise.
58415         * tests/test-byteswap.c: Likewise.
58416         * tests/test-c-ctype.c: Likewise.
58417         * tests/test-c-strcasecmp.c: Likewise.
58418         * tests/test-c-strcasestr.c: Likewise.
58419         * tests/test-c-strncasecmp.c: Likewise.
58420         * tests/test-c-strstr.c: Likewise.
58421         * tests/test-canonicalize-lgpl.c: Likewise.
58422         * tests/test-canonicalize.c: Likewise.
58423         * tests/test-carray_list.c: Likewise.
58424         * tests/test-ceilf.c: Likewise.
58425         * tests/test-ceill.c: Likewise.
58426         * tests/test-count-one-bits.c: Likewise.
58427         * tests/test-crc.c: Likewise.
58428         * tests/test-dirname.c: Likewise.
58429         * tests/test-fbufmode.c: Likewise.
58430         * tests/test-fcntl.c: Likewise.
58431         * tests/test-fflush.c: Likewise.
58432         * tests/test-floorf.c: Likewise.
58433         * tests/test-floorl.c: Likewise.
58434         * tests/test-fopen.c: Likewise.
58435         * tests/test-fprintf-posix.c: Likewise.
58436         * tests/test-fprintf-posix.h: Likewise.
58437         * tests/test-fpurge.c: Likewise.
58438         * tests/test-freadable.c: Likewise.
58439         * tests/test-freadahead.c: Likewise.
58440         * tests/test-freading.c: Likewise.
58441         * tests/test-freopen.c: Likewise.
58442         * tests/test-frexp.c: Likewise.
58443         * tests/test-frexpl.c: Likewise.
58444         * tests/test-fseek.c: Likewise.
58445         * tests/test-fseeko.c: Likewise.
58446         * tests/test-fseterr.c: Likewise.
58447         * tests/test-fstrcmp.c: Likewise.
58448         * tests/test-ftell.c: Likewise.
58449         * tests/test-ftello.c: Likewise.
58450         * tests/test-fwritable.c: Likewise.
58451         * tests/test-fwriting.c: Likewise.
58452         * tests/test-getaddrinfo.c: Likewise.
58453         * tests/test-getpass.c: Likewise.
58454         * tests/test-gettimeofday.c: Likewise.
58455         * tests/test-hmac-md5.c: Likewise.
58456         * tests/test-hmac-sha1.c: Likewise.
58457         * tests/test-iconv.c: Likewise.
58458         * tests/test-iconvme.c: Likewise.
58459         * tests/test-inttypes.c: Likewise.
58460         * tests/test-isnan.c: Likewise.
58461         * tests/test-isnanf.c: Likewise.
58462         * tests/test-isnanl-nolibm.c: Likewise.
58463         * tests/test-isnanl.c: Likewise.
58464         * tests/test-isnanl.h: Likewise.
58465         * tests/test-ldexpl.c: Likewise.
58466         * tests/test-linked_list.c: Likewise.
58467         * tests/test-linkedhash_list.c: Likewise.
58468         * tests/test-locale.c: Likewise.
58469         * tests/test-localename.c: Likewise.
58470         * tests/test-lock.c: Likewise.
58471         * tests/test-lseek.c: Likewise.
58472         * tests/test-malloca.c: Likewise.
58473         * tests/test-math.c: Likewise.
58474         * tests/test-mbscasecmp.c: Likewise.
58475         * tests/test-mbscasestr1.c: Likewise.
58476         * tests/test-mbscasestr2.c: Likewise.
58477         * tests/test-mbscasestr3.c: Likewise.
58478         * tests/test-mbscasestr4.c: Likewise.
58479         * tests/test-mbschr.c: Likewise.
58480         * tests/test-mbscspn.c: Likewise.
58481         * tests/test-mbsncasecmp.c: Likewise.
58482         * tests/test-mbspbrk.c: Likewise.
58483         * tests/test-mbspcasecmp.c: Likewise.
58484         * tests/test-mbsrchr.c: Likewise.
58485         * tests/test-mbsspn.c: Likewise.
58486         * tests/test-mbsstr1.c: Likewise.
58487         * tests/test-mbsstr2.c: Likewise.
58488         * tests/test-mbsstr3.c: Likewise.
58489         * tests/test-md5.c: Likewise.
58490         * tests/test-memmem.c: Likewise.
58491         * tests/test-netinet_in.c: Likewise.
58492         * tests/test-open.c: Likewise.
58493         * tests/test-printf-frexp.c: Likewise.
58494         * tests/test-printf-frexpl.c: Likewise.
58495         * tests/test-printf-posix.c: Likewise.
58496         * tests/test-printf-posix.h: Likewise.
58497         * tests/test-rbtree_list.c: Likewise.
58498         * tests/test-rbtree_oset.c: Likewise.
58499         * tests/test-rbtreehash_list.c: Likewise.
58500         * tests/test-read-file.c: Likewise.
58501         * tests/test-rijndael.c: Likewise.
58502         * tests/test-search.c: Likewise.
58503         * tests/test-signbit.c: Likewise.
58504         * tests/test-sleep.c: Likewise.
58505         * tests/test-snprintf-posix.c: Likewise.
58506         * tests/test-snprintf-posix.h: Likewise.
58507         * tests/test-snprintf.c: Likewise.
58508         * tests/test-sprintf-posix.c: Likewise.
58509         * tests/test-sprintf-posix.h: Likewise.
58510         * tests/test-stat-time.c: Likewise.
58511         * tests/test-stdbool.c: Likewise.
58512         * tests/test-stdint.c: Likewise.
58513         * tests/test-stdio.c: Likewise.
58514         * tests/test-stdlib.c: Likewise.
58515         * tests/test-stpncpy.c: Likewise.
58516         * tests/test-strcasestr.c: Likewise.
58517         * tests/test-striconv.c: Likewise.
58518         * tests/test-striconveh.c: Likewise.
58519         * tests/test-striconveha.c: Likewise.
58520         * tests/test-string.c: Likewise.
58521         * tests/test-sys_select.c: Likewise.
58522         * tests/test-sys_socket.c: Likewise.
58523         * tests/test-sys_stat.c: Likewise.
58524         * tests/test-sys_time.c: Likewise.
58525         * tests/test-sysexits.c: Likewise.
58526         * tests/test-time.c: Likewise.
58527         * tests/test-tls.c: Likewise.
58528         * tests/test-trunc.c: Likewise.
58529         * tests/test-truncf.c: Likewise.
58530         * tests/test-truncl.c: Likewise.
58531         * tests/test-unistd.c: Likewise.
58532         * tests/test-vasnprintf-posix.c: Likewise.
58533         * tests/test-vasnprintf-posix2.c: Likewise.
58534         * tests/test-vasnprintf.c: Likewise.
58535         * tests/test-vasprintf-posix.c: Likewise.
58536         * tests/test-vasprintf.c: Likewise.
58537         * tests/test-verify.c: Likewise.
58538         * tests/test-vfprintf-posix.c: Likewise.
58539         * tests/test-vprintf-posix.c: Likewise.
58540         * tests/test-vsnprintf-posix.c: Likewise.
58541         * tests/test-vsnprintf.c: Likewise.
58542         * tests/test-vsprintf-posix.c: Likewise.
58543         * tests/test-wchar.c: Likewise.
58544         * tests/test-wctype.c: Likewise.
58545         * tests/test-wcwidth.c: Likewise.
58546         * tests/test-xstrtol.c: Likewise.
58547         * tests/test-xvasprintf.c: Likewise.
58548         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
58549         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
58550         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
58551         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
58552         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
58553         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
58554         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
58555         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
58556         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
58557         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
58558         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
58559         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
58560         * tests/uniname/test-uninames.c: Likewise.
58561         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
58562         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
58563         * tests/unistdio/test-u16-printf1.h: Likewise.
58564         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
58565         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
58566         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
58567         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
58568         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
58569         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
58570         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
58571         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
58572         * tests/unistdio/test-u32-printf1.h: Likewise.
58573         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
58574         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
58575         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
58576         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
58577         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
58578         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
58579         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
58580         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
58581         * tests/unistdio/test-u8-printf1.h: Likewise.
58582         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
58583         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
58584         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
58585         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
58586         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
58587         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
58588         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
58589         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
58590         * tests/unistdio/test-ulc-printf1.h: Likewise.
58591         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
58592         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
58593         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
58594         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
58595         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
58596         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
58597         * tests/uniwidth/test-u16-strwidth.c: Likewise.
58598         * tests/uniwidth/test-u16-width.c: Likewise.
58599         * tests/uniwidth/test-u32-strwidth.c: Likewise.
58600         * tests/uniwidth/test-u32-width.c: Likewise.
58601         * tests/uniwidth/test-u8-strwidth.c: Likewise.
58602         * tests/uniwidth/test-u8-width.c: Likewise.
58603         * tests/uniwidth/test-uc_width.c: Likewise.
58604         * config/srclist-update: Likewise.
58605         (fixlicense): Update to GPLv3+.
58606
58607         Change copyright notice from LGPLv2.1+ to LGPLv3+.
58608         * tests/test-tsearch.c: Change copyright notice.
58609
58610         Change copyright notice from LGPLv2.0+ to LGPLv3+.
58611         * lib/c-strcaseeq.h: Change copyright notice.
58612         * lib/streq.h: Likewise.
58613         * lib/uniconv.h: Likewise.
58614         * lib/uniconv/u-conv-from-enc.h: Likewise.
58615         * lib/uniconv/u-conv-to-enc.h: Likewise.
58616         * lib/uniconv/u-strconv-from-enc.h: Likewise.
58617         * lib/uniconv/u-strconv-to-enc.h: Likewise.
58618         * lib/uniconv/u16-conv-from-enc.c: Likewise.
58619         * lib/uniconv/u16-conv-to-enc.c: Likewise.
58620         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
58621         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
58622         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
58623         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
58624         * lib/uniconv/u32-conv-from-enc.c: Likewise.
58625         * lib/uniconv/u32-conv-to-enc.c: Likewise.
58626         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
58627         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
58628         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
58629         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
58630         * lib/uniconv/u8-conv-from-enc.c: Likewise.
58631         * lib/uniconv/u8-conv-to-enc.c: Likewise.
58632         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
58633         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
58634         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
58635         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
58636         * lib/uniname.h: Likewise.
58637         * lib/uniname/uniname.c: Likewise.
58638         * lib/unistdio.h: Likewise.
58639         * lib/unistdio/u-asnprintf.h: Likewise.
58640         * lib/unistdio/u-asprintf.h: Likewise.
58641         * lib/unistdio/u-printf-args.c: Likewise.
58642         * lib/unistdio/u-printf-args.h: Likewise.
58643         * lib/unistdio/u-printf-parse.h: Likewise.
58644         * lib/unistdio/u-snprintf.h: Likewise.
58645         * lib/unistdio/u-sprintf.h: Likewise.
58646         * lib/unistdio/u-vasprintf.h: Likewise.
58647         * lib/unistdio/u-vsnprintf.h: Likewise.
58648         * lib/unistdio/u-vsprintf.h: Likewise.
58649         * lib/unistdio/u16-asnprintf.c: Likewise.
58650         * lib/unistdio/u16-asprintf.c: Likewise.
58651         * lib/unistdio/u16-printf-parse.c: Likewise.
58652         * lib/unistdio/u16-snprintf.c: Likewise.
58653         * lib/unistdio/u16-sprintf.c: Likewise.
58654         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
58655         * lib/unistdio/u16-u16-asprintf.c: Likewise.
58656         * lib/unistdio/u16-u16-snprintf.c: Likewise.
58657         * lib/unistdio/u16-u16-sprintf.c: Likewise.
58658         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
58659         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
58660         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
58661         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
58662         * lib/unistdio/u16-vasnprintf.c: Likewise.
58663         * lib/unistdio/u16-vasprintf.c: Likewise.
58664         * lib/unistdio/u16-vsnprintf.c: Likewise.
58665         * lib/unistdio/u16-vsprintf.c: Likewise.
58666         * lib/unistdio/u32-asnprintf.c: Likewise.
58667         * lib/unistdio/u32-asprintf.c: Likewise.
58668         * lib/unistdio/u32-printf-parse.c: Likewise.
58669         * lib/unistdio/u32-snprintf.c: Likewise.
58670         * lib/unistdio/u32-sprintf.c: Likewise.
58671         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
58672         * lib/unistdio/u32-u32-asprintf.c: Likewise.
58673         * lib/unistdio/u32-u32-snprintf.c: Likewise.
58674         * lib/unistdio/u32-u32-sprintf.c: Likewise.
58675         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
58676         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
58677         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
58678         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
58679         * lib/unistdio/u32-vasnprintf.c: Likewise.
58680         * lib/unistdio/u32-vasprintf.c: Likewise.
58681         * lib/unistdio/u32-vsnprintf.c: Likewise.
58682         * lib/unistdio/u32-vsprintf.c: Likewise.
58683         * lib/unistdio/u8-asnprintf.c: Likewise.
58684         * lib/unistdio/u8-asprintf.c: Likewise.
58685         * lib/unistdio/u8-printf-parse.c: Likewise.
58686         * lib/unistdio/u8-snprintf.c: Likewise.
58687         * lib/unistdio/u8-sprintf.c: Likewise.
58688         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
58689         * lib/unistdio/u8-u8-asprintf.c: Likewise.
58690         * lib/unistdio/u8-u8-snprintf.c: Likewise.
58691         * lib/unistdio/u8-u8-sprintf.c: Likewise.
58692         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
58693         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
58694         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
58695         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
58696         * lib/unistdio/u8-vasnprintf.c: Likewise.
58697         * lib/unistdio/u8-vasprintf.c: Likewise.
58698         * lib/unistdio/u8-vsnprintf.c: Likewise.
58699         * lib/unistdio/u8-vsprintf.c: Likewise.
58700         * lib/unistdio/ulc-asnprintf.c: Likewise.
58701         * lib/unistdio/ulc-asprintf.c: Likewise.
58702         * lib/unistdio/ulc-printf-parse.c: Likewise.
58703         * lib/unistdio/ulc-snprintf.c: Likewise.
58704         * lib/unistdio/ulc-sprintf.c: Likewise.
58705         * lib/unistdio/ulc-vasnprintf.c: Likewise.
58706         * lib/unistdio/ulc-vasprintf.c: Likewise.
58707         * lib/unistdio/ulc-vsnprintf.c: Likewise.
58708         * lib/unistdio/ulc-vsprintf.c: Likewise.
58709         * lib/unistr.h: Likewise.
58710         * lib/unistr/u-cpy-alloc.h: Likewise.
58711         * lib/unistr/u-cpy.h: Likewise.
58712         * lib/unistr/u-endswith.h: Likewise.
58713         * lib/unistr/u-move.h: Likewise.
58714         * lib/unistr/u-set.h: Likewise.
58715         * lib/unistr/u-startswith.h: Likewise.
58716         * lib/unistr/u-stpcpy.h: Likewise.
58717         * lib/unistr/u-stpncpy.h: Likewise.
58718         * lib/unistr/u-strcat.h: Likewise.
58719         * lib/unistr/u-strcpy.h: Likewise.
58720         * lib/unistr/u-strcspn.h: Likewise.
58721         * lib/unistr/u-strdup.h: Likewise.
58722         * lib/unistr/u-strlen.h: Likewise.
58723         * lib/unistr/u-strncat.h: Likewise.
58724         * lib/unistr/u-strncpy.h: Likewise.
58725         * lib/unistr/u-strnlen.h: Likewise.
58726         * lib/unistr/u-strpbrk.h: Likewise.
58727         * lib/unistr/u-strspn.h: Likewise.
58728         * lib/unistr/u-strstr.h: Likewise.
58729         * lib/unistr/u-strtok.h: Likewise.
58730         * lib/unistr/u16-check.c: Likewise.
58731         * lib/unistr/u16-chr.c: Likewise.
58732         * lib/unistr/u16-cmp.c: Likewise.
58733         * lib/unistr/u16-cpy-alloc.c: Likewise.
58734         * lib/unistr/u16-cpy.c: Likewise.
58735         * lib/unistr/u16-endswith.c: Likewise.
58736         * lib/unistr/u16-mblen.c: Likewise.
58737         * lib/unistr/u16-mbsnlen.c: Likewise.
58738         * lib/unistr/u16-mbtouc-aux.c: Likewise.
58739         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
58740         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
58741         * lib/unistr/u16-mbtouc.c: Likewise.
58742         * lib/unistr/u16-mbtoucr.c: Likewise.
58743         * lib/unistr/u16-move.c: Likewise.
58744         * lib/unistr/u16-next.c: Likewise.
58745         * lib/unistr/u16-prev.c: Likewise.
58746         * lib/unistr/u16-set.c: Likewise.
58747         * lib/unistr/u16-startswith.c: Likewise.
58748         * lib/unistr/u16-stpcpy.c: Likewise.
58749         * lib/unistr/u16-stpncpy.c: Likewise.
58750         * lib/unistr/u16-strcat.c: Likewise.
58751         * lib/unistr/u16-strchr.c: Likewise.
58752         * lib/unistr/u16-strcmp.c: Likewise.
58753         * lib/unistr/u16-strcpy.c: Likewise.
58754         * lib/unistr/u16-strcspn.c: Likewise.
58755         * lib/unistr/u16-strdup.c: Likewise.
58756         * lib/unistr/u16-strlen.c: Likewise.
58757         * lib/unistr/u16-strmblen.c: Likewise.
58758         * lib/unistr/u16-strmbtouc.c: Likewise.
58759         * lib/unistr/u16-strncat.c: Likewise.
58760         * lib/unistr/u16-strncmp.c: Likewise.
58761         * lib/unistr/u16-strncpy.c: Likewise.
58762         * lib/unistr/u16-strnlen.c: Likewise.
58763         * lib/unistr/u16-strpbrk.c: Likewise.
58764         * lib/unistr/u16-strrchr.c: Likewise.
58765         * lib/unistr/u16-strspn.c: Likewise.
58766         * lib/unistr/u16-strstr.c: Likewise.
58767         * lib/unistr/u16-strtok.c: Likewise.
58768         * lib/unistr/u16-to-u32.c: Likewise.
58769         * lib/unistr/u16-to-u8.c: Likewise.
58770         * lib/unistr/u16-uctomb-aux.c: Likewise.
58771         * lib/unistr/u16-uctomb.c: Likewise.
58772         * lib/unistr/u32-check.c: Likewise.
58773         * lib/unistr/u32-chr.c: Likewise.
58774         * lib/unistr/u32-cmp.c: Likewise.
58775         * lib/unistr/u32-cpy-alloc.c: Likewise.
58776         * lib/unistr/u32-cpy.c: Likewise.
58777         * lib/unistr/u32-endswith.c: Likewise.
58778         * lib/unistr/u32-mblen.c: Likewise.
58779         * lib/unistr/u32-mbsnlen.c: Likewise.
58780         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
58781         * lib/unistr/u32-mbtouc.c: Likewise.
58782         * lib/unistr/u32-mbtoucr.c: Likewise.
58783         * lib/unistr/u32-move.c: Likewise.
58784         * lib/unistr/u32-next.c: Likewise.
58785         * lib/unistr/u32-prev.c: Likewise.
58786         * lib/unistr/u32-set.c: Likewise.
58787         * lib/unistr/u32-startswith.c: Likewise.
58788         * lib/unistr/u32-stpcpy.c: Likewise.
58789         * lib/unistr/u32-stpncpy.c: Likewise.
58790         * lib/unistr/u32-strcat.c: Likewise.
58791         * lib/unistr/u32-strchr.c: Likewise.
58792         * lib/unistr/u32-strcmp.c: Likewise.
58793         * lib/unistr/u32-strcpy.c: Likewise.
58794         * lib/unistr/u32-strcspn.c: Likewise.
58795         * lib/unistr/u32-strdup.c: Likewise.
58796         * lib/unistr/u32-strlen.c: Likewise.
58797         * lib/unistr/u32-strmblen.c: Likewise.
58798         * lib/unistr/u32-strmbtouc.c: Likewise.
58799         * lib/unistr/u32-strncat.c: Likewise.
58800         * lib/unistr/u32-strncmp.c: Likewise.
58801         * lib/unistr/u32-strncpy.c: Likewise.
58802         * lib/unistr/u32-strnlen.c: Likewise.
58803         * lib/unistr/u32-strpbrk.c: Likewise.
58804         * lib/unistr/u32-strrchr.c: Likewise.
58805         * lib/unistr/u32-strspn.c: Likewise.
58806         * lib/unistr/u32-strstr.c: Likewise.
58807         * lib/unistr/u32-strtok.c: Likewise.
58808         * lib/unistr/u32-to-u16.c: Likewise.
58809         * lib/unistr/u32-to-u8.c: Likewise.
58810         * lib/unistr/u32-uctomb.c: Likewise.
58811         * lib/unistr/u8-check.c: Likewise.
58812         * lib/unistr/u8-chr.c: Likewise.
58813         * lib/unistr/u8-cmp.c: Likewise.
58814         * lib/unistr/u8-cpy-alloc.c: Likewise.
58815         * lib/unistr/u8-cpy.c: Likewise.
58816         * lib/unistr/u8-endswith.c: Likewise.
58817         * lib/unistr/u8-mblen.c: Likewise.
58818         * lib/unistr/u8-mbsnlen.c: Likewise.
58819         * lib/unistr/u8-mbtouc-aux.c: Likewise.
58820         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
58821         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
58822         * lib/unistr/u8-mbtouc.c: Likewise.
58823         * lib/unistr/u8-mbtoucr.c: Likewise.
58824         * lib/unistr/u8-move.c: Likewise.
58825         * lib/unistr/u8-next.c: Likewise.
58826         * lib/unistr/u8-prev.c: Likewise.
58827         * lib/unistr/u8-set.c: Likewise.
58828         * lib/unistr/u8-startswith.c: Likewise.
58829         * lib/unistr/u8-stpcpy.c: Likewise.
58830         * lib/unistr/u8-stpncpy.c: Likewise.
58831         * lib/unistr/u8-strcat.c: Likewise.
58832         * lib/unistr/u8-strchr.c: Likewise.
58833         * lib/unistr/u8-strcmp.c: Likewise.
58834         * lib/unistr/u8-strcpy.c: Likewise.
58835         * lib/unistr/u8-strcspn.c: Likewise.
58836         * lib/unistr/u8-strdup.c: Likewise.
58837         * lib/unistr/u8-strlen.c: Likewise.
58838         * lib/unistr/u8-strmblen.c: Likewise.
58839         * lib/unistr/u8-strmbtouc.c: Likewise.
58840         * lib/unistr/u8-strncat.c: Likewise.
58841         * lib/unistr/u8-strncmp.c: Likewise.
58842         * lib/unistr/u8-strncpy.c: Likewise.
58843         * lib/unistr/u8-strnlen.c: Likewise.
58844         * lib/unistr/u8-strpbrk.c: Likewise.
58845         * lib/unistr/u8-strrchr.c: Likewise.
58846         * lib/unistr/u8-strspn.c: Likewise.
58847         * lib/unistr/u8-strstr.c: Likewise.
58848         * lib/unistr/u8-strtok.c: Likewise.
58849         * lib/unistr/u8-to-u16.c: Likewise.
58850         * lib/unistr/u8-to-u32.c: Likewise.
58851         * lib/unistr/u8-uctomb-aux.c: Likewise.
58852         * lib/unistr/u8-uctomb.c: Likewise.
58853         * lib/unitypes.h: Likewise.
58854         * lib/uniwidth.h: Likewise.
58855         * lib/uniwidth/cjk.h: Likewise.
58856         * lib/uniwidth/u16-strwidth.c: Likewise.
58857         * lib/uniwidth/u16-width.c: Likewise.
58858         * lib/uniwidth/u32-strwidth.c: Likewise.
58859         * lib/uniwidth/u32-width.c: Likewise.
58860         * lib/uniwidth/u8-strwidth.c: Likewise.
58861         * lib/uniwidth/u8-width.c: Likewise.
58862         * lib/uniwidth/width.c: Likewise.
58863
58864 2007-10-07  Bruno Haible  <bruno@clisp.org>
58865
58866         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
58867         The file is still under LGPL (see modules/inttypes).
58868
58869 2007-10-06  Bruno Haible  <bruno@clisp.org>
58870
58871         * modules/trunc (Dependencies): Add 'extensions'.
58872         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
58873         Reported by Ben Pfaff <blp@gnu.org>.
58874
58875 2007-10-06  Bruno Haible  <bruno@clisp.org>
58876
58877         * modules/freopen-tests: New file.
58878         * tests/test-freopen.c: New file.
58879
58880         * modules/fopen-tests: New file.
58881         * tests/test-fopen.c: New file.
58882
58883         * modules/fopen: New file.
58884         * lib/fopen.c: New file.
58885         * m4/fopen.m4: New file.
58886         * modules/freopen: New file.
58887         * lib/freopen.c: New file.
58888         * m4/freopen.m4: New file.
58889         * lib/stdio.in.h (fopen, freopen): New declarations.
58890         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
58891         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
58892         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
58893         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
58894         * doc/functions/fopen.texi: Mention the 'fopen' module.
58895         * doc/functions/freopen.texi: Mention the 'freopen' module.
58896
58897 2007-10-06  Bruno Haible  <bruno@clisp.org>
58898
58899         * modules/open-tests: New file.
58900         * tests/test-open.c: New file.
58901
58902         * modules/open: New file.
58903         * lib/open.c: New file.
58904         * m4/open.m4: New file.
58905         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
58906         lib/open.c does.
58907         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
58908         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
58909         macros.
58910         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
58911         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
58912         REPLACE_OPEN.
58913         * doc/functions/open.texi: Mention the 'open' module.
58914
58915 2007-10-04  Bruno Haible  <bruno@clisp.org>
58916
58917         * modules/ceill-tests: New file.
58918         * tests/test-ceill.c: New file.
58919
58920         * modules/ceill: New file.
58921         * lib/ceill.c: Replace entire file.
58922         * m4/ceill.m4: New file.
58923         * lib/math.in.h (ceill): Replace declaration.
58924         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
58925         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
58926         * doc/functions/ceill.texi: Mention the 'ceill' module.
58927         * modules/mathl (Files): Remove lib/ceill.c.
58928         (Depends-on): Add ceill.
58929
58930 2007-10-04  Bruno Haible  <bruno@clisp.org>
58931
58932         * modules/ceilf-tests: New file.
58933         * tests/test-ceilf.c: New file.
58934
58935         * modules/ceilf: New file.
58936         * lib/ceil.c: New file.
58937         * lib/ceilf.c: New file.
58938         * m4/ceilf.m4: New file.
58939         * lib/math.in.h (ceilf): New declaration.
58940         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
58941         HAVE_DECL_CEILF.
58942         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
58943         HAVE_DECL_CEILF.
58944         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
58945
58946 2007-10-04  Bruno Haible  <bruno@clisp.org>
58947
58948         * modules/floorl-tests: New file.
58949         * tests/test-floorl.c: New file.
58950
58951         * modules/floorl: New file.
58952         * lib/floorl.c: Replace entire file.
58953         * m4/floorl.m4: New file.
58954         * lib/math.in.h (floorl): Replace declaration.
58955         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
58956         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
58957         * doc/functions/floorl.texi: Mention the 'floorl' module.
58958         * modules/mathl (Files): Remove lib/floorl.c.
58959         (Depends-on): Add floorl.
58960
58961 2007-10-04  Bruno Haible  <bruno@clisp.org>
58962
58963         * modules/floorf-tests: New file.
58964         * tests/test-floorf.c: New file.
58965
58966         * modules/floorf: New file.
58967         * lib/floor.c: New file.
58968         * lib/floorf.c: New file.
58969         * m4/floorf.m4: New file.
58970         * lib/math.in.h (floorf): New declaration.
58971         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
58972         HAVE_DECL_FLOORF.
58973         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
58974         HAVE_DECL_FLOORF.
58975         * doc/functions/floorf.texi: Mention the 'floorf' module.
58976
58977 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
58978             Bruno Haible  <bruno@clisp.org>
58979
58980         Advertise for the Git server instead of the CVS server.
58981         * doc/gnulib-intro.texi (Steady Development): Mention the Git
58982         repository instead of the CVS one.
58983         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
58984         about all VCS systems generically.
58985         * doc/gnulib.texi (Introduction): Capitalize `Git'.
58986
58987 2007-10-04  Bruno Haible  <bruno@clisp.org>
58988
58989         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
58990         means.
58991         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
58992
58993 2007-10-04  Bruno Haible  <bruno@clisp.org>
58994
58995         * modules/truncl-tests: New file.
58996         * tests/test-truncl.c: New file.
58997
58998         * modules/truncl: New file.
58999         * lib/truncl.c: New file.
59000         * m4/truncl.m4: New file.
59001         * lib/math.in.h (truncl): New declaration.
59002         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
59003         HAVE_DECL_TRUNCL.
59004         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
59005         HAVE_DECL_TRUNCL.
59006         * doc/functions/truncl.texi: Mention the 'truncl' module.
59007
59008 2007-10-04  Bruno Haible  <bruno@clisp.org>
59009
59010         * modules/truncf-tests: New file.
59011         * tests/test-truncf.c: New file.
59012
59013         * modules/truncf: New file.
59014         * lib/trunc.c: Make paramerizable through USE_* macros.
59015         * lib/truncf.c: New file.
59016         * m4/truncf.m4: New file.
59017         * lib/math.in.h (truncf): New declaration.
59018         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
59019         HAVE_DECL_TRUNCF.
59020         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
59021         HAVE_DECL_TRUNCF.
59022         * doc/functions/truncf.texi: Mention the 'truncf' module.
59023
59024 2007-10-03  Bruno Haible  <bruno@clisp.org>
59025
59026         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
59027         augmentation also for tests modules.
59028         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
59029         * modules/atexit-tests (Makefile.am): Likewise.
59030         * modules/binary-io-tests (Makefile.am): Likewise.
59031         * modules/c-strcase-tests (Makefile.am): Likewise.
59032         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
59033         * modules/canonicalize-tests (Makefile.am): Likewise.
59034         * modules/closein-tests (Makefile.am): Likewise.
59035         * modules/fprintf-posix-tests (Makefile.am): Likewise.
59036         * modules/freadahead-tests (Makefile.am): Likewise.
59037         * modules/fseek-tests (Makefile.am): Likewise.
59038         * modules/fseeko-tests (Makefile.am): Likewise.
59039         * modules/ftell-tests (Makefile.am): Likewise.
59040         * modules/ftello-tests (Makefile.am): Likewise.
59041         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
59042         * modules/isnanl-tests (Makefile.am): Likewise.
59043         * modules/lseek-tests (Makefile.am): Likewise.
59044         * modules/mbscasecmp-tests (Makefile.am): Likewise.
59045         * modules/mbscasestr-tests (Makefile.am): Likewise.
59046         * modules/mbschr-tests (Makefile.am): Likewise.
59047         * modules/mbscspn-tests (Makefile.am): Likewise.
59048         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
59049         * modules/mbspbrk-tests (Makefile.am): Likewise.
59050         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
59051         * modules/mbsrchr-tests (Makefile.am): Likewise.
59052         * modules/mbsspn-tests (Makefile.am): Likewise.
59053         * modules/mbsstr-tests (Makefile.am): Likewise.
59054         * modules/printf-posix-tests (Makefile.am): Likewise.
59055         * modules/snprintf-posix-tests (Makefile.am): Likewise.
59056         * modules/sprintf-posix-tests (Makefile.am): Likewise.
59057         * modules/tsearch-tests (Makefile.am): Likewise.
59058         * modules/uniname/uniname-tests (Makefile.am): Likewise.
59059         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
59060         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
59061         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
59062         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
59063         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
59064         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
59065         * modules/vprintf-posix-tests (Makefile.am): Likewise.
59066         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
59067         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
59068         * modules/xstrtoimax-tests (Makefile.am): Likewise.
59069         * modules/xstrtol-tests (Makefile.am): Likewise.
59070         * modules/xstrtoumax-tests (Makefile.am): Likewise.
59071         * modules/yesno-tests (Makefile.am): Likewise.
59072
59073 2007-10-03  Bruno Haible  <bruno@clisp.org>
59074
59075         * modules/trunc-tests: New file.
59076         * tests/test-trunc.c: New file.
59077
59078         * modules/trunc: New file.
59079         * lib/trunc.c: New file.
59080         * m4/trunc.m4: New file.
59081         * lib/math.in.h (trunc): New declaration.
59082         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
59083         HAVE_DECL_TRUNC.
59084         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
59085         HAVE_DECL_TRUNC.
59086         * doc/functions/trunc.texi: Mention the 'trunc' module.
59087
59088 2007-10-03  Bruno Haible  <bruno@clisp.org>
59089
59090         * tests/test-fpending.c: New file, mostly copied
59091         from coreutils/lib/t-fpending.c.
59092         * modules/fpending-tests: New file.
59093
59094 2007-10-03  Bruno Haible  <bruno@clisp.org>
59095
59096         Port the stdio extensions to QNX (untested).
59097         * lib/fseterr.c (fseterr): Add support for QNX.
59098         * lib/fbufmode.c (fbufmode): Likewise.
59099         * lib/freadable.c (freadable): Likewise.
59100         * lib/fwritable.c (fwritable): Likewise.
59101         * lib/freading.c (freading): Likewise.
59102         * lib/fwriting.c (fwriting): Likewise.
59103         * lib/freadahead.c (freadahed): Likewise.
59104         * lib/fpurge.c (fpurge): Likewise.
59105         * lib/fseeko.c (rpl_fseeko): Likewise.
59106
59107 2007-10-03  Bruno Haible  <bruno@clisp.org>
59108             Jim Meyering  <jim@meyering.net>
59109             Eric Blake  <ebb9@byu.net>
59110
59111         * doc/relocatable.texi: Use @command instead of @program.
59112
59113 2007-10-02  Jim Meyering  <jim@meyering.net>
59114
59115         Perform one more "_.h" -> ".in.h" substitution.
59116         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
59117         instead of unistd_.h here, too.
59118
59119 2007-10-01  Bruno Haible  <bruno@clisp.org>
59120
59121         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
59122         Needed for the alloca-opt module.
59123
59124 2007-09-30  Bruno Haible  <bruno@clisp.org>
59125
59126         * lib/alloca.in.h: Renamed from lib/alloca_.h.
59127         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
59128         alloca_.h.
59129         * lib/argz.in.h: Renamed from lib/argz_.h.
59130         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
59131         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
59132         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
59133         byteswap_.h.
59134         * lib/dirent.in.h: Renamed from lib/dirent_.h.
59135         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
59136         dirent_.h.
59137         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
59138         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
59139         fcntl_.h.
59140         * lib/float.in.h: Renamed from lib/float_.h.
59141         * modules/float (Files, Makefile.am): Use float.in.h instead of
59142         float_.h.
59143         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
59144         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
59145         fnmatch_.h.
59146         * lib/getopt.in.h: Renamed from lib/getopt_.h.
59147         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
59148         getopt_.h.
59149         * lib/glob.in.h: Renamed from lib/glob_.h.
59150         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
59151         * lib/iconv.in.h: Renamed from lib/iconv_.h.
59152         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
59153         iconv_.h.
59154         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
59155         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
59156         inttypes_.h.
59157         * lib/locale.in.h: Renamed from lib/locale_.h.
59158         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
59159         locale_.h.
59160         * lib/math.in.h: Renamed from lib/math_.h.
59161         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
59162         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
59163         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
59164         of netinet_in_.h. Add dependency.
59165         * lib/poll.in.h: Renamed from lib/poll_.h.
59166         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
59167         * lib/search.in.h: Renamed from lib/search_.h.
59168         * modules/search (Files, Makefile.am): Use search.in.h instead of
59169         search_.h.
59170         * lib/signal.in.h: Renamed from lib/signal_.h.
59171         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
59172         _signal.h.
59173         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
59174         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
59175         stdbool_.h.
59176         * lib/stdint.in.h: Renamed from lib/stdint_.h.
59177         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
59178         stdint_.h.
59179         * lib/stdio.in.h: Renamed from lib/stdio_.h.
59180         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
59181         stdio_.h.
59182         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
59183         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
59184         stdlib_.h.
59185         * lib/string.in.h: Renamed from lib/string_.h.
59186         * modules/string (Files, Makefile.am): Use string.in.h instead of
59187         string_.h.
59188         * doc/gnulib-tool.texi (Initial import): Update.
59189         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
59190         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
59191         of sys_select_.h. Add dependency.
59192         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
59193         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
59194         of sys_socket_.h.
59195         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
59196         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
59197         sys_stat_.h.
59198         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
59199         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
59200         sys_time_.h.
59201         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
59202         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
59203         sysexits_.h.
59204         * lib/time.in.h: Renamed from lib/time_.h.
59205         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
59206         * lib/unistd.in.h: Renamed from lib/unistd_.h.
59207         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
59208         unistd_.h.
59209         * lib/wchar.in.h: Renamed from lib/wchar_.h.
59210         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
59211         wchar_.h.
59212         * lib/wctype.in.h: Renamed from lib/wctype_.h.
59213         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
59214         wctype_.h.
59215         * build-aux/bootstrap (slurp): Update.
59216         * lib/.cppi-disable: Update.
59217
59218 2007-09-30  Bruno Haible  <bruno@clisp.org>
59219
59220         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
59221         Needed on BeOS.
59222
59223 2007-09-30  Bruno Haible  <bruno@clisp.org>
59224
59225         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
59226
59227 2007-09-29  Bruno Haible  <bruno@clisp.org>
59228
59229         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
59230
59231 2007-09-29  Bruno Haible  <bruno@clisp.org>
59232
59233         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
59234         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
59235         * build-aux/install-reloc: Compile also areadlink.c.
59236         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
59237
59238 2007-09-29  Bruno Haible  <bruno@clisp.org>
59239
59240         * gnulib-tool (func_emit_initmacro_done): Indentation.
59241
59242 2007-09-29  Bruno Haible  <bruno@clisp.org>
59243
59244         * README: Add CVS checkout update instructions.
59245         Info from Bob Proulx <bob@proulx.com>.
59246
59247 2007-09-28  Eric Blake  <ebb9@byu.net>
59248
59249         Provide move-if-change.
59250         * build-aux/move-if-change: New file, based on best practice
59251         rather than any canonical upstream location.
59252
59253 2007-09-28  Jim Meyering  <jim@meyering.net>
59254
59255         Fix canonicalize loop-detection corner case.
59256         Do not attempt to stat the symlink values stored via seen_triple.
59257         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
59258         on linux-2.6.18, (but not 2.6.22).
59259         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
59260         triple_compare.  The former compares dev,ino,filename, while the latter
59261         would actually stat dirname(filename) when dev and ino were equal.
59262         * lib/hash-triple.c: Install <string.h>.
59263         (STREQ): Define.
59264         (triple_compare_ino_str): New function.
59265         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
59266
59267 2007-09-28  Eric Blake  <ebb9@byu.net>
59268
59269         Enforce that AC_REPLACE_FUNCS files exist.
59270         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
59271         override check for typos.
59272
59273         Fix test-closein on Solaris 10.
59274         * tests/test-closein.c (main): Don't assume stdin can be inherited
59275         closed on all systems.
59276         * tests/test-closein.sh: Likewise.
59277         Reported by Piotr Tarnowski.
59278
59279 2007-09-28  Jim Meyering  <jim@meyering.net>
59280
59281         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
59282
59283 2007-09-27  Jim Meyering  <jim@meyering.net>
59284
59285         canonicalize: Avoid a false-positive cycle failure.
59286         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
59287         Sort.  Remove cycle-check.
59288         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
59289         not cycle-check.h.
59290         (seen_triple): New function.
59291         (canonicalize_filename_mode): Use it instead of cycle-check.
59292         * tests/test-canonicalize.c: Add a test for this bug.
59293         * tests/test-canonicalize.sh: Set up and run the test.
59294
59295         New module, file-set, from coreutils.
59296         * modules/file-set: Define it.
59297         * lib/file-set.c, lib/file-set.h: Implement.
59298
59299         New module, hash-triple, from coreutils.
59300         * modules/hash-triple: Define it.
59301         * lib/hash-triple.c, lib/hash-triple.h: Implement.
59302
59303 2007-09-25  Eric Blake  <ebb9@byu.net>
59304
59305         Fix strerror on Interix.
59306         * lib/string_.h (strerror): Declare replacement.
59307         * doc/functions/strerror.texi (strerror): Document the Interix
59308         shortcoming.
59309         * modules/string (Makefile.am): Support new hooks.
59310         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
59311         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
59312         gl_FUNC_STRERROR_SEPARATE.
59313         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
59314         * lib/strerror.c (rpl_strerror): Provide replacement.
59315         * modules/strerror (Depends-on): Add string.
59316         (configure.ac): Detect use of module.
59317         * tests/test-strerror.c: New file.
59318         * modules/strerror-tests: New test module.
59319         * modules/argp (Depends-on): Add strerror.
59320         * modules/error (Depends-on): Likewise.
59321         Reported by Martin Koeppe.
59322
59323 2007-09-24  Bruno Haible  <bruno@clisp.org>
59324
59325         * README: Update git instructions.
59326
59327 2007-09-24  Eric Blake  <ebb9@byu.net>
59328
59329         Revert fpending breakage from 2007-09-08.
59330         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
59331         __fpending.c.
59332
59333 2007-09-24  Jim Meyering  <jim@meyering.net>
59334
59335         filenamecat.c: Add a test.
59336         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
59337         showing how the function works when DIR is the empty string.
59338
59339 2007-09-21  Simon Josefsson  <simon@josefsson.org>
59340
59341         * tests/test-canonicalize.sh: Turn on executable bit.
59342
59343 2007-09-19  Eric Blake  <ebb9@byu.net>
59344
59345         * README: Update CVS instructions.
59346
59347 2007-09-18  Bruno Haible  <bruno@clisp.org>
59348
59349         * modules/areadlink: New file.
59350         * lib/areadlink.h (areadlink): New declaration.
59351         * lib/areadlink.c: New file, based on lib/xreadlink.c.
59352
59353 2007-09-17  Jim Meyering  <jim@meyering.net>
59354
59355         * lib/savewd.c (ESTALE) [!defined]: Define.
59356         Reported to be required on Interix by Martin Koeppe.
59357
59358 2007-09-17  Bruno Haible  <bruno@clisp.org>
59359
59360         * gnulib-tool (func_version): Use $version.
59361
59362 2007-09-16  Bruno Haible  <bruno@clisp.org>
59363
59364         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
59365         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
59366         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
59367         Reported by Greg Schafer <gschafer@zip.com.au>.
59368
59369 2007-09-15  Bruno Haible  <bruno@clisp.org>
59370
59371         * gnulib-tool (sed): Try a little harder to make bash understand the
59372         alias.
59373         Reported by Bruce Korb <bruce.korb@gmail.com>.
59374
59375 2007-09-13  Eric Blake  <ebb9@byu.net>
59376
59377         * ChangeLog: Remove conflict markers.
59378
59379 2007-09-13  Simon Josefsson  <simon@josefsson.org>
59380
59381         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
59382         Reported by Bruno Haible <bruno@clisp.org>.
59383
59384 2007-09-12  Bruno Haible  <bruno@clisp.org>
59385
59386         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
59387         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
59388         is not defined.
59389
59390 2007-09-12  Eric Blake  <ebb9@byu.net>
59391
59392         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
59393         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
59394         Autoconf definition.
59395         * modules/euidaccess (Depends-on): Add extensions, for
59396         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
59397         * modules/fnmatch (Depends-on): Likewise.
59398         * modules/getaddrinfo (Depends-on): Likewise.
59399         * modules/getdelim (Depends-on): Likewise.
59400         * modules/getline (Depends-on): Likewise.
59401         * modules/getsubopt (Depends-on): Likewise.
59402         * modules/gettext (Depends-on): Likewise.
59403         * modules/group-member (Depends-on): Likewise.
59404         * modules/mbchar (Depends-on): Likewise.
59405         * modules/memmem (Depends-on): Likewise.
59406         * modules/mempcpy (Depends-on): Likewise.
59407         * modules/memrchr (Depends-on): Likewise.
59408         * modules/pagealign_alloc (Depends-on): Likewise.
59409         * modules/readutmp (Depends-on): Likewise.
59410         * modules/stpcpy (Depends-on): Likewise.
59411         * modules/stpncpy (Depends-on): Likewise.
59412         * modules/strchrnul (Depends-on): Likewise.
59413         * modules/strndup (Depends-on): Likewise.
59414         * modules/strsep (Depends-on): Likewise.
59415         * modules/strverscmp (Depends-on): Likewise.
59416         * modules/vasprintf (Depends-on): Likewise.
59417         * modules/wcwidth (Depends-on): Likewise.
59418         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
59419         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
59420         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
59421         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
59422         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
59423         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
59424         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
59425         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
59426         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
59427         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
59428         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
59429         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
59430         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
59431         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
59432         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
59433         * m4/readutmp.m4 (gl_READUTMP): Likewise.
59434         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
59435         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
59436         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
59437         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
59438         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
59439         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
59440         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
59441         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
59442         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
59443         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
59444         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
59445         so that lock.m4 can be used in gettext without extensions module.
59446
59447 2007-09-11  Bruno Haible  <bruno@clisp.org>
59448
59449         * m4/isc-posix.m4: Remove file.
59450         Suggested by Eric Blake.
59451
59452 2007-09-11  Eric Blake  <ebb9@byu.net>
59453
59454         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
59455
59456 2007-09-10  Bruno Haible  <bruno@clisp.org>
59457
59458         * posix-modules: Fix typo in error message.
59459         Reported by Matt <mkraai@beckman.com>.
59460
59461 2007-09-09  Bruno Haible  <bruno@clisp.org>
59462
59463         * doc/functions/getdelim.texi: Update list of platforms lacking the
59464         function.
59465         * doc/functions/getline.texi: Likewise.
59466
59467 2007-09-09  Jim Meyering  <jim@meyering.net>
59468
59469         * lib/hash.c (hash_initialize): Detect calloc failure.
59470         Reported by Bruno Haible.
59471
59472 2007-09-09  Bruno Haible  <bruno@clisp.org>
59473
59474         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
59475         malloc or realloc fails.
59476
59477 2007-09-09  Bruno Haible  <bruno@clisp.org>
59478
59479         * modules/getcwd (Depends-on): Add malloc-posix.
59480         * modules/glob (Depends-on): Likewise.
59481         * modules/putenv (Depends-on): Likewise.
59482         * modules/strdup (Depends-on): Likewise.
59483         * modules/getdelim (Depends-on): Add realloc-posix.
59484         * modules/read-file (Depends-on): Likewise.
59485
59486 2007-09-09  Bruno Haible  <bruno@clisp.org>
59487
59488         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
59489         (gl_FUNC_MALLOC_POSIX): Require it.
59490         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
59491         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
59492         * modules/realloc (Files): Add m4/malloc.m4.
59493         * modules/calloc (Files): Likewise.
59494
59495 2007-09-09  Bruno Haible  <bruno@clisp.org>
59496
59497         * modules/malloc-posix: New file.
59498         * modules/malloc (Depends-on): Add malloc-posix.
59499         * lib/malloc.c: Include errno.h.
59500         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
59501         and a POSIX-compatible malloc into a single function. Set ENOMEM
59502         when returning NULL.
59503         * m4/malloc.m4: New file.
59504         * doc/functions/malloc.texi: Mention the malloc-posix module.
59505         * lib/stdlib_.h (malloc): New declaration.
59506         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
59507         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
59508         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
59509         and HAVE_MALLOC_POSIX.
59510
59511 2007-09-09  Bruno Haible  <bruno@clisp.org>
59512
59513         * modules/realloc-posix: New file.
59514         * modules/realloc (Depends-on): Add realloc-posix.
59515         * lib/realloc.c: Include errno.h.
59516         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
59517         and a POSIX-compatible realloc into a single function. Set ENOMEM
59518         when returning NULL.
59519         * m4/realloc.m4: New file.
59520         * doc/functions/realloc.texi: Mention the realloc-posix module.
59521         * lib/stdlib_.h (realloc): New declaration.
59522         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
59523         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
59524         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
59525         and HAVE_REALLOC_POSIX.
59526
59527 2007-09-09  Bruno Haible  <bruno@clisp.org>
59528
59529         * modules/calloc-posix: New file.
59530         * modules/calloc (Depends-on): Add calloc-posix.
59531         * lib/calloc.c: Include errno.h.
59532         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
59533         and a POSIX-compatible calloc into a single function. Set ENOMEM
59534         when returning NULL.
59535         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
59536         * doc/functions/calloc.texi: Mention the calloc-posix module.
59537         * lib/stdlib_.h (calloc): New declaration.
59538         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
59539         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
59540         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
59541         and HAVE_CALLOC_POSIX.
59542
59543 2007-09-09  Bruno Haible  <bruno@clisp.org>
59544
59545         Allow for modules to show an arbitrary notice.
59546         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
59547         * gnulib-tool: New option --extract-notice.
59548         (func_usage): Document it.
59549         (sed_extract_prog): Update.
59550         (func_get_notice): New function.
59551         (func_modules_notice): New function.
59552         (func_import, func_create_testdir): Invoke it.
59553         Suggested by Jim Meyering.
59554
59555 2007-09-09  Bruno Haible  <bruno@clisp.org>
59556
59557         * gnulib-tool: New options --verbose, --quiet.
59558         (func_usage): Document them.
59559         (verbose): New variable.
59560         (func_execute_command): New function.
59561         (func_import): Don't show the module list and the file list if
59562         $verbose < 0.
59563         (func_create_testdir): Likewise. Use func_execute_command.
59564         (func_create_megatestdir): Use func_execute_command.
59565
59566 2007-09-08  Bruno Haible  <bruno@clisp.org>
59567
59568         * gnulib-tool (func_import): Prefer rsync over wget when available,
59569         for fetching the PO files.
59570
59571 2007-09-08  Bruno Haible  <bruno@clisp.org>
59572
59573         * posix-modules: New file. Portions copied from gnulib-tool.
59574         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
59575
59576 2007-09-08  Jim Meyering  <jim@meyering.net>
59577
59578         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
59579         * lib/fpending.h: Rename from __fpending.h.
59580         * lib/fpending.c: Rename from __fpending.c.
59581         Include "fpending.h", not "__fpending.h".
59582         * lib/__fpending.h, lib/__fpending.c: Remove files.
59583         * modules/fpending (Files): Reflect new file names.
59584         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
59585
59586 2007-09-08  Bruno Haible  <bruno@clisp.org>
59587
59588         * m4/inttypes-h.m4: Remove stub file.
59589
59590 2007-09-07  Simon Josefsson  <simon@josefsson.org>
59591
59592         * doc/headers/stdint.texi: Discuss #include_next issue.
59593
59594 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
59595
59596         * build-aux/bootstrap: Remove obsolete comment about wget --help.
59597
59598 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59599
59600         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
59601         in variable name.
59602
59603 2007-09-03  Jim Meyering  <jim@meyering.net>
59604
59605         New module: git-version-gen.
59606         * modules/git-version-gen: New file.
59607
59608         Import changes from coreutils for bootstrap script.
59609
59610         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
59611
59612         bootstrap: uses rsync to download the .po files
59613         * build-aux/bootstrap (po_download_command_format): New global.
59614         (download_po_files): Use rsync.
59615         (update_po_files): Don't remove .po files after download,
59616         so future rsync runs can take advantage of the copies.
59617
59618         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
59619
59620         Solve the unnecessary-.po-file-regeneration problem once and for all.
59621         * build-aux/bootstrap (download_po_files): New function, renamed from
59622         get_translations.  Now, downloads, but doesn't update LINGUAS.
59623         (update_po_files): New function.
59624
59625         bootstrap: Ignore more.
59626         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
59627         uniwidth to e.g., lib/.gitignore.
59628         (slurp): Handle the sys_stat_.h -> sys mapping, too.
59629
59630         * build-aux/bootstrap: New setting: vc_ignore.
59631         (insert_sorted_if_absent): Create $file if absent.
59632         Adapt to new, possibly empty, list: $vc_ignore.
59633
59634         bootstrap: generate more ignorable names
59635         * build-aux/bootstrap (slurp): When generating ignorable names,
59636         also map .sin to .sed, .gperf to .c, and .y to .c.
59637
59638 2007-09-03  Jim Meyering  <jim@meyering.net>
59639
59640         * build-aux/git-version-gen: New file, from coreutils.  For details, see
59641         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
59642
59643 2007-09-02  Bruno Haible  <bruno@clisp.org>
59644
59645         Fix mis-recognition of 'mcs' on QNX 6.
59646         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
59647         output contains the string "Mono".
59648         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
59649         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
59650
59651 2007-09-01  Bruno Haible  <bruno@clisp.org>
59652
59653         Fix collision between uniwidth/* and linebreak modules.
59654         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
59655         u32_width): Remove declarations.
59656         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
59657         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
59658         streq3, streq2, streq1, streq0): Remove functions.
59659         (STREQ): Remove macro.
59660         (is_cjk_encoding): Remove function.
59661         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
59662         (uc_width, u8_width, u16_width, u32_width): Remove functions.
59663         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
59664         * NEWS: Document the change.
59665
59666 2007-09-01  Bruno Haible  <bruno@clisp.org>
59667
59668         * lib/streq.h: Add double-inclusion guard.
59669
59670 2007-09-01  Karl Berry  <karl@gnu.org>
59671
59672         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
59673
59674 2007-08-28  Jim Meyering  <jim@meyering.net>
59675
59676         Rename mreadlink_with_size to areadlink_with_size.
59677         * NEWS: Document the change.
59678         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
59679         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
59680         * lib/mreadlink.h: Rename this to...
59681         * lib/areadlink.h: ...this.
59682         * modules/mreadlink-with-size: Rename this to...
59683         * modules/areadlink-with-size: ...this.
59684         * lib/canonicalize.c: Reflect the renaming.
59685         * modules/canonicalize: Likewise.
59686
59687 2007-08-26  Bruno Haible  <bruno@clisp.org>
59688
59689         * gnulib-tool (func_import): When deciding which files to remove,
59690         consider also dangling symbolic links.
59691         Reported by Eric Blake.
59692
59693 2007-08-26  Bruno Haible  <bruno@clisp.org>
59694
59695         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
59696
59697 2007-08-23  Simon Josefsson  <simon@josefsson.org>
59698
59699         * lib/readline.c: Don't include getline.h, the prototype is now
59700         found in stdio.h.
59701
59702 2007-08-23  Jim Meyering  <jim@meyering.net>
59703
59704         Getdelim touchup.
59705         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
59706         around the funlockfile call, since funlockfile never sets errno.
59707         Don't set errno upon failed realloc.
59708
59709 2007-08-22  Eric Blake  <ebb9@byu.net>
59710
59711         Getline touchups.
59712         * lib/getdelim.c (getdelim): Revert regression that required *n to
59713         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
59714         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
59715         getdelim, rather than whether implementation is missing.
59716         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
59717         * lib/stdio_.h (getline): Also declare if replacement is
59718         required.
59719         * doc/functions/getdelim.texi: New file.
59720         * doc/functions/getline.texi: Likewise.
59721         * doc/gnulib.texi (Function Substitutes): Add new files.
59722         Reported by Bruno Haible.
59723
59724 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
59725
59726         * users.txt: Add Guile.
59727
59728 2007-08-22  Eric Blake  <ebb9@byu.net>
59729
59730         * tests/test-getdelim.c (main): Use remove, not unlink.
59731         * tests/test-getline.c (main): Likewise.
59732
59733         Move getline and getdelim into stdio.h, per POSIX 200x.
59734         * modules/getline (Files): Remove getline.h.
59735         (Depends-on): Add stdio.
59736         (configure.ac): Add module indicator.
59737         * modules/getdelim (Files): Remove getdelim.h.
59738         (Depends-on): Add stdio.
59739         (configure.ac): Add module indicator.
59740         * modules/stdio (Makefile.am): Work with new indicators.
59741         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
59742         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
59743         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
59744         * lib/getdelim.h: Delete.
59745         * lib/getline.h: Delete.
59746         * lib/stdio_.h (getdelim, getline): Declare.
59747         * modules/getdelim-tests: New module.
59748         * modules/getline-tests: Likewise.
59749         * tests/test-getdelim.c: New file.
59750         * tests/test-getline.c: Likewise.
59751         * NEWS: Document the change.
59752         * lib/getline.c: Update choice of header.
59753         * lib/csharpcomp.c: Likewise.
59754         * lib/getpass.c: Likewise.
59755         * lib/javacomp.c: Likewise.
59756         * lib/javaversion.c: Likewise.
59757         * lib/yesno.c: Likewise.
59758         * lib/getdelim.c: Likewise.
59759         (getdelim): Set errno on failure, and avoid memory leak.
59760
59761 2007-08-19  Bruno Haible  <bruno@clisp.org>
59762
59763         * modules/closein (Depends-on): Add freadahead.
59764         * lib/closein.c: Include freadahead.h.
59765         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
59766         is zero.
59767
59768 2007-08-19  Bruno Haible  <bruno@clisp.org>
59769
59770         * modules/freadahead-tests: New file.
59771         * tests/test-freadahead.sh: New file.
59772         * tests/test-freadahead.c: New file.
59773
59774         * modules/freadahead: New file.
59775         * lib/freadahead.h: New file.
59776         * lib/freadahead.c: New file.
59777         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
59778         fbufmode, fpurge, freadable, fwritable.
59779
59780 2007-08-19  Eric Blake  <ebb9@byu.net>
59781
59782         Test yesno in combination with closein.
59783         * lib/yesno.c (yesno): Document use of stdin.
59784         * modules/yesno-tests (Files): New module.
59785         * tests/test-yesno.c (main): New file.
59786         * tests/test-yesno.sh: Likewise.
59787
59788 2007-08-19  Bruno Haible  <bruno@clisp.org>
59789
59790         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
59791         * lib/fseeko.c (rpl_fseeko): Likewise.
59792         * lib/fseterr.c (fseterr): Likewise.
59793
59794 2007-08-19  Bruno Haible  <bruno@clisp.org>
59795
59796         * tests/test-lseek.c (main): Disable a test for BeOS.
59797         * doc/functions/lseek.texi: Document the BeOS bug.
59798
59799 2007-08-19  Bruno Haible  <bruno@clisp.org>
59800             Eric Blake  <ebb9@byu.net>
59801
59802         * lib/lseek.c: Include <sys/stat.h>.
59803         (rpl_lseek): Add workaround code also for Unix platforms.
59804         Needed for BeOS.
59805         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
59806         * doc/functions/lseek.texi: Document BeOS definiency.
59807
59808 2007-08-18  Bruno Haible  <bruno@clisp.org>
59809
59810         * modules/fstrcmp-tests: New file.
59811         * tests/test-fstrcmp.c: New file.
59812
59813 2007-08-18  Bruno Haible  <bruno@clisp.org>
59814
59815         * modules/fstrcmp: New file, from GNU gettext with modifications.
59816         * lib/fstrcmp.h: New file, from GNU gettext.
59817         * lib/fstrcmp.c: New file, from GNU gettext.
59818         * MODULES.html.sh (String handling): Add fstrcmp.
59819
59820 2007-08-18  Bruno Haible  <bruno@clisp.org>
59821
59822         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
59823         'bool'.
59824         (diag, compareseq): Remove const from the ctxt argument.
59825         (USE_HEURISTIC): Undefine at the end.
59826
59827 2007-08-18  Jim Meyering  <jim@meyering.net>
59828
59829         New file: lib/idcache.h
59830         * NEWS: Mention the addition.
59831         * modules/idcache (Files): Add lib/idcache.h
59832         * lib/idcache.c: Include "idcache.h".
59833         Don't include <sys/types.h>.
59834         Add a FIXME comment.
59835         Move file-scoped "static" declarations to the top.
59836         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
59837
59838 2007-08-17  Bruno Haible  <bruno@clisp.org>
59839         and Paul Eggert  <eggert@cs.ucla.edu>
59840
59841         * MODULES.html.sh: Add diffseq.
59842         * modules/diffseq: New file.
59843         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
59844         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
59845
59846 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59847
59848         Import changes from coreutils for bootstrap script.
59849
59850         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
59851
59852         * build-aux/bootstrap (slurp): Work even in environments where
59853         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
59854         current code does not slurp files whose names start with ".", and
59855         this looks like it might be a troublesome area.
59856
59857         2007-07-11  Jim Meyering  <jim@meyering.net>
59858
59859         If there's a GPL vN copyright comment, require that N == 3.
59860
59861         2007-07-08  Jim Meyering  <jim@meyering.net>
59862
59863         Run the coreutils-specific code only if tests/Makefile.am.in exists.
59864         * build-aux/bootstrap (mam_template): Move definition out of loop.
59865
59866         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
59867
59868         * build-aux/bootstrap (symlink_to_dir): Rename function from
59869         symlink_to_gnulib.  Add a directory parameter.  Update all
59870         callers.
59871         (cp_mark_as_generated): Also check for -- and link to -- files in
59872         gl/.
59873
59874         2007-07-08  Jim Meyering  <jim@meyering.net>
59875
59876         Adapt to deeper hierarchy in gnulib.
59877         * build-aux/bootstrap (symlink_to_dir): If the destination
59878         directory doesn't exist, create it. This is required at least for
59879         "lib/uniwidth/cjk.h".
59880
59881         2007-05-15  Jim Meyering  <jim@meyering.net>
59882
59883         * build-aux/bootstrap: Now that generated Makefile.am files
59884         are no longer under version control, they must be created at
59885         bootstrap time.
59886
59887 2007-08-14  Ben Pfaff  <blp@gnu.org>
59888
59889         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
59890
59891 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
59892
59893         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
59894         given the changes below.
59895         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
59896         even on hosts that have padding bits beyond the supported 64.
59897
59898 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
59899
59900         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
59901         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
59902         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
59903         depends on it.
59904         (xstrtol_error): Remove.
59905         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
59906         but with a different signature.
59907         (ATTRIBUTE_NORETURN, __attribute__): New macros.
59908         * lib/xstrtol-error.c: Include exitfail.h.
59909         (xstrtol_fatal): New function, with a different signature from the
59910         old xstrtol_error, so that the caller need not worry about passing
59911         in an exit status, or about storage management of the option argument.
59912         (xstrtol_error): Now a static function.  Redo signature to
59913         implement xstrtol_fatal.  Output the correct number of hyphens in
59914         front of the option so that the caller need not worry about
59915         storage management.
59916         (N_): New macro.
59917         (_): Remove; not used now.
59918         * modules/xstrtol: Depend on getopt.
59919         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
59920         of old STRTOL_FATAL_ERROR macro.
59921         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
59922         of test program.
59923         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
59924         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
59925
59926 2007-08-08  Eric Blake  <ebb9@byu.net>
59927
59928         * lib/xstrtol-error.c: Add missing include.
59929
59930         Move xstrtol messages into gnulib domain, when --pobase is used.
59931         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
59932         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
59933         * modules/xstrtol (Files): Distribute new file.
59934         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
59935         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
59936         * tests/test-xstrtol.c: ...into new file.
59937         * tests/test-xstrtoul.c: Also test xstrtoul.
59938         * tests/test-xstrtoimax.c: Also test xstrtoimax.
59939         * tests/test-xstrtoumax.c: Also test xstrtoumax.
59940         * tests/test-xstrtol.sh: Drive the tests.
59941         * tests/test-xstrtoimax.sh: Likewise.
59942         * tests/test-xstrtoumax.sh: Likewise.
59943         * modules/xstrtol-tests: New module.
59944         * modules/xstrtoimax-tests: Likewise.
59945         * modules/xstrtoumax-tests: Likewise.
59946
59947 2007-08-08  Jim Meyering  <jim@meyering.net>
59948
59949         New function: mfile_name_concat.
59950         * lib/filenamecat.c (mfile_name_concat): New function, just like
59951         file_name_concat, but return NULL upon failure rather than exiting
59952         with a diagnostic.
59953         * lib/filenamecat.h: Declare it.
59954
59955 2007-08-07  Bruno Haible  <bruno@clisp.org>
59956
59957         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
59958         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
59959         warning from gcc.
59960         Reported by Eric Blake.
59961
59962 2007-08-07  Simon Josefsson  <simon@josefsson.org>
59963
59964         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
59965         * modules/crypto/arcfour (License): Likewise.
59966         * modules/crypto/des-tests (License): Likewise.
59967         * modules/crypto/gc-arctwo-tests (License): Likewise.
59968         * modules/crypto/gc-des-tests (License): Likewise.
59969         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
59970         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
59971         * modules/crypto/gc-md2-tests (License): Likewise.
59972         * modules/crypto/gc-md4-tests (License): Likewise.
59973         * modules/crypto/gc-md5-tests (License): Likewise.
59974         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
59975         * modules/crypto/gc-rijndael-tests (License): Likewise.
59976         * modules/crypto/gc-sha1-tests (License): Likewise.
59977         * modules/crypto/gc-tests (License): Likewise.
59978         * modules/crypto/hmac-md5 (License): Likewise.
59979         * modules/crypto/hmac-sha1 (License): Likewise.
59980         * modules/crypto/md2-tests (License): Likewise.
59981         * modules/crypto/md4-tests (License): Likewise.
59982         * modules/crypto/md5 (License): Likewise.
59983         * modules/crypto/rijndael (License): Likewise.
59984         * modules/crypto/sha1 (License): Likewise.
59985         * modules/memxor (License): Likewise.
59986
59987 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
59988         and Bruno Haible  <bruno@clisp.org>
59989
59990         * NEWS: Describe interface changes to human, xstrtol.
59991         * lib/human.h: Include <xstrtol.h>.
59992         (human_options): Return enum strtol_error, not int.  Remove
59993         bool arg; take int * instead.
59994         * lib/human.c: Don't include "gettext.h".
59995         (_): Remove; no longer used.
59996         Don't include <xstrtol.h>, since human.h does it.
59997         (human_options): Adjust to abovementioned interface changes.
59998         Do not report error to stderr; that's now the caller's
59999         responsibility.
60000         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
60001         interface change.
60002         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
60003         Str, Argument_type_string.  All uses changed.  Put " argument"
60004         in diagnostics to make them clearer.  Change wording of suffix
60005         message for clarity.
60006         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
60007         Argument_type_string.
60008         (STRTOL_FATAL_WARN): Remove; no longer used.
60009         * modules/human (Depends-on): Remove gettext-h.
60010
60011 2007-08-06  Simon Josefsson  <simon@josefsson.org>
60012
60013         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
60014
60015 2007-07-31  Bruno Haible  <bruno@clisp.org>
60016
60017         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
60018         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
60019         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
60020
60021 2007-07-31  Bruno Haible  <bruno@clisp.org>
60022
60023         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
60024         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
60025
60026 2007-07-30  Bruno Haible  <bruno@clisp.org>
60027
60028         * modules/base64 (License): Use the synonymous term "LGPLv2+".
60029         * modules/c-ctype (License): Likewise.
60030         * modules/c-strcase (License): Likewise.
60031         * modules/check-version (License): Likewise.
60032         * modules/iconv (License): Likewise.
60033         * modules/iconv_open (License): Likewise.
60034         * modules/read-file (License): Likewise.
60035         * modules/striconv (License): Likewise.
60036         * modules/strverscmp (License): Likewise.
60037         * modules/vasprintf (License): Likewise.
60038         * modules/crypto/des (License): Likewise.
60039         * modules/crypto/gc (License): Likewise.
60040         * modules/crypto/gc-arcfour (License): Likewise.
60041         * modules/crypto/gc-arctwo (License): Likewise.
60042         * modules/crypto/gc-des (License): Likewise.
60043         * modules/crypto/gc-hmac-md5 (License): Likewise.
60044         * modules/crypto/gc-hmac-sha1 (License): Likewise.
60045         * modules/crypto/gc-md2 (License): Likewise.
60046         * modules/crypto/gc-md4 (License): Likewise.
60047         * modules/crypto/gc-md5 (License): Likewise.
60048         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
60049         * modules/crypto/gc-random (License): Likewise.
60050         * modules/crypto/gc-rijndael (License): Likewise.
60051         * modules/crypto/gc-sha1 (License): Likewise.
60052         * modules/crypto/md2 (License): Likewise.
60053         * modules/crypto/md4 (License): Likewise.
60054
60055 2007-07-30  Jim Meyering  <jim@meyering.net>
60056
60057         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
60058         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
60059         it has valid stat data.  This bug would cause du not to count the
60060         sizes of inaccessible directories.
60061         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
60062         in <http://bugzilla.redhat.com/250077>.
60063
60064 2007-07-25  Peter O'Gorman  <peter@pogma.com>
60065             Bruno Haible  <bruno@clisp.org>
60066
60067         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
60068         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
60069         #include_next, gives a diagnostic about it, but reports no error in
60070         the exit code.
60071         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
60072
60073 2007-07-24  Ben Pfaff  <blp@gnu.org>
60074
60075         Improve name: "count-one-bits" is better than "popcount".
60076         * MODULES.html.sh: Update name.
60077         * lib/popcount.h: Renamed lib/count-one-bits.h.
60078         (popcount): Renamed count_one_bits.
60079         (popcountl): Renamed count_one_bits_l.
60080         (popcountll): Renamed count_one_bits_ll.
60081         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
60082         * modules/popcount: Renamed module/count-one-bits.
60083         * modules/popcount-tests: Renamed module/count-one-bits-tests.
60084         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
60085
60086 2007-07-23  Ben Pfaff  <blp@gnu.org>
60087
60088         * lib/popcount.h (popcount32): Reduce size of constants, to allow
60089         better code generation, and add U to large constants to avoid
60090         warnings, in non-GCC case.
60091         Suggested by Bruno Haible.
60092
60093 2007-07-23  Ben Pfaff  <blp@gnu.org>
60094
60095         * lib/popcount.h: Use verify_true instead of if...abort.
60096         * modules/popcount: Depend on verify module.
60097         Suggested by Jim Meyering.
60098
60099 2007-07-23  Bruno Haible  <bruno@clisp.org>
60100
60101         * gnulib-tool (func_import): Create a .cvsignore file also when the
60102         directory is not yet in CVS but the toplevel directory is. When
60103         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
60104         Reported by Karl Berry.
60105
60106 2007-07-22  Ben Pfaff  <blp@gnu.org>
60107
60108         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
60109         case.
60110         Suggested by Eric Blake.
60111
60112 2007-07-22  Ben Pfaff  <blp@gnu.org>
60113
60114         New module: popcount.
60115         * MODULES.html.sh: Add popcount.
60116         * modules/popcount: New file.
60117         * modules/popcount-tests: New file.
60118         * tests/test-popcount.c: New file.
60119         * lib/popcount.h: New file.
60120         * m4/popcount.m4: New file.
60121
60122 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
60123
60124         * build-aux/announce-gen: Update to GPLv3.
60125
60126         * build-aux/config.guess: Update from config.
60127
60128 2007-07-21  Bruno Haible  <bruno@clisp.org>
60129
60130         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
60131         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
60132
60133 2007-07-20  Jim Meyering  <jim@meyering.net>
60134
60135         * check-module: Diagnose a self-dependency.
60136
60137 2007-07-19  Bruno Haible  <bruno@clisp.org>
60138
60139         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
60140         empty.
60141         Reported by Eric Blake.
60142
60143 2007-07-18  Bruno Haible  <bruno@clisp.org>
60144
60145         * gnulib-tool: New options --po-base, --po-domain.
60146         (func_usage): Document them.
60147         (pobase, po_domain): New variables.
60148         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
60149         DEFAULT_TEXT_DOMAIN.
60150         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
60151         (func_import): Consider pobase and po_domain. Create a po/ directory.
60152         (func_create_testdir): Set pobase and po_domain to empty.
60153         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
60154         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
60155
60156 2007-07-18  Bruno Haible  <bruno@clisp.org>
60157
60158         * gnulib-tool (func_get_automake_snippet): Synthesize also an
60159         EXTRA_DIST augmentation for files in build-aux/.
60160
60161 2007-07-16  Bruno Haible  <bruno@clisp.org>
60162
60163         * modules/lseek (License): Use the synonymous term "LGPLv2+".
60164         * modules/getdelim (License): Likewise.
60165
60166 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60167
60168         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
60169         * modules/d-type (License): Likewise.
60170         * modules/extensions (License): Likewise.
60171         * modules/fnmatch (License): Likewise.
60172         * modules/fseeko (License): Likewise.
60173         * modules/getaddrinfo (License): Likewise.
60174         * modules/getline (License): Likewise.
60175         * modules/getlogin_r (License): Likewise.
60176         * modules/getpass (License): Likewise.
60177         * modules/gettimeofday (License): Likewise.
60178         * modules/glob (License): Likewise.
60179         * modules/inet_ntop (License): Likewise.
60180         * modules/malloc (License): Likewise.
60181         * modules/malloca (License): Likewise.
60182         * modules/memmem (License): Likewise.
60183         * modules/mempcpy (License): Likewise.
60184         * modules/memset (License): Likewise.
60185         * modules/minmax (License): Likewise.
60186         * modules/mktime (License): Likewise.
60187         * modules/netinet_in (License): Likewise.
60188         * modules/pathmax (License): Likewise.
60189         * modules/poll (License): Likewise.
60190         * modules/regex (License): Likewise.
60191         * modules/snprintf (License): Likewise.
60192         * modules/stdbool (License): Likewise.
60193         * modules/stdint (License): Likewise.
60194         * modules/stdio (License): Likewise.
60195         * modules/strcase (License): Likewise.
60196         * modules/strcasestr (License): Likewise.
60197         * modules/strdup (License): Likewise.
60198         * modules/string (License): Likewise.
60199         * modules/strndup (License): Likewise.
60200         * modules/strnlen (License): Likewise.
60201         * modules/strpbrk (License): Likewise.
60202         * modules/strptime (License): Likewise.
60203         * modules/strsep (License): Likewise.
60204         * modules/sys_select (License): Likewise.
60205         * modules/sys_socket (License): Likewise.
60206         * modules/sys_stat (License): Likewise.
60207         * modules/sys_time (License): Likewise.
60208         * modules/time (License): Likewise.
60209         * modules/time_r (License): Likewise.
60210         * modules/timegm (License): Likewise.
60211         * modules/unistd (License): Likewise.
60212         * modules/vsnprintf (License): Likewise.
60213         * modules/wctype (License): Likewise.
60214
60215 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60216
60217         * modules/argz (License): LGPLv2+.
60218
60219 2007-07-15  Karl Berry  <karl@gnu.org>
60220
60221         * doc/gnulib.texi: revise node structure per new fdl.texi.
60222
60223 2007-07-14  Bruno Haible  <bruno@clisp.org>
60224
60225         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
60226         the output file.
60227         * lib/uniname/uninames.h: Regenerated.
60228
60229 2007-07-14  Karl Berry  <karl@gnu.org>
60230
60231         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
60232         omitting sectioning and index commands.
60233
60234 2007-07-13  Bruno Haible  <bruno@clisp.org>
60235
60236         New gnulib-tool option --more-symlinks.
60237         * gnulib-tool (func_usage): Document --more-symlinks.
60238         (do_copyrights): New variable.
60239         Recognize option --more-symlinks.
60240         (func_import): Don't add a copyright notice transform to
60241         sed_transform_lib_file if do_copyrights is empty.
60242
60243 2007-07-13  Bruno Haible  <bruno@clisp.org>
60244
60245         * lib/vasnprintf.c (decimal_point_char): Define also if
60246         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
60247         && !NEED_PRINTF_DIRECTIVE_A.
60248         Reported by Clemens Koller <clemens.koller@anagramm.de> via
60249         Gary V. Vaughan <gary@gnu.org>.
60250
60251 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
60252
60253         * lib/inttypes_.h: Undo previous change, since it was fixed
60254         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
60255
60256 2007-07-13  Bruno Haible  <bruno@clisp.org>
60257
60258         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
60259         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
60260
60261 2007-07-13  Jim Meyering  <jim@meyering.net>
60262
60263         df: Don't fail for Tru64's "file-on-file mount".
60264         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
60265         so we fall through and use statfs instead.  Details here:
60266         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
60267         Reported by Albert Chin.
60268
60269 2007-07-13  Bruno Haible  <bruno@clisp.org>
60270
60271         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
60272         * modules/configmake (License): Likewise.
60273         * modules/gettext (License): Likewise.
60274         * modules/gettext-h (License): Likewise.
60275         * modules/include_next (License): Likewise.
60276         * modules/link-warning (License): Likewise.
60277         * modules/localcharset (License): Likewise.
60278         * modules/localename (License): Likewise.
60279         * modules/lock (License): Likewise.
60280         * modules/relocatable-lib-lgpl (License): Likewise.
60281         * modules/size_max (License): Likewise.
60282         * modules/vasnprintf (License): Likewise.
60283         * modules/wchar (License): Likewise.
60284         * modules/xsize (License): Likewise.
60285
60286 2007-07-13  Bruno Haible  <bruno@clisp.org>
60287
60288         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
60289         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
60290
60291 2007-07-12  Bruno Haible  <bruno@clisp.org>
60292
60293         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
60294         in the modules files.
60295
60296 2007-07-11  Karl Berry  <karl@gnu.org>
60297
60298         * MODULES.html.sh (func_module): use
60299          sed -e '\|^'"${includefile}"'$|d'
60300          instead of /.../d, to avoid errors on $includefile's containing /.
60301
60302 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
60303
60304         * gnulib-tool (func_import): Avoid duplication of --avoid
60305         statements
60306         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
60307         names to `_' in variable names.
60308
60309 2007-07-10  Eric Blake  <ebb9@byu.net>
60310
60311         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
60312         * NEWS: Document this change.
60313
60314 2007-07-08  Bruno Haible  <bruno@clisp.org>
60315
60316         Update to Unicode 5.0.
60317         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
60318         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
60319         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
60320         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
60321         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
60322         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
60323         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
60324         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
60325         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
60326         U+10A3F, U+1D242..U+1D244.
60327         (nonspacing_table_ind): Update.
60328         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
60329         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
60330
60331 2007-07-08  Bruno Haible  <bruno@clisp.org>
60332
60333         Update to Unicode 5.0.
60334         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
60335         code transform. Extend the name index field of unicode_name_to_code and
60336         unicode_code_to_name from 16 to 24 bits.
60337         * lib/uniname/uniname.c (unicode_character_name,
60338         unicode_name_character): Add the range 0x12xxx to the code transform.
60339         * lib/uniname/uninames.h: Regenerated.
60340         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
60341
60342 2007-07-07  Bruno Haible  <bruno@clisp.org>
60343
60344         * modules/wcwidth-tests: New file.
60345         * tests/test-wcwidth.c: New file.
60346
60347         Work around MacOS X wcwidth() bug.
60348         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
60349         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
60350         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
60351         original wcwidth in non-UTF-8 locales.
60352         * modules/wcwidth (Depends-on): Add localcharset, streq,
60353         uniwidth/width.
60354         * doc/functions/wcwidth.texi: Update.
60355
60356 2007-07-07  Bruno Haible  <bruno@clisp.org>
60357
60358         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
60359         (wcwidth): New declaration.
60360         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
60361         macros.
60362         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
60363         here. Prepare for creating <wchar.h> unconditionally.
60364         * modules/wchar (Depends-on): Add link-warning.
60365         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
60366         REPLACE_WCWIDTH, and GL_LINK_WARNING.
60367         * lib/wcwidth.h: Remove file.
60368         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
60369         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
60370         * modules/wcwidth (Files): Remove lib/wcwidth.h.
60371         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
60372         (Include): Replace wcwidth.h with <wchar.h>.
60373         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
60374         * lib/mbchar.h: Don't include wcwidth.h.
60375         * lib/mbswidth.c: Likewise.
60376         * NEWS: Mention the change.
60377
60378 2007-07-07  Bruno Haible  <bruno@clisp.org>
60379
60380         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
60381         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
60382         definition with an external declaration.
60383         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
60384         defined as a function. Remove AC_C_INLINE requirement.
60385         * modules/wcwidth (Files): Add lib/wcwidth.c.
60386         (Makefile.am): Remove redundant statement.
60387
60388 2007-07-07  Bruno Haible  <bruno@clisp.org>
60389
60390         * MODULES.html.sh (Unicode string functions): Add the new modules.
60391
60392         * tests/uniwidth/test-u32-strwidth.c: New file.
60393         * modules/uniwidth/u32-strwidth-tests: New file.
60394
60395         * lib/uniwidth/u32-strwidth.c: New file.
60396         * modules/uniwidth/u32-strwidth: New file.
60397
60398         * tests/uniwidth/test-u16-strwidth.c: New file.
60399         * modules/uniwidth/u16-strwidth-tests: New file.
60400
60401         * lib/uniwidth/u16-strwidth.c: New file.
60402         * modules/uniwidth/u16-strwidth: New file.
60403
60404         * tests/uniwidth/test-u8-strwidth.c: New file.
60405         * modules/uniwidth/u8-strwidth-tests: New file.
60406
60407         * lib/uniwidth/u8-strwidth.c: New file.
60408         * modules/uniwidth/u8-strwidth: New file.
60409
60410         * tests/uniwidth/test-u32-width.c: New file.
60411         * modules/uniwidth/u32-width-tests: New file.
60412
60413         * lib/uniwidth/u32-width.c: New file.
60414         * modules/uniwidth/u32-width: New file.
60415
60416         * tests/uniwidth/test-u16-width.c: New file.
60417         * modules/uniwidth/u16-width-tests: New file.
60418
60419         * lib/uniwidth/u16-width.c: New file.
60420         * modules/uniwidth/u16-width: New file.
60421
60422         * tests/uniwidth/test-u8-width.c: New file.
60423         * modules/uniwidth/u8-width-tests: New file.
60424
60425         * lib/uniwidth/u8-width.c: New file.
60426         * modules/uniwidth/u8-width: New file.
60427
60428         * tests/uniwidth/test-uc_width.c: New file.
60429         * modules/uniwidth/width-tests: New file.
60430
60431         * lib/uniwidth/width.c: New file, from GNU libiconv.
60432         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
60433         * modules/uniwidth/width: New file.
60434
60435         * lib/uniwidth.h: New file, from GNU libiconv.
60436         * modules/uniwidth/base: New file.
60437
60438 2007-07-07  Bruno Haible  <bruno@clisp.org>
60439
60440         * lib/uniname.h: New file, from GNU gettext.
60441         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
60442         * lib/uniname/uninames.h: New file, from GNU gettext.
60443         * lib/uniname/uniname.c: New file, from GNU gettext.
60444         * tests/uniname/test-uninames.sh: New file.
60445         * tests/uniname/test-uninames.c: New file, from GNU gettext.
60446         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
60447         * modules/uniname/base: New file.
60448         * modules/uniname/uniname: New file.
60449         * modules/uniname/uniname-tests: New file.
60450         * MODULES.html.sh (Unicode string functions): Add the new modules.
60451
60452 2007-07-06  Bruno Haible  <bruno@clisp.org>
60453
60454         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
60455
60456 2007-07-06  Bruno Haible  <bruno@clisp.org>
60457
60458         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
60459         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
60460         includes <cygwin/sys_time.h> which includes <sys/select.h> which
60461         include <sys/time.h>.
60462         Reported by Eric Blake.
60463
60464 2007-07-06  Eric Blake  <ebb9@byu.net>
60465
60466         Fix testing canonicalize on cygwin.
60467         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
60468         Revert patch from 2007-06-19.
60469         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
60470         canonicalize module is also in use.
60471         * tests/test-canonicalize.c: New file.
60472         * tests/test-canonicalize.sh: Likewise.
60473         * modules/canonicalize-tests: Likewise.
60474
60475 2007-07-06  Jim Meyering  <jim@meyering.net>
60476
60477         * lib/getugroups.c (getugroups): Detect getgrent failure.
60478         Adjust comment to reflect reality: this function may return -1.
60479
60480 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
60481
60482         * build-aux/bootstrap (TP_URL,get_translations): Update to use
60483         the new TP address.
60484         (usage): Fix typo
60485         (gnulib_mk): New variable.
60486
60487 2007-07-05  Jim Meyering  <jim@meyering.net>
60488
60489         Don't let endgrent clobber errno, no matter how improbable.
60490         * lib/getugroups.c (getugroups): Save and restore errno around
60491         endgrent call.
60492
60493         Close the group DB even when failing with 2^31 or more members.
60494         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
60495
60496 2007-07-04  Jim Meyering  <jim@meyering.net>
60497
60498         * lib/getugroups.h: New file.
60499         * lib/getugroups.c: Include "getugroups.h".
60500         Remove uses of "register" keyword.
60501         Move local variable, "cp", down into scope where used.
60502         Give "username" parameter the "const" attribute.
60503         * modules/getugroups (Files): Add lib/getugroups.h
60504
60505 2007-07-04  Karl Berry  <karl@gnu.org>
60506
60507         * MODULES.html.sh (func_all_modules): Complete rename of
60508         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
60509
60510 2007-07-02  Bruno Haible  <bruno@clisp.org>
60511
60512         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
60513         mode, when inttypes.h comes from gnulib.
60514         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
60515
60516 2007-07-02  Simon Josefsson  <simon@josefsson.org>
60517
60518         * NEWS: Mention lgpl module name change.
60519
60520         * modules/lgpl-2.1: Renamed from lgpl.
60521
60522         * NEWS: Mention gpl module name change.
60523
60524         * modules/gpl-3.0: New file, based on gpl-2.0.
60525
60526         * modules/gpl-2.0: Renamed from gpl.
60527
60528         * modules/gpl: Fix filename, doc/gpl.texi is now found at
60529         doc/gpl-2.0.texi.
60530
60531 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
60532
60533         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
60534         #define __STDC_LIMIT_MACROS temporarily while including
60535         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
60536         Problem reported by Joel E. Denny in
60537         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
60538
60539 2007-07-01  Bruno Haible  <bruno@clisp.org>
60540
60541         * lib/unistdio.h: New file.
60542         * lib/unistdio/u-asnprintf.h: New file.
60543         * lib/unistdio/u-asprintf.h: New file.
60544         * lib/unistdio/u-printf-args.c: New file.
60545         * lib/unistdio/u-printf-args.h: New file.
60546         * lib/unistdio/u-printf-parse.h: New file.
60547         * lib/unistdio/u-snprintf.h: New file.
60548         * lib/unistdio/u-sprintf.h: New file.
60549         * lib/unistdio/u-vasprintf.h: New file.
60550         * lib/unistdio/u-vsnprintf.h: New file.
60551         * lib/unistdio/u-vsprintf.h: New file.
60552         * lib/unistdio/ulc-asnprintf.c: New file.
60553         * lib/unistdio/ulc-asprintf.c: New file.
60554         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
60555         * lib/unistdio/ulc-printf-parse.c: New file.
60556         * lib/unistdio/ulc-snprintf.c: New file.
60557         * lib/unistdio/ulc-sprintf.c: New file.
60558         * lib/unistdio/ulc-vasnprintf.c: New file.
60559         * lib/unistdio/ulc-vasprintf.c: New file.
60560         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
60561         * lib/unistdio/ulc-vsnprintf.c: New file.
60562         * lib/unistdio/ulc-vsprintf.c: New file.
60563         * lib/unistdio/u8-asnprintf.c: New file.
60564         * lib/unistdio/u8-asprintf.c: New file.
60565         * lib/unistdio/u8-printf-parse.c: New file.
60566         * lib/unistdio/u8-snprintf.c: New file.
60567         * lib/unistdio/u8-sprintf.c: New file.
60568         * lib/unistdio/u8-vasnprintf.c: New file.
60569         * lib/unistdio/u8-vasprintf.c: New file.
60570         * lib/unistdio/u8-vsnprintf.c: New file.
60571         * lib/unistdio/u8-vsprintf.c: New file.
60572         * lib/unistdio/u8-u8-asnprintf.c: New file.
60573         * lib/unistdio/u8-u8-asprintf.c: New file.
60574         * lib/unistdio/u8-u8-snprintf.c: New file.
60575         * lib/unistdio/u8-u8-sprintf.c: New file.
60576         * lib/unistdio/u8-u8-vasnprintf.c: New file.
60577         * lib/unistdio/u8-u8-vasprintf.c: New file.
60578         * lib/unistdio/u8-u8-vsnprintf.c: New file.
60579         * lib/unistdio/u8-u8-vsprintf.c: New file.
60580         * lib/unistdio/u16-asnprintf.c: New file.
60581         * lib/unistdio/u16-asprintf.c: New file.
60582         * lib/unistdio/u16-printf-parse.c: New file.
60583         * lib/unistdio/u16-snprintf.c: New file.
60584         * lib/unistdio/u16-sprintf.c: New file.
60585         * lib/unistdio/u16-vasnprintf.c: New file.
60586         * lib/unistdio/u16-vasprintf.c: New file.
60587         * lib/unistdio/u16-vsnprintf.c: New file.
60588         * lib/unistdio/u16-vsprintf.c: New file.
60589         * lib/unistdio/u16-u16-asnprintf.c: New file.
60590         * lib/unistdio/u16-u16-asprintf.c: New file.
60591         * lib/unistdio/u16-u16-snprintf.c: New file.
60592         * lib/unistdio/u16-u16-sprintf.c: New file.
60593         * lib/unistdio/u16-u16-vasnprintf.c: New file.
60594         * lib/unistdio/u16-u16-vasprintf.c: New file.
60595         * lib/unistdio/u16-u16-vsnprintf.c: New file.
60596         * lib/unistdio/u16-u16-vsprintf.c: New file.
60597         * lib/unistdio/u32-asnprintf.c: New file.
60598         * lib/unistdio/u32-asprintf.c: New file.
60599         * lib/unistdio/u32-printf-parse.c: New file.
60600         * lib/unistdio/u32-snprintf.c: New file.
60601         * lib/unistdio/u32-sprintf.c: New file.
60602         * lib/unistdio/u32-vasnprintf.c: New file.
60603         * lib/unistdio/u32-vasprintf.c: New file.
60604         * lib/unistdio/u32-vsnprintf.c: New file.
60605         * lib/unistdio/u32-vsprintf.c: New file.
60606         * lib/unistdio/u32-u32-asnprintf.c: New file.
60607         * lib/unistdio/u32-u32-asprintf.c: New file.
60608         * lib/unistdio/u32-u32-snprintf.c: New file.
60609         * lib/unistdio/u32-u32-sprintf.c: New file.
60610         * lib/unistdio/u32-u32-vasnprintf.c: New file.
60611         * lib/unistdio/u32-u32-vasprintf.c: New file.
60612         * lib/unistdio/u32-u32-vsnprintf.c: New file.
60613         * lib/unistdio/u32-u32-vsprintf.c: New file.
60614         * tests/unistdio/test-ulc-asnprintf1.c: New file.
60615         * tests/unistdio/test-ulc-asnprintf1.h: New file.
60616         * tests/unistdio/test-ulc-printf1.h: New file.
60617         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
60618         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
60619         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
60620         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
60621         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
60622         * tests/unistdio/test-ulc-vasprintf1.c: New file.
60623         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
60624         * tests/unistdio/test-ulc-vsprintf1.c: New file.
60625         * tests/unistdio/test-u8-asnprintf1.c: New file.
60626         * tests/unistdio/test-u8-asnprintf1.h: New file.
60627         * tests/unistdio/test-u8-printf1.h: New file.
60628         * tests/unistdio/test-u8-vasnprintf1.c: New file.
60629         * tests/unistdio/test-u8-vasnprintf2.c: New file.
60630         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
60631         * tests/unistdio/test-u8-vasnprintf3.c: New file.
60632         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
60633         * tests/unistdio/test-u8-vasprintf1.c: New file.
60634         * tests/unistdio/test-u8-vsnprintf1.c: New file.
60635         * tests/unistdio/test-u8-vsprintf1.c: New file.
60636         * tests/unistdio/test-u16-asnprintf1.c: New file.
60637         * tests/unistdio/test-u16-asnprintf1.h: New file.
60638         * tests/unistdio/test-u16-printf1.h: New file.
60639         * tests/unistdio/test-u16-vasnprintf1.c: New file.
60640         * tests/unistdio/test-u16-vasnprintf2.c: New file.
60641         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
60642         * tests/unistdio/test-u16-vasnprintf3.c: New file.
60643         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
60644         * tests/unistdio/test-u16-vasprintf1.c: New file.
60645         * tests/unistdio/test-u16-vsnprintf1.c: New file.
60646         * tests/unistdio/test-u16-vsprintf1.c: New file.
60647         * tests/unistdio/test-u32-asnprintf1.c: New file.
60648         * tests/unistdio/test-u32-asnprintf1.h: New file.
60649         * tests/unistdio/test-u32-printf1.h: New file.
60650         * tests/unistdio/test-u32-vasnprintf1.c: New file.
60651         * tests/unistdio/test-u32-vasnprintf2.c: New file.
60652         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
60653         * tests/unistdio/test-u32-vasnprintf3.c: New file.
60654         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
60655         * tests/unistdio/test-u32-vasprintf1.c: New file.
60656         * tests/unistdio/test-u32-vsnprintf1.c: New file.
60657         * tests/unistdio/test-u32-vsprintf1.c: New file.
60658         * modules/unistdio/base: New file.
60659         * modules/unistdio/u-printf-args: New file.
60660         * modules/unistdio/ulc-asnprintf: New file.
60661         * modules/unistdio/ulc-asprintf: New file.
60662         * modules/unistdio/ulc-fprintf: New file.
60663         * modules/unistdio/ulc-printf-parse: New file.
60664         * modules/unistdio/ulc-snprintf: New file.
60665         * modules/unistdio/ulc-sprintf: New file.
60666         * modules/unistdio/ulc-vasnprintf: New file.
60667         * modules/unistdio/ulc-vasprintf: New file.
60668         * modules/unistdio/ulc-vfprintf: New file.
60669         * modules/unistdio/ulc-vsnprintf: New file.
60670         * modules/unistdio/ulc-vsprintf: New file.
60671         * modules/unistdio/u8-asnprintf: New file.
60672         * modules/unistdio/u8-asprintf: New file.
60673         * modules/unistdio/u8-printf-parse: New file.
60674         * modules/unistdio/u8-snprintf: New file.
60675         * modules/unistdio/u8-sprintf: New file.
60676         * modules/unistdio/u8-vasnprintf: New file.
60677         * modules/unistdio/u8-vasprintf: New file.
60678         * modules/unistdio/u8-vsnprintf: New file.
60679         * modules/unistdio/u8-vsprintf: New file.
60680         * modules/unistdio/u8-u8-asnprintf: New file.
60681         * modules/unistdio/u8-u8-asprintf: New file.
60682         * modules/unistdio/u8-u8-snprintf: New file.
60683         * modules/unistdio/u8-u8-sprintf: New file.
60684         * modules/unistdio/u8-u8-vasnprintf: New file.
60685         * modules/unistdio/u8-u8-vasprintf: New file.
60686         * modules/unistdio/u8-u8-vsnprintf: New file.
60687         * modules/unistdio/u8-u8-vsprintf: New file.
60688         * modules/unistdio/u16-asnprintf: New file.
60689         * modules/unistdio/u16-asprintf: New file.
60690         * modules/unistdio/u16-printf-parse: New file.
60691         * modules/unistdio/u16-snprintf: New file.
60692         * modules/unistdio/u16-sprintf: New file.
60693         * modules/unistdio/u16-vasnprintf: New file.
60694         * modules/unistdio/u16-vasprintf: New file.
60695         * modules/unistdio/u16-vsnprintf: New file.
60696         * modules/unistdio/u16-vsprintf: New file.
60697         * modules/unistdio/u16-u16-asnprintf: New file.
60698         * modules/unistdio/u16-u16-asprintf: New file.
60699         * modules/unistdio/u16-u16-snprintf: New file.
60700         * modules/unistdio/u16-u16-sprintf: New file.
60701         * modules/unistdio/u16-u16-vasnprintf: New file.
60702         * modules/unistdio/u16-u16-vasprintf: New file.
60703         * modules/unistdio/u16-u16-vsnprintf: New file.
60704         * modules/unistdio/u16-u16-vsprintf: New file.
60705         * modules/unistdio/u32-asnprintf: New file.
60706         * modules/unistdio/u32-asprintf: New file.
60707         * modules/unistdio/u32-printf-parse: New file.
60708         * modules/unistdio/u32-snprintf: New file.
60709         * modules/unistdio/u32-sprintf: New file.
60710         * modules/unistdio/u32-vasnprintf: New file.
60711         * modules/unistdio/u32-vasprintf: New file.
60712         * modules/unistdio/u32-vsnprintf: New file.
60713         * modules/unistdio/u32-vsprintf: New file.
60714         * modules/unistdio/u32-u32-asnprintf: New file.
60715         * modules/unistdio/u32-u32-asprintf: New file.
60716         * modules/unistdio/u32-u32-snprintf: New file.
60717         * modules/unistdio/u32-u32-sprintf: New file.
60718         * modules/unistdio/u32-u32-vasnprintf: New file.
60719         * modules/unistdio/u32-u32-vasprintf: New file.
60720         * modules/unistdio/u32-u32-vsnprintf: New file.
60721         * modules/unistdio/u32-u32-vsprintf: New file.
60722         * modules/unistdio/ulc-asnprintf-tests: New file.
60723         * modules/unistdio/ulc-vasnprintf-tests: New file.
60724         * modules/unistdio/ulc-vasprintf-tests: New file.
60725         * modules/unistdio/ulc-vsnprintf-tests: New file.
60726         * modules/unistdio/ulc-vsprintf-tests: New file.
60727         * modules/unistdio/u8-asnprintf-tests: New file.
60728         * modules/unistdio/u8-vasnprintf-tests: New file.
60729         * modules/unistdio/u8-vasprintf-tests: New file.
60730         * modules/unistdio/u8-vsnprintf-tests: New file.
60731         * modules/unistdio/u8-vsprintf-tests: New file.
60732         * modules/unistdio/u16-asnprintf-tests: New file.
60733         * modules/unistdio/u16-vasnprintf-tests: New file.
60734         * modules/unistdio/u16-vasprintf-tests: New file.
60735         * modules/unistdio/u16-vsnprintf-tests: New file.
60736         * modules/unistdio/u16-vsprintf-tests: New file.
60737         * modules/unistdio/u32-asnprintf-tests: New file.
60738         * modules/unistdio/u32-vasnprintf-tests: New file.
60739         * modules/unistdio/u32-vasprintf-tests: New file.
60740         * modules/unistdio/u32-vsnprintf-tests: New file.
60741         * modules/unistdio/u32-vsprintf-tests: New file.
60742         * MODULES.html.sh (Unicode string functions): Add the new modules.
60743
60744 2007-07-01  Bruno Haible  <bruno@clisp.org>
60745
60746         * lib/sprintf.c (sprintf): Limit the available length estimation,
60747         to avoid address wraparound.
60748         * lib/vsprintf.c (vsprintf): Likewise.
60749         * modules/sprintf-posix (Dependencies): Add stdint.
60750         * modules/vsprintf-posix (Dependencies): Likewise.
60751
60752 2007-07-01  Bruno Haible  <bruno@clisp.org>
60753
60754         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
60755         Windows PATH as well. Conservative double-quoting. Comments.
60756
60757 2007-07-01  Bruno Haible  <bruno@clisp.org>
60758             Eric Blake  <ebb9@byu.net>
60759             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60760
60761         * gnulib-tool (self_abspathname): Fix algorithm to cope with
60762         empty components in $PATH, denoting '.'.
60763
60764 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60765
60766         * gnulib-tool: Fix indentation.
60767         (func_create_megatestdir): Likewise.
60768         Report by Bruno Haible.
60769
60770 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60771
60772         Sync from Automake.
60773         * build-aux/gnupload: Fix shell portability issues with for loops.
60774         Report by Karl Berry.
60775
60776 2007-06-29  Simon Josefsson  <simon@josefsson.org>
60777
60778         * build-aux/maint.mk (POURL): Use translationproject.org.
60779
60780 2007-06-27  Simon Josefsson  <simon@josefsson.org>
60781             Bruno Haible  <bruno@clisp.org>
60782
60783         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
60784         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
60785         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
60786         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
60787         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
60788
60789 2007-06-27  Bruno Haible  <bruno@clisp.org>
60790
60791         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
60792         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
60793
60794 2007-06-26  Karl Berry  <karl@gnu.org>
60795
60796         * MODULES.html.sh: remove xreadlink-with-size.
60797
60798 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
60799
60800         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
60801         method that I hope also handles the double-include problem noted
60802         by Bruno Haible in
60803         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
60804
60805 2007-06-23  Bruno Haible  <bruno@clisp.org>
60806
60807         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60808         Don't let the 'mostlyclean' target fail if the last subdirectory could
60809         not be removed.
60810         Reported by Karl Berry.
60811
60812 2007-06-23  Bruno Haible  <bruno@clisp.org>
60813
60814         * gnulib-tool (echo): Add a speedier workaround for ksh.
60815         * tests/test-echo.sh: Likewise.
60816
60817 2007-06-23  Bruno Haible  <bruno@clisp.org>
60818
60819         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
60820         * tests/test-echo.sh: Likewise.
60821
60822 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60823
60824         * gnulib-tool (IFS): Initialize early, so we don't set it to
60825         empty later.
60826         (self_abspathname): Rewrite algorithm to set it, reindent.
60827         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
60828         (func_create_megatestdir): Merge some sed scripts.
60829
60830 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
60831
60832         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
60833         exposed by Sun Studio 11 cc on Solaris 8.
60834
60835 2007-06-22  Bruno Haible  <bruno@clisp.org>
60836
60837         * gnulib-tool (echo): Ensure the echo primitive does not interpret
60838         backslashes.
60839         * tests/test-echo.sh: New file.
60840
60841 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60842
60843         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
60844         simplify `sed_replace_build_aux' scripts, they are portable but
60845         echoing them with `echo' is not.
60846         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
60847
60848 2007-06-21  Karl Berry  <karl@gnu.org>
60849
60850         * config/srclist.txt: guess we can't handle the licenses via
60851         srclist at the moment.
60852
60853 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
60854
60855         * MODULES.html.sh: Add include_next.
60856         * modules/include_next: New file.
60857
60858 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
60859
60860         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
60861         INCLUDE_NEXT.
60862         (gl_CHECK_NEXT_HEADERS): New macro.
60863         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
60864         the obsolescent gl_ABSOLUTE_HEADER.
60865         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
60866         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
60867         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
60868         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
60869         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
60870         * m4/math_h.m4 (gl_MATH_H): Likewise.
60871         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
60872         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
60873         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
60874         * m4/stdint.m4 (gl_STDINT_H): Likewise.
60875         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
60876         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
60877         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
60878         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
60879         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
60880         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
60881         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
60882         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
60883         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
60884         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
60885         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
60886         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
60887         * m4/inttypes.m4 (gl_INTTYPES_H): Define
60888         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
60889         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
60890         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
60891         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
60892         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
60893         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
60894         * lib/float_.h: Likewise.
60895         * lib/inttypes_.h: Likewise.
60896         * lib/math_.h: Likewise.
60897         * lib/search_.h: Likewise.
60898         * lib/signal_.h: Likewise.
60899         * lib/stdint_.h: Likewise.
60900         * lib/stdio_.h: Likewise.
60901         * lib/stdlib_.h: Likewise.
60902         * lib/string_.h: Likewise.
60903         * lib/sys_stat_.h: Likewise.
60904         * lib/sys_time_.h: Likewise.
60905         * lib/time_.h: Likewise.
60906         * lib/unistd_.h: Likewise.
60907         * lib/wchar_.h: Likewise.
60908         * lib/wctype_.h: Likewise.
60909         * lib/dirent_.h: Likewise.
60910         * lib/iconv_.h: Likewise.
60911         * lib/locale_.h: Likewise.
60912         * lib/netinet_in_.h: Likewise.
60913         * lib/sys_select_.h: Likewise.
60914         * lib/sys_socket_.h: Likewise.
60915         * lib/sysexits_.h: Likewise.
60916         * modules/fcntl (Depends-on): Depend on include_next, not
60917         absolute_header.
60918         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
60919         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
60920         * modules/fchdir: Likewise.
60921         * modules/float: Likewise.
60922         * modules/iconv_open: Likewise.
60923         * modules/inttypes: Likewise.
60924         * modules/locale: Likewise.
60925         * modules/math: Likewise.
60926         * modules/netinet_in: Likewise.
60927         * modules/search: Likewise.
60928         * modules/signal: Likewise.
60929         * modules/stdint: Likewise.
60930         * modules/stdio: Likewise.
60931         * modules/stdlib: Likewise.
60932         * modules/string: Likewise.
60933         * modules/sys_select: Likewise.
60934         * modules/sys_socket: Likewise.
60935         * modules/sys_stat: Likewise.
60936         * modules/sys_time: Likewise.
60937         * modules/sysexits: Likewise.
60938         * modules/time: Likewise.
60939         * modules/unistd: Likewise.
60940         * modules/wchar: Likewise.
60941         * modules/wctype: Likewise.
60942         * modules/sys_stat: Change maintainer to "all".
60943         * modules/unistd: Likewise.
60944
60945 2007-06-20  Karl Berry  <karl@gnu.org>
60946
60947         * config/srclist.txt: track www changes in license files.
60948
60949 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
60950
60951         * build-aux/bootstrap: Remove stray dot.
60952         Make sure build_aux settings are honored when linking
60953         gnulib_extra_files.
60954
60955 2007-06-19  Eric Blake  <ebb9@byu.net>
60956
60957         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
60958         Allow compilation on cygwin.
60959
60960 2007-06-19  Jim Meyering  <jim@meyering.net>
60961
60962         xreadlink-with-size: Remove module.  No longer used.
60963         Ex-callers now use xreadlink or mreadlink-with-size.
60964         * modules/xreadlink-with-size: Remove module.
60965         * lib/xreadlink-with-size.c: Remove file.
60966         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
60967         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
60968         just before the function definition *is* accurate.
60969
60970         Eliminate one way canonicalize_filename_mode could exit.
60971         * lib/canonicalize.c (canonicalize_filename_mode):
60972         Use mreadlink_with_size, not xreadlink_with_size.
60973
60974 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
60975
60976         Detect porting problems to FreeBSD/arm, which has time_t wider than
60977         long int.  Original problem reported for GNU diff by Xin Li in
60978         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
60979         * modules/getdate (Depends-on): Add intprops, verify.
60980         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
60981         is an integer type no wider than long int.
60982
60983 2007-06-18  Jim Meyering  <jim@meyering.net>
60984
60985         New module: mreadlink-with-size.
60986         * MODULES.html.sh: Add mreadlink-with-size.
60987         * modules/mreadlink-with-size: New module
60988         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
60989         not xreadlink-with-size.
60990         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
60991
60992 2007-06-16  Bruno Haible  <bruno@clisp.org>
60993
60994         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
60995         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
60996         Reported by Gary V. Vaughan <gary@gnu.org>.
60997
60998 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
60999
61000         Revamp lchown so that it lives in unistd.h where it belongs.
61001         * lib/lchown.h: Remove.
61002         * lib/dirchownmod.c: Don't include lib/lchown.h.
61003         * lib/fchownat.c: Likewise.
61004         * lib/openat.c: Likewise.
61005         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
61006         does not follow symlinks.
61007         (EOPNOTSUPP): Define if not defined.
61008         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
61009         is defined to 0.
61010         (lchown): New decl.
61011         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
61012         Do not check for lchown decl.
61013         Set REPLACE_LCHOWN.
61014         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
61015         REPLACE_LCHOWN.
61016         * modules/chown: Make it clear it follows symlinks.
61017         * modules/lchown: Make it clear it doesn't follow symlinks.
61018         (Files): Remove lib/lchown.h
61019         (Depends-on): Add unistd.
61020         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
61021         (Include): Include <unistd.h>, not "lchown.h".
61022         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
61023         REPLACE_LCHOWN.
61024
61025 2007-06-15  Jim Meyering  <jim@meyering.net>
61026
61027         Change license (GPL to LGPL) of fsusage and dependents.
61028         * modules/fsusage (License): Change to LGPL.
61029         * modules/full-read (License): Likewise.
61030         * modules/full-write (License): Likewise.
61031         * modules/safe-read (License): Likewise.
61032         * modules/safe-write (License): Likewise.
61033
61034 2007-06-14  Ben Pfaff  <blp@gnu.org>
61035
61036         Missing part of allocsa -> malloca transition.
61037         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
61038         gl_MALLOCA.
61039
61040 2007-06-12  Bruno Haible  <bruno@clisp.org>
61041
61042         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
61043         to ia64, x86_64, i386.
61044         Reported by Eric Blake.
61045
61046 2007-06-12  Bruno Haible  <bruno@clisp.org>
61047
61048         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
61049         cross-compiling to x86_64.
61050
61051 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
61052
61053         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
61054         glitch reported by Ralf Wildenhues in
61055         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
61056
61057         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
61058         Vin Shelton.
61059
61060 2007-06-11  Bruno Haible  <bruno@clisp.org>
61061
61062         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
61063         replacement string.
61064         Reported by Eric Blake.
61065
61066 2007-06-10  Bruno Haible  <bruno@clisp.org>
61067
61068         Prepare vasnprintf code for use with Unicode strings.
61069         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
61070         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
61071         TYPE_U32_STRING.
61072         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
61073         a_u32_string variants.
61074         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
61075         * lib/printf-args.c: Don't include config.h and the specification
61076         header if PRINTF_FETCHARGS is already defined.
61077         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
61078         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
61079         TYPE_U16_STRING, TYPE_U32_STRING.
61080         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
61081         u16_directive, u16_directives, u32_directive, u32_directives): New
61082         types.
61083         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
61084         New declarations.
61085         * lib/printf-parse.c: Don't include config.h and the specification
61086         header if PRINTF_PARSE is already defined. Eliminate the set of
61087         parameters for WIDE_CHAR_VERSION; the user of this file must provide
61088         them now. Include c-ctype.h.
61089         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
61090         directive and CHAR_T_ONLY_ASCII.
61091         * lib/vasnprintf.c: Don't include config.h and the specification header
61092         if VASNPRINTF is already defined.
61093         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
61094         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
61095         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
61096         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
61097         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
61098         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
61099         code accordingly.
61100         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
61101         pad_ourselves also in this case, with the 'c' and 's' directives, and
61102         with a different notion of "width".
61103         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
61104
61105 2007-06-10  Bruno Haible  <bruno@clisp.org>
61106
61107         * modules/unistr/u32-mbsnlen: New file.
61108         * lib/unistr/u32-mbsnlen.c: New file.
61109
61110         * modules/unistr/u16-mbsnlen: New file.
61111         * lib/unistr/u16-mbsnlen.c: New file.
61112
61113         * modules/unistr/u8-mbsnlen: New file.
61114         * lib/unistr/u8-mbsnlen.c: New file.
61115
61116         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
61117         declarations.
61118
61119 2007-06-10  Bruno Haible  <bruno@clisp.org>
61120
61121         * lib/string_.h (mbsnlen): New declaration.
61122         * lib/mbsnlen.c: New file.
61123         * m4/mbsnlen.m4: New file.
61124         * modules/mbsnlen: New file.
61125         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
61126         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
61127         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
61128
61129 2007-06-10  Bruno Haible  <bruno@clisp.org>
61130
61131         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
61132
61133 2007-06-10  Bruno Haible  <bruno@clisp.org>
61134
61135         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
61136         * lib/mbuiter.h: Likewise.
61137
61138 2007-06-10  Bruno Haible  <bruno@clisp.org>
61139
61140         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
61141         declaration.
61142
61143 2007-06-10  Karl Berry  <karl@gnu.org>
61144
61145         * config/srclist.txt: remove gettext entries, Bruno prefers
61146         to update individually.
61147
61148 2007-06-10  Bruno Haible  <bruno@clisp.org>
61149
61150         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
61151         'maxlen'. Ensure only length + width bytes are allocated, not
61152         length + 1 + width.
61153
61154 2007-06-09  Bruno Haible  <bruno@clisp.org>
61155
61156         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
61157         (CHAR_T): Remove macro.
61158         (VASNPRINTF): Update.
61159
61160 2007-06-09  Bruno Haible  <bruno@clisp.org>
61161
61162         * MODULES.html.sh (Unicode string functions): Add the new modules.
61163
61164         * modules/uniconv/u32-conv-to-enc: New file.
61165         * lib/uniconv/u32-conv-to-enc.c: New file.
61166         * modules/uniconv/u32-conv-to-enc-tests: New file.
61167         * tests/uniconv/test-u32-conv-to-enc.c: New file.
61168
61169         * modules/uniconv/u16-conv-to-enc: New file.
61170         * lib/uniconv/u16-conv-to-enc.c: New file.
61171         * lib/uniconv/u-conv-to-enc.h: New file.
61172         * modules/uniconv/u16-conv-to-enc-tests: New file.
61173         * tests/uniconv/test-u16-conv-to-enc.c: New file.
61174
61175         * modules/uniconv/u8-conv-to-enc: New file.
61176         * lib/uniconv/u8-conv-to-enc.c: New file.
61177         * modules/uniconv/u8-conv-to-enc-tests: New file.
61178         * tests/uniconv/test-u8-conv-to-enc.c: New file.
61179
61180         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
61181         u32_conv_to_encoding): New declarations.
61182
61183 2007-06-09  Bruno Haible  <bruno@clisp.org>
61184
61185         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
61186
61187 2007-06-09  Bruno Haible  <bruno@clisp.org>
61188
61189         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
61190         * modules/malloca: Renamed from modules/allocsa, updated.
61191         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
61192         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
61193         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
61194         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
61195         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
61196         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
61197         * modules/xmalloca: Renamed from modules/xallocsa, updated.
61198         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
61199         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
61200         * modules/c-strcasestr (Depends-on): Update.
61201         * lib/c-strcasestr.c: Update.
61202         * modules/c-strstr (Depends-on): Update.
61203         * lib/c-strstr.c: Update.
61204         * modules/canonicalize-lgpl (Depends-on): Update.
61205         * lib/canonicalize-lgpl.c: Update.
61206         * modules/clean-temp (Depends-on): Update.
61207         * lib/clean-temp.c: Update.
61208         * modules/csharpcomp (Depends-on): Update.
61209         * lib/csharpcomp.c: Update.
61210         * modules/csharpexec (Depends-on): Update.
61211         * lib/csharpexec.c: Update.
61212         * modules/javacomp (Depends-on): Update.
61213         * lib/javacomp.c: Update.
61214         * modules/javaexec (Depends-on): Update.
61215         * lib/javaexec.c: Update.
61216         * modules/mbscasestr (Depends-on): Update.
61217         * lib/mbscasestr.c: Update.
61218         * modules/mbsstr (Depends-on): Update.
61219         * lib/mbsstr.c: Update.
61220         * modules/setenv (Depends-on): Update.
61221         * lib/setenv.c: Update.
61222         * modules/strcasestr (Depends-on): Update.
61223         * lib/strcasestr.c: Update.
61224         * modules/striconveha (Depends-on): Update.
61225         * lib/striconveha.c: Update.
61226         * modules/relocatable-prog-wrapper (Files): Update.
61227         * lib/relocwrapper.c: Update.
61228         * build-aux/install-reloc: Update.
61229         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
61230
61231 2007-06-08  Bruno Haible  <bruno@clisp.org>
61232
61233         Port to uClibc.
61234         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
61235         * lib/fpurge.c (fpurge): Likewise.
61236         * lib/freading.c (freading): Likewise.
61237         * lib/fseeko.c (rpl_fseeko): Likewise.
61238         * lib/fseterr.c (fseterr): Likewise.
61239         * lib/fwriting.c (fwriting): Likewise.
61240         * tests/test-fflush.c (main): Avoid a failure on uClibc.
61241
61242 2007-06-08  Bruno Haible  <bruno@clisp.org>
61243
61244         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
61245         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
61246         * modules/gettext (Files): Add m4/intlmacosx.m4.
61247
61248 2007-06-07  Bruno Haible  <bruno@clisp.org>
61249
61250         * modules/localename-tests: New file.
61251         * tests/test-localename.c: New file.
61252
61253         New module 'localename'.
61254         * lib/localename.h: New file.
61255         * lib/localename.c: New file, from GNU gettext.
61256         * m4/localename.m4: New file.
61257         * modules/localename: New file.
61258
61259 2007-06-07  Bruno Haible  <bruno@clisp.org>
61260
61261         Work around the lack of <wchar.h> on some builds of uClibc.
61262         * doc/headers/wchar.texi: Update.
61263         * lib/wchar_.h: Include <wchar.h> only if it exists.
61264         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
61265         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
61266         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
61267         doesn't exist.
61268         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
61269         * modules/mbfile (Depends-on): Add wchar.
61270         * modules/mbiter (Depends-on): Likewise.
61271         * modules/mbuiter (Depends-on): Likewise.
61272         Reported by Simon Josefsson.
61273
61274 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
61275
61276         Work around problem reported by Steven M. Schweda in
61277         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
61278         Tru64 5.1B with the Compaq compiler environment installed declares
61279         an 'isblank' function but does not define it in the C library.
61280         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
61281         * lib/regex_internal.h (isblank): Likewise.
61282         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
61283         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
61284
61285 2007-06-05  Bruno Haible  <bruno@clisp.org>
61286
61287         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
61288         ia64.
61289         * modules/printf-safe: New file.
61290         * modules/fprintf-posix (Depends-on): Add printf-safe.
61291         * modules/printf-posix (Depends-on): Likewise.
61292         * modules/snprintf-posix (Depends-on): Likewise.
61293         * modules/sprintf-posix (Depends-on): Likewise.
61294         * modules/vasnprintf-posix (Depends-on): Likewise.
61295         * modules/vasprintf-posix (Depends-on): Likewise.
61296         * modules/vfprintf-posix (Depends-on): Likewise.
61297         * modules/vprintf-posix (Depends-on): Likewise.
61298         * modules/vsnprintf-posix (Depends-on): Likewise.
61299         * modules/vsprintf-posix (Depends-on): Likewise.
61300         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
61301         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
61302         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
61303         "no" on i386, x86_64, ia64.
61304         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
61305         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
61306         on i386, x86_64, ia64.
61307         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
61308         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
61309         on i386, x86_64, ia64.
61310         * tests/test-vasnprintf-posix.c: Include float.h.
61311         (LDBL80_WORDS): New macro.
61312         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
61313         on i386, x86_64, ia64.
61314         * tests/test-vasprintf-posix.c: Include float.h.
61315         (LDBL80_WORDS): New macro.
61316         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
61317         on i386, x86_64, ia64.
61318         * tests/test-snprintf-posix.c: Include float.h.
61319         * tests/test-sprintf-posix.c: Likewise.
61320         * tests/test-vsnprintf-posix.c: Likewise.
61321         * tests/test-vsprintf-posix.c: Likewise.
61322
61323 2007-06-05  Bruno Haible  <bruno@clisp.org>
61324
61325         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
61326         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
61327         non-IEEE numbers on i386, x86_64, ia64.
61328         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
61329         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
61330         * tests/test-isnanl.h: Include float.h.
61331         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
61332
61333 2007-06-05  Bruno Haible  <bruno@clisp.org>
61334
61335         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
61336         also the %a / %A. Handle the %a / %A code before this extra handling.
61337
61338 2007-06-05  Bruno Haible  <bruno@clisp.org>
61339
61340         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
61341         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
61342
61343 2007-06-05  Bruno Haible  <bruno@clisp.org>
61344
61345         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
61346         typo in variable name.
61347
61348 2007-06-05  Eric Blake  <ebb9@byu.net>
61349
61350         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
61351         Reported by Simon Josefsson.
61352
61353 2007-06-04  Bruno Haible  <bruno@clisp.org>
61354
61355         Avoid test failures on some PowerPC platforms.
61356         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
61357         Define differently for PowerPC.
61358         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
61359         Reported by Gary V. Vaughan <gary@gnu.org>.
61360
61361 2007-06-02  Bruno Haible  <bruno@clisp.org>
61362
61363         Fix test-stdint failure on FreeBSD/ia64.
61364         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
61365         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
61366         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
61367         * doc/headers/stdint.texi: Update.
61368
61369 2007-06-01  Bruno Haible  <bruno@clisp.org>
61370
61371         * tests/test-binary-io.c (main): Pass a third argument to open().
61372         Reported by Gary V. Vaughan <gary@gnu.org>.
61373
61374 2007-06-01  Bruno Haible  <bruno@clisp.org>
61375
61376         * doc/functions/frexpl.texi: Update for mingw.
61377
61378 2007-06-01  Bruno Haible  <bruno@clisp.org>
61379
61380         * tests/test-lseek.c (main): Disable test of errno for invalid third
61381         argument.
61382         * doc/functions/lseek.texi: Update.
61383         Reported by Gary V. Vaughan <gary@gnu.org>.
61384
61385 2007-05-28  Bruno Haible  <bruno@clisp.org>
61386
61387         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
61388
61389 2007-05-31  Eric Blake  <ebb9@byu.net>
61390
61391         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
61392         cross compiling.
61393
61394 2007-05-30  Eric Blake  <ebb9@byu.net>
61395         and Bruno Haible  <bruno@clisp.org>
61396
61397         Work around mingw test failures exposed by m4-1.4.9b.
61398         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
61399         * tests/test-unistd.c: Disable uid_t and git_t tests for the
61400         moment.
61401
61402 2007-05-30  Bruno Haible  <bruno@clisp.org>
61403
61404         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
61405         assuming that they are closed. Needed on HP-UX 11.
61406
61407 2007-05-29  Bruno Haible  <bruno@clisp.org>
61408
61409         Fix a problem with #include_next.
61410         * lib/dirent_.h: Split the double-inclusion guard.
61411         * lib/fcntl_.h: Likewise.
61412         * lib/float_.h: Likewise.
61413         * lib/iconv_.h: Likewise.
61414         * lib/inttypes_.h: Likewise.
61415         * lib/locale_.h: Likewise.
61416         * lib/math_.h: Likewise.
61417         * lib/netinet_in_.h: Likewise.
61418         * lib/search_.h: Likewise.
61419         * lib/signal_.h: Likewise.
61420         * lib/stdint_.h: Likewise.
61421         * lib/stdio_.h: Likewise.
61422         * lib/stdlib_.h: Likewise.
61423         * lib/string_.h: Likewise.
61424         * lib/sys_select_.h: Likewise.
61425         * lib/sys_socket_.h: Likewise.
61426         * lib/sys_stat_.h: Likewise.
61427         * lib/sys_time_.h: Likewise.
61428         * lib/sysexits_.h: Likewise.
61429         * lib/time_.h: Likewise.
61430         * lib/unistd_.h: Likewise.
61431         * lib/wchar_.h: Likewise.
61432         * lib/wctype_.h: Likewise.
61433
61434 2007-05-29  Bruno Haible  <bruno@clisp.org>
61435
61436         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
61437         for the moment.
61438
61439 2007-05-29  Bruno Haible  <bruno@clisp.org>
61440
61441         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
61442         invocation.
61443         Reported by Eric Blake.
61444
61445 2007-05-29  Bruno Haible  <bruno@clisp.org>
61446
61447         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
61448         compiling case.
61449
61450 2007-05-29  Eric Blake  <ebb9@byu.net>
61451             Bruno Haible  <bruno@clisp.org>
61452
61453         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
61454         cross compiles.
61455
61456 2007-05-28  Eric Blake  <ebb9@byu.net>
61457
61458         * modules/closein-tests (test_closein_LDADD): Support test on
61459         cygwin with libtool.
61460
61461 2007-05-28  Bruno Haible  <bruno@clisp.org>
61462
61463         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
61464         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
61465         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
61466         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
61467         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
61468         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
61469         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
61470         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
61471         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
61472
61473 2007-05-28  Eric Blake  <ebb9@byu.net>
61474
61475         Unconditionally include <config.h> in unit tests.
61476         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
61477         * tests/test-allocsa.c, tests/test-arcfour.c,
61478         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
61479         tests/test-array_list.c, tests/test-array_oset.c,
61480         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
61481         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
61482         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
61483         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
61484         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
61485         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
61486         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
61487         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
61488         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
61489         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
61490         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
61491         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
61492         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
61493         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
61494         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
61495         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
61496         test-md5.c, test-memmem.c, test-printf-posix.c,
61497         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
61498         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
61499         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
61500         test-strcasestr.c, test-striconv.c, test-striconveh.c,
61501         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
61502         test-vasnprintf-posix2.c, test-vasnprintf.c,
61503         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
61504         test-vfprintf-posix.c, test-vprintf-posix.c,
61505         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
61506         test-xvasprintf.c: Likewise.
61507
61508 2007-05-28  Bruno Haible  <bruno@clisp.org>
61509
61510         * gnulib-tool (func_import): Remember the --with-tests command-line
61511         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
61512         Reported by Eric Blake.
61513
61514 2007-05-28  Bruno Haible  <bruno@clisp.org>
61515
61516         * modules/ftell-tests: New file.
61517         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
61518         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
61519
61520         * lib/ftell.c: New file.
61521         * modules/ftell: New file.
61522         * m4/ftell.m4: New file.
61523         * doc/functions/ftell.texi: Update.
61524         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
61525         REPLACE_FTELL.
61526         * lib/stdio_.h (rpl_ftell): New declaration.
61527         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
61528         REPLACE_FTELL.
61529
61530 2007-05-28  Eric Blake  <ebb9@byu.net>
61531
61532         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
61533
61534 2007-05-28  Bruno Haible  <bruno@clisp.org>
61535
61536         * modules/fseek-tests: New file.
61537         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
61538         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
61539
61540         * lib/fseek.c: New file.
61541         * modules/fseek: New file.
61542         * m4/fseek.m4: New file.
61543         * doc/functions/fseek.texi: Update.
61544         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
61545         REPLACE_FSEEK.
61546         * lib/stdio_.h (rpl_fseek): New declaration.
61547         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
61548         REPLACE_FSEEK.
61549
61550 2007-05-28  Bruno Haible  <bruno@clisp.org>
61551
61552         * lib/stdio_.h (fflush): More comments.
61553
61554 2007-05-28  Bruno Haible  <bruno@clisp.org>
61555
61556         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
61557         runtime test.
61558
61559 2007-05-28  Eric Blake  <ebb9@byu.net>
61560
61561         Improve lseek module.
61562         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
61563         * lib/unistd_.h (lseek): Scale back link warning message.
61564         * tests/test-lseek.c: Beef up test.
61565         * tests/test-lseek.sh: Exercise more facets of lseek.
61566         Reported by Bruno Haible.
61567
61568 2007-05-28  Bruno Haible  <bruno@clisp.org>
61569
61570         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
61571         to define.
61572
61573 2007-05-27  Bruno Haible  <bruno@clisp.org>
61574
61575         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
61576
61577 2007-05-27  Bruno Haible  <bruno@clisp.org>
61578
61579         * modules/openmp: New file.
61580         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
61581         Noah Misch.
61582
61583 2007-05-26  Bruno Haible  <bruno@clisp.org>
61584
61585         * modules/chdir-long (Depends-on): Add fchdir.
61586         * modules/chdir-safer (Depends-on): Likewise.
61587         * modules/fts (Depends-on): Likewise.
61588         * modules/fts-lgpl (Depends-on): Likewise.
61589         * modules/openat (Depends-on): Likewise.
61590         * modules/savewd (Depends-on): Likewise.
61591
61592 2007-05-24  Eric Blake  <ebb9@byu.net>
61593
61594         Fix lseek on mingw.
61595         * modules/lseek: New module.
61596         * m4/lseek.m4: New file.
61597         * lib/lseek.c: New file.
61598         * modules/lseek-tests: New file.
61599         * tests/test-lseek.c: New file.
61600         * tests/test-lseek.sh: New file.
61601         * MODULES.html.sh: Document lseek module.
61602         * modules/fflush (Depends-on): Add lseek, fseeko.
61603         * modules/fseeko (Depends-on): Likewise.
61604         * modules/ftello (Depends-on): Likewise.
61605         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
61606         broken.
61607         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
61608         broken.
61609         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
61610         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
61611         * lib/ftello.c (rpl_ftello): Likewise.
61612         * tests/test-fseeko.c (main): Test this.
61613         * tests/test-fseeko.sh: Likewise.
61614         * tests/test-ftello.c (main): Likewise.
61615         * tests/test-ftello.sh: Likewise.
61616         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
61617         implies replacing fseek.
61618         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
61619         HAVE_FTELLO.
61620         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
61621         * modules/unistd (Makefile.am): Likewise.
61622         * lib/unistd_.h (lseek): Declare a replacement.
61623         * doc/functions/lseek.texi (lseek): Document this fix.
61624         * doc/functions/fseek.texi (fseek): Likewise.
61625         * doc/functions/ftell.texi (ftell): Likewise.
61626
61627 2007-05-24  Bruno Haible  <bruno@clisp.org>
61628
61629         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
61630         in the printed representation of a NaN.
61631         * tests/test-vasprintf-posix.c (test_function): Likewise.
61632         * tests/test-snprintf-posix.h (test_function): Likewise.
61633         * tests/test-sprintf-posix.h (test_function): Likewise.
61634         Reported by Eric Blake.
61635
61636 2007-05-23  Eric Blake  <ebb9@byu.net>
61637
61638         Fix fseeko/ftello on cygwin 1.5.24.
61639         * doc/functions/fseeko.texi (fseeko): Document the fix.
61640         * doc/functions/ftello.texi (ftello): Document the fix.
61641         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
61642         * doc/functions/stdout.text (stdout): New file.
61643         * doc/functions/stderr.text (stderr): New file.
61644         * doc/gnulib.texi (Function Substitutes): Use new files.
61645         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
61646         prior to 1.7.0.
61647         * tests/test-ftello.c (main): Likewise for ftello.
61648         * tests/test-fseeko.sh: New file.
61649         * tests/test-ftello.sh: New file.
61650         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
61651         with seekable stdin.
61652         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
61653         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
61654         (gl_REPLACE_FSEEKO): New macro.
61655         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
61656         * modules/fseeko (Files): Distribute fseeko.c.
61657         * modules/ftello (Files): Distribute ftello.c.
61658         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
61659         mode.
61660         * lib/ftello.c (rpl_ftello): New file.
61661         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
61662         fseeko, ftello.
61663         (gl_STDIN_LARGE_OFFSET): New macro.
61664         * modules/stdio (Makefile.am): Perform the replacement.
61665         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
61666
61667 2007-05-23  Bruno Haible  <bruno@clisp.org>
61668
61669         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
61670         GNULIB_POSIXCHECK is defined.
61671
61672 2007-05-21  Bruno Haible  <bruno@clisp.org>
61673
61674         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
61675         Check also the output for NaN arguments. When cross-compiling, guess
61676         no on IRIX.
61677         * lib/vasnprintf.c: Update comments.
61678         * tests/test-vasnprintf-posix.c (strisnan): New function.
61679         (test_function): Use it.
61680         * tests/test-vasprintf-posix.c (strisnan): New function.
61681         (test_function): Use it.
61682         * tests/test-snprintf-posix.h (strisnan): New function.
61683         (test_function): Use it.
61684         * tests/test-sprintf-posix.h (strisnan): New function.
61685         (test_function): Use it.
61686         Reported by Eric Blake.
61687
61688 2007-05-20  Bruno Haible  <bruno@clisp.org>
61689
61690         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
61691         numbers that fails on BeOS.
61692         * doc/functions/frexpl.texi: Update.
61693
61694 2007-05-20  Jim Meyering  <jim@meyering.net>
61695
61696         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
61697         forced upon us by glibc-2.6.
61698
61699 2007-05-20  Bruno Haible  <bruno@clisp.org>
61700
61701         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
61702         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
61703         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
61704         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
61705         NEED_PRINTF_INFINITE.
61706         (is_infinitel): New function.
61707         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
61708         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
61709         gl_PREREQ_VASNPRINTF_INFINITE.
61710         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
61711         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61712         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
61713         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
61714         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
61715         gl_PREREQ_VASNPRINTF_INFINITE.
61716         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61717         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61718         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61719         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61720         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61721         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61722         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61723         * doc/functions/fprintf.texi: Update.
61724         * doc/functions/printf.texi: Update.
61725         * doc/functions/snprintf.texi: Update.
61726         * doc/functions/sprintf.texi: Update.
61727         * doc/functions/vfprintf.texi: Update.
61728         * doc/functions/vprintf.texi: Update.
61729         * doc/functions/vsnprintf.texi: Update.
61730         * doc/functions/vsprintf.texi: Update.
61731
61732 2007-05-20  Bruno Haible  <bruno@clisp.org>
61733
61734         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
61735         was not found in libc.
61736         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
61737
61738 2007-05-20  Bruno Haible  <bruno@clisp.org>
61739
61740         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
61741         printed as "-nan" instead of "nan".
61742         * tests/test-vasprintf-posix.c (test_function): Likewise.
61743         * tests/test-snprintf-posix.h (test_function): Likewise.
61744         * tests/test-sprintf-posix.h (test_function): Likewise.
61745         Needed for HP-UX 11.
61746
61747 2007-05-20  Jim Meyering  <jim@meyering.net>
61748
61749         Fix buggy test for the fchownat-deref bug.
61750         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
61751         symlink required for the run-test.  Without it, this test would
61752         always declare that fchownat doesn't work, and client code would
61753         unnecessarily use the replacement function with fixed libc.
61754         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
61755         Reported by Greg Schafer.
61756
61757 2007-05-19  Bruno Haible  <bruno@clisp.org>
61758
61759         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
61760         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
61761         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
61762         Needed for IRIX 6.5 and Solaris 2.5.1.
61763
61764 2007-05-19  Bruno Haible  <bruno@clisp.org>
61765
61766         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
61767         (test_function): Skip tests involving -0.0 on platforms where
61768         -0.0 = 0.0.
61769         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
61770         (test_function): Skip tests involving -0.0 on platforms where
61771         -0.0 = 0.0.
61772         * tests/test-snprintf-posix.h (have_minus_zero): New function.
61773         (test_function): Skip tests involving -0.0 on platforms where
61774         -0.0 = 0.0.
61775         * tests/test-sprintf-posix.h (have_minus_zero): New function.
61776         (test_function): Skip tests involving -0.0 on platforms where
61777         -0.0 = 0.0.
61778         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
61779         tests.
61780         * tests/test-printf-posix.h (test_function): Likewise.
61781         * tests/test-printf-posix.output: Remove all -0.0 related results.
61782         Needed for IRIX 6.5.
61783
61784 2007-05-19  Bruno Haible  <bruno@clisp.org>
61785
61786         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
61787         printed as "nan0x7fffffff" instead of "nan".
61788         * tests/test-vasprintf-posix.c (test_function): Likewise.
61789         * tests/test-snprintf-posix.h (test_function): Likewise.
61790         * tests/test-sprintf-posix.h (test_function): Likewise.
61791         * tests/test-fprintf-posix.h (NaN): Remove macro.
61792         (test_function): Remove all NaN related tests.
61793         * tests/test-printf-posix.h (NaN): Remove macro.
61794         (test_function): Remove all NaN related tests.
61795         * tests/test-printf-posix.output: Remove all NaN related results.
61796         Needed for IRIX 6.5.
61797
61798 2007-05-19  Bruno Haible  <bruno@clisp.org>
61799
61800         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
61801         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
61802
61803 2007-05-19  Bruno Haible  <bruno@clisp.org>
61804
61805         * lib/float_.h: New file.
61806         * m4/float_h.m4: New file.
61807         * modules/float: New file.
61808         * modules/isnanl (Dependencies): Add float.
61809         * modules/isnanl-nolibm (Dependencies): Likewise.
61810         * modules/mathl (Dependencies): Likewise.
61811         * modules/printf-frexpl (Dependencies): Likewise.
61812         * modules/signbit (Dependencies): Likewise.
61813         * modules/vasnprintf (Dependencies): Likewise.
61814         * doc/headers/float.texi: Update.
61815
61816 2007-05-19  Jim Meyering  <jim@meyering.net>
61817
61818         * lib/utimens.c (gl_futimens): Rename from futimens,
61819         now that glibc-2.6 declares futimens.
61820         * lib/utimens.h: Likewise.
61821
61822 2007-05-19  Bruno Haible  <bruno@clisp.org>
61823
61824         Avoid test failures on mingw.
61825         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
61826         * tests/test-printf-posix.sh: Likewise.
61827         * tests/test-vfprintf-posix.sh: Likewise.
61828         * tests/test-vprintf-posix.sh: Likewise.
61829
61830 2007-05-19  Bruno Haible  <bruno@clisp.org>
61831
61832         Fix *printf result for NaN, Inf, -0.0 on mingw.
61833         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
61834         * lib/vasnprintf.c: Include math.h and isnan.h.
61835         (is_infinite_or_zero): New function.
61836         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
61837         values in the %f, %F, %e, %E, %g, %G directives.
61838         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
61839         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61840         gl_PRINTF_INFINITE and test its result. Invoke
61841         gl_PREREQ_VASNPRINTF_INFINITE.
61842         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61843         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61844         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61845         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61846         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61847         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61848         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61849         * doc/functions/fprintf.texi: Update.
61850         * doc/functions/printf.texi: Update.
61851         * doc/functions/snprintf.texi: Update.
61852         * doc/functions/sprintf.texi: Update.
61853         * doc/functions/vfprintf.texi: Update.
61854         * doc/functions/vprintf.texi: Update.
61855         * doc/functions/vsnprintf.texi: Update.
61856         * doc/functions/vsprintf.texi: Update.
61857
61858 2007-05-19  Bruno Haible  <bruno@clisp.org>
61859
61860         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
61861         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
61862         Instead of multiplying with 10^k, set extra_zeroes to k.
61863         (scale10_round_long_double): Remove function.
61864
61865 2007-05-18  Bruno Haible  <bruno@clisp.org>
61866
61867         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
61868         introduced on 2007-05-06.
61869
61870 2007-05-18  Bruno Haible  <bruno@clisp.org>
61871
61872         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
61873         %g directives.
61874         * tests/test-vasprintf-posix.c (test_function): Likewise.
61875         * tests/test-snprintf-posix.h (test_function): Likewise.
61876         * tests/test-sprintf-posix.h (test_function): Likewise.
61877
61878 2007-05-18  Bruno Haible  <bruno@clisp.org>
61879
61880         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
61881         (strmatch): New function.
61882         (test_function): Test the %f directive on numbers of various exponents.
61883         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
61884         (strmatch): New function.
61885         (test_function): Test the %f directive on numbers of various exponents.
61886         * tests/test-snprintf-posix.h (strmatch): New function.
61887         (test_function): Test the %f directive on numbers of various exponents.
61888         * tests/test-sprintf-posix.h (strmatch): New function.
61889         (test_function): Test the %f directive on numbers of various exponents.
61890         * tests/test-snprintf-posix.c (SIZEOF): New macro.
61891         * tests/test-sprintf-posix.c (SIZEOF): New macro.
61892         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
61893         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
61894
61895 2007-05-18  Bruno Haible  <bruno@clisp.org>
61896
61897         Add support for 'long double' number output.
61898         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
61899         * lib/vasnprintf.c: Include math.h and float+.h.
61900         (mp_limb_t): New type.
61901         (GMP_LIMB_BITS): New macro.
61902         (mp_twolimb_t): New type.
61903         (GMP_TWOLIMB_BITS): New macro.
61904         (mpn_t): New type.
61905         (multiply, divide, convert_to_decimal, decode_long_double,
61906         scale10_round_long_double, scale10_round_decimal_long_double,
61907         floorlog10l): New functions.
61908         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
61909         for the %f, %F, %e, %E, %g, %G directives.
61910         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
61911         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61912         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
61913         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
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         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
61922         * modules/snprintf-posix (Depends-on): Likewise.
61923         * modules/sprintf-posix (Depends-on): Likewise.
61924         * modules/vasnprintf-posix (Depends-on): Likewise.
61925         * modules/vasprintf-posix (Depends-on): Likewise.
61926         * modules/vfprintf-posix (Depends-on): Likewise.
61927         * modules/vsnprintf-posix (Depends-on): Likewise.
61928         * modules/vsprintf-posix (Depends-on): Likewise.
61929         * modules/vasnprintf (Files): Add lib/float+.h.
61930         * doc/functions/fprintf.texi: Update.
61931         * doc/functions/printf.texi: Update.
61932         * doc/functions/snprintf.texi: Update.
61933         * doc/functions/sprintf.texi: Update.
61934         * doc/functions/vfprintf.texi: Update.
61935         * doc/functions/vprintf.texi: Update.
61936         * doc/functions/vsnprintf.texi: Update.
61937         * doc/functions/vsprintf.texi: Update.
61938
61939 2007-05-18  Bruno Haible  <bruno@clisp.org>
61940
61941         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
61942
61943 2007-05-18  Bruno Haible  <bruno@clisp.org>
61944
61945         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
61946         for printing 64-bit integers. Needed for mingw.
61947
61948 2007-05-18  Bruno Haible  <bruno@clisp.org>
61949
61950         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
61951         gl_FUNC_FREXPL_WORKS.
61952         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
61953
61954 2007-05-18  Bruno Haible  <bruno@clisp.org>
61955
61956         * modules/frexpl-nolibm-tests: New file.
61957
61958         * modules/frexpl-nolibm: New file.
61959         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
61960
61961 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
61962
61963         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
61964         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
61965         GCC 4.2, which otherwise issues a lot of warnings.
61966         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
61967         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
61968         Likewise.
61969         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
61970         * modules/iconv_open (iconv.h): Likewise.
61971         * modules/locale (locale.h): Likewise.
61972         * modules/netinet_in (netinet/in.h): Likewise.
61973         * modules/sys_select (sys_select.h): Likewise.
61974         * modules/sys_socket (sys/socket.h): Likewise.
61975         * modules/sys_stat (sys/stat.h): Likewise.
61976         * modules/sysexits (sysexits.h): Likewise.
61977         * modules/unistd (unistd.h): Likewise.
61978
61979 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61980
61981         * modules/closein-tests (Makefile.am): Distribute
61982         `test-closein.sh'.
61983
61984 2007-05-17  Bruno Haible  <bruno@clisp.org>
61985
61986         * tests/test-printf-posix.output: Renamed from
61987         tests/test-fprintf-posix.out.
61988         * modules/fprintf-posix-tests: Update.
61989         * modules/printf-posix-tests: Update.
61990         * modules/vfprintf-posix-tests: Update.
61991         * modules/vprintf-posix-tests: Update.
61992         * tests/test-fprintf-posix.sh: Update.
61993         * tests/test-printf-posix.sh: Update.
61994         * tests/test-vfprintf-posix.sh: Update.
61995         * tests/test-vprintf-posix.sh: Update.
61996         Reported by Ralf Wildenhues.
61997
61998 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
61999
62000         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
62001         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
62002         GCC 4.2, which otherwise issues a lot of warnings.
62003         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
62004         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
62005         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
62006         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
62007         it should no longer be needed.
62008         * lib/string_.h: Likewise.
62009         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
62010         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
62011         * modules/inttypes (inttypes.h): Likewise.
62012         * modules/math (math.h): Likewise.
62013         * modules/search (search.h): Likewise.
62014         * modules/signal (signal.h): Likewise.
62015         * modules/stdint (stdint.h): Likewise.
62016         * modules/stdio (stdio.h): Likewise.
62017         * modules/stdlib (stdlib.h): Likewise.
62018         * modules/string (string.h): Likewise.
62019         * modules/sys_time (sys/time.h): Likewise.
62020         * modules/time (time.h): Likewise.
62021         * modules/wchar (wchar.h): Likewise.
62022         * modules/wctype (wtype.h): Likewise.
62023
62024 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
62025
62026         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
62027
62028 2007-05-13  Bruno Haible  <bruno@clisp.org>
62029
62030         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
62031         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
62032         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
62033         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
62034         (gl_PREREQ_STRTOK_R): Don't require it here.
62035
62036 2007-05-13  Bruno Haible  <bruno@clisp.org>
62037
62038         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
62039         when used in C++ mode.
62040
62041 2007-05-12  Bruno Haible  <bruno@clisp.org>
62042
62043         * lib/linebuffer.h: Tweak doc.
62044         * lib/linebuffer.c: Likewise.
62045
62046 2007-05-12  James Youngman  <jay@gnu.org>
62047
62048         * lib/linebuffer.c (readlinebuffer_delim): New function,
62049         like readlinebuffer, but use a caller-specified delimiter.
62050         (readlinebuffer): Just call readlinebuffer_delim with '\n'
62051         as the delimiter.
62052         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
62053
62054 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
62055
62056         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
62057         * modules/openat (Files): Remove openat-die.c.
62058         (Depends-on): Add openat-die.
62059         * modules/openat-die: New module.
62060
62061 2007-05-06  Bruno Haible  <bruno@clisp.org>
62062
62063         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
62064         Update with info about Cygwin.
62065         * doc/functions/fprintf.texi: Update.
62066         * doc/functions/printf.texi: Update.
62067         * doc/functions/snprintf.texi: Update.
62068         * doc/functions/sprintf.texi: Update.
62069         * doc/functions/vfprintf.texi: Update.
62070         * doc/functions/vprintf.texi: Update.
62071         * doc/functions/vsnprintf.texi: Update.
62072         * doc/functions/vsprintf.texi: Update.
62073         Reported by Eric Blake.
62074
62075 2007-05-06  Bruno Haible  <bruno@clisp.org>
62076
62077         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
62078         padding ourselves for the floating-point directives.
62079         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
62080         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
62081         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
62082         gl_PRINTF_FLAG_ZERO and test its result. Invoke
62083         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
62084         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62085         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
62086         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62087         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62088         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62089         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62090         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62091         * tests/test-snprintf-posix.h (test_function): Also check the width
62092         and some flags in the %f directive.
62093         * tests/test-sprintf-posix.h (test_function): Likewise.
62094         * tests/test-vasnprintf-posix.c (test_function): Likewise.
62095         * tests/test-vasprintf-posix.c (test_function): Likewise.
62096         * doc/functions/fprintf.texi: Update.
62097         * doc/functions/printf.texi: Update.
62098         * doc/functions/snprintf.texi: Update.
62099         * doc/functions/sprintf.texi: Update.
62100         * doc/functions/vfprintf.texi: Update.
62101         * doc/functions/vprintf.texi: Update.
62102         * doc/functions/vsnprintf.texi: Update.
62103         * doc/functions/vsprintf.texi: Update.
62104
62105 2007-05-06  Bruno Haible  <bruno@clisp.org>
62106
62107         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
62108         pass the ' flag character to sprintf or snprintf.
62109         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
62110         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
62111         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
62112         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
62113         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
62114         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62115         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
62116         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62117         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62118         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62119         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62120         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62121         * tests/test-snprintf-posix.h (test_function): Also check the grouping
62122         flag.
62123         * tests/test-sprintf-posix.h (test_function): Likewise.
62124         * tests/test-vasnprintf-posix.c (test_function): Likewise.
62125         * tests/test-vasprintf-posix.c (test_function): Likewise.
62126         * doc/functions/fprintf.texi: Update.
62127         * doc/functions/printf.texi: Update.
62128         * doc/functions/snprintf.texi: Update.
62129         * doc/functions/sprintf.texi: Update.
62130         * doc/functions/vfprintf.texi: Update.
62131         * doc/functions/vprintf.texi: Update.
62132         * doc/functions/vsnprintf.texi: Update.
62133         * doc/functions/vsprintf.texi: Update.
62134
62135 2007-05-01  Bruno Haible  <bruno@clisp.org>
62136
62137         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
62138
62139 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
62140
62141         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
62142         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
62143
62144 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
62145
62146         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
62147         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
62148         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
62149
62150 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
62151
62152         * lib/argp-help.c (struct hol_entry): New member `ord'.
62153         (HOL_ENTRY_PTRCMP): Use ord for comparison
62154         (hol_sort): Initialize ord.
62155
62156 2007-05-01  Bruno Haible  <bruno@clisp.org>
62157
62158         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
62159         Reported by Eric Blake.
62160         * doc/gnulib.texi (Function Substitutes): Update.
62161
62162 2007-05-01  Bruno Haible  <bruno@clisp.org>
62163
62164         * doc/functions.texi: Remove file, now redundant through
62165         doc/functions/*.texi.
62166
62167 2007-05-01  Bruno Haible  <bruno@clisp.org>
62168
62169         * modules/argp (Depends-on): Add sleep.
62170
62171 2007-05-01  Bruno Haible  <bruno@clisp.org>
62172
62173         * modules/sleep-tests: New file.
62174         * tests/test-sleep.c: New file.
62175
62176         * modules/sleep: New file.
62177         * lib/sleep.c: New file.
62178         * m4/sleep.m4: New file.
62179         * lib/unistd_.h (sleep): New declaration.
62180         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
62181         HAVE_SLEEP.
62182         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
62183         * doc/functions/sleep.texi: Document the sleep module.
62184
62185 2007-05-01  Bruno Haible  <bruno@clisp.org>
62186
62187         * lib/sigprocmask.h: Remove file.
62188         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
62189         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
62190         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
62191         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
62192         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
62193         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
62194         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
62195         HAVE_SIGSET_T as a shell variable.
62196         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
62197         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
62198         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
62199         (Depends-on): Add signal. Remove verify.
62200         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
62201         (Include): Mention <signal.h> instead of sigprocmask.h.
62202         * NEWS: Mention the change.
62203         * lib/fatal-signal.c: Don't include sigprocmask.h.
62204
62205 2007-05-01  Bruno Haible  <bruno@clisp.org>
62206
62207         * modules/signal: New file.
62208         * lib/signal_.h: New file.
62209         * m4/signal_h.m4: New file.
62210
62211 2007-05-01  Bruno Haible  <bruno@clisp.org>
62212
62213         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
62214         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
62215         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
62216         HAVE_WCTYPE_CTMP_BUG into wctype.h.
62217
62218 2007-05-01  Bruno Haible  <bruno@clisp.org>
62219
62220         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
62221         configure time.
62222         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
62223         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
62224         * modules/sys_stat (Makefile.am): Substitute their values into
62225         sys/stat.h.
62226
62227 2007-05-01  Bruno Haible  <bruno@clisp.org>
62228
62229         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
62230         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
62231         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
62232
62233 2007-05-01  Bruno Haible  <bruno@clisp.org>
62234
62235         * doc/header/assert.texi: Undo last change: don't mention the gnulib
62236         'assert' module here.
62237
62238 2007-05-01  Bruno Haible  <bruno@clisp.org>
62239
62240         * doc/functions/*.texi: New files.
62241         * doc/functions/google-ranking.txt: New file.
62242         * doc/gnulib.texi (Function Substitutes): New chapter.
62243         (ctime, inet_ntoa): Remove sections.
62244         * doc/ctime.texi: Remove file.
62245         * doc/inet_ntoa.texi: Remove file.
62246         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
62247         dependencies.
62248         (%.info): New rule, specifying a --reference-limit.
62249
62250 2007-05-01  Bruno Haible  <bruno@clisp.org>
62251
62252         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
62253
62254 2007-05-01  Bruno Haible  <bruno@clisp.org>
62255
62256         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
62257         the portability of 'mkdir' to mingw systems.
62258
62259 2007-05-01  Bruno Haible  <bruno@clisp.org>
62260
62261         * doc/headers/google-ranking.txt: New file.
62262
62263 2007-04-30  Eric Blake  <ebb9@byu.net>
62264
62265         Prefer fseeko to fseek.
62266         * modules/getpass (Depends-on): Add fseeko.
62267         * lib/getpass.c (getpass): Use fseeko, not fseek.
62268
62269 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
62270
62271         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
62272         assumes the sorting is stable, while most qsort implementations
62273         are not.  Use argument addresses to ensure they never compare as
62274         equal.
62275
62276         * tests/test-argp-2.sh (usage-indent test): Fix output
62277         (func_compare): Restore diff options
62278         * tests/test-argp.c: Restore #include "progname.h"
62279
62280 2007-04-29  Bruno Haible  <bruno@clisp.org>
62281
62282         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
62283         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
62284         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
62285         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62286         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
62287         (configure.ac): Define CHECK_SNPRINTF_POSIX.
62288         (TESTS, check_PROGRAMS): Add test-snprintf.
62289         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
62290         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
62291         (TESTS, check_PROGRAMS): Add test-vsnprintf.
62292         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
62293         assertions that fail on HP-UX, OSF/1, or IRIX.
62294         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
62295
62296 2007-04-29  Bruno Haible  <bruno@clisp.org>
62297
62298         * MODULES.html.sh (posix_functions): Remove 'contents'.
62299
62300 2007-04-29  Karl Berry  <karl@gnu.org>
62301
62302         * config/srclist.txt (gendocs_template_min): new entry.
62303
62304 2007-04-29  Bruno Haible  <bruno@clisp.org>
62305
62306         Work around fpurge bug on BSD systems.
62307         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
62308         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
62309         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
62310         fpurge to rpl_fpurge if the system already has this function.
62311         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
62312         the case where the system already has this function. Correct invariants
62313         on BSD systems.
62314         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
62315         BSD systems.
62316
62317 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
62318
62319         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
62320         proposed by Sven Verdoolaege.
62321
62322         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
62323         options.
62324         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
62325         (usage and help tests): Update
62326
62327 2007-04-29  Bruno Haible  <bruno@clisp.org>
62328
62329         * tests/test-fflush.c (main): Use a file of size 17, not 10.
62330         Print more information in case of failure. Disable a test on BeOS.
62331
62332 2007-04-29  Bruno Haible  <bruno@clisp.org>
62333
62334         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
62335         This helps debugging on systems on which no gdb is available.
62336
62337 2007-04-29  Bruno Haible  <bruno@clisp.org>
62338
62339         * lib/freading.h: Improve comments.
62340         * lib/fwriting.h: Likewise.
62341         * tests/test-freading.c (main): Don't check freading immediately after
62342         repositioning. Needed for glibc.
62343
62344 2007-04-29  Bruno Haible  <bruno@clisp.org>
62345
62346         * lib/freading.c (freading): Trivial simplification.
62347
62348 2007-04-28  Bruno Haible  <bruno@clisp.org>
62349
62350         * tests/test-fwriting.c (main): Also test the interaction between
62351         fflush and fwriting.
62352         * modules/fwriting-tests (Depends-on): Add fflush.
62353
62354         * tests/test-freading.c (main): Also test the interaction between
62355         fflush and freading.
62356         * modules/freading-tests (Depends-on): Add fflush.
62357
62358 2007-04-28  Bruno Haible  <bruno@clisp.org>
62359
62360         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
62361         fseeko and ftello.
62362         Suggested by Eric Blake.
62363
62364 2007-04-28  Jim Meyering  <jim@meyering.net>
62365
62366         Avoid false-negative in gl_STDINT_H's C99 conformance test.
62367         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
62368         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
62369
62370 2007-04-27  Eric Blake  <ebb9@byu.net>
62371
62372         * doc/headers/assert.texi (assert.h): Document assert module use.
62373
62374 2007-04-27  Bruno Haible  <bruno@clisp.org>
62375
62376         * doc/headers/*.texi: New files.
62377         * doc/gnulib.texi (Header File Substitutes): New chapter.
62378         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
62379         dependencies.
62380         (standards.info ,standards.html, standards.dvi): Update dependencies.
62381         (mostlyclean, clean): New targets.
62382
62383 2007-04-27  Bruno Haible  <bruno@clisp.org>
62384
62385         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
62386         * modules/sysexits (Files, Makefile.am): Update.
62387
62388         * lib/sys_socket_.h: Renamed from lib/socket_.h.
62389         * modules/sys_socket (Files, Makefile.am): Update.
62390
62391         * lib/sys_stat_.h: Renamed from lib/stat_.h.
62392         * modules/sys_stat (Files, Makefile.am): Update.
62393
62394 2007-04-27  Eric Blake  <ebb9@byu.net>
62395
62396         * lib/freading.h: Improve comments.
62397         * lib/fwriting.h: Likewise.
62398         * lib/fflush.c: Likewise.
62399
62400         Fix closein for mingw.
62401         * modules/closein-tests: Add tests for closein.
62402         * tests/test-closein.c: New file.
62403         * tests/test-closein.sh: Likewise.
62404         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
62405         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
62406
62407 2007-04-27  Bruno Haible  <bruno@clisp.org>
62408
62409         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
62410         version is < 6.
62411         * lib/math_.h [__DECC]: Likewise.
62412         * lib/stdio_.h [__DECC]: Likewise.
62413         * lib/stdlib_.h [__DECC]: Likewise.
62414         * lib/string_.h [__DECC]: Likewise.
62415         * lib/time_.h [__DECC]: Likewise.
62416         * lib/wchar_.h [__DECC]: Likewise.
62417         * lib/wctype_.h [__DECC]: Likewise.
62418
62419 2007-04-27  Bruno Haible  <bruno@clisp.org>
62420
62421         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
62422
62423 2007-04-27  Bruno Haible  <bruno@clisp.org>
62424
62425         * lib/fflush.c: Add comments.
62426         * modules/fpurge-tests (Depends-on): Add fflush.
62427         * modules/freadable-tests (Depends-on): Likewise.
62428         * modules/fwritable-tests (Depends-on): Likewise.
62429
62430 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
62431
62432         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
62433         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
62434         Report by Bruno Haible <bruno@clisp.org>.
62435
62436 2007-04-26  Eric Blake  <ebb9@byu.net>
62437
62438         Fix fflush on mingw.
62439         * modules/fflush (Depends-on): Add freading.
62440         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
62441         but unread data.
62442
62443 2007-04-26  Eric Blake  <ebb9@byu.net>
62444         and Bruno Haible  <bruno@clisp.org>
62445
62446         Implement freading and fwriting.
62447         * lib/freading.c: New file.
62448         * lib/freading.h: Likewise.
62449         * m4/freading.m4: Likewise.
62450         * modules/freading: Likewise.
62451         * modules/freading-tests: Likewise.
62452         * tests/test-freading.c: Likewise.
62453         * lib/fwriting.c: New file.
62454         * lib/fwriting.h: Likewise.
62455         * m4/fwriting.m4: Likewise.
62456         * modules/fwriting: Likewise.
62457         * modules/fwriting-tests: Likewise.
62458         * tests/test-fwriting.c: Likewise.
62459         * MODULES.html.sh (File stream based Input/Output): Mention them.
62460
62461 2007-04-26  Bruno Haible  <bruno@clisp.org>
62462
62463         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
62464         'long' when we assume it.
62465         Suggested by Eric Blake.
62466
62467 2007-04-26  Bruno Haible  <bruno@clisp.org>
62468
62469         Ensure fseeko, ftello are declared on glibc systems.
62470         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
62471         * modules/fseeko (configure.ac-early): Likewise.
62472         * modules/ftello (configure.ac-early): Likewise.
62473         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
62474         AC_FUNC_FSEEKO for this.
62475         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
62476         (gl_CHECK_FSEEKO): Remove macro.
62477
62478 2007-04-26  Bruno Haible  <bruno@clisp.org>
62479
62480         * tests/test-fflush.c (main): Also check the ftell result after
62481         fflush and fseek/fseeko.
62482         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
62483         file descriptor position cache in the stream.
62484         * lib/fseeko.c (rpl_fseeko): Likewise.
62485
62486 2007-04-26  Bruno Haible  <bruno@clisp.org>
62487
62488         * modules/fflush-tests (Depends-on): Add fseeko.
62489
62490 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
62491             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62492
62493         * lib/argz_.h: ensure error_t definition is obtained in same
62494         mechanism system argz.h would have.
62495         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
62496         argz facilities are known bad.  Err on the side of caution if
62497         cross-compiling.
62498
62499 2007-04-25  Eric Blake  <ebb9@byu.net>
62500
62501         * lib/fpurge.c (includes): Use stdlib.h for free.
62502         * tests/test-fflush.c (main): Also test fflush-fseeko.
62503
62504 2007-04-25  Bruno Haible  <bruno@clisp.org>
62505
62506         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
62507         * lib/fseeko.c: New file.
62508         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
62509         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
62510         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
62511         gl_FUNC_FSEEKO.
62512         (gl_FUNC_FSEEKO): Invoke it.
62513         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
62514         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
62515         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
62516
62517 2007-04-25  Bruno Haible  <bruno@clisp.org>
62518
62519         * modules/fflush (Depends-on): Add ftello.
62520
62521 2007-04-25  Bruno Haible  <bruno@clisp.org>
62522
62523         * modules/ftello-tests: New file.
62524         * tests/test-ftello.c: New file.
62525
62526         * modules/ftello: New file.
62527         * m4/ftello.m4: New file.
62528         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
62529         HAVE_FTELLO.
62530         * lib/stdio_.h (ftello): New declaration.
62531         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
62532         HAVE_FTELLO.
62533
62534 2007-04-25  Bruno Haible  <bruno@clisp.org>
62535
62536         * modules/fseeko-tests: New file.
62537         * tests/test-fseeko.c: New file.
62538
62539         * modules/fseeko: New file.
62540         * m4/fseeko.m4: New file.
62541         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
62542         HAVE_FSEEKO.
62543         * lib/stdio_.h (fseeko): New declaration.
62544         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
62545         HAVE_FSEEKO.
62546
62547 2007-04-25  Bruno Haible  <bruno@clisp.org>
62548
62549         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
62550
62551 2007-04-25  Bruno Haible  <bruno@clisp.org>
62552
62553         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
62554         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
62555         * tests/test-unistd.c: Likewise.
62556         * tests/test-fcntl.c: Likewise.
62557
62558 2007-04-23  Eric Blake  <ebb9@byu.net>
62559
62560         * lib/fflush.c: Fix missing include.
62561         Reported by Bruno Haible.
62562
62563 2007-04-23  Bruno Haible  <bruno@clisp.org>
62564
62565         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
62566         Reported by Eric Blake.
62567
62568 2007-04-23  Bruno Haible  <bruno@clisp.org>
62569
62570         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
62571
62572 2007-04-23  Bruno Haible  <bruno@clisp.org>
62573
62574         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
62575
62576 2007-04-23  Bruno Haible  <bruno@clisp.org>
62577
62578         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
62579         Needed on HP-UX 11.
62580
62581 2007-04-16  Eric Blake  <ebb9@byu.net>
62582
62583         Make fflush rely on fpurge.
62584         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
62585         open coding all variants.
62586         * modules/fflush (Depends-on): Add fpurge and unistd.
62587         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
62588         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
62589
62590         Fix --with-tests compilation on cygwin.
62591         * modules/argmatch-tests (Makefile.am): List gnulib library first
62592         in LDADD.
62593         * modules/argp-tests (Makefile.am): Likewise.
62594         * modules/array-list-tests (Makefile.am): Likewise.
62595         * modules/array-oset-tests (Makefile.am): Likewise.
62596         * modules/avltree-list-tests (Makefile.am): Likewise.
62597         * modules/avltree-oset-tests (Makefile.am): Likewise.
62598         * modules/avltreehash-list-tests (Makefile.am): Likewise.
62599         * modules/carray-list-tests (Makefile.am): Likewise.
62600         * modules/dirname-tests (Makefile.am): Likewise.
62601         * modules/frexp-tests (Makefile.am): Likewise.
62602         * modules/isnanl-tests (Makefile.am): Likewise.
62603         * modules/linked-list-tests (Makefile.am): Likewise.
62604         * modules/linkedhash-list-tests (Makefile.am): Likewise.
62605         * modules/lock-tests (Makefile.am): Likewise.
62606         * modules/rbtree-list-tests (Makefile.am): Likewise.
62607         * modules/rbtree-oset-tests (Makefile.am): Likewise.
62608         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
62609         * modules/tls-tests (Makefile.am): Likewise.
62610         * modules/tsearch-tests (Makefile.am): Likewise.
62611         * modules/xvasprintf-tests (Makefile.am): Likewise.
62612
62613         Fix fpurge for cygwin.
62614         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
62615         value.
62616         * modules/fpurge-tests (Depends-on): Clean up trash.
62617
62618 2007-04-16  Simon Josefsson  <simon@josefsson.org>
62619
62620         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
62621
62622         * m4/autobuild.m4: Re-indent.
62623
62624 2007-04-13  Bruno Haible  <bruno@clisp.org>
62625
62626         * modules/fpurge-tests: New file.
62627         * tests/test-fpurge.c: New file.
62628
62629         * modules/fpurge: New file.
62630         * lib/fpurge.h: New file.
62631         * lib/fpurge.c: New file.
62632         * m4/fpurge.m4: New file.
62633
62634 2007-04-13  Bruno Haible  <bruno@clisp.org>
62635
62636         * modules/fbufmode-tests: New file.
62637         * tests/test-fbufmode.c: New file.
62638
62639         * modules/fbufmode: New file.
62640         * lib/fbufmode.h: New file.
62641         * lib/fbufmode.c: New file.
62642         * m4/fbufmode.m4: New file.
62643
62644 2007-04-13  Bruno Haible  <bruno@clisp.org>
62645
62646         * modules/fwritable-tests: New file.
62647         * tests/test-fwritable.c: New file.
62648
62649         * modules/fwritable: New file.
62650         * lib/fwritable.h: New file.
62651         * lib/fwritable.c: New file.
62652         * m4/fwritable.m4: New file.
62653
62654 2007-04-13  Bruno Haible  <bruno@clisp.org>
62655
62656         * modules/freadable-tests: New file.
62657         * tests/test-freadable.c: New file.
62658
62659         * modules/freadable: New file.
62660         * lib/freadable.h: New file.
62661         * lib/freadable.c: New file.
62662         * m4/freadable.m4: New file.
62663
62664 2007-04-13  Bruno Haible  <bruno@clisp.org>
62665
62666         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
62667         MOSTLYCLEANFILES.
62668
62669 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
62670
62671         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
62672         gzip bootstrap.conf to avoid dragging in i18n machinery.
62673         (gnulib_tool_option): Use it.
62674
62675 2007-04-13  Bruno Haible  <bruno@clisp.org>
62676
62677         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
62678         %F directives.
62679         * tests/test-vasprintf-posix.c (test_function): Likewise.
62680         * tests/test-snprintf-posix.h (test_function): Likewise.
62681         * tests/test-sprintf-posix.h (test_function): Likewise.
62682         * tests/test-fprintf-posix.h (test_function): Likewise.
62683         * tests/test-printf-posix.h (test_function): Likewise.
62684         * tests/test-fprintf-posix.out: Likewise.
62685
62686 2007-04-13  Bruno Haible  <bruno@clisp.org>
62687
62688         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
62689         * modules/tls-tests (configure.ac): Likewise.
62690         Reported by Arto C. Nirkko <anirkko@insel.ch>.
62691
62692 2007-04-13  Bruno Haible  <bruno@clisp.org>
62693
62694         * lib/tls.c (glthread_tls_get): Fix return type.
62695         Patch by Arto C. Nirkko <anirkko@insel.ch>.
62696
62697 2007-04-12  Eric Blake  <ebb9@byu.net>
62698
62699         * modules/gettime (Depends-on): Remove gettime.
62700         Reported by Dmitry V. Levin.
62701
62702 2007-04-12  Bruno Haible  <bruno@clisp.org>
62703
62704         * modules/fflush (Include): Mention <stdio.h>.
62705         * modules/strtoimax (Include): Mention <inttypes.h>.
62706         * modules/strtoumax (Include): Likewise.
62707
62708 2007-04-12  Eric Blake  <ebb9@byu.net>
62709
62710         * .cvsignore: New file.
62711         * .gitignore: Likewise.
62712
62713 2007-04-12  Bruno Haible  <bruno@clisp.org>
62714
62715         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
62716         not before, since $(LDADD) often contains libgnu.a.
62717         * modules/striconv-tests (test_striconv_LDADD): Likewise.
62718         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
62719         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
62720         Needed on Cygwin.
62721
62722 2007-04-12  Eric Blake  <ebb9@byu.net>
62723
62724         Work around glibc's failure to flush stdin on fclose.
62725         * lib/closein.c (close_stdin): Flush stdin before closing.
62726
62727         Work around glibc's failure to reset seekable stdin on exit.
62728         * modules/closein: New module.
62729         * lib/closein.c: New file.
62730         * lib/closein.h: Likewise.
62731         * m4/closein.m4: Likewise.
62732         * MODULES.html.sh (File stream based Input/Output): Document it.
62733
62734 2007-04-12  Simon Josefsson  <simon@josefsson.org>
62735
62736         * gnulib-tool: Rename generated 'autobuild' script to
62737         'do-autobuild' in --create-megatestdir output.
62738
62739         * doc/gnulib.texi (Build robot for gnulib): Fix.
62740
62741 2007-04-12  Simon Josefsson  <simon@josefsson.org>
62742
62743         * modules/sysexits (Depends-on): Add absolute-header.
62744
62745 2007-04-12  Eric Blake  <ebb9@byu.net>
62746
62747         No need to preserve errno on success.
62748         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
62749         Reported by Bruno Haible.
62750
62751 2007-04-12  Simon Josefsson  <simon@josefsson.org>
62752
62753         * MODULES.html.sh (Support for maintaining and releasing
62754         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
62755
62756 2007-04-12  Simon Josefsson  <simon@josefsson.org>
62757
62758         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
62759
62760 2007-04-12  Simon Josefsson  <simon@josefsson.org>
62761
62762         * modules/autobuild: New module.
62763
62764         * m4/autobuild.m4: New file.
62765
62766 2007-04-11  Bruno Haible  <bruno@clisp.org>
62767
62768         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
62769         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
62770         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
62771         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
62772         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62773         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62774         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62775         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
62776         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62777         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62778         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
62779         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62780         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62781         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
62782         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62783         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62784         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
62785         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62786         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62787         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
62788         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62789         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62790         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
62791         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62792         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62793         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
62794         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62795         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62796         Reported by Eric Blake.
62797
62798 2007-04-11  Bruno Haible  <bruno@clisp.org>
62799
62800         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
62801
62802 2007-04-10  Bruno Haible  <bruno@clisp.org>
62803
62804         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
62805         for NaN and Infinity. Needed on FreeBSD 6.1.
62806         * tests/test-vasnprintf-posix.c (test_function): Undo last change
62807         regarding results for "%010a" of Infinity and NaN.
62808         * tests/test-vasprintf-posix.c (test_function): Likewise.
62809         * tests/test-snprintf-posix.h (test_function): Likewise.
62810         * tests/test-sprintf-posix.h (test_function): Likewise.
62811         * tests/test-fprintf-posix.h (test_function): Likewise.
62812         * tests/test-printf-posix.h (test_function): Likewise.
62813         * tests/test-fprintf-posix.out: Likewise.
62814
62815 2007-04-10  Bruno Haible  <bruno@clisp.org>
62816
62817         * modules/locale-tests: New file.
62818         * tests/test-locale.c: New file.
62819
62820         * modules/locale: New file.
62821         * lib/locale_.h: New file.
62822         * m4/locale_h.m4: New file.
62823
62824 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
62825             Bruno Haible  <bruno@clisp.org>
62826
62827         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
62828         be determined, test for availability of the copysignf, copysign,
62829         copysignl functions.
62830         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
62831         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
62832         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
62833
62834 2007-04-09  Eric Blake  <ebb9@byu.net>
62835
62836         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
62837         * modules/stdio (Makefile.am): Support fflush.
62838         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
62839         * modules/fflush: New file.
62840         * lib/fflush.c: Likewise.
62841         * m4/fflush.m4: Likewise.
62842         * modules/fflush-tests: New test.
62843         * tests/test-fflush.c: Likewise.
62844         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
62845
62846 2007-04-06  Bruno Haible  <bruno@clisp.org>
62847
62848         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
62849         (VASNPRINTF): Use signbit for faster determination whether to print a
62850         minus sign.
62851         * modules/vasnprintf (Files): Remove lib/float+.h.
62852         * modules/fprintf-posix (Depends-on): Add signbit.
62853         * modules/snprintf-posix (Depends-on): Likewise.
62854         * modules/sprintf-posix (Depends-on): Likewise.
62855         * modules/vasnprintf-posix (Depends-on): Likewise.
62856         * modules/vasprintf-posix (Depends-on): Likewise.
62857         * modules/vfprintf-posix (Depends-on): Likewise.
62858         * modules/vsnprintf-posix (Depends-on): Likewise.
62859         * modules/vsprintf-posix (Depends-on): Likewise.
62860
62861 2007-04-06  Bruno Haible  <bruno@clisp.org>
62862
62863         * tests/test-frexp.c (main): Test also the sign bit of zero results.
62864         * tests/test-frexpl.c (main): Likewise.
62865         * tests/test-ldexpl.c (main): Likewise.
62866         * modules/frexp-tests (Depends-on): Add signbit.
62867         * modules/frexpl-tests (Depdends-on): Likewise.
62868         * modules/ldexpl-tests (Depdends-on): Likewise.
62869
62870 2007-04-06  Bruno Haible  <bruno@clisp.org>
62871
62872         * modules/signbit-tests: New file.
62873         * tests/test-signbit.c: New file.
62874
62875         * modules/signbit: New file.
62876         * lib/signbitf.c: New file.
62877         * lib/signbitd.c: New file.
62878         * lib/signbitl.c: New file.
62879         * m4/signbit.m4: New file.
62880         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
62881         (signbit): New macro.
62882         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
62883         REPLACE_SIGNBIT.
62884         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
62885         REPLACE_FREXPL into math.h.
62886
62887 2007-04-06  Bruno Haible  <bruno@clisp.org>
62888
62889         * modules/isnanf-nolibm-tests: New file.
62890         * tests/test-isnanf.c: New file.
62891
62892         * modules/isnanf-nolibm: New file.
62893         * lib/isnanf.h: New file.
62894         * lib/isnanf.c: New file.
62895         * lib/isnan.c: Consider the USE_FLOAT macro.
62896         * m4/isnanf.m4: New file.
62897
62898 2007-04-06  Bruno Haible  <bruno@clisp.org>
62899
62900         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
62901         (Link): New section.
62902
62903         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
62904
62905 2007-04-06  Bruno Haible  <bruno@clisp.org>
62906
62907         Assume the 'long double' type.
62908         * m4/longdouble.m4: Remove file.
62909         * config/srclist.txt: Don't mention longdouble.m4.
62910         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
62911         * lib/float+.h: Likewise.
62912         * lib/frexp.c: Likewise.
62913         * lib/printf-args.h: Likewise.
62914         * lib/printf-args.c: Likewise.
62915         * lib/printf-frexp.c: Likewise.
62916         * lib/printf-parse.c: Likewise.
62917         * lib/vasnprintf.c: Likewise.
62918         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
62919         * m4/intl.m4: Likewise.
62920         * m4/isnanl.m4: Likewise.
62921         * m4/printf.m4: Likewise.
62922         * m4/printf-frexpl.m4: Likewise.
62923         * m4/vasnprintf.m4: Likewise.
62924         * modules/allocsa (Files): Remove m4/longdouble.m4.
62925         * modules/gettext (Files): Likewise.
62926         * modules/relocatable-prog-wrapper (Files): Likewise.
62927         * modules/vasnprintf (Files): Likewise.
62928         * modules/isnanl (Files): Likewise.
62929         (Include): Simplify.
62930         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
62931         (Include): Simplify.
62932         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
62933         (Include): Simplify.
62934         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
62935         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
62936         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
62937         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
62938         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
62939         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
62940         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
62941         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
62942         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
62943         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
62944         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
62945         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
62946         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
62947         * tests/test-isnanl.c: Likewise.
62948         * tests/test-snprintf-posix.h: Likewise.
62949         * tests/test-sprintf-posix.h: Likewise.
62950         * tests/test-vasnprintf-posix.c: Likewise.
62951         * tests/test-vasnprintf-posix2.c: Likewise.
62952         * tests/test-vasprintf-posix.c: Likewise.
62953
62954 2007-04-06  Bruno Haible  <bruno@clisp.org>
62955
62956         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
62957         * lib/math_.h [__DECC]: Include the overridden include file through
62958         #include_next, outside the double-inclusion guard.
62959         * lib/stdio_.h [__DECC]: Likewise.
62960         * lib/stdlib_.h [__DECC]: Likewise.
62961         * lib/string_.h [__DECC]: Likewise.
62962         * lib/time_.h [__DECC]: Likewise.
62963         * lib/wchar_.h [__DECC]: Likewise.
62964         * lib/wctype_.h [__DECC]: Likewise.
62965         * lib/inttypes_.h [__DECC]: Likewise.
62966         Reported by Albert Chin <china@thewrittenword.com> in
62967         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
62968
62969 2007-04-04  Eric Blake  <ebb9@byu.net>
62970
62971         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
62972         1.5.x.
62973
62974 2007-04-04  Bruno Haible  <bruno@clisp.org>
62975
62976         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
62977         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
62978
62979 2007-04-04  Bruno Haible  <bruno@clisp.org>
62980
62981         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
62982         results for "%010a" of Infinity and NaN.
62983         * tests/test-vasprintf-posix.c (test_function): Likewise.
62984         * tests/test-snprintf-posix.h (test_function): Likewise.
62985         * tests/test-sprintf-posix.h (test_function): Likewise.
62986         * tests/test-fprintf-posix.h (test_function): Remove these tests.
62987         * tests/test-printf-posix.h (test_function): Likewise.
62988         * tests/test-fprintf-posix.out: Update.
62989         Needed for FreeBSD 6.1.
62990
62991 2007-04-04  Bruno Haible  <bruno@clisp.org>
62992
62993         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
62994         directly used by the gnulib modules nor by gnulib-tool.
62995
62996 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
62997
62998         * DEPENDENCIES: Give overall description of version dependency
62999         desirability.  Use more-typical names for apps.
63000         Add shell, coreutils, diffutils, grep, tar, gzip.
63001
63002 2007-04-04  Simon Josefsson  <simon@josefsson.org>
63003
63004         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
63005
63006 2007-04-04  Karl Berry  <karl@gnu.org>
63007
63008         * MODULES.html.sh (func_module): missing '.
63009
63010 2007-04-03  Bruno Haible  <bruno@clisp.org>
63011
63012         * modules/argmatch-tests (Makefile.am): New variable
63013         test_argmatch_LDADD.
63014         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
63015         * modules/array-list-tests (Makefile.am): New variable
63016         test_array_list_LDADD.
63017         * modules/array-oset-tests (Makefile.am): New variable
63018         test_array_oset_LDADD.
63019         * modules/avltree-list-tests (Makefile.am): New variable
63020         test_avltree_list_LDADD.
63021         * modules/avltree-oset-tests (Makefile.am): New variable
63022         test_avltree_oset_LDADD.
63023         * modules/avltreehash-list-tests (Makefile.am): New variable
63024         test_avltreehash_list_LDADD.
63025         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
63026         test_canonicalize_lgpl_LDADD.
63027         * modules/carray-list-tests (Makefile.am): New variable
63028         test_carray_list_LDADD.
63029         * modules/dirname-tests (Makefile.am): New variable
63030         test_dirname_LDADD.
63031         * modules/linked-list-tests (Makefile.am): New variable
63032         test_linked_list_LDADD.
63033         * modules/linkedhash-list-tests (Makefile.am): New variable
63034         test_linkedhash_list_LDADD.
63035         * modules/rbtree-list-tests (Makefile.am): New variable
63036         test_rbtree_list_LDADD.
63037         * modules/rbtree-oset-tests (Makefile.am): New variable
63038         test_rbtree_oset_LDADD.
63039         * modules/rbtreehash-list-tests (Makefile.am): New variable
63040         test_rbtreehash_list_LDADD.
63041         * modules/xvasprintf-tests (Makefile.am): New variable
63042         test_xvasprintf_LDADD.
63043         Reported by Eric Blake.
63044
63045 2007-04-03  Eric Blake  <ebb9@byu.net>
63046
63047         * DEPENDENCIES: Weaken m4 requirements.
63048
63049 2007-04-03  Bruno Haible  <bruno@clisp.org>
63050
63051         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
63052         * modules/isnanl-tests (configure.ac): Likewise.
63053
63054 2007-04-03  Ben Pfaff  <blp@gnu.org>
63055
63056         * modules/iconv_open: Add $(srcdir)/ to source directory
63057         references in Makefile fragments that call gperf, to fix VPATH
63058         builds.
63059
63060 2007-04-03  Bruno Haible  <bruno@clisp.org>
63061
63062         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
63063         * lib/ldexpl.c: Undo last change.
63064
63065 2007-04-03  Bruno Haible  <bruno@clisp.org>
63066
63067         * modules/printf-frexpl (Depends-on): Undo last change.
63068         (Files): Add m4/ldexpl.m4.
63069
63070 2007-04-03  Bruno Haible  <bruno@clisp.org>
63071
63072         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
63073         * modules/isnanl (Link): New section.
63074
63075         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
63076         * modules/frexp (Link): New section.
63077
63078         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
63079         * modules/frexpl (Link): New section.
63080
63081         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
63082         * modules/ldexpl (Link): New section.
63083
63084 2007-04-03  Bruno Haible  <bruno@clisp.org>
63085
63086         * modules/TEMPLATE-EXTENDED: New file.
63087         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
63088
63089 2007-04-03  Bruno Haible  <bruno@clisp.org>
63090
63091         * DEPENDENCIES: New file.
63092         Suggested by Simon Josefsson.
63093
63094 2007-04-03  Bruno Haible  <bruno@clisp.org>
63095
63096         * doc/gnulib.texi: Escape @.
63097
63098 2007-04-03  James Youngman  <jay@gnu.org>
63099         and Paul Eggert  <eggert@cs.ucla.edu>
63100
63101         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
63102         birthtime on all systems that have birthtime, not just those which
63103         use st_birthtimensec rather than st_birthtim.  Putting zero in
63104         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
63105         that the birth time is not available for files on an NFS mount.
63106
63107 2007-04-03  Simon Josefsson  <simon@josefsson.org>
63108
63109         * modules/memxor: Move back from crypto/, suggested by Bruno.
63110         * modules/crypto/hmac-sha1: Fix memxor dependency.
63111
63112         * modules/crypto/gc: Moved from ../.
63113
63114 2007-04-02  Eric Blake  <ebb9@byu.net>
63115
63116         * lib/ldexpl.c (includes): Avoid libm.
63117
63118         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
63119
63120 2007-04-02  Bruno Haible  <bruno@clisp.org>
63121
63122         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
63123         on IRIX.
63124
63125 2007-04-02  Bruno Haible  <bruno@clisp.org>
63126
63127         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
63128         x86 or x86_64 platforms running MacOS X.
63129         Reported by Ryan Schmidt <@ryandesign.com>.
63130
63131 2007-04-02  Bruno Haible  <bruno@clisp.org>
63132
63133         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
63134         i386.
63135
63136 2007-04-01  Simon Josefsson  <simon@josefsson.org>
63137
63138         * modules/crypto/arcfour: Moved from ../.
63139         * modules/crypto/arcfour-tests: Moved from ../.
63140         * modules/crypto/arctwo: Moved from ../.
63141         * modules/crypto/arctwo-tests: Moved from ../.
63142         * modules/crypto/des: Moved from ../.
63143         * modules/crypto/des-tests: Moved from ../.
63144         * modules/crypto/gc-arcfour: Moved from ../.
63145         * modules/crypto/gc-arcfour-tests: Moved from ../.
63146         * modules/crypto/gc-arctwo: Moved from ../.
63147         * modules/crypto/gc-arctwo-tests: Moved from ../.
63148         * modules/crypto/gc-des: Moved from ../.
63149         * modules/crypto/gc-des-tests: Moved from ../.
63150         * modules/crypto/gc-hmac-md5: Moved from ../.
63151         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
63152         * modules/crypto/gc-hmac-sha1: Moved from ../.
63153         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
63154         * modules/crypto/gc-md2: Moved from ../.
63155         * modules/crypto/gc-md2-tests: Moved from ../.
63156         * modules/crypto/gc-md4: Moved from ../.
63157         * modules/crypto/gc-md4-tests: Moved from ../.
63158         * modules/crypto/gc-md5: Moved from ../.
63159         * modules/crypto/gc-md5-tests: Moved from ../.
63160         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
63161         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
63162         * modules/crypto/gc-random: Moved from ../.
63163         * modules/crypto/gc-rijndael: Moved from ../.
63164         * modules/crypto/gc-rijndael-tests: Moved from ../.
63165         * modules/crypto/gc-sha1: Moved from ../.
63166         * modules/crypto/gc-sha1-tests: Moved from ../.
63167         * modules/crypto/gc-tests: Moved from ../.
63168         * modules/crypto/hmac-md5: Moved from ../.
63169         * modules/crypto/hmac-md5-tests: Moved from ../.
63170         * modules/crypto/hmac-sha1: Moved from ../.
63171         * modules/crypto/hmac-sha1-tests: Moved from ../.
63172         * modules/crypto/md2: Moved from ../.
63173         * modules/crypto/md2-tests: Moved from ../.
63174         * modules/crypto/md4: Moved from ../.
63175         * modules/crypto/md4-tests: Moved from ../.
63176         * modules/crypto/md5: Moved from ../.
63177         * modules/crypto/md5-tests: Moved from ../.
63178         * modules/crypto/memxor: Moved from ../.
63179         * modules/crypto/rijndael: Moved from ../.
63180         * modules/crypto/rijndael-tests: Moved from ../.
63181         * modules/crypto/sha1: Moved from ../.
63182
63183 2007-03-30  James Youngman  <jay@gnu.org>
63184
63185         * tests/test-stat-time.c (prepare_test): use chmod() rather than
63186         rename() to change the ctime of a file (because ctime is unaffected
63187         by rename on jfs2 on AIX 5.1).
63188         (main): Start by doing cleanup, in case a previous run failed leaving
63189         test files behind.
63190
63191 2007-03-31  Bruno Haible  <bruno@clisp.org>
63192
63193         Support old proprietary implementations of iconv.
63194         * modules/iconv_open: New file.
63195         * lib/iconv_.h: New file.
63196         * m4/iconv_h.m4: New file.
63197         * lib/iconv_open.c: New file.
63198         * lib/iconv_open-aix.gperf: New file.
63199         * lib/iconv_open-hpux.gperf: New file.
63200         * lib/iconv_open-irix.gperf: New file.
63201         * lib/iconv_open-osf.gperf: New file.
63202         * m4/iconv_open.m4: New file.
63203         * modules/linebreak (Depends-on): Add iconv_open.
63204         * modules/striconv (Depends-on): Likewise.
63205         * modules/striconveh (Depends-on): Likewise.
63206         * modules/unicodeio (Depends-on): Likewise.
63207         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
63208         (iconv_t)(-1).
63209         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
63210         conversion if cd is (iconv_t)(-1).
63211         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
63212         is not possible.
63213
63214 2007-03-31  Bruno Haible  <bruno@clisp.org>
63215
63216         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
63217         work on Solaris either. Protect also second use of "autodetect_jp".
63218
63219 2007-03-31  Bruno Haible  <bruno@clisp.org>
63220
63221         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
63222         the function is not present.
63223
63224 2007-03-31  Bruno Haible  <bruno@clisp.org>
63225
63226         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
63227         the function is not present.
63228
63229 2007-03-31  Bruno Haible  <bruno@clisp.org>
63230
63231         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
63232         a bug in HP-UX iconv_open().
63233
63234 2007-03-31  Bruno Haible  <bruno@clisp.org>
63235
63236         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
63237         (Mathematics <math.h>): New section, add fpieee.
63238         (Input/output <stdio.h>): Add fseterr.
63239         (Mathematics <math.h>): New section, add printf-frexp.
63240         (Container data structures): Add sublist.
63241         (Core language properties): Add fpucw, inline.
63242         (Functions for greatest-width integer types <inttypes.h>): Add
63243         imaxabs, imaxdiv, inttypes.
63244         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
63245         isnanl-nolibm, ldexp.
63246         (Mathematics <math.h>): New section, add printf-frexpl.
63247         (Support for systems lacking POSIX:2001): Add fprintf-posix,
63248         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
63249         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
63250         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
63251         (Unicode string functions): Add unistr/u*-mbtoucr.
63252         (Java): Add javacomp-script, javaexec-script.
63253         (C#): Add csharpcomp-script, csharpexec-script.
63254         (Support for building libraries and executables): Add havelib,
63255         relocatable-*.
63256         (Support for maintaining and releasing projects): Renamed from
63257         'Support for maintaining and release projects'. Add announce-gen.
63258
63259 2007-03-31  Bruno Haible  <bruno@clisp.org>
63260
63261         * README: Talk primarily about git.
63262         (git and CVS): Renamed from CVS.
63263         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
63264         gnulib is available through git.
63265         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
63266
63267 2007-03-30  Bruno Haible  <bruno@clisp.org>
63268
63269         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
63270         * lib/poll_.h: Likewise.
63271         * lib/stat_.h: Likewise.
63272         * lib/sys_time_.h: Likewise.
63273         * lib/sysexit_.h: Likewise.
63274         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
63275         * lib/stdbool_.h: Likewise.
63276         * lib/byteswap_.h: Add double-inclusion guard.
63277
63278 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
63279
63280         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
63281
63282 2007-03-30  Karl Berry  <karl@gnu.org>
63283
63284         * config/srclist-update: double space after USA in the license
63285         substitution, since that's how it's usually (?) written.
63286
63287 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
63288
63289         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
63290         reported by Bruno Haible.
63291
63292 2007-03-29  Bruno Haible  <bruno@clisp.org>
63293
63294         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
63295         a bug in AIX iconv().
63296
63297 2007-03-29  Bruno Haible  <bruno@clisp.org>
63298
63299         * modules/ldexpl-tests: New file.
63300         * tests/test-ldexpl.c: New file.
63301
63302 2007-03-29  Bruno Haible  <bruno@clisp.org>
63303
63304         * lib/ldexpl.c: Include fpucw.h.
63305         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
63306         multiplication.
63307         * modules/ldexpl (Depends-on): Add fpucw.
63308
63309 2007-03-29  Bruno Haible  <bruno@clisp.org>
63310
63311         * modules/ldexpl: New file.
63312         * m4/ldexpl.m4: New file.
63313         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
63314         set.
63315         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
63316         REPLACE_LDEXPL.
63317         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
63318         REPLACE_LDEXPL.
63319         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
63320         gl_FUNC_LDEXPL_WORKS.
63321         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
63322         * modules/mathl (Files): Remove lib/ldexpl.c.
63323         (Depends-on): Add ldexpl.
63324
63325 2007-03-29  Bruno Haible  <bruno@clisp.org>
63326
63327         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
63328
63329 2007-03-29  Bruno Haible  <bruno@clisp.org>
63330
63331         * tests/test-striconveh.c (main): Don't assume that a direct conversion
63332         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
63333         and possibly also HP-UX.
63334         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
63335         work on AIX, IRIX, HP-UX, OSF/1.
63336         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
63337         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
63338         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
63339         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
63340         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
63341         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
63342
63343 2007-03-29  Bruno Haible  <bruno@clisp.org>
63344
63345         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
63346
63347 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
63348
63349         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
63350         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
63351
63352 2007-03-29  Eric Blake  <ebb9@byu.net>
63353
63354         * lib/acl-internal.h: Remove redundant include.
63355         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
63356         Cygwin when a file is locked.
63357
63358 2007-03-29  Bruno Haible  <bruno@clisp.org>
63359
63360         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
63361         file.
63362         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
63363
63364 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
63365
63366         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
63367         try to remove a parent directory if the child couldn't be removed
63368         (except for the first rmdir, which could fail because the child
63369         doesn't exist).  Problem reported by Jeff Blaine in
63370         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
63371
63372 2007-03-28  Bruno Haible  <bruno@clisp.org>
63373
63374         * lib/striconveh.c (utf8conv_carefully): New function.
63375         (mem_cd_iconveh_internal): Invoke it.
63376
63377 2007-03-28  Bruno Haible  <bruno@clisp.org>
63378
63379         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
63380         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
63381         input.
63382         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
63383         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
63384         unistr/u8-uctomb.
63385
63386 2007-03-28  Bruno Haible  <bruno@clisp.org>
63387
63388         * modules/unistr/u8-mbtoucr: New file.
63389         * lib/unistr/u8-mbtoucr.c: New file.
63390         * modules/unistr/u16-mbtoucr: New file.
63391         * lib/unistr/u16-mbtoucr.c: New file.
63392         * modules/unistr/u16-mbtoucr: New file.
63393         * lib/unistr/u16-mbtoucr.c: New file.
63394         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
63395
63396 2007-03-27  Simon Josefsson  <simon@josefsson.org>
63397             Bruno Haible  <bruno@clisp.org>
63398
63399         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
63400         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
63401         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
63402
63403         * m4/stdio_h.m4: Add stubs for vasprintf too.
63404
63405         * modules/stdio: Support vasprintf in sed command.
63406
63407         * modules/vasprintf: Depend on stdio for prototypes.  Remove
63408         vasprintf.h.  Add stdio module indicator.
63409
63410         * lib/stdio_.h: Declare asprintf and vasprintf, based on
63411         vasprintf.h.
63412
63413         * lib/vasprintf.h: File removed.
63414
63415         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
63416         * lib/vasprintf.c: Ditto.
63417         * lib/xvasprintf.c: Ditto.
63418         * tests/test-vasprintf-posix.c: Ditto.
63419         * tests/test-vasprintf.c: Ditto.
63420
63421 2007-03-27  Bruno Haible  <bruno@clisp.org>
63422
63423         Make vasnprintf multithread-safe.
63424         * lib/vasnprintf.c (decimal_point_char): New function.
63425         (VASNPRINTF): Use it.
63426         Suggested by Simon Josefsson.
63427
63428 2007-03-27  Eric Blake  <ebb9@byu.net>
63429
63430         Support sub-second birthtime on cygwin.
63431         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
63432         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
63433         (get_stat_birthtime): Also work with st_birthtim.
63434
63435 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
63436
63437         * lib/stat-time.h (USE_BIRTHTIME): Remove.
63438         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
63439         (get_stat_birthtime_ns): Do not try to use "spare" fields.
63440         (get_stat_birthtime_ns): Simplify compile-time tests.
63441         (get_stat_birthtime): Change the API to look like
63442         get_stat_mtime etc., except return a negative tv_nsec on error.
63443         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
63444         Don't check for "spare" fields.
63445         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
63446         or for struct stat.st_birthtime, as these tests aren't used.
63447         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
63448
63449 2007-03-27  Bruno Haible  <bruno@clisp.org>
63450
63451         * lib/stat-time.h: Include <sys/stat.h>.
63452
63453 2007-03-27  James Youngman  <jay@gnu.org>
63454
63455         * lib/stat-time.h (get_stat_birthtime): New function for
63456           retrieving st_birthtime as provided by UFS2 (hence *BSD).
63457         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
63458           and its variants.
63459         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
63460         * modules/stat-time-test: New file.
63461         * tests/test-stat-time.c: New test, devised by Bruno Haible.
63462
63463 2007-03-26  Bruno Haible  <bruno@clisp.org>
63464
63465         Better support of signalling NaNs.
63466         * lib/atanl.c: Include isnanl.h.
63467         (atanl): Perform test for NaN at the beginning of the function and
63468         through a call to isnanl.
63469         * lib/cosl.c: Include isnanl.h.
63470         (cosl): Perform test for NaN at the beginning of the function and
63471         through a call to isnanl.
63472         * lib/ldexpl.c: Include isnanl.h.
63473         (ldexpl): Perform test for NaN through a call to isnanl.
63474         * lib/logl.c: Include isnanl.h.
63475         (logl): Perform test for NaN at the beginning of the function and
63476         through a call to isnanl.
63477         * lib/sinl.c: Include isnanl.h.
63478         (sinl): Perform test for NaN at the beginning of the function and
63479         through a call to isnanl.
63480         * lib/sqrtl.c: Include isnanl.h.
63481         (sqrtl): Perform test for NaN at the beginning of the function and
63482         through a call to isnanl.
63483         * lib/tanl.c: Include isnanl.h.
63484         (tanl): Perform test for NaN at the beginning of the function and
63485         through a call to isnanl.
63486         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
63487         * modules/mathl (Depends-on): Add isnanl.
63488
63489 2007-03-26  Eric Blake  <ebb9@byu.net>
63490
63491         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
63492         regression in logic sense of previous patch.
63493
63494 2007-03-26  Bruno Haible  <bruno@clisp.org>
63495
63496         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
63497         unportable shell command "if ! ...".
63498         Reported by Ralf Wildenhues.
63499
63500 2007-03-25  Bruno Haible  <bruno@clisp.org>
63501
63502         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
63503         <sysexits.h> file, and only add EX_CONFIG.
63504         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
63505         absolute file name and whether it is sufficient. Substitute also
63506         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
63507         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
63508         ABSOLUTE_SYSEXITS_H into sysexits.h.
63509
63510 2007-03-25  Bruno Haible  <bruno@clisp.org>
63511
63512         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
63513         hints is NULL.
63514
63515 2007-03-25  Bruno Haible  <bruno@clisp.org>
63516
63517         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
63518         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
63519
63520 2007-03-25  Bruno Haible  <bruno@clisp.org>
63521
63522         * lib/vasnprintf.c: Include langinfo.h.
63523         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
63524         multithread-safe.
63525         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
63526         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
63527         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63528         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63529         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63530         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63531         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63532         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
63533         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63534         Reported by Simon Josefsson.
63535
63536 2007-03-25  Bruno Haible  <bruno@clisp.org>
63537
63538         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
63539         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
63540         * modules/vasnprintf (Depends-on): Add stdint.
63541
63542 2007-03-25  Bruno Haible  <bruno@clisp.org>
63543
63544         * modules/fpieee: New file.
63545         * m4/fpieee.m4: New file.
63546         * modules/isnan-nolibm (Depends-on): Add fpieee.
63547         * modules/isnanl-nolibm (Depends-on): Add fpieee.
63548         * modules/isnanl (Depends-on): Add fpieee.
63549
63550 2007-03-25  Bruno Haible  <bruno@clisp.org>
63551
63552         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
63553
63554 2007-03-25  Bruno Haible  <bruno@clisp.org>
63555
63556         Avoid test failures on IRIX 6.5.
63557         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
63558         (main): Use it.
63559         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
63560         macros.
63561         (main): Use them.
63562
63563 2007-03-25  Bruno Haible  <bruno@clisp.org>
63564
63565         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
63566         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
63567         exists but doesn't work.
63568         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
63569         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
63570         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
63571         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
63572         math.h.
63573
63574 2007-03-25  Bruno Haible  <bruno@clisp.org>
63575
63576         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
63577         returns inf. Needed on IRIX 6.5.
63578
63579 2007-03-25  Bruno Haible  <bruno@clisp.org>
63580
63581         * tests/test-frexpl.c: Include isnanl-nolibm.h.
63582         (main): Use isnanl instead of x != x idiom.
63583         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
63584
63585         * tests/test-frexp.c: Include isnan.h.
63586         (main): Use isnan instead of x != x idiom.
63587         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
63588
63589 2007-03-25  Bruno Haible  <bruno@clisp.org>
63590
63591         * tests/test-frexp.c (NaN): New function/macro.
63592         (main): Use it instead of 0.0 / 0.0.
63593         * tests/test-isnan.c (NaN): New function/macro.
63594         (main): Use it instead of 0.0 / 0.0.
63595         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
63596         (test_function): Use it instead of 0.0 / 0.0.
63597         * tests/test-vasprintf-posix.c (NaN): New function/macro.
63598         (test_function): Use it instead of 0.0 / 0.0.
63599         * tests/test-snprintf-posix.h (NaN): New function/macro.
63600         (test_function): Use it instead of 0.0 / 0.0.
63601         * tests/test-sprintf-posix.h (NaN): New function/macro.
63602         (test_function): Use it instead of 0.0 / 0.0.
63603         * tests/test-fprintf-posix.h (NaN): New function/macro.
63604         (test_function): Use it instead of 0.0 / 0.0.
63605         * tests/test-printf-posix.h (NaN): New function/macro.
63606         (test_function): Use it instead of 0.0 / 0.0.
63607
63608         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
63609
63610 2007-03-25  Bruno Haible  <bruno@clisp.org>
63611
63612         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
63613
63614 2007-03-25  Bruno Haible  <bruno@clisp.org>
63615
63616         * lib/regexec.c (merge_state_with_log): Make static.
63617
63618 2007-03-25  Bruno Haible  <bruno@clisp.org>
63619
63620         * lib/trigl.c (kernel_rem_pio2): Make static.
63621
63622 2007-03-25  Bruno Haible  <bruno@clisp.org>
63623
63624         * lib/sincosl.c (sincosl_table): Make static.
63625
63626 2007-03-25  Bruno Haible  <bruno@clisp.org>
63627
63628         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
63629         if the compiler does not support C99.
63630
63631 2007-03-25  Bruno Haible  <bruno@clisp.org>
63632
63633         * modules/time (Makefile.am): Ensure all rule action lines start with a
63634         tab.
63635
63636 2007-03-24  Bruno Haible  <bruno@clisp.org>
63637
63638         * modules/tsearch-tests: New file.
63639         * tests/test-tsearch.sh: New file.
63640         * tests/test-tsearch.c: New file, mostly copied from glibc.
63641
63642         * modules/search-tests: New file.
63643         * tests/test-search.c: New file.
63644
63645         * modules/search: New file.
63646         * lib/search_.h: New file, incorporating lib/tsearch.h.
63647         * m4/search_h.m4: New file.
63648         * lib/tsearch.h: Remove file.
63649         * lib/tsearch.c: Include search.h instead of tsearch.h.
63650         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
63651         HAVE_TSEARCH.
63652         * modules/tsearch (Files): Remove lib/tsearch.h.
63653         (Depends-on): Add search.
63654         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
63655         (Include): Change tsearch.h into search.h.
63656
63657 2007-03-24  Bruno Haible  <bruno@clisp.org>
63658
63659         * modules/fpucw: New file.
63660         * lib/fpucw.h: New file.
63661         * lib/frexp.c: Include fpucw.h.
63662         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
63663         (FUNC): Use them.
63664         * lib/printf-frexp.c: Include fpucw.h.
63665         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
63666         (FUNC): Use them.
63667         * lib/vasnprintf.c: Include fpucw.h.
63668         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
63669         'long double' calculations.
63670         * tests/test-frexpl.c: Include fpucw.h.
63671         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
63672         * tests/test-printf-frexpl.c: Include fpucw.h.
63673         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
63674         * modules/frexpl (Depends-on): Add fpucw.
63675         * modules/printf-frexpl (Depends-on): Likewise.
63676         * modules/fprintf-posix (Depends-on): Likewise.
63677         * modules/snprintf-posix (Depends-on): Likewise.
63678         * modules/sprintf-posix (Depends-on): Likewise.
63679         * modules/vasnprintf-posix (Depends-on): Likewise.
63680         * modules/vasprintf-posix (Depends-on): Likewise.
63681         * modules/vfprintf-posix (Depends-on): Likewise.
63682         * modules/vsnprintf-posix (Depends-on): Likewise.
63683         * modules/vsprintf-posix (Depends-on): Likewise.
63684         * modules/frexpl-tests (Depends-on): Likewise.
63685         * modules/printf-frexpl-tests (Depends-on): Likewise.
63686
63687 2007-03-24  Bruno Haible  <bruno@clisp.org>
63688
63689         * lib/float+.h: New file.
63690         * lib/isnan.c: Include float+.h.
63691         (SIZE): New macro.
63692         (FUNC): Compare only SIZE bytes of the value.
63693         * lib/vasnprintf.c: Include float+.h.
63694         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
63695         SIZEOF_LDBL or SIZEOF_DBL bytes.
63696         * modules/isnan-nolibm (Files): Add lib/float+.h.
63697         * modules/isnanl-nolibm (Files): Add lib/float+.h.
63698         * modules/isnanl (Files): Add lib/float+.h.
63699         * modules/vasnprintf (Files): Add lib/float+.h.
63700
63701 2007-03-24  Bruno Haible  <bruno@clisp.org>
63702
63703         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
63704         include isnanl-nolibm.h.
63705
63706 2007-03-24  Bruno Haible  <bruno@clisp.org>
63707
63708         * tests/test-read-file.c (main): Don't produce spurious output for
63709         expected situations. Make the test fail if it encountered unexpected
63710         results.
63711
63712 2007-03-24  Bruno Haible  <bruno@clisp.org>
63713
63714         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
63715         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
63716
63717 2007-03-24  Bruno Haible  <bruno@clisp.org>
63718
63719         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
63720
63721 2007-03-24  Bruno Haible  <bruno@clisp.org>
63722
63723         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
63724         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
63725
63726         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
63727         * modules/utf8-ucs4: Turn into a symbolic link to module
63728         unistr/u8-mbtouc.
63729
63730         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
63731         utf8-ucs4-unsafe.
63732         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
63733         unistr/u8-mbtouc-unsafe.
63734
63735         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
63736         * modules/utf16-ucs4: Turn into a symbolic link to module
63737         unistr/u16-mbtouc.
63738
63739         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
63740         utf16-ucs4-unsafe.
63741         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
63742         unistr/u16-mbtouc-unsafe.
63743
63744         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
63745         * modules/ucs4-utf8: Turn into a symbolic link to module
63746         unistr/u8-ubtomb.
63747
63748         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
63749         * modules/ucs4-utf16: Turn into a symbolic link to module
63750         unistr/u16-ubtomb.
63751
63752 2007-03-24  Bruno Haible  <bruno@clisp.org>
63753
63754         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
63755         Enable the function only if HAVE_INLINE.
63756         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
63757         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
63758         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
63759         Enable the function only if HAVE_INLINE.
63760         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
63761         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
63762         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
63763         Enable the function only if HAVE_INLINE.
63764         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
63765         Enable the function only if HAVE_INLINE.
63766         * modules/utf8-ucs4: Update.
63767         * modules/utf8-ucs4-unsafe: Update.
63768         * modules/utf16-ucs4: Update.
63769         * modules/utf16-ucs4-unsafe: Update.
63770         * modules/ucs4-utf8: Update.
63771         * modules/ucs4-utf16: Update.
63772
63773 2007-03-24  Bruno Haible  <bruno@clisp.org>
63774
63775         * lib/utf8-ucs4.h: Remove file.
63776         * lib/utf8-ucs4-unsafe.h: Remove file.
63777         * lib/utf16-ucs4.h: Remove file.
63778         * lib/utf16-ucs4-unsafe.h: Remove file.
63779         * lib/ucs4-utf8.h: Remove file.
63780         * lib/ucs4-utf16.h: Remove file.
63781         * lib/unistr.h: Include their previous contents.
63782         * m4/utf-ucs4.m4: Remove file.
63783         * m4/ucs4-utf.m4: Remove file.
63784         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
63785         (Depends-on): Add unistr/base.
63786         (configure.ac): Remove gl_UTF_UCS4.
63787         (Makefile.am): Update.
63788         (Include): Change to unistr.h.
63789         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
63790         (Depends-on): Add unistr/base.
63791         (configure.ac): Remove gl_UTF_UCS4.
63792         (Makefile.am): Update.
63793         (Include): Change to unistr.h.
63794         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
63795         (Depends-on): Add unistr/base.
63796         (configure.ac): Remove gl_UTF_UCS4.
63797         (Makefile.am): Update.
63798         (Include): Change to unistr.h.
63799         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
63800         (Depends-on): Add unistr/base.
63801         (configure.ac): Remove gl_UTF_UCS4.
63802         (Makefile.am): Update.
63803         (Include): Change to unistr.h.
63804         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
63805         (Depends-on): Add unistr/base.
63806         (configure.ac): Remove gl_UCS4_UTF.
63807         (Makefile.am): Update.
63808         (Include): Change to unistr.h.
63809         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
63810         (Depends-on): Add unistr/base.
63811         (configure.ac): Remove gl_UCS4_UTF.
63812         (Makefile.am): Update.
63813         (Include): Change to unistr.h.
63814         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
63815         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
63816         utf8-ucs4-unsafe.h.
63817         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
63818         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
63819         utf16-ucs4-unsafe.h.
63820         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
63821         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
63822         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
63823         * lib/unistr/u8-strchr.c: Likewise.
63824         * lib/unistr/u8-strrchr.c: Likewise.
63825         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
63826         * lib/unistr/u16-strchr.c: Likewise.
63827         * lib/unistr/u16-strrchr.c: Likewise.
63828         * lib/striconveh.c: Update.
63829         * lib/linebreak.c: Update.
63830
63831 2007-03-24  Bruno Haible  <bruno@clisp.org>
63832
63833         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
63834         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
63835
63836 2007-03-22  Bruno Haible  <bruno@clisp.org>
63837
63838         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
63839
63840 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
63841
63842         * MODULES.html.sh (File system functions): New module write-any-file.
63843         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
63844         * m4/write-any-file.m4: New files.
63845
63846 2007-03-23  Eric Blake  <ebb9@byu.net>
63847
63848         * gnulib-tool: Rearrange space-tab sequences, since some editors
63849         like to eat them.
63850
63851 2007-03-23  Eric Blake  <ebb9@byu.net>
63852
63853         * lib/version-etc.c (version_etc_va): Update license wording to
63854         be more concise.  Recommended by Richard Stallman.
63855
63856 2007-03-22  Bruno Haible  <bruno@clisp.org>
63857
63858         * lib/poll.c (MSG_PEEK): New fallback definition.
63859
63860 2007-03-22  Bruno Haible  <bruno@clisp.org>
63861
63862         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
63863         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
63864         (main): Update.
63865         Fixes a compilation error on BeOS.
63866
63867 2007-03-22  Bruno Haible  <bruno@clisp.org>
63868
63869         * modules/frexpl-tests: New file.
63870         * tests/test-frexpl.c: New file.
63871
63872         * modules/frexpl: New file.
63873         * m4/frexpl.m4: New file.
63874         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
63875         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
63876         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
63877         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
63878         (Depends-on): Add frexpl. Remove isnanl-nolibm.
63879         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
63880
63881 2007-03-22  Bruno Haible  <bruno@clisp.org>
63882
63883         * lib/frexpl.c: Share code with lib/frexp.c.
63884         * modules/mathl (Files): Add lib/frexp.c.
63885         (Depends-on): Add isnanl-nolibm.
63886
63887 2007-03-22  Bruno Haible  <bruno@clisp.org>
63888
63889         * modules/printf-frexp (Files): Add m4/frexp.m4.
63890         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
63891         only if the found frexp function actually works.
63892
63893 2007-03-22  Bruno Haible  <bruno@clisp.org>
63894
63895         * lib/frexp.c: Remove older implementation that uses divisions.
63896
63897 2007-03-21  Bruno Haible  <bruno@clisp.org>
63898
63899         * modules/frexp-tests: New file.
63900         * tests/test-frexp.c: New file.
63901
63902         * modules/frexp: New file.
63903         * lib/frexp.c: New file.
63904         * m4/frexp.m4: New file.
63905         * lib/math_.h (frexp): New declaration.
63906         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
63907         REPLACE_FREXP.
63908         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
63909
63910 2007-03-21  Bruno Haible  <bruno@clisp.org>
63911
63912         * modules/isnanl-tests: New file.
63913         * tests/test-isnanl.c: New file.
63914
63915         * modules/isnanl: New file.
63916         * lib/isnanl.h: New file.
63917         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
63918         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
63919         gl_FUNC_ISNANL_WORKS.
63920         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
63921         New macros.
63922
63923 2007-03-21  Bruno Haible  <bruno@clisp.org>
63924
63925         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
63926         lib/isnanl.h.
63927         (Include): Update.
63928         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
63929         * lib/vasnprintf.c: Update.
63930         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
63931         tests/test-isnanl.h, remove tests/test-isnanl.c.
63932         (Makefile.am): Update.
63933         * tests/test-isnanl-nolibm.c: New file.
63934         * tests/test-isnanl.h: New file.
63935         * tests/test-isnanl.c: Remove file.
63936
63937 2007-03-21  Jim Meyering  <jim@meyering.net>
63938
63939         When trying to open ".", treat ESTALE like EACCES.
63940         * lib/savewd.c (savewd_save): Resort to forking not just upon
63941         failure with EACCES, but also when errno is ESTALE.
63942
63943 2007-03-20  Bruno Haible  <bruno@clisp.org>
63944
63945         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
63946         Needed on AIX 5.1. Reported by Matthew Woehlke.
63947
63948 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
63949
63950         Suggestions by Bruno Haible:
63951         * lib/acl-internal.h: Include "gettext.h" rather than rolling
63952         our own.
63953         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
63954         * modules/acl (Depends-on): Add gettext.
63955
63956 2007-03-19  Bruno Haible  <bruno@clisp.org>
63957
63958         * modules/iconvme: Remove file.
63959         * lib/iconvme.h: Remove file.
63960         * lib/iconvme.c: Remove file.
63961         * m4/iconvme.m4: Remove file.
63962
63963 2007-03-19  Bruno Haible  <bruno@clisp.org>
63964
63965         * doc/relocatable-maint.texi: Break long shell script line.
63966         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
63967
63968 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
63969
63970         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
63971         handle file_has_acl.
63972         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
63973         * lib/acl.c: Move header inclusions and related macro defns into
63974         lib/acl-internal.h.
63975         (S_ISLNK): Remove defn, since that's now done for us.
63976         (file_has_acl): Move to lib/file-has-acl.c.
63977         Call acl_trivial if available.  This is the crucial part of the fix.
63978         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
63979         shared within the library.  Rewrite a bit, partly to make it compatible
63980         with the GNU coding style.
63981         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
63982         Remove unnecessary double-quotes.
63983         Don't test for acl_to_text; the build will catch that.
63984         Replace acl_entries if it doesn't exist and it is needed.
63985         Check for -lsec and acl_trivial (as used on Solaris 10).
63986         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
63987         lib/file-has-acl.c.
63988         (Depends-on): Add sys_stat, for S_ISLNK.
63989
63990 2007-03-19  Ben Pfaff  <blp@gnu.org>
63991
63992         * doc/gnulib.texi: Fix typos.
63993         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
63994
63995 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
63996
63997         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
63998         If size is zero here, buf must be zero.
63999
64000 2007-03-19  Simon Josefsson  <simon@josefsson.org>
64001
64002         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
64003         <bruno@clisp.org>.
64004
64005 2007-03-18  Bruno Haible  <bruno@clisp.org>
64006
64007         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
64008         Suggested by Eric Blake.
64009
64010 2007-03-18  Ben Pfaff  <blp@gnu.org>
64011
64012         * doc/relocatable.texi: Recommend using as prefix a directory
64013         that does not exist and will never be created.  Based on
64014         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
64015         and others.
64016
64017 2007-03-17  Bruno Haible  <bruno@clisp.org>
64018
64019         * lib/fchownat.c: Include lchown.h.
64020
64021 2007-03-17  Bruno Haible  <bruno@clisp.org>
64022
64023         Fix endless loop when the given allocated size was > INT_MAX.
64024         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
64025         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
64026         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
64027         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
64028         * lib/sprintf.c (sprintf): Likewise.
64029
64030 2007-03-17  Bruno Haible  <bruno@clisp.org>
64031
64032         * tests/test-argp-2.sh (func_compare): Output a context diff.
64033
64034 2007-03-17  Bruno Haible  <bruno@clisp.org>
64035
64036         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
64037         locale's decimal-point character.
64038
64039 2007-03-17  Bruno Haible  <bruno@clisp.org>
64040
64041         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
64042         before comparing it. Needed because on some platforms (e.g. x86) a
64043         'long double' occupies less bytes than sizeof (long double).
64044
64045 2007-03-17  Bruno Haible  <bruno@clisp.org>
64046
64047         * tests/test-crc.c (main): Make printf statements 64-bit clean.
64048         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
64049         * tests/test-getaddrinfo.c (simple): Likewise.
64050         * tests/test-read-file.c (main): Likewise.
64051
64052 2007-03-17  Bruno Haible  <bruno@clisp.org>
64053
64054         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
64055
64056 2007-03-17  Bruno Haible  <bruno@clisp.org>
64057
64058         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
64059         unused variable.
64060
64061 2007-03-17  Bruno Haible  <bruno@clisp.org>
64062
64063         * tests/test-c-strcasecmp.c: Include c-strcase.h.
64064         * tests/test-c-strncasecmp.c: Likewise.
64065
64066 2007-03-17  Bruno Haible  <bruno@clisp.org>
64067
64068         * modules/stdlib (Depends-on): Add unistd.
64069         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
64070         Needed for MacOS X 10.3.
64071
64072 2007-03-17  Bruno Haible  <bruno@clisp.org>
64073
64074         * lib/unistr/u-strdup.h: Include <stdlib.h>.
64075
64076 2007-03-17  Bruno Haible  <bruno@clisp.org>
64077
64078         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
64079
64080 2007-03-17  Bruno Haible  <bruno@clisp.org>
64081
64082         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
64083         to reflect files copied from gnulib (with or without modifications).
64084         Suggested by Jim Meyering.
64085
64086 2007-03-17  Eric Blake  <ebb9@byu.net>
64087
64088         * NEWS: Document stdlib change from 2007-02-18.
64089
64090 2007-03-17  Jim Meyering  <jim@meyering.net>
64091
64092         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
64093         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
64094         someone uses a name containing shell meta-characters.
64095         Reported by Alfred M. Szmidt.
64096
64097         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
64098
64099 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
64100
64101         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
64102         and copy gettext configuration files only if configure.ac contains
64103         a use of AM_GNU_GETTEXT_VERSION.
64104
64105 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
64106
64107         * build-aux/bootstrap (gnulib_name): New variable.
64108         (gnulib_tool_options): Use it.
64109
64110 2007-03-13  Simon Josefsson  <simon@josefsson.org>
64111
64112         * tests/test-des.c: Use new namespace.
64113
64114 2007-03-15  Bruno Haible  <bruno@clisp.org>
64115
64116         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
64117         Reported by James Youngman <jay@gnu.org>.
64118
64119 2007-03-15  Bruno Haible  <bruno@clisp.org>
64120
64121         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
64122         declared prototype. Needed with cc on OSF/1 5.1.
64123
64124 2007-03-15  Bruno Haible  <bruno@clisp.org>
64125
64126         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
64127         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
64128         (struct gl_list_implementation): Add dispose_fn argument to the
64129         'create_empty', 'create' methods.
64130         (struct gl_list_impl_base): Add field 'dispose_fn'.
64131         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
64132         argument.
64133         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
64134         dispose_fn argument.
64135         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
64136         dispose_fn on the dropped values.
64137         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
64138         dispose_fn argument.
64139         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
64140         dropped values.
64141         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
64142         (gl_tree_remove_node): Call dispose_fn on the dropped value.
64143         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
64144         (gl_tree_remove_node): Call dispose_fn on the dropped value.
64145         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
64146         argument.
64147         (gl_tree_list_free): Call dispose_fn on the dropped values.
64148         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
64149         the dropped values.
64150         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
64151         Add dispose_fn argument.
64152         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
64153         Call dispose_fn on the dropped values.
64154         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
64155         Add dispose_fn argument.
64156         (gl_sublist_create): Initialize the 'dispose_fn' field.
64157         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
64158         * tests/test-array_list.c (main): Update.
64159         * tests/test-carray_list.c (main): Update.
64160         * tests/test-avltree_list.c (main): Update.
64161         * tests/test-rbtree_list.c (main): Update.
64162         * tests/test-avltreehash_list.c (main): Update.
64163         * tests/test-rbtreehash_list.c (main): Update.
64164         * tests/test-linked_list.c (main): Update.
64165         * tests/test-linkedhash_list.c (main): Update.
64166         * tests/test-array_oset.c (main): Update.
64167
64168 2007-03-15  Bruno Haible  <bruno@clisp.org>
64169
64170         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
64171         (gl_oset_create_empty): Add dispose_fn argument.
64172         (struct gl_oset_implementation): Add dispose_fn argument to
64173         'create_empty' method.
64174         (struct gl_oset_impl_base): Add dispose_fn field.
64175         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
64176         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
64177         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
64178         values.
64179         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
64180         (gl_tree_oset_free): Call dispose_fn on the dropped values.
64181         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
64182         dropped value.
64183         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
64184         dropped value.
64185         * tests/test-array_oset.c (main): Update.
64186         * tests/test-avltree_oset.c (main): Update.
64187         * tests/test-rbtree_oset.c (main): Update.
64188         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
64189
64190 2007-03-13  Bruno Haible  <bruno@clisp.org>
64191
64192         * tests/test-stdbool.c (i): Update after last patch.
64193
64194 2007-03-12  Bruno Haible  <bruno@clisp.org>
64195
64196         * lib/quotearg.c: Include <wctype.h> early, before the definition of
64197         the iswprint macro. Needed on Solaris 2.5.1.
64198
64199 2007-03-12  Bruno Haible  <bruno@clisp.org>
64200
64201         * tests/test-printf-frexp.c (main): Declare x as volatile.
64202
64203 2007-03-12  Simon Josefsson  <simon@josefsson.org>
64204
64205         * doc/gnulib.texi (Build robot for gnulib): New section.
64206
64207 2007-03-12  Jim Meyering  <jim@meyering.net>
64208
64209         * build-aux/bootstrap: New file.
64210         * build-aux/bootstrap.conf: New file, from coreutils.
64211
64212 2007-03-11  Bruno Haible  <bruno@clisp.org>
64213
64214         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
64215
64216 2007-03-12  Simon Josefsson  <simon@josefsson.org>
64217
64218         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
64219         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
64220         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
64221
64222 2007-03-11  Bruno Haible  <bruno@clisp.org>
64223
64224         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
64225         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
64226
64227 2007-03-11  Bruno Haible  <bruno@clisp.org>
64228
64229         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
64230         formula. Needed for SunPRO C 5.0.
64231
64232 2007-03-11  Bruno Haible  <bruno@clisp.org>
64233
64234         * modules/long-options (Depends-on): Add getopt.
64235
64236 2007-03-11  Bruno Haible  <bruno@clisp.org>
64237
64238         * modules/modechange (Depends-on): Add stdbool.
64239
64240 2007-03-11  Bruno Haible  <bruno@clisp.org>
64241
64242         * modules/i-ring (Depends-on): Add stdbool.
64243
64244 2007-03-11  Bruno Haible  <bruno@clisp.org>
64245
64246         * modules/gc-des (Depends-on): Add stdbool.
64247
64248 2007-03-11  Bruno Haible  <bruno@clisp.org>
64249
64250         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
64251
64252 2007-03-11  Bruno Haible  <bruno@clisp.org>
64253
64254         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
64255
64256 2007-03-11  Bruno Haible  <bruno@clisp.org>
64257
64258         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
64259
64260 2007-03-11  Bruno Haible  <bruno@clisp.org>
64261
64262         * lib/vasnprintf.c (sprintf): Undefine.
64263
64264 2007-03-11  Bruno Haible  <bruno@clisp.org>
64265
64266         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
64267         initializers in SunPRO C and Compaq C compilers.
64268
64269 2007-03-11  Bruno Haible  <bruno@clisp.org>
64270
64271         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
64272         decrementing code ANSI C compliant.
64273
64274 2007-03-11  Bruno Haible  <bruno@clisp.org>
64275
64276         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
64277         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
64278
64279 2007-03-11  Bruno Haible  <bruno@clisp.org>
64280
64281         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
64282         <stdbool.h> substitute doesn't pass.
64283
64284 2007-03-11  Bruno Haible  <bruno@clisp.org>
64285
64286         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
64287
64288 2007-03-11  Bruno Haible  <bruno@clisp.org>
64289
64290         * gnulib-tool (func_create_megatestdir): Create also an autobuild
64291         script, for submission to autobuild.josefsson.org.
64292
64293 2007-03-10  Bruno Haible  <bruno@clisp.org>
64294
64295         * modules/canonicalize-lgpl-tests: New file.
64296         * tests/test-canonicalize-lgpl.sh: New file.
64297         * tests/test-canonicalize-lgpl.c: New file.
64298
64299         * modules/c-strcase-tests: New file.
64300         * tests/test-c-strcase.sh: New file.
64301         * tests/test-c-strcasecmp.c: New file.
64302         * tests/test-c-strncasecmp.c: New file.
64303
64304         * modules/atexit-tests: New file.
64305         * tests/test-atexit.sh: New file.
64306         * tests/test-atexit.c: New file.
64307
64308 2007-03-10  Bruno Haible  <bruno@clisp.org>
64309
64310         * tests/test-binary-io.sh: Use temporary filenames that are not so
64311         likely to clash with those of other tests (in a parallel make).
64312         * tests/test-binary-io.c: Likewise.
64313
64314 2007-03-10  Bruno Haible  <bruno@clisp.org>
64315
64316         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
64317         fallback; use #error instead.
64318         Suggested by Simon Josefsson.
64319
64320 2007-03-10  Bruno Haible  <bruno@clisp.org>
64321
64322         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
64323         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
64324         first and the last.
64325
64326 2007-03-10  Bruno Haible  <bruno@clisp.org>
64327
64328         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
64329
64330 2007-03-10  Bruno Haible  <bruno@clisp.org>
64331
64332         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
64333         "make distcheck".
64334         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
64335         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
64336         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
64337
64338 2007-03-10  Bruno Haible  <bruno@clisp.org>
64339
64340         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
64341         variable.
64342         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
64343         variable.
64344
64345 2007-03-09  Eric Blake  <ebb9@byu.net>
64346         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
64347
64348         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
64349         types are not being provided by gnulib.
64350         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
64351         types are supported.
64352
64353 2007-03-10  Bruno Haible  <bruno@clisp.org>
64354
64355         * lib/stdio_.h (__attribute__): New macro.
64356         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
64357         vsprintf): Specify __attribute__ __format__ for GCC.
64358         Suggested by Eric Blake.
64359
64360 2007-03-09  Bruno Haible  <bruno@clisp.org>
64361
64362         * modules/printf-posix-tests: New file.
64363         * tests/test-printf-posix.sh: New file.
64364         * tests/test-printf-posix.c: New file.
64365
64366         * modules/printf-posix: New file.
64367         * lib/printf.c: New file.
64368         * m4/printf-posix-rpl.m4: New file.
64369         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
64370         REPLACE_PRINTF.
64371         * lib/stdio_.h (printf): New declaration.
64372         (format, __format__, ____printf____, ____scanf____, ____strftime____,
64373         ____strfmon____): New macros.
64374         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
64375         REPLACE_PRINTF.
64376
64377 2007-03-09  Bruno Haible  <bruno@clisp.org>
64378
64379         * tests/test-vasnprintf-posix2.sh: New file.
64380         * tests/test-vasnprintf-posix2.c: New file.
64381         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
64382         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
64383         (Makefile.am): Activate test-vasnprintf-posix2.sh.
64384
64385         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
64386         a locale dependent decimal point, rather than always '.'.
64387
64388 2007-03-09  Eric Blake  <ebb9@byu.net>
64389
64390         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
64391         spite of platforms like Tandem/NSK that define it to -1.
64392
64393 2007-03-08  Bruno Haible  <bruno@clisp.org>
64394
64395         * modules/vprintf-posix-tests: New file.
64396         * tests/test-vprintf-posix.sh: New file.
64397         * tests/test-vprintf-posix.c: New file.
64398         * tests/test-printf-posix.h: New file.
64399
64400         * modules/vprintf-posix: New file.
64401         * lib/vprintf.c: New file.
64402         * m4/vprintf-posix.m4: New file.
64403         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
64404         REPLACE_VPRINTF.
64405         * lib/stdio_.h (vprintf): New declaration.
64406         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
64407         REPLACE_VPRINTF.
64408
64409 2007-03-08  Bruno Haible  <bruno@clisp.org>
64410
64411         * modules/fprintf-posix-tests: New file.
64412         * tests/test-fprintf-posix.sh: New file.
64413         * tests/test-fprintf-posix.c: New file.
64414
64415         * modules/fprintf-posix: New file.
64416         * lib/fprintf.c: New file.
64417         * m4/fprintf-posix.m4: New file.
64418         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
64419         REPLACE_FPRINTF.
64420         * lib/stdio_.h (fprintf): New declaration.
64421         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
64422         REPLACE_FPRINTF.
64423
64424 2007-03-08  Bruno Haible  <bruno@clisp.org>
64425
64426         * modules/vfprintf-posix-tests: New file.
64427         * tests/test-vfprintf-posix.sh: New file.
64428         * tests/test-vfprintf-posix.c: New file.
64429         * tests/test-fprintf-posix.h: New file.
64430         * tests/test-fprintf-posix.out: New file.
64431
64432         * modules/vfprintf-posix: New file.
64433         * lib/vfprintf.c: New file.
64434         * m4/vfprintf-posix.m4: New file.
64435         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
64436         REPLACE_VFPRINTF.
64437         * lib/stdio_.h (vfprintf): New declaration.
64438         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
64439         REPLACE_VFPRINTF.
64440
64441 2007-03-08  Bruno Haible  <bruno@clisp.org>
64442
64443         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
64444
64445 2007-03-08  Bruno Haible  <bruno@clisp.org>
64446
64447         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
64448         instead of 'expr' invocations.
64449         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64450         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64451         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64452         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64453         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64454         Suggested by Paul Eggert.
64455
64456 2007-03-08  Bruno Haible  <bruno@clisp.org>
64457
64458         * modules/fseterr-tests: New file.
64459         * tests/test-fseterr.c: New file.
64460
64461         * modules/fseterr: New file.
64462         * lib/fseterr.h: New file.
64463         * lib/fseterr.c: New file.
64464
64465 2007-03-08  Bruno Haible  <bruno@clisp.org>
64466
64467         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
64468         * lib/getopt_.h: Likewise.
64469         * lib/mbswidth.h: Likewise.
64470         * lib/setenv.h: Likewise.
64471         * lib/vasnprintf.h: Likewise.
64472         * lib/vasprintf.h: Likewise.
64473         * lib/verror.h: Likewise.
64474         * lib/xsetenv.h: Likewise.
64475         * lib/xvasprintf.h: Likewise.
64476
64477 2007-03-08  Jim Meyering  <jim@meyering.net>
64478
64479         * users.txt: Add parted.
64480
64481         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
64482
64483 2007-03-07  Bruno Haible  <bruno@clisp.org>
64484
64485         * m4/printf.m4: Make the shell script snippets copy&pastable.
64486
64487 2007-03-02  Bruno Haible  <bruno@clisp.org>
64488
64489         * lib/netinet_in_.h: New file.
64490         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
64491         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
64492         * modules/netinet_in (Files): Add lib/netinet_in_.h.
64493         (Depends-on): Add absolute-header.
64494         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
64495         into netinet/in.h.
64496
64497 2007-03-03  Bruno Haible  <bruno@clisp.org>
64498
64499         * lib/sys_select_.h: New file.
64500         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
64501         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
64502         * modules/sys_select (Files): Add lib/sys_select_.h.
64503         (Depends-on): Add absolute-header.
64504         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
64505         into sys/select.h.
64506
64507 2007-03-02  Bruno Haible  <bruno@clisp.org>
64508
64509         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
64510         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
64511         values.
64512         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
64513         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
64514         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
64515         * modules/sys_socket (Depends-on): Add absolute-header.
64516         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
64517         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
64518         (Include): Remove requirement of inclusion of <sys/types.h>.
64519
64520 2007-03-02  Bruno Haible  <bruno@clisp.org>
64521
64522         * lib/byteswap_.h (bswap_32): Fix formula.
64523
64524 2007-03-06  Bruno Haible  <bruno@clisp.org>
64525
64526         * modules/sprintf-posix-tests: New file.
64527         * tests/test-sprintf-posix.c: New file.
64528
64529         * modules/sprintf-posix: New file.
64530         * lib/sprintf.c: New file.
64531         * m4/sprintf-posix.m4: New file.
64532         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
64533         REPLACE_SPRINTF.
64534         * lib/stdio_.h (sprintf): New declaration.
64535         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
64536         REPLACE_SPRINTF.
64537
64538 2007-03-06  Bruno Haible  <bruno@clisp.org>
64539
64540         * modules/vsprintf-posix-tests: New file.
64541         * tests/test-vsprintf-posix.c: New file.
64542         * tests/test-sprintf-posix.h: New file.
64543
64544         * modules/vsprintf-posix: New file.
64545         * lib/vsprintf.c: New file.
64546         * m4/vsprintf-posix.m4: New file.
64547         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
64548         REPLACE_VSPRINTF.
64549         * lib/stdio_.h (vsprintf): New declaration.
64550         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
64551         REPLACE_VSPRINTF.
64552
64553 2007-03-06  Bruno Haible  <bruno@clisp.org>
64554
64555         * modules/vsnprintf (Depend-on): Remove minmax.
64556
64557 2007-03-06  Bruno Haible  <bruno@clisp.org>
64558
64559         * modules/snprintf-posix-tests: New file.
64560         * tests/test-snprintf-posix.c: New file.
64561
64562         * modules/snprintf-posix: New file.
64563         * m4/snprintf-posix.m4: New file.
64564         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
64565         gl_FUNC_SNPRINTF.
64566         (gl_FUNC_SNPRINTF): Invoke it.
64567         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
64568         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
64569         is set.
64570         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
64571
64572 2007-03-06  Bruno Haible  <bruno@clisp.org>
64573
64574         * modules/vsnprintf-posix-tests: New file.
64575         * tests/test-vsnprintf-posix.c: New file.
64576         * tests/test-snprintf-posix.h: New file.
64577
64578         * modules/vsnprintf-posix: New file.
64579         * m4/vsnprintf-posix.m4: New file.
64580         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
64581         gl_FUNC_VSNPRINTF.
64582         (gl_FUNC_VSNPRINTF): Invoke it.
64583         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
64584         * lib/stdio_.h (vsnprintf): Define as a replacement if
64585         REPLACE_VSNPRINTF is set.
64586         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
64587
64588 2007-03-06  Bruno Haible  <bruno@clisp.org>
64589
64590         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
64591         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
64592
64593 2007-03-06  Bruno Haible  <bruno@clisp.org>
64594
64595         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
64596         (asinl): Declare also if HAVE_DECL_ASINL is set.
64597         (atanl): Declare also if HAVE_DECL_ATANL is set.
64598         (ceill): Declare also if HAVE_DECL_CEILL is set.
64599         (cosl): Declare also if HAVE_DECL_COSL is set.
64600         (expl): Declare also if HAVE_DECL_EXPL is set.
64601         (floorl): Declare also if HAVE_DECL_FLOORL is set.
64602         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
64603         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
64604         (logl): Declare also if HAVE_DECL_LOGL is set.
64605         (sinl): Declare also if HAVE_DECL_SINL is set.
64606         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
64607         (tanl): Declare also if HAVE_DECL_TANL is set.
64608         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
64609         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
64610         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
64611         declaration of frexpl, ldexpl.
64612         * modules/printf-frexpl (Depends-on): Add math.
64613         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
64614
64615 2007-03-05  Bruno Haible  <bruno@clisp.org>
64616
64617         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
64618         frexpl and ldexpl are declared.
64619         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
64620
64621 2007-03-05  Bruno Haible  <bruno@clisp.org>
64622
64623         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
64624         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
64625
64626 2007-03-05  Bruno Haible  <bruno@clisp.org>
64627
64628         * lib/stdio_.h: Include <stddef.h>.
64629
64630 2007-03-05  Bruno Haible  <bruno@clisp.org>
64631
64632         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
64633
64634 2007-03-05  Bruno Haible  <bruno@clisp.org>
64635
64636         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
64637         NetBSD 4, from Ralf Wildenhues.
64638
64639 2007-03-04  Bruno Haible  <bruno@clisp.org>
64640
64641         * lib/vasprintf.h: Update #if logic for the case when the functions
64642         exist but are overridden.
64643
64644 2007-03-04  Bruno Haible  <bruno@clisp.org>
64645
64646         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
64647         implementations: glibc-2.4 and MacOS X 10.3.
64648         * tests/test-vasnprintf-posix.c (test_function): Test also the case
64649         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
64650         * tests/test-vasprintf-posix.c (test_function): Likewise.
64651
64652 2007-03-04  Bruno Haible  <bruno@clisp.org>
64653
64654         * modules/vasprintf-posix-tests: New file.
64655         * tests/test-vasprintf-posix.c: New file.
64656
64657         * modules/vasprintf-posix: New file.
64658         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
64659         defined.
64660         * m4/vasprintf-posix.m4: New file.
64661         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
64662         gl_FUNC_VASPRINTF.
64663         (gl_FUNC_VASPRINTF): Invoke it.
64664         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
64665         here.
64666         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
64667
64668 2007-03-04  Bruno Haible  <bruno@clisp.org>
64669
64670         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
64671         REPLACE_GETTIMEOFDAY.
64672         * modules/sys_time (Makefile.am): Likewise.
64673         * m4/sys_time_h.m4: Likewise.
64674         * m4/gettimeofday.m4: Likewise.
64675
64676 2007-03-04  Bruno Haible  <bruno@clisp.org>
64677
64678         * modules/vasnprintf-posix-tests: New file.
64679         * tests/test-vasnprintf-posix.c: New file.
64680
64681         * modules/vasnprintf-posix: New file.
64682         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
64683         printf-frexpl.h.
64684         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
64685         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
64686         REPLACE_VASNPRINTF is defined.
64687         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
64688         gl_FUNC_VASNPRINTF.
64689         (gl_FUNC_VASNPRINTF): Invoke it.
64690         * m4/vasnprintf-posix.m4: New file.
64691         * m4/printf.m4: New file.
64692
64693 2007-03-04  Bruno Haible  <bruno@clisp.org>
64694
64695         Compile progreloc.c only if --enable-relocatable is specified.
64696         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
64697         if --enable-relocatable was specified.
64698         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
64699         lib_SOURCES.
64700
64701 2007-03-04  Jim Meyering  <jim@meyering.net>
64702
64703         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
64704         Use it consistently, rather than enumerating errno constants.
64705
64706 2007-03-04  Bruno Haible  <bruno@clisp.org>
64707
64708         * modules/xvasprintf-tests: New file.
64709         * tests/test-xvasprintf.c: New file.
64710
64711         * modules/vasprintf-tests: New file.
64712         * tests/test-vasprintf.c: New file.
64713
64714         * modules/vasnprintf-tests: New file.
64715         * tests/test-vasnprintf.c: New file.
64716
64717         * modules/vsnprintf-tests: New file.
64718         * tests/test-vsnprintf.c: New file.
64719
64720         * modules/snprintf-tests: New file.
64721         * tests/test-snprintf.c: New file.
64722
64723 2007-03-04  Bruno Haible  <bruno@clisp.org>
64724
64725         Compile relocatable.c only if --enable-relocatable is specified.
64726         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
64727         gl_RELOCATABLE_LIBRARY.
64728         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
64729         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
64730         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
64731         gl_RELOCATABLE_LIBRARY.
64732         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
64733         (Makefile.am): Remove lib_SOURCES.
64734         * modules/relocatable-lib-lgpl (configure.ac): Invoke
64735         gl_RELOCATABLE_LIBRARY.
64736         (Makefile.am): Remove lib_SOURCES.
64737         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
64738         always.
64739         * modules/relocatable-prog-wrapper (configure.ac): Invoke
64740         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
64741
64742 2007-03-04  Bruno Haible  <bruno@clisp.org>
64743
64744         * modules/argmatch-tests: New file.
64745         * tests/test-argmatch.c: New file.
64746
64747         * tests/test-allocsa.c (main): Halve the number of loop runs.
64748
64749         * modules/alloca-opt-tests: New file.
64750         * tests/test-alloca-opt.c: New file.
64751
64752 2007-03-04  Jim Meyering  <jim@meyering.net>
64753
64754         Work around difference between Linux ACLs and Solaris 10 ZFS.
64755         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
64756         for EINVAL.
64757
64758 2007-03-03  Bruno Haible  <bruno@clisp.org>
64759
64760         * modules/relocatable-prog (Depends-on): Add back progreloc's
64761         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
64762
64763 2007-03-03  Bruno Haible  <bruno@clisp.org>
64764
64765         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
64766         * modules/relocatable-lib: New file.
64767
64768 2007-03-03  Bruno Haible  <bruno@clisp.org>
64769
64770         * modules/relocatable-prog: Renamed from modules/relocatable.
64771         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
64772
64773 2007-03-03  Bruno Haible  <bruno@clisp.org>
64774
64775         * modules/relocatable-script (Files): Add doc/relocatable.texi,
64776         m4/relocatable-lib.m4.
64777         (Depends-on): Remove 'relocatable'.
64778         (configure.ac): Add gl_RELOCATABLE_NOP.
64779
64780 2007-03-03  Bruno Haible  <bruno@clisp.org>
64781
64782         * modules/relocatable-prog-wrapper: New file.
64783         * modules/relocatable (Depends-on): Add it. Remove all other
64784         dependencies except progname.
64785         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
64786
64787         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
64788         (gl_FUNC_STRERROR): Nop.
64789         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
64790
64791         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
64792         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
64793
64794         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
64795         (gl_FUNC_READLINK): Update.
64796
64797         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
64798
64799 2007-03-03  Bruno Haible  <bruno@clisp.org>
64800
64801         * lib/xreadlink.c: Include <unistd.h> unconditionally.
64802         * modules/xreadlink (Depends-on): Add unistd.
64803         * modules/xreadlink-with-size (Depends-on): Likewise.
64804
64805 2007-03-03  Bruno Haible  <bruno@clisp.org>
64806
64807         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
64808         extracted from gt_FUNC_SETENV.
64809         (gt_FUNC_SETENV): Remove macro.
64810         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
64811         remove gt_FUNC_SETENV.
64812
64813 2007-03-03  Bruno Haible  <bruno@clisp.org>
64814
64815         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
64816         ENABLE_RELOCATABLE here.
64817         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
64818
64819 2007-03-03  Bruno Haible  <bruno@clisp.org>
64820
64821         * modules/rbtreehash-list-tests (Depends-on): Add progname.
64822         * tests/test-rbtreehash_list.c: Include progname.h.
64823         (main): Call set_program_name.
64824
64825         * modules/rbtree-oset-tests (Depends-on): Add progname.
64826         * tests/test-rbtree_oset.c: Include progname.h.
64827         (main): Call set_program_name.
64828
64829         * modules/rbtree-list-tests (Depends-on): Add progname.
64830         * tests/test-rbtree_list.c: Include progname.h.
64831         (main): Call set_program_name.
64832
64833         * modules/linked-list-tests (Depends-on): Add progname.
64834         * tests/test-linked_list.c: Include progname.h.
64835         (main): Call set_program_name.
64836
64837 2007-03-03  Bruno Haible  <bruno@clisp.org>
64838
64839         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
64840         All uses of __restrict changed to _Restrict_.
64841         * lib/glob_.h (__restrict): Remove macro.
64842
64843 2007-03-02  Bruno Haible  <bruno@clisp.org>
64844
64845         * modules/gettext (configure.ac): Require gettext infrastructure
64846         from version 0.16.1.
64847
64848 2007-03-02  Bruno Haible  <bruno@clisp.org>
64849
64850         * modules/linkedhash-list-tests (Depends-on): Add progname.
64851         * tests/test-linkedhash_list.c: Include progname.h.
64852         (main): Call set_program_name.
64853
64854         * modules/carray-list-tests (Depends-on): Add progname.
64855         * tests/test-carray_list.c: Include progname.h.
64856         (main): Call set_program_name.
64857
64858         * modules/avltreehash-list-tests (Depends-on): Add progname.
64859         * tests/test-avltreehash_list.c: Include progname.h.
64860         (main): Call set_program_name.
64861
64862         * modules/avltree-oset-tests (Depends-on): Add progname.
64863         * tests/test-avltree_oset.c: Include progname.h.
64864         (main): Call set_program_name.
64865
64866         * modules/avltree-list-tests (Depends-on): Add progname.
64867         * tests/test-avltree_list.c: Include progname.h.
64868         (main): Call set_program_name.
64869
64870         * modules/array-oset-tests (Depends-on): Add progname.
64871         * tests/test-array_oset.c: Include progname.h.
64872         (main): Call set_program_name.
64873
64874         * modules/array-list-tests (Depends-on): Add progname.
64875         * tests/test-array_list.c: Include progname.h.
64876         (main): Call set_program_name.
64877
64878         * modules/argp-tests (Depends-on): Add progname.
64879         * tests/test-argp.c: Include argp.h first. Include progname.h.
64880         (main): Call set_program_name.
64881
64882 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
64883
64884         * doc/gnulib-tool.texi (Initial import): Reword description of
64885         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
64886         limited effect even if defined after the first system include.
64887
64888 2007-03-01  Bruno Haible  <bruno@clisp.org>
64889
64890         * build-aux/config.libpath: Update to libtool-1.5.22.
64891         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
64892
64893 2007-03-01  Bruno Haible  <bruno@clisp.org>
64894
64895         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
64896         foo_CFLAGS.
64897         Reported by Ralf Wildenhues.
64898
64899 2007-03-01  Bruno Haible  <bruno@clisp.org>
64900
64901         * build-aux/install-reloc: Remove object files left over by some
64902         compilers.
64903         Reported by Ralf Wildenhues.
64904
64905 2007-03-01  Bruno Haible  <bruno@clisp.org>
64906
64907         * build-aux/install-reloc: Break long lines.
64908
64909 2007-03-01  Bruno Haible  <bruno@clisp.org>
64910
64911         * doc/relocatable.texi: Document that it may not work on OpenBSD.
64912         Reported by Ralf Wildenhues.
64913
64914 2007-03-01  Bruno Haible  <bruno@clisp.org>
64915
64916         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
64917         include ordering constraints.
64918
64919 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
64920
64921         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
64922         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
64923         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
64924         as another example.
64925         * lib/time_.h: Fix misspelling.
64926         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
64927         Require gl_HEADER_TIME_H_DEFAULTS.
64928         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
64929         * m4/time_r.m4 (gl_TIME_R): Likewise.
64930         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
64931
64932 2007-03-01  Bruno Haible  <bruno@clisp.org>
64933
64934         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
64935         * m4/utimens.m4 (gl_UTIMENS): Likewise.
64936
64937 2007-03-01  Jim Meyering  <jim@meyering.net>
64938
64939         * modules/xreadlink (Maintainer): Add my name.
64940         * modules/xreadlink-with-size (Depends-on): Alphabetize.
64941
64942 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
64943             Bruno Haible  <bruno@clisp.org>
64944
64945         * build-aux/install-reloc: Compile also c-ctype.c.
64946         * build-aux/relocatable.sh.in: New file.
64947         * doc/relocatable.texi: New file.
64948         * doc/relocatable-maint.texi: New file.
64949         * doc/gnulib.texi: Include relocatable-maint.texi.
64950         * lib/progreloc.c: Include unistd.h unconditionally.
64951         * lib/relocwrapper.c: Include unistd.h unconditionally.
64952         Include c-ctype.h.
64953         (add_dotbin): Use c_tolower.
64954         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
64955         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
64956         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
64957         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
64958         to m4/relocatable-lib.m4.
64959         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
64960         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
64961         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
64962         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
64963         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
64964         * modules/relocatable: New file.
64965         * modules/relocatable-lib: New file.
64966         * modules/relocatable-script: New file.
64967
64968 2007-02-28  Bruno Haible  <bruno@clisp.org>
64969
64970         Import --enable-relocatable infrastructure.
64971         * build-aux/config.libpath: New file, from GNU gettext.
64972         * build-aux/install-reloc: New file, from GNU gettext.
64973         * build-aux/reloc-ldflags: New file, from GNU gettext.
64974         * lib/relocatable.h: New file, from GNU gettext.
64975         * lib/relocatable.c: New file, from GNU gettext.
64976         * lib/relocwrapper.c: New file, from GNU gettext.
64977         * m4/relocatable.m4: New file, from GNU gettext.
64978
64979 2007-02-28  Bruno Haible  <bruno@clisp.org>
64980
64981         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
64982
64983         * modules/xreadlink: New file, from GNU gettext with modifications.
64984         * lib/xreadlink.c: New file, from GNU gettext.
64985         * lib/xreadlink.h: Add comments.
64986         (xreadlink): New declaration.
64987
64988         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
64989         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
64990         lib/xreadlink-with-size.c.
64991         (configure.ac): Remove gl_XREADLINK invocation.
64992         (Makefile.am): Augment lib_SOURCES.
64993         * m4/xreadlink.m4: Remove file.
64994         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
64995         (xreadlink_with_size): Renamed from xreadink.
64996         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
64997         * modules/canonicalize (Depends-on): Replace xreadlink with
64998         xreadlink-with-size.
64999         * lib/canonicalize.c (canonicalize_filename_mode): Update.
65000
65001 2007-02-25  Jim Meyering  <jim@meyering.net>
65002
65003         * build-aux/announce-gen: When complaining about excess arguments,
65004         list them.
65005
65006 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
65007
65008         * README: Document signed integer overflow situation more
65009         accurately.
65010
65011 2007-02-25  Bruno Haible  <bruno@clisp.org>
65012
65013         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
65014         'a' or 'A' conversion.
65015
65016 2007-02-25  Bruno Haible  <bruno@clisp.org>
65017
65018         * modules/filename: Renamed from modules/pathname.
65019         (Files): Replace lib/pathname.h with lib/filename.h. Replace
65020         lib/concatpath.c with lib/concat-filename.c.
65021         (Makefile.am): Update.
65022         (Include): Replace pathname.h with filename.h.
65023         * lib/filename.h: Renamed from lib/pathname.h.
65024         (concatenated_filename): Renamed from concatenated_pathname.
65025         * lib/concat-filename.c: Renamed from lib/concatpath.c.
65026         (concatenated_filename): Renamed from concatenated_pathname.
65027         * lib/findprog.c: Include filename.h instead of pathname.h.
65028         (find_in_path): Update.
65029         * lib/javacomp.c: Include filename.h instead of pathname.h.
65030         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
65031         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
65032         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
65033         is_oldgcj_14_13_usable, is_javac_usable): Update.
65034         * lib/javaexec.c: Include filename.h instead of pathname.h.
65035         (execute_java_class): Update.
65036         * modules/findprog: Update.
65037         * modules/javacomp: Update.
65038         * modules/javaexec: Update.
65039         * MODULES.html.sh (File system functions): Add 'filename', remove
65040         'pathname'.
65041
65042 2007-02-25  Bruno Haible  <bruno@clisp.org>
65043
65044         * modules/printf-frexpl-tests: New file.
65045         * tests/test-printf-frexpl.c: New file.
65046
65047         * modules/printf-frexpl: New file.
65048         * lib/printf-frexpl.h: New file.
65049         * lib/printf-frexpl.c: New file.
65050         * m4/printf-frexpl.m4: New file.
65051
65052 2007-02-25  Bruno Haible  <bruno@clisp.org>
65053
65054         * modules/printf-frexp-tests: New file.
65055         * tests/test-printf-frexp.c: New file.
65056
65057         * modules/printf-frexp: New file.
65058         * lib/printf-frexp.h: New file.
65059         * lib/printf-frexp.c: New file.
65060         * m4/printf-frexp.m4: New file.
65061
65062 2007-02-25  Bruno Haible  <bruno@clisp.org>
65063
65064         Assume automake >= 1.10 for the tests.
65065         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
65066         * modules/arctwo-tests: Likewise.
65067         * modules/argp-tests: Likewise.
65068         * modules/avltree-list-tests: Likewise.
65069         * modules/avltree-oset-tests: Likewise.
65070         * modules/avltreehash-list-tests: Likewise.
65071         * modules/carray-list-tests: Likewise.
65072         * modules/crc-tests: Likewise.
65073         * modules/des-tests: Likewise.
65074         * modules/gc-arcfour-tests: Likewise.
65075         * modules/gc-arctwo-tests: Likewise.
65076         * modules/gc-des-tests: Likewise.
65077         * modules/gc-hmac-md5-tests: Likewise.
65078         * modules/gc-hmac-sha1-tests: Likewise.
65079         * modules/gc-md2-tests: Likewise.
65080         * modules/gc-md4-tests: Likewise.
65081         * modules/gc-md5-tests: Likewise.
65082         * modules/gc-pbkdf2-sha1-tests: Likewise.
65083         * modules/gc-rijndael-tests: Likewise.
65084         * modules/gc-sha1-tests: Likewise.
65085         * modules/gc-tests: Likewise.
65086         * modules/getaddrinfo-tests: Likewise.
65087         * modules/hmac-md5-tests: Likewise.
65088         * modules/hmac-sha1-tests: Likewise.
65089         * modules/linked-list-tests: Likewise.
65090         * modules/linkedhash-list-tests: Likewise.
65091         * modules/lock-tests: Likewise.
65092         * modules/md2-tests: Likewise.
65093         * modules/md4-tests: Likewise.
65094         * modules/md5-tests: Likewise.
65095         * modules/rbtree-list-tests: Likewise.
65096         * modules/rbtree-oset-tests: Likewise.
65097         * modules/rbtreehash-list-tests: Likewise.
65098         * modules/read-file-tests: Likewise.
65099         * modules/rijndael-tests: Likewise.
65100         * modules/stdint-tests: Likewise.
65101         * modules/tls-tests: Likewise.
65102
65103 2007-02-24  Bruno Haible  <bruno@clisp.org>
65104
65105         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
65106         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
65107         function; instead check whether isnan with a double argument links.
65108         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
65109         function; instead check whether isnan with a 'long double' argument
65110         links.
65111         Reported by Eric Blake <ebb9@byu.net>.
65112
65113 2007-02-24  Bruno Haible  <bruno@clisp.org>
65114
65115         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
65116         defined.
65117         * lib/isnanl.c: Remove all code. Just include isnan.c.
65118         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
65119
65120 2007-02-25  Jim Meyering  <jim@meyering.net>
65121
65122         Avoid conflicting types for 'unsetenv' on FreeBSD.
65123         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
65124         conflicting with FreeBSD's (5.0 and 6.1) function declaration
65125         in stdlib.h.
65126
65127 2007-02-24  Bruno Haible  <bruno@clisp.org>
65128
65129         * modules/isnanl-nolibm-tests: New file.
65130         * tests/test-isnanl.c: New file.
65131
65132         * modules/isnanl-nolibm: New file.
65133         * lib/isnanl.h: New file.
65134         * lib/isnanl.c: New file.
65135         * m4/isnanl.m4: New file.
65136
65137 2007-02-24  Bruno Haible  <bruno@clisp.org>
65138
65139         * modules/isnan-nolibm-tests: New file.
65140         * tests/test-isnan.c: New file.
65141
65142         * modules/isnan-nolibm: New file.
65143         * lib/isnan.h: New file.
65144         * lib/isnan.c: New file.
65145         * m4/isnan.m4: New file.
65146
65147 2007-02-24  Bruno Haible  <bruno@clisp.org>
65148
65149         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
65150         assume that an exponent fits in 20 bits.
65151
65152 2007-02-24  Jim Meyering  <jim@meyering.net>
65153
65154         * m4/regex.m4: Update the description of the configure-time option,
65155         --without-included-regex, to state accurately what the defaults are,
65156         and perhaps to give people an idea why using this option is risky.
65157
65158 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
65159
65160         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
65161         loops on small arguments.  This attempts to avoid the problem
65162         Bruno Haible reported for AIX 4.3.2 in
65163         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
65164
65165 2007-02-23  Bruno Haible  <bruno@clisp.org>
65166
65167         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
65168         Needed for help2man.
65169
65170 2007-02-23  Karl Berry  <karl@gnu.org>
65171
65172         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
65173         exists, foo.h should be cvs-ignored, not committed.
65174
65175 2007-02-23  Eric Blake  <ebb9@byu.net>
65176
65177         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
65178         * lib/stat-time.h (includes): Likewise.
65179         * lib/utimecmp.c (includes): Likewise.
65180         * lib/utimens.h (includes): Likewise.
65181         * lib/getdate.y (includes): Also include "timespec.h" for use
65182         internal to the module.
65183         * modules/utimens (Depends-on): Revert yesterday's patch.
65184         * modules/nanosleep (Depends-on): Add missing dependency.
65185
65186 2007-02-22  Bruno Haible  <bruno@clisp.org>
65187
65188         * lib/glob.c: Don't include getlogin_r.h.
65189
65190 2007-02-22  Jim Meyering  <jim@meyering.net>
65191
65192         * modules/utimens (Depends-on): Add timespec, required for
65193         utimens.h's inclusion of timespec.h.
65194
65195 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
65196
65197         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
65198         long unreadable paths in GNU/Linux.  Problem reported by Andreas
65199         Schwab in
65200         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
65201         I'll try to think of a better way to fix the Solaris problem.
65202
65203         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
65204         like glibc; on Solaris 10, it fails with errno == EINVAL.
65205         POSIX says the behavior is unspecified if the first argument is NULL,
65206         so play it safe and never pass NULL to the system getcwd.
65207
65208 2007-02-21  Jim Meyering  <jim@meyering.net>
65209
65210         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
65211         of gettimeofday.  It would conflict with the one now always
65212         provided via sys_time_.h.  Reported by Matthew Woehlke, as
65213         an IRIX 6.5 build failure.
65214
65215 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
65216
65217         Minor fixups to port to Solaris 10 with Sun C 5.8.
65218         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
65219         * modules/getcwd (Depends-on): Add dirfd.
65220         * lib/putenv.c (putenv): #undef it.
65221         (rpl_putenv): New decl.
65222         (malloc, free): Include <stdlib.h> rather than prototyping separately.
65223
65224 2007-02-20  Bruno Haible  <bruno@clisp.org>
65225
65226         * modules/stdio-tests: New file.
65227         * tests/test-stdio.c: New file.
65228
65229         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
65230         (Depends-on): Add stdio.
65231         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
65232         (Include): Use <stdio.h> instead of vsnprintf.h.
65233         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
65234         HAVE_DECL_VSNPRINTF.
65235         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
65236
65237         * modules/snprintf (Files): Remove lib/snprintf.h.
65238         (Depends-on): Add stdio.
65239         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
65240         (Include): Use <stdio.h> instead of snprintf.h.
65241         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
65242         HAVE_DECL_SNPRINTF.
65243         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
65244         * lib/getaddrinfo.c: Likewise.
65245
65246         * modules/stdio: New file.
65247         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
65248         * lib/snprintf.h: Remove file.
65249         * lib/vsnprintf.h: Remove file.
65250         * lib/.cppi-disable: Remove snprintf.h.
65251         * m4/stdio_h.m4: New file.
65252         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
65253
65254 2007-02-20  Jim Meyering  <jim@meyering.net>
65255
65256         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
65257         used by e.g., mingw.  From Bruno Haible.
65258
65259 2007-02-19  Bruno Haible  <bruno@clisp.org>
65260
65261         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
65262         warnings.
65263         Reported by Ben Pfaff <blp@cs.stanford.edu>.
65264
65265 2007-02-19  Bruno Haible  <bruno@clisp.org>
65266
65267         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
65268         from mingw users.
65269
65270 2007-02-19  Bruno Haible  <bruno@clisp.org>
65271
65272         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
65273         warnings.
65274         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
65275
65276 2007-02-19  Jim Meyering  <jim@meyering.net>
65277
65278         Don't use FD after a successful "fdopendir (fd)".
65279         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
65280         Reset it by calling dirfd on the just-obtained DIR*.
65281
65282         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
65283         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
65284
65285 2007-02-18  Bruno Haible  <bruno@clisp.org>
65286
65287         * lib/readlink.c: Include <unistd.h>.
65288         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
65289         HAVE_READLINK.
65290         * modules/readlink (Depends-on): Add unistd.
65291         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65292         (Include): Add <unistd.h>.
65293
65294         * lib/getlogin_r.h: Remove file.
65295         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
65296         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
65297         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
65298         HAVE_DECL_GETLOGIN_R.
65299         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
65300         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65301         (Include): Use <unistd.h> instead of getlogin_r.h.
65302
65303         * lib/getcwd.h: Remove file.
65304         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
65305         * lib/xgetcwd.c: Likewise.
65306         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
65307         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
65308         * modules/getcwd (Files): Remove lib/getcwd.h.
65309         (Depends-on): Add unistd.
65310         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65311         (Include): Use <unistd.h> instad of getcwd.h.
65312
65313         * lib/ftruncate.c: Include <unistd.h> first.
65314         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
65315         Set HAVE_FTRUNCATE.
65316         * modules/ftruncate (Depends-on): Add unistd.
65317         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65318
65319         * lib/fchdir.c: Include <unistd.h> first.
65320         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
65321         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
65322         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
65323         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65324         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
65325
65326         * lib/dup2.c: Include <unistd.h> first.
65327         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
65328         HAVE_DUP2.
65329         * modules/dup2 (Depends-on): Add unistd.
65330         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65331
65332         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
65333         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
65334         REPLACE_CHOWN. Don't define chown as a macro here.
65335         * modules/chown (Depends-on): Add unistd.
65336         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65337
65338         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
65339         Add definition for GL_LINK_WARNING.
65340         (chown, dup2): New declarations.
65341         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
65342         link warning.
65343         (ftruncate): New declaration.
65344         (getcwd): New declaration, taken from old getcwd.h.
65345         (getlogin_r): New declaration, taken from old getlogin_r.h.
65346         (readlink): New declaration.
65347         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
65348         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
65349         (gl_PREREQ_UNISTD): Remove macro.
65350         (gl_UNISTD_MODULE_INDICATOR): New macro.
65351         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
65352         many new variables. Don't set UNISTD_H.
65353         * modules/unistd (Description): Change.
65354         (Depends-on): Add link-warning.
65355         (configure.ac): Update.
65356         (Makefile.am): Create unistd.h always. Substitute many new variables
65357         into it.
65358
65359 2007-02-18  Bruno Haible  <bruno@clisp.org>
65360
65361         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
65362         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
65363         HAVE_GETSUBOPT.
65364         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
65365         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
65366         * lib/getsubopt.h: Remove file.
65367         * modules/getsubopt (Files): Remove lib/getsubopt.h.
65368         (Depends-on): Add stdlib.
65369         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
65370         (Includes): Use <stdlib.h> instead of getsubopt.h.
65371         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
65372         Set HAVE_GETSUBOPT.
65373         * lib/getsubopt.c: Don't include getsubopt.h.
65374
65375 2007-02-18  Bruno Haible  <bruno@clisp.org>
65376
65377         * modules/fchdir (Depends-on): Add dup2.
65378
65379 2007-02-18  Bruno Haible  <bruno@clisp.org>
65380
65381         * lib/stdlib_.h: Handle glibc's special invocation convention
65382         specially.
65383
65384 2007-02-18  Bruno Haible  <bruno@clisp.org>
65385
65386         * modules/stdlib-tests: New file.
65387         * tests/test-stdlib.c: New file.
65388
65389         * modules/mkstemp (Files): Remove lib/mkstemp.h.
65390         (Depends-on): Add stdlib.
65391         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
65392         (Includes): Use <stdlib.h> instead of mkstemp.h.
65393         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
65394         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
65395         * lib/mkstemp.c: Don't include mkstemp.h.
65396         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
65397         * lib/stdlib--.h: Don't include mkstemp.h.
65398
65399         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
65400         (Depends-on): Add stdlib.
65401         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
65402         (Includes): Use <stdlib.h> instead of mkdtemp.h.
65403         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
65404         HAVE_MKDTEMP.
65405         * lib/mkdtemp.c: Don't include mkdtemp.h.
65406         * lib/clean-temp.c: Don't include mkdtemp.h.
65407
65408         * modules/exit (Files): Remove lib/exit.h.
65409         (Depends-on): Add stdlib.
65410         (Makefile.am): Remove lib_SOURCES.
65411         (Include): Use <stdlib.h> instead of exit.h.
65412         * lib/argmatch.c: Don't include exit.h.
65413         * lib/execute.c: Likewise.
65414         * lib/pagealign_alloc.c: Likewise.
65415         * lib/pipe.c: Likewise.
65416         * lib/wait-process.c: Likewise.
65417         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
65418         * lib/exitfail.c: Likewise.
65419         * lib/savewd.c: Likewise.
65420         * lib/xsetenv.c: Likewise.
65421
65422         * modules/stdlib: New file.
65423         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
65424         and extra comments about mkstemp().
65425         * lib/exit.h: Remove file.
65426         * lib/mkdtemp.h: Remove file.
65427         * lib/mkstemp.h: Remove file.
65428         * m4/stdlib_h.m4: New file.
65429         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
65430
65431 2007-02-18  Bruno Haible  <bruno@clisp.org>
65432
65433         * modules/math-tests: New file.
65434         * tests/test-math.c: New file.
65435
65436         * modules/math: New file.
65437         * modules/mathl (Files): Remove lib/mathl.h.
65438         (Depends-on): Add math.
65439         (Makefile.am): Don't mention mathl.h.
65440         (Include): Use <math.h> instead of mathl.h.
65441         * lib/math_.h: New file.
65442         * lib/mathl.h: Remove file.
65443         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
65444         mathl.h.
65445         * lib/asinl.c: Likewise.
65446         * lib/atanl.c: Likewise.
65447         * lib/ceill.c: Likewise.
65448         * lib/cosl.c: Likewise.
65449         * lib/expl.c: Likewise.
65450         * lib/floorl.c: Likewise.
65451         * lib/frexpl.c: Likewise.
65452         * lib/ldexpl.c: Likewise.
65453         * lib/logl.c: Likewise.
65454         * lib/sincosl.c: Likewise.
65455         * lib/sinl.c: Likewise.
65456         * lib/sqrtl.c: Likewise.
65457         * lib/tanl.c: Likewise.
65458         * lib/trigl.c: Likewise.
65459         * m4/math_h.m4: New file.
65460         * MODULES.html.sh (Mathematics): Add math.
65461
65462 2007-02-17  Bruno Haible  <bruno@clisp.org>
65463
65464         * modules/wctype-tests: New file.
65465         * tests/test-wctype.c: New file.
65466
65467         * modules/wchar-tests: New file.
65468         * tests/test-wchar.c: New file.
65469
65470         * modules/unistd-tests: New file.
65471         * tests/test-unistd.c: New file.
65472
65473         * modules/time-tests: New file.
65474         * tests/test-time.c: New file.
65475
65476         * modules/sysexits-tests: New file.
65477         * tests/test-sysexits.c: New file.
65478
65479         * modules/sys_time-tests: New file.
65480         * tests/test-sys_time.c: New file.
65481
65482         * modules/sys_stat-tests: New file.
65483         * tests/test-sys_stat.c: New file.
65484
65485         * modules/sys_socket-tests: New file.
65486         * tests/test-sys_socket.c: New file.
65487
65488         * modules/sys_select-tests: New file.
65489         * tests/test-sys_select.c: New file.
65490
65491         * modules/string-tests: New file.
65492         * tests/test-string.c: New file.
65493
65494         * modules/stdbool-tests: New file.
65495         * tests/test-stdbool.c: New file.
65496
65497         * modules/netinet_in-tests: New file.
65498         * tests/test-netinet_in.c: New file.
65499
65500         * modules/inttypes-tests: New file.
65501         * tests/test-inttypes.c: New file.
65502
65503         * modules/fcntl-tests: New file.
65504         * tests/test-fcntl.c: New file.
65505
65506         * modules/byteswap-tests: New file.
65507         * tests/test-byteswap.c: New file.
65508
65509         * modules/arpa_inet-tests: New file.
65510         * tests/test-arpa_inet.c: New file.
65511
65512 2007-02-17  Bruno Haible  <bruno@clisp.org>
65513
65514         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
65515         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
65516         if the corresponding module is not enabled. Emit link warnings if
65517         the function is used nevertheless.
65518         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
65519         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
65520         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
65521         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
65522         * modules/inttypes (Depends-on): Add link-warning.
65523         (Makefile.am): Copy the contents of build-aux/link-warning.h into
65524         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
65525         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
65526         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
65527         * modules/imaxdiv (configure.ac): Likewise.
65528         * modules/strtoimax (configure.ac): Likewise.
65529         * modules/strtoumax (configure.ac): Likewise.
65530
65531 2007-02-17  Bruno Haible  <bruno@clisp.org>
65532
65533         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
65534         gl_STRING_MODULE_INDICATOR_DEFAULTS.
65535         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
65536         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
65537
65538 2007-02-17  Bruno Haible  <bruno@clisp.org>
65539
65540         * modules/link-warning: New file.
65541         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
65542         * lib/string_.h (GL_LINK_WARNING): Remove definition.
65543         * modules/string (Depends-on): Add link-warning.
65544         (Makefile.am): Copy the contents of build-aux/link-warning.h into
65545         string.h.
65546         * MODULES.html.sh (Support for building libraries and executables): Add
65547         link-warning.
65548
65549 2007-02-17  Bruno Haible  <bruno@clisp.org>
65550
65551         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
65552         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
65553         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
65554         long lines.
65555
65556 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
65557             Bruno Haible  <bruno@clisp.org>
65558
65559         * modules/tmpfile: New file.
65560         * lib/tmpfile.c: New file.
65561         * m4/tmpfile.m4: New file.
65562         * MODULES.html.sh (func_all_modules): New section "Input/output".
65563
65564 2007-02-15  Bruno Haible  <bruno@clisp.org>
65565
65566         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
65567         (supports_delete_on_close): New function.
65568         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
65569
65570 2007-02-14  Bruno Haible  <bruno@clisp.org>
65571
65572         * modules/mbspcasecmp-tests: New file.
65573         * tests/test-mbspcasecmp.sh: New file.
65574         * tests/test-mbspcasecmp.c: New file.
65575
65576         New module mbspcasecmp.
65577         * modules/mbspcasecmp: New file.
65578         * lib/mbspcasecmp.c: New file.
65579         * lib/string_.h (strncasecmp): Change warning message.
65580         (mbspcasecmp): New declaration.
65581         * m4/mbspcasecmp.m4: New file.
65582         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65583         GNULIB_MBSPCASECMP.
65584         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
65585         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
65586
65587 2007-02-14  Bruno Haible  <bruno@clisp.org>
65588
65589         * modules/mbsncasecmp-tests: New file.
65590         * tests/test-mbsncasecmp.sh: New file.
65591         * tests/test-mbsncasecmp.c: New file.
65592
65593         New module mbsncasecmp.
65594         * modules/mbsncasecmp: New file.
65595         * lib/mbsncasecmp.c: New file.
65596         * lib/string_.h (mbsncasecmp): New declaration.
65597         * m4/mbsncasecmp.m4: New file.
65598         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65599         GNULIB_MBSNCASECMP.
65600         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
65601         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
65602
65603 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
65604
65605         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
65606         Verify that it doesn't overlap with our flags.
65607         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
65608         do not have the desired effect in multibyte locales; instead, use
65609         mbscasecmp.
65610         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
65611         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
65612         we don't require GNU fnmatch ourselves (if our users require it, they
65613         should do so explicitly).
65614
65615         Fix regex code so it doesn't rely on strcasecmp.
65616         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
65617         Otherwise, include gnulib's langinfo.h.
65618         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
65619         undesirable behavior in non-C locales.  Instead, rely on localecharset.
65620         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
65621         * modules/regex (FILES): Remove m4/codeset.m4.
65622         (Depends-on): Add localcharset.  Remove strcase.
65623
65624 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65625
65626         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
65627         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
65628
65629 2007-02-13  Bruno Haible  <bruno@clisp.org>
65630
65631         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
65632         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65633
65634 2007-02-12  Bruno Haible  <bruno@clisp.org>
65635
65636         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
65637         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
65638         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
65639         time warning rather than a link error.
65640
65641 2007-02-12  Bruno Haible  <bruno@clisp.org>
65642
65643         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
65644         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
65645         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65646
65647 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
65648
65649         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
65650         args, not 2.
65651
65652 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
65653
65654         New module 'time', so that apps can include <time.h> as per
65655         POSIX and GNU instead of separate include files like time_r.h
65656         and timegm.h.  This implementation tries out a simpler approach
65657         for replacing decls in standard include files (as compared to
65658         the string module), somewhat as an experiment.
65659
65660         * config/srclist.txt: Comment out mktime.c for now.
65661         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
65662         since it doesn't apply any more.  Use generic wording instead.
65663         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
65664         'time'.
65665         * lib/time_.h, m4/time_h.m4, modules/time: New files.
65666         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
65667         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
65668         Don't include <sys/types.h>; no longer needed since we assume C89.
65669         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
65670         * lib/strftime.c: Likewise.
65671         * lib/time_r.c: Likewise.
65672         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
65673         * lib/nanosleep.c: Include <time.h> first, to check interface.
65674         * lib/strptime.c: Likewise.
65675         * lib/time_r.c: Likewise.
65676         * lib/timegm.c: Likewise.
65677         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
65678         needed.
65679         * lib/timegm.c: Don't include timegm.h; no longer needed.
65680         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
65681         time.h now handles any problems in that area.
65682         (struct timespec, nanosleep): Remove; time.h now arranges for these.
65683         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
65684         that time.h defines struct timespec.
65685         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
65686         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
65687         handles that.
65688         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
65689         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
65690         needed.  Set REPLACE_LOCALTIME.
65691         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
65692         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
65693         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
65694         nanosleep; time_h.m4 now does that.  Don't require
65695         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
65696         module handles this now.
65697         * modules/getdate (Depends-on): Remove timespec.  Add time.
65698         * modules/nanosleep (Depends-on): Likewise.
65699         * modules/stat-time (Depends-on): Likewise.
65700         * modules/nanosleep (Include): Include time.h, not timespec.h.
65701         * modules/strptime (Files): Remove lib/strptime.h.
65702         (Depends-on): Add extensions, time.
65703         (Include): Include time.h, not strptime.h.
65704         * modules/time_r (Files): Remove lib/time_r.h.
65705         (Depends-on): Add time.
65706         (Include): Include time.h, not time_r.h.
65707         * modules/timegm: Likewise.
65708         * modules/timespec (Description): Now does timespec-related decls
65709         of our own, instead of struct timespec itself.
65710         (Depends-on): Add time; remove extensions.
65711         (Maintainer): Add self.
65712         * modules/utimecmp (Depends-on): Add time; remove timespec.
65713         * modules/utimens (Depends-on): Likewise.
65714         * modules/xnanosleep (Depends-on): Likewise.
65715
65716 2007-02-11  Bruno Haible  <bruno@clisp.org>
65717
65718         * lib/c-strstr.c: Include allocsa.h.
65719         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
65720         * lib/c-strcasestr.c: Include allocsa.h.
65721         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
65722         * lib/strcasestr.c: Include allocsa.h.
65723         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
65724         * lib/mbsstr.c: Include allocsa.h.
65725         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
65726         allocsa/freesa instead of malloc/free.
65727         * lib/mbscasestr.c: Include allocsa.h.
65728         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
65729         allocsa/freesa instead of malloc/free.
65730         * modules/c-strstr (Depends-on): Add allocsa.
65731         * modules/c-strcasestr (Depends-on): Likewise.
65732         * modules/strcasestr (Depends-on): Likewise.
65733         * modules/mbsstr (Depends-on): Likewise.
65734         * modules/mbscasestr (Depends-on): Likewise.
65735
65736 2007-02-11  Bruno Haible  <bruno@clisp.org>
65737
65738         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
65739
65740         * modules/mbsspn-tests: New file.
65741         * tests/test-mbsspn.sh: New file.
65742         * tests/test-mbsspn.c: New file.
65743
65744 2007-02-11  Bruno Haible  <bruno@clisp.org>
65745
65746         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
65747
65748         * modules/mbspbrk-tests: New file.
65749         * tests/test-mbspbrk.sh: New file.
65750         * tests/test-mbspbrk.c: New file.
65751
65752 2007-02-11  Bruno Haible  <bruno@clisp.org>
65753
65754         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
65755         unneeded cast.
65756
65757         * modules/mbscspn-tests: New file.
65758         * tests/test-mbscspn.sh: New file.
65759         * tests/test-mbscspn.c: New file.
65760
65761 2007-02-11  Bruno Haible  <bruno@clisp.org>
65762
65763         * modules/mbscasecmp-tests: New file.
65764         * tests/test-mbscasecmp.sh: New file.
65765         * tests/test-mbscasecmp.c: New file.
65766
65767 2007-02-11  Bruno Haible  <bruno@clisp.org>
65768
65769         Ensure O(n) worst-case complexity of mbscasestr.
65770         * lib/mbscasestr.c: Include stdbool.h.
65771         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
65772         functions.
65773         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
65774         the bookkeeping indicates that it's worth it.
65775         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
65776
65777         * modules/mbscasestr-tests: New file.
65778         * tests/test-mbscasestr1.c: New file.
65779         * tests/test-mbscasestr2.sh: New file.
65780         * tests/test-mbscasestr2.c: New file.
65781         * tests/test-mbscasestr3.sh: New file.
65782         * tests/test-mbscasestr3.c: New file.
65783         * tests/test-mbscasestr4.sh: New file.
65784         * tests/test-mbscasestr4.c: New file.
65785         * m4/locale-tr.m4: New file.
65786
65787 2007-02-11  Bruno Haible  <bruno@clisp.org>
65788
65789         Ensure O(n) worst-case complexity of mbsstr.
65790         * lib/mbsstr.c: Include stdbool.h.
65791         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
65792         functions.
65793         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
65794         bookkeeping indicates that it's worth it.
65795         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
65796
65797         * modules/mbsstr-tests: New file.
65798         * tests/test-mbsstr1.c: New file.
65799         * tests/test-mbsstr2.sh: New file.
65800         * tests/test-mbsstr2.c: New file.
65801         * tests/test-mbsstr3.sh: New file.
65802         * tests/test-mbsstr3.c: New file.
65803         * m4/locale-fr.m4: New file.
65804
65805 2007-02-11  Bruno Haible  <bruno@clisp.org>
65806
65807         * lib/mbsrchr.c (mbsrchr): Fix bug.
65808
65809         * modules/mbsrchr-tests: New file.
65810         * tests/test-mbsrchr.sh: New file.
65811         * tests/test-mbsrchr.c: New file.
65812
65813 2007-02-11  Bruno Haible  <bruno@clisp.org>
65814
65815         * lib/mbschr.c (mbschr): Fix bug.
65816
65817         * modules/mbschr-tests: New file.
65818         * tests/test-mbschr.sh: New file.
65819         * tests/test-mbschr.c: New file.
65820         * m4/locale-zh.m4: New file.
65821
65822 2007-02-11  Bruno Haible  <bruno@clisp.org>
65823
65824         Support for copying multibyte string iterators.
65825         * lib/mbiter.h: Include <string.h>.
65826         (mbiter_multi_copy): New function.
65827         (mbi_copy): New macro.
65828         * lib/mbuiter.h: Include <string.h>.
65829         (mbuiter_multi_copy): New function.
65830         (mbui_copy): New macro.
65831
65832 2007-02-11  Bruno Haible  <bruno@clisp.org>
65833
65834         New module mbslen.
65835         * modules/mbslen: New file.
65836         * lib/mbslen.c: New file.
65837         * lib/string_.h (mbslen): New declaration.
65838         * m4/mbslen.m4: New file.
65839         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65840         GNULIB_MBSLEN.
65841         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
65842         * MODULES.html.sh (Internationalization functions): Add mbslen.
65843
65844 2007-02-11  Bruno Haible  <bruno@clisp.org>
65845
65846         Ensure O(n) worst-case complexity of strcasestr substitute.
65847         * lib/strcasestr.c: Include stdbool.h.
65848         (knuth_morris_pratt): New function.
65849         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
65850         bookkeeping indicates that it's worth it.
65851         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
65852
65853         * modules/strcasestr-tests: New file.
65854         * tests/test-strcasestr.c: New file.
65855
65856 2007-02-11  Bruno Haible  <bruno@clisp.org>
65857
65858         Ensure O(n) worst-case complexity of c_strcasestr.
65859         * lib/c-strcasestr.c: Include stdbool.h, string.h.
65860         (knuth_morris_pratt): New function.
65861         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
65862         the bookkeeping indicates that it's worth it.
65863         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
65864
65865         * modules/c-strcasestr-tests: New file.
65866         * tests/test-c-strcasestr.c: New file.
65867
65868 2007-02-11  Bruno Haible  <bruno@clisp.org>
65869
65870         Ensure O(n) worst-case complexity of c_strstr.
65871         * lib/c-strstr.c: Include stdbool.h, string.h.
65872         (knuth_morris_pratt): New function.
65873         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
65874         bookkeeping indicates that it's worth it.
65875         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
65876
65877         * lib/c-strstr.c: Complete rewrite for maintainability.
65878
65879         * modules/c-strstr-tests: New file.
65880         * tests/test-c-strstr.c: New file.
65881
65882 2007-02-11  Bruno Haible  <bruno@clisp.org>
65883
65884         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
65885         5.2.1 and earlier, whereby \055 was treated just like the range
65886         delimiter '-'.
65887         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
65888
65889 2007-02-08  Bruno Haible  <bruno@clisp.org>
65890
65891         * modules/regex (Depends-on): Add stdbool.
65892         Reported by Dalibor Topic <robilad@kaffe.org>.
65893
65894 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
65895
65896         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
65897         Prefer returning from main to exiting from it.
65898         Remove unnecessary parens after sizeof.
65899
65900 2007-02-05  Bruno Haible  <bruno@clisp.org>
65901
65902         New module mbssep.
65903         * modules/mbssep: New file.
65904         * lib/mbssep.c: New file.
65905         * lib/string_.h (strsep): Add a conditional link warning.
65906         (mbssep): New declaration.
65907         * m4/mbssep.m4: New file.
65908         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65909         GNULIB_MBSSEP.
65910         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
65911         * MODULES.html.sh (Internationalization functions): Add mbssep.
65912
65913 2007-02-05  Bruno Haible  <bruno@clisp.org>
65914
65915         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
65916         Optimize search in case of 1 delimiter.
65917
65918 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
65919
65920         * lib/acl.h: Include sys/types.h before sys/acl.h.
65921
65922 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
65923
65924         Merge upstream fix for glibc bugzilla #3957:
65925
65926         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
65927
65928         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
65929         bit for RE_HAT_LISTS_NOT_NEWLINE.
65930         (build_charclass_op): Remove bogus comment.
65931
65932 2007-02-05  Simon Josefsson  <simon@josefsson.org>
65933
65934         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
65935
65936 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
65937
65938         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
65939         * lib/memmem.c [!defined _LIBC]: Include config.h.
65940
65941 2007-02-04  Bruno Haible  <bruno@clisp.org>
65942
65943         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
65944         warning message.
65945
65946 2007-02-04  Bruno Haible  <bruno@clisp.org>
65947
65948         New module mbstok_r.
65949         * modules/mbstok_r: New file.
65950         * lib/mbstok_r.c: New file.
65951         * lib/string_.h (strtok_r): Change argument names to match the
65952         comments. Add a conditional link warning.
65953         (mbstok_r): New declaration.
65954         * m4/mbstok_r.m4: New file.
65955         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65956         GNULIB_MBSTOK_R.
65957         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
65958         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
65959
65960 2007-02-04  Bruno Haible  <bruno@clisp.org>
65961
65962         New module mbsspn.
65963         * modules/mbsspn: New file.
65964         * lib/mbsspn.c: New file.
65965         * lib/string_.h (strspn): Add a conditional link warning.
65966         (mbsspn): New declaration.
65967         * m4/mbsspn.m4: New file.
65968         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65969         GNULIB_MBSSPN.
65970         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
65971         * MODULES.html.sh (Internationalization functions): Add mbsspn.
65972
65973 2007-02-04  Bruno Haible  <bruno@clisp.org>
65974
65975         New module mbspbrk.
65976         * modules/mbspbrk: New file.
65977         * lib/mbspbrk.c: New file.
65978         * lib/string_.h (strpbrk): Add a conditional link warning.
65979         (mbspbrk): New declaration.
65980         * m4/mbspbrk.m4: New file.
65981         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65982         GNULIB_MBSPBRK.
65983         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
65984         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
65985
65986 2007-02-04  Bruno Haible  <bruno@clisp.org>
65987
65988         New module mbscspn.
65989         * modules/mbscspn: New file.
65990         * lib/mbscspn.c: New file.
65991         * lib/string_.h (strcspn): Add a conditional link warning.
65992         (mbscspn): New declaration.
65993         * m4/mbscspn.m4: New file.
65994         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65995         GNULIB_MBSCSPN.
65996         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
65997         * MODULES.html.sh (Internationalization functions): Add mbscspn.
65998
65999 2007-02-04  Bruno Haible  <bruno@clisp.org>
66000
66001         New module mbscasestr, reduced goal of strcasestr.
66002         * modules/mbscasestr: New file.
66003         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
66004         (mbscasestr): Renamed from strcasestr.
66005         * lib/strcasestr.c: Don't include mbuiter.h.
66006         (strcasestr): Remove support for multibyte locales.
66007         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
66008         Change the conditional link warning.
66009         (mbscasestr): New declaration.
66010         * m4/mbscasestr.m4: New file.
66011         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
66012         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
66013         REPLACE_STRCASESTR.
66014         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
66015         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
66016         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
66017         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
66018         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
66019         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
66020         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
66021         (Depends-on): Remove mbuiter.
66022         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
66023
66024 2007-02-04  Bruno Haible  <bruno@clisp.org>
66025
66026         Simplify handling of strncasecmp.
66027         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
66028         the conditional link warning.
66029         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
66030         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
66031         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
66032         * modules/strcase (configure.ac): Don't invoke
66033         gl_STRING_MODULE_INDICATOR.
66034         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
66035
66036 2007-02-04  Bruno Haible  <bruno@clisp.org>
66037
66038         New module mbscasecmp, reduced goal of strcasecmp.
66039         * modules/mbscasecmp: New file.
66040         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
66041         (mbscasecmp): Renamed from strcasecmp.
66042         * lib/strcasecmp.c: Don't include mbuiter.h.
66043         (strcasecmp): Remove support for multibyte locales.
66044         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
66045         Change the conditional link warning.
66046         (mbscasecmp): New declaration.
66047         * m4/mbscasecmp.m4: New file.
66048         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
66049         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
66050         REPLACE_STRCASECMP.
66051         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
66052         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66053         GNULIB_MBSCASECMP.
66054         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
66055         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
66056         * modules/strcase (Files): Remove m4/mbrtowc.m4.
66057         (Depends-on): Remove mbuiter.
66058         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
66059
66060 2007-02-04  Bruno Haible  <bruno@clisp.org>
66061
66062         New module mbsstr. Remove module strstr.
66063         * modules/mbsstr: New file.
66064         * modules/strstr: Remove file.
66065         * lib/mbsstr.c: Renamed from lib/strstr.c.
66066         (mbsstr): Renamed from strstr.
66067         * lib/string_.h (strstr): Remove declaration. Change the conditional
66068         link warning.
66069         (mbsstr): New declaration.
66070         * m4/mbsstr.m4: New file.
66071         * m4/strstr.m4: Remove file.
66072         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
66073         REPLACE_STRSTR.
66074         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
66075         Don't initialize GNULIB_STRSTR.
66076         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
66077         substitute GNULIB_STRSTR and REPLACE_STRSTR.
66078         * MODULES.html.sh (Internationalization functions): Add mbsstr.
66079         (Support for systems lacking ANSI C 89): Remove strstr.
66080
66081 2007-02-04  Bruno Haible  <bruno@clisp.org>
66082
66083         New module mbsrchr.
66084         * modules/mbsrchr: New file.
66085         * lib/mbsrchr.c: New file.
66086         * lib/string_.h (strrchr): Add a conditional link warning.
66087         (mbsrchr): New declaration.
66088         * m4/mbsrchr.m4: New file.
66089         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66090         GNULIB_MBSRCHR.
66091         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
66092         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
66093
66094 2007-02-04  Bruno Haible  <bruno@clisp.org>
66095
66096         New module mbschr.
66097         * modules/mbschr: New file.
66098         * lib/mbschr.c: New file.
66099         * lib/string_.h (strchr): Add a conditional link warning.
66100         (mbschr): New declaration.
66101         * m4/mbschr.m4: New file.
66102         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66103         GNULIB_MBSCHR.
66104         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
66105         * MODULES.html.sh (Internationalization functions): Add mbschr.
66106
66107 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
66108
66109         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
66110
66111         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
66112
66113 2007-02-04  Bruno Haible  <bruno@clisp.org>
66114
66115         New module description section 'configure.ac-early'.
66116         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
66117         (func_get_autoconf_early_snippet): New function.
66118         (func_import, func_create_testdir): Use it. Remove special cases for
66119         modules 'extensions' and 'lock'.
66120         * modules/extensions (configure.ac-early): Require
66121         gl_USE_SYSTEM_EXTENSIONS.
66122         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
66123
66124 2007-02-04  Bruno Haible  <bruno@clisp.org>
66125
66126         Make use of gcj-4.3's -fsource and -ftarget option.
66127         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
66128         and if so try the options -fsource and -ftarget.
66129         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
66130         source_version, ftarget_option, target_version arguments.
66131         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
66132         (is_envjavac_oldgcj_14_14_usable): Renamed from
66133         is_envjavac_gcj_14_14_usable.
66134         (is_envjavac_oldgcj_14_13_usable): Renamed from
66135         is_envjavac_gcj_14_13_usable.
66136         (is_gcj_present): Update.
66137         (is_gcj_43, is_gcj43_usable): New functions.
66138         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
66139         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
66140         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
66141         try the options -fsource and -ftarget.
66142
66143 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
66144
66145         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
66146         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
66147         larger value.
66148
66149 2007-02-03  Jim Meyering  <jim@meyering.net>
66150
66151         Give tools a better chance to allocate space for very large buffers.
66152         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
66153
66154         Make pwd and readlink work also when run with an unreadable parent dir
66155         on systems with openat support.
66156         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
66157         provided getcwd function, even when we have openat support.
66158         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
66159
66160 2007-02-02  Bruno Haible  <bruno@clisp.org>
66161
66162         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
66163         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
66164         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
66165         portability problems if one of these functions is only used on specific
66166         platforms.
66167         Reported by Paul Eggert.
66168
66169 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
66170
66171         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
66172         is causing more trouble than it's curing.
66173         * lib/regex_internal.h (__mempcpy): Remove.
66174         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
66175         (and make the code a tad smaller to boot).
66176         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
66177
66178 2007-02-02  Jim Meyering  <jim@meyering.net>
66179
66180         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
66181         section, not in the Makefile.am: one.
66182
66183 2007-02-02  Eric Blake  <ebb9@byu.net>
66184
66185         * lib/strchrnul.c: Always include config.h first.
66186
66187         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
66188         gnulib strstr is not necessary here.
66189
66190 2007-02-02  Simon Josefsson  <simon@josefsson.org>
66191
66192         * m4/socklen.m4: Fix typo.
66193
66194 2007-02-02  Eric Blake  <ebb9@byu.net>
66195
66196         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
66197         * modules/netinet_in (Makefile.am): Likewise.
66198
66199 2007-02-01  Bruno Haible  <bruno@clisp.org>
66200
66201         * lib/string_.h (GL_LINK_WARNING): New macro.
66202         (strcasecmp, strstr, strcasestr): If provided by the system,
66203         conditionally define as a macro that leads to a warning instead of to
66204         an error.
66205         (strncasecmp): Conditionally define as a macro that leads to a warning.
66206
66207 2007-02-01  Karl Berry  <karl@gnu.org>
66208
66209         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
66210
66211 2007-02-01  Bruno Haible  <bruno@clisp.org>
66212
66213         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
66214         renamings.
66215
66216 2007-02-01  Eric Blake  <ebb9@byu.net>
66217
66218         * modules/regex (Depends-on): Revert dependence on mempcpy.
66219         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
66220         module's definition of mempcpy.
66221         Reported by Paul Eggert.
66222
66223 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
66224
66225         * lib/string_.h: If the gnulib module XYZ is not present, undefine
66226         the symbol XYZ before redefining it.  This fixes a problem with
66227         programs that don't use XYZ, when compiled on systems that define
66228         XYZ to something else.
66229
66230 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
66231
66232         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
66233         occurs when "mkdir -m foo" creates a setgid directory that is (1)
66234         writeable to group or other and (2) is intended to have a special
66235         mode bit that is set or cleared.  In such a case, the directory
66236         should be neither group- nor other-writeable until the special
66237         mode bits are right.
66238
66239 2007-01-31  Eric Blake  <ebb9@byu.net>
66240
66241         * modules/mountlist (Depends-on): Add strstr.
66242
66243         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
66244         bug.
66245         * modules/string (Makefile.am): Remove redundant replacement.
66246         * modules/regex (Depends-on): Add mempcpy.
66247
66248 2007-01-31  Bruno Haible  <bruno@clisp.org>
66249
66250         New module description field 'Link'.
66251         * gnulib-tool (func_usage): Document --extract-link-directive.
66252         (sed_extract_prog): Recognize 'Link' directive.
66253         (func_get_link_directive): New function.
66254         (func_import): Show summary of link directives.
66255         Handle --extract-link-directive option.
66256         * modules/acl (Link): New section.
66257         * modules/clock-time (Link): New section.
66258         * modules/euidaccess (Link): New section.
66259         * modules/gettext (Link): New section.
66260         * modules/iconv (Link): New section.
66261         * modules/lock (Link): New section.
66262         * modules/nanosleep (Link): New section.
66263         * modules/readline (Link): New section.
66264
66265 2007-01-27  Bruno Haible  <bruno@clisp.org>
66266
66267         Enforce the use of gnulib modules for unportable <string.h> functions.
66268         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
66269         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
66270         (gl_HEADER_STRING_H_BODY): Require it.
66271         * lib/string_.h: If the gnulib module XYZ is not present, redefine
66272         the symbol XYZ to one that gives a link error.
66273         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
66274         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
66275         * modules/mempcpy (configure.ac): Likewise.
66276         * modules/memrchr (configure.ac): Likewise.
66277         * modules/stpcpy (configure.ac): Likewise.
66278         * modules/stpncpy (configure.ac): Likewise.
66279         * modules/strcase (configure.ac): Likewise.
66280         * modules/strcasestr (configure.ac): Likewise.
66281         * modules/strchrnul (configure.ac): Likewise.
66282         * modules/strdup (configure.ac): Likewise.
66283         * modules/strndup (configure.ac): Likewise.
66284         * modules/strnlen (configure.ac): Likewise.
66285         * modules/strpbrk (configure.ac): Likewise.
66286         * modules/strsep (configure.ac): Likewise.
66287         * modules/strstr (configure.ac): Likewise.
66288         * modules/strtok_r (configure.ac): Likewise.
66289
66290 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
66291
66292         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
66293
66294 2007-01-30  Jim Meyering  <jim@meyering.net>
66295
66296         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
66297
66298 2007-01-29  Bruno Haible  <bruno@clisp.org>
66299
66300         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
66301         * lib/execute.c: Likewise.
66302         * lib/pipe.c: Likewise.
66303         * lib/printf-args.h: Likewise.
66304         * lib/printf-args.c: Likewise.
66305         * lib/printf-parse.c: Likewise.
66306         * lib/vasnprintf.c: Likewise.
66307
66308 2007-01-29  Eric Blake  <ebb9@byu.net>
66309
66310         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
66311         declaration.
66312
66313 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
66314
66315         * lib/strptime.h (strptime): Use 'restrict' for args where
66316         POSIX requires this.
66317         * lib/strptime.c (strptime): Likewise.
66318         Change license notice from LGPL to GPL, since gnulib-tool will
66319         change this as needed.
66320         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
66321         defined.
66322         Include "strptime.h" first, to check interface.
66323         Do not #undef _LIBC and _NL_CURRENT.
66324         Do not include <stdlib.h>; no longer needed.
66325         Include "time_r.h" and declare ptime_locale_status
66326         only if _LIBC is not defined.
66327         (__P): Remove unused macro.
66328         (match_string): Bring back glibc version, but use it only if _LIBC
66329         is defined.
66330         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
66331         Remove unnecessary assertion and abort() call.
66332         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
66333         * m4/strptime.m4: Fix serial number comment.
66334         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
66335         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
66336         (Depends-on): Add time_r.
66337
66338 2007-01-29  Bruno Haible  <bruno@clisp.org>
66339
66340         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66341         strptime.
66342         * modules/strptime (Depends-on): Add stdbool.
66343         * lib/strptime.h: Include <time.h> always. Add comments.
66344
66345 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
66346
66347         * modules/strptime: New file.
66348         * lib/strptime.h: New file.
66349         * lib/strptime.c: New file.
66350         * m4/strptime.m4: New file.
66351
66352 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
66353
66354         * MODULES.html.sh: New module mpsort.
66355         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
66356
66357         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
66358         a circularity problem with HP-UX ia64 reported by Bob Proulx in
66359         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
66360         All uses changed.
66361         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
66362         All uses changed.
66363         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
66364         to _Restrict_.
66365         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
66366         the parameter matches the prototype.
66367
66368 2007-01-28  Jim Meyering  <jim@meyering.net>
66369
66370         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
66371         sys/time.h here, reverting that part of the previous patch:
66372         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
66373
66374 2007-01-28  Bruno Haible  <bruno@clisp.org>
66375
66376         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
66377         value of $(SYS_TIME_H).
66378         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
66379         remove it conditionally, too. [added by Jim Meyering]
66380         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
66381         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
66382         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
66383         GETTIMEOFDAY_REPLACEMENT to 1.
66384
66385 2007-01-28  Bruno Haible  <bruno@clisp.org>
66386
66387         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
66388         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
66389         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
66390         Set UNISTD_H instead of UNISTD_H2.
66391         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
66392
66393 2007-01-28  Bruno Haible  <bruno@clisp.org>
66394
66395         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
66396         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
66397
66398 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66399
66400         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
66401         (func_create_testdir): Ensure C locale for `grep' and `tr'
66402         character ranges.
66403         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
66404         ACLOCAL_AMFLAGS parsing state machine.
66405
66406 2007-01-27  Bruno Haible  <bruno@clisp.org>
66407
66408         * modules/unistr/base: Update.
66409
66410 2007-01-27  Bruno Haible  <bruno@clisp.org>
66411
66412         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
66413         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
66414         * modules/unistr/u32-mbtouc-unsafe: Renamed from
66415         modules/unistr/u32-mbtouc.
66416         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
66417         * lib/unistr.h: Update.
66418         * lib/linebreak.c: Update.
66419         * modules/unistr/u32-mbtouc: Renamed from
66420         modules/unistr/u32-mbtouc-safe.
66421         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
66422         * lib/unistr.h: Update.
66423         * lib/unistr/u32-to-u8.c: Update.
66424         * lib/unistr/u32-to-u16.c: Update.
66425
66426 2007-01-27  Bruno Haible  <bruno@clisp.org>
66427
66428         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
66429         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
66430         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
66431         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
66432         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
66433         * modules/unistr/u16-mbtouc-unsafe: Renamed from
66434         modules/unistr/u16-mbtouc.
66435         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
66436         * lib/unistr.h: Update.
66437         * lib/linebreak.c: Update.
66438         * modules/linebreak: Update.
66439         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
66440         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
66441         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
66442         * modules/unistr/u16-mbtouc: Renamed from
66443         modules/unistr/u16-mbtouc-safe.
66444         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
66445         * lib/unistr.h: Update.
66446         * lib/unistr/u16-to-u8.c: Update.
66447         * modules/unistr/u16-to-u8: Update.
66448         * lib/unistr/u16-to-u32.c: Update.
66449         * modules/unistr/u16-to-u32: Update.
66450
66451 2007-01-27  Bruno Haible  <bruno@clisp.org>
66452
66453         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
66454         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
66455         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
66456         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
66457         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
66458         * modules/unistr/u8-mbtouc-unsafe: Renamed from
66459         modules/unistr/u8-mbtouc.
66460         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
66461         * lib/unistr.h: Update.
66462         * lib/striconveh.c: Update.
66463         * modules/striconveh: Update.
66464         * lib/linebreak.c: Update.
66465         * modules/linebreak: Update.
66466         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
66467         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
66468         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
66469         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
66470         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
66471         * lib/unistr.h: Update.
66472         * lib/striconveh.c: Update.
66473         * modules/striconveh: Update.
66474         * lib/unistr/u8-to-u16.c: Update.
66475         * modules/unistr/u8-to-u16: Update.
66476         * lib/unistr/u8-to-u32.c: Update.
66477         * modules/unistr/u8-to-u32: Update.
66478
66479 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66480
66481         Sync from Libtool.
66482         * lib/argz.c: Do not include strings.h nor memory.h, include
66483         string.h unconditionally.  Patch by Simon Josefsson.
66484
66485 2007-01-27  Bruno Haible  <bruno@clisp.org>
66486
66487         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
66488         from gl_HEADER_STRING_H_BODY.
66489         (gl_HEADER_STRING_H_BODY): Require it.
66490         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
66491         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
66492         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
66493         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
66494         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
66495         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
66496         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
66497         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
66498         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
66499         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
66500         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
66501         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
66502         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
66503         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
66504         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
66505
66506 2007-01-27  Bruno Haible  <bruno@clisp.org>
66507
66508         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
66509         check_PROGRAMS into noinst_PROGRAMS.
66510         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
66511         check_PROGRAMS in this case.
66512         (func_import): Set for_test to false.
66513         (func_create_testdir): Set for_test to true.
66514
66515 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
66516             Bruno Haible  <bruno@clisp.org>
66517
66518         * modules/strcasestr (Files): Remove lib/strcasestr.h.
66519         (Depends-on): Add string.
66520         (Includes): Use <string.h> instead of strcasestr.h.
66521         * modules/string (Makefile.am): Also substitute the value of
66522         REPLACE_STRCASESTR.
66523         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
66524         assume strcasestr is declared in <string.h> not <strings.h>. Also
66525         set REPLACE_STRCASESTR.
66526         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
66527         REPLACE_STRCASESTR.
66528         * lib/strcasestr.h: Remove file.
66529         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
66530         * lib/string_.h (strcasestr): New declaration.
66531
66532 2007-01-27  Bruno Haible  <bruno@clisp.org>
66533
66534         * lib/string_.h: Use 'extern'.
66535
66536 2007-01-27  Jim Meyering  <jim@meyering.net>
66537
66538         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
66539         of set-but-not-used local, "q".
66540
66541         * lib/mempcpy.c: Include <config.h> before <string.h>.
66542         This fixes a compilation error on HP-UX, due to the system's
66543         "restrict"-using mempcpy prototype.
66544
66545 2007-01-26  Bruno Haible  <bruno@clisp.org>
66546
66547         Small optimization.
66548         * lib/javacomp.c: Include c-strstr.h.
66549          (is_envjavac_gcj): Use c_strstr instead of strstr.
66550         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
66551
66552 2007-01-26  Bruno Haible  <bruno@clisp.org>
66553
66554         * MODULES.html.sh (Unicode string functions): Add the new modules.
66555
66556         * modules/uniconv/u32-strconv-to-locale: New file.
66557         * lib/uniconv/u32-strconv-to-locale.c: New file.
66558
66559         * modules/uniconv/u16-strconv-to-locale: New file.
66560         * lib/uniconv/u16-strconv-to-locale.c: New file.
66561
66562         * modules/uniconv/u8-strconv-to-locale: New file.
66563         * lib/uniconv/u8-strconv-to-locale.c: New file.
66564
66565         * modules/uniconv/u32-strconv-from-locale: New file.
66566         * lib/uniconv/u32-strconv-from-locale.c: New file.
66567
66568         * modules/uniconv/u16-strconv-from-locale: New file.
66569         * lib/uniconv/u16-strconv-from-locale.c: New file.
66570
66571         * modules/uniconv/u8-strconv-from-locale: New file.
66572         * lib/uniconv/u8-strconv-from-locale.c: New file.
66573
66574         * modules/uniconv/u32-strconv-to-enc: New file.
66575         * lib/uniconv/u32-strconv-to-enc.c: New file.
66576         * modules/uniconv/u32-strconv-to-enc-tests: New file.
66577         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
66578
66579         * modules/uniconv/u16-strconv-to-enc: New file.
66580         * lib/uniconv/u16-strconv-to-enc.c: New file.
66581         * lib/uniconv/u-strconv-to-enc.h: New file.
66582         * modules/uniconv/u16-strconv-to-enc-tests: New file.
66583         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
66584
66585         * modules/uniconv/u8-strconv-to-enc: New file.
66586         * lib/uniconv/u8-strconv-to-enc.c: New file.
66587         * modules/uniconv/u8-strconv-to-enc-tests: New file.
66588         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
66589
66590         * modules/uniconv/u32-strconv-from-enc: New file.
66591         * lib/uniconv/u32-strconv-from-enc.c: New file.
66592         * modules/uniconv/u32-strconv-from-enc-tests: New file.
66593         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
66594
66595         * modules/uniconv/u16-strconv-from-enc: New file.
66596         * lib/uniconv/u16-strconv-from-enc.c: New file.
66597         * modules/uniconv/u16-strconv-from-enc-tests: New file.
66598         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
66599
66600         * modules/uniconv/u8-strconv-from-enc: New file.
66601         * lib/uniconv/u8-strconv-from-enc.c: New file.
66602         * lib/uniconv/u-strconv-from-enc.h: New file.
66603         * modules/uniconv/u8-strconv-from-enc-tests: New file.
66604         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
66605
66606         * modules/uniconv/u32-conv-from-enc: New file.
66607         * lib/uniconv/u32-conv-from-enc.c: New file.
66608         * modules/uniconv/u32-conv-from-enc-tests: New file.
66609         * tests/uniconv/test-u32-conv-from-enc.c: New file.
66610
66611         * modules/uniconv/u16-conv-from-enc: New file.
66612         * lib/uniconv/u16-conv-from-enc.c: New file.
66613         * lib/uniconv/u-conv-from-enc.h: New file.
66614         * modules/uniconv/u16-conv-from-enc-tests: New file.
66615         * tests/uniconv/test-u16-conv-from-enc.c: New file.
66616
66617         * modules/uniconv/u8-conv-from-enc: New file.
66618         * lib/uniconv/u8-conv-from-enc.c: New file.
66619         * modules/uniconv/u8-conv-from-enc-tests: New file.
66620         * tests/uniconv/test-u8-conv-from-enc.c: New file.
66621
66622         * modules/uniconv/base: New file.
66623         * lib/uniconv.h: New file.
66624
66625 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
66626
66627         * doc/gnulib-tool.texi (Initial import): Update to match current
66628         behavior with strdup module.
66629         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
66630         * lib/memmem.h: Remove; all uses removed.  This is now done
66631         by <string.h>.
66632         * lib/mempcpy.h: Likewise.
66633         * lib/memrchr.h: Likewise.
66634         * lib/stpcpy.h: Likewise.
66635         * lib/stpncpy.h: Likewise.
66636         * lib/strcase.h: Likewise.
66637         * lib/strchrnul.h: Likewise.
66638         * lib/strdup.h: Likewise.
66639         * lib/strndup.h: Likewise.
66640         * lib/strnlen.h: Likewise.
66641         * lib/strpbrk.h: Likewise.
66642         * lib/strsep.h: Likewise.
66643         * lib/strstr.h: Likewise.
66644         * lib/strtok_r.h: Likewise.
66645         * lib/string_.h: New file.
66646         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
66647         Rely on <string.h> instead.
66648         * lib/canon-host.c: Likewise.
66649         * lib/chdir-long.c: Likewise.
66650         * lib/concatpath.c: Likewise.
66651         * lib/exclude.c: Likewise.
66652         * lib/fchdir.c: Likewise.
66653         * lib/getaddrinfo.c: Likewise.
66654         * lib/getcwd.c: Likewise.
66655         * lib/getsubopt.c: Likewise.
66656         * lib/glob.c: Likewise.
66657         * lib/hard-locale.c: Likewise.
66658         * lib/iconvme.c: Likewise.
66659         * lib/javacomp.c: Likewise.
66660         * lib/mempcpy.c: Likewise.
66661         * lib/memrchr.c: Likewise.
66662         * lib/regex_internal.h: Likewise.
66663         * lib/stpncpy.c: Likewise.
66664         * lib/strcasecmp.c: Likewise.
66665         * lib/strchrnul.c: Likewise.
66666         * lib/strdup.c: Likewise.
66667         * lib/striconv.c: Likewise.
66668         * lib/striconveh.c: Likewise.
66669         * lib/striconveha.c: Likewise.
66670         * lib/strncasecmp.c: Likewise.
66671         * lib/strndup.c: Likewise.
66672         * lib/strnlen.c: Likewise.
66673         * lib/strsep.c: Likewise.
66674         * lib/strstr.c: Likewise.
66675         * lib/strtok_r.c: Likewise.
66676         * lib/userspec.c: Likewise.
66677         * lib/w32spawn.h: Likewise.
66678         * lib/xstrndup.c: Likewise.
66679         * lib/mountlist.c (strstr): Remove decl.
66680         * m4/string_h.m4: New file.
66681         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
66682         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
66683         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
66684         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
66685         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
66686         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
66687         Set REPLACE_STRCASECMP if necessary.
66688         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
66689         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
66690         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
66691         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
66692         HAVE_DECL_STRDUP if necessary.
66693         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
66694         since gl_FUNC_STRNDUP does that now.
66695         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
66696         Check for decl here...
66697         (gl_PREREQ_STRNLEN): ... not here.
66698         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
66699         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
66700         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
66701         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
66702         necessary.
66703         * modules/string: New file.
66704         * modules/memmem (Files): Remove special-purpose include file.
66705         (Depends-on): Add string.
66706         (Include): Include <string.h>, not the removed file.
66707         * modules/mempcpy: Likewise.
66708         * modules/memrchr: Likewise.
66709         * modules/stpcpy: Likewise.
66710         * modules/stpncpy: Likewise.
66711         * modules/strcase: Likewise.
66712         * modules/strchrnul: Likewise.
66713         * modules/strdup: Likewise.
66714         * modules/strndup: Likewise.
66715         * modules/strnlen: Likewise.
66716         * modules/strpbrk: Likewise.
66717         * modules/strsep: Likewise.
66718         * modules/strstr: Likewise.
66719         * modules/strtok_r: Likewise.
66720         * tests/test-dirname.c: Don't include "strdup.h", since
66721         <string.h> now suffices.
66722         * tests/test-memmem.c: Don't include "memmem.h", since
66723         <string.h> now suffices.
66724
66725 2007-01-25  Bruno Haible  <bruno@clisp.org>
66726
66727         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
66728         *resultp is 0.
66729
66730         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
66731         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
66732         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
66733         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
66734
66735         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
66736         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
66737         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
66738         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
66739         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
66740         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
66741
66742 2007-01-24  Bruno Haible  <bruno@clisp.org>
66743
66744         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
66745         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
66746         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
66747         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
66748         gl_FUNC_FTS_CORE.
66749         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
66750         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
66751         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
66752         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
66753         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
66754         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
66755         gl_FUNC_FCHOWNAT.
66756         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
66757         gl_FUNC_STRFTIME.
66758         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
66759         Reported by Ralf Wildenhues.
66760
66761 2007-01-24  Bruno Haible  <bruno@clisp.org>
66762
66763         Drop AC_REQUIRE calls that are redundant with the module dependencies.
66764         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
66765         gl_GETADDRINFO.
66766         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
66767         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
66768         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
66769
66770 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
66771
66772         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
66773         Don't use 'exit'; just return from 'main'.
66774         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
66775
66776         * lib/fnmatch_.h: Readjust white space and comments to match
66777         glibc, to avoid spurious diffs.
66778
66779 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
66780
66781         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
66782         2004-12-01 change by Jakub Jelinek, since this code won't compile
66783         if !LIBC.  Problem reported by Bob Proulx.
66784
66785 2007-01-23  Bruno Haible  <bruno@clisp.org>
66786
66787         * lib/striconveh.c: Include c-strcaseeq.h.
66788         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
66789         * modules/striconveh (Depends-on): Add c-strcaseeq.
66790
66791 2007-01-23  Bruno Haible  <bruno@clisp.org>
66792
66793         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
66794
66795         * modules/c-strcaseeq: New file.
66796         * lib/c-strcaseeq.h: New file.
66797
66798         * modules/streq: New file.
66799         * lib/streq.h: New file.
66800
66801 2007-01-23  Bruno Haible  <bruno@clisp.org>
66802
66803         * modules/striconveha-tests: New file.
66804         * tests/test-striconveha.c: New file.
66805
66806         * lib/striconveha.h: Include <stdbool.h>.
66807         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
66808         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
66809         (mem_iconveha_notranslit): Renamed from mem_iconveha.
66810         (mem_iconveha): New function.
66811         (str_iconveha_notranslit): Renamed from str_iconveha.
66812         (str_iconveha): New function.
66813         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
66814         c-strcase.
66815
66816 2007-01-23  Bruno Haible  <bruno@clisp.org>
66817
66818         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
66819         encodings without forgiving before trying any encoding with handler.
66820         (str_iconveha): Try all encodings without forgiving before trying any
66821         encoding with handler.
66822
66823 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
66824
66825         Import the following changes from libc.
66826
66827         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
66828
66829         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
66830
66831         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
66832
66833         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
66834         normal_bracket label.
66835
66836         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
66837
66838         [BZ #361]
66839         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
66840         to normal_bracket after fetching the next character.
66841
66842 2007-01-22  Bruno Haible  <bruno@clisp.org>
66843
66844         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
66845         argument.
66846         * lib/striconveh.c (iconv_carefully_1): New function.
66847         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
66848         argument.
66849         (str_cd_iconveh): Update.
66850         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
66851         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
66852         * tests/test-striconveh.c (MAGIC): New macro.
66853         (new_offsets): New function.
66854         (main): Test call with and without offsets.
66855
66856 2007-01-22  Bruno Haible  <bruno@clisp.org>
66857
66858         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
66859         * modules/sys_select (Makefile.am): Likewise.
66860         * modules/sys_socket (Makefile.am): Likewise.
66861         * modules/sys_time (Makefile.am): Likewise.
66862
66863 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
66864
66865         * modules/gettimeofday (License): Change from GPL to LGPL, since
66866         gettimeofday is a library function.
66867
66868 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66869
66870         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
66871
66872 2007-01-21  Bruno Haible  <bruno@clisp.org>
66873
66874         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
66875
66876 2007-01-21  Bruno Haible  <bruno@clisp.org>
66877
66878         * modules/striconveha: New file.
66879         * lib/striconveha.h: New file.
66880         * lib/striconveha.c: New file.
66881         * MODULES.html.sh (Internationalization functions): Add striconveha.
66882         * lib/striconv.c (str_iconv): Optimize the case of an empty input
66883         string.
66884         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
66885
66886 2007-01-21  Bruno Haible  <bruno@clisp.org>
66887
66888         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
66889         * lib/striconveh.c (str_iconveh): Likewise.
66890
66891 2007-01-21  Bruno Haible  <bruno@clisp.org>
66892
66893         * lib/striconveh.h (mem_iconveh): New declaration.
66894         * lib/striconveh.c (mem_iconveh): New function.
66895         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
66896
66897 2007-01-21  Bruno Haible  <bruno@clisp.org>
66898
66899         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
66900
66901         * lib/striconveh.h (mem_cd_iconveh): Change specification.
66902         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
66903         original result buffer.
66904         (str_cd_iconveh): Update.
66905         * tests/test-striconveh.c (main): Update.
66906
66907         * lib/striconv.h (mem_cd_iconv): Change specification.
66908         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
66909         result buffer.
66910         (str_cd_iconv): Update.
66911         * tests/test-striconv.c (main): Update.
66912
66913 2007-01-21  Bruno Haible  <bruno@clisp.org>
66914
66915         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
66916
66917 2007-01-20  Jim Meyering  <jim@meyering.net>
66918
66919         * lib/userspec.c (parse_with_separator): If a user or group string
66920         starts with "+", skip the corresponding name-to-ID look-up, since
66921         such a look-up must fail: user and group names may not include "+".
66922
66923 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
66924
66925         * lib/poll.c: Include sys/time.h and time.h unconditionally,
66926         since we now assume the sys_time module.
66927         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
66928         check for sys/time.h; no longer needed.
66929         * modules/poll (Depends-on): Depend on sys_time.
66930
66931 2007-01-18  Bruno Haible  <bruno@clisp.org>
66932
66933         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
66934         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
66935
66936         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
66937         gettimeofday.
66938
66939         * tests/test-gettimeofday.c: Include <time.h>.
66940         (dummy): Remove variable.
66941
66942         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
66943         gl_HEADER_SYS_TIME_H.
66944         (gl_HEADER_SYS_TIME_H): New macro.
66945
66946         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
66947         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
66948         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
66949         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
66950         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
66951         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
66952         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
66953         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
66954         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
66955         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
66956         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
66957
66958         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
66959         last change; it caused a compilation error when cross-compiling to
66960         Cygwin.
66961
66962 2007-01-18  Jim Meyering  <jim@meyering.net>
66963
66964         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
66965         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
66966         than the race-prone "test -d sys || mkdir sys".
66967         (configure.ac): Use AC_PROG_MKDIR_P.
66968         * modules/sys_select: Likewise.
66969         * modules/sys_socket: Likewise.
66970         * modules/sys_time: Likewise.
66971
66972 2007-01-18  Eric Blake  <ebb9@byu.net>
66973
66974         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
66975         replace gettimeofday.
66976         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
66977         name, to avoid infinite recursion.
66978
66979 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
66980
66981         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
66982         module sys_time.
66983         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
66984         assume timespec.h defines struct timeval.
66985         * lib/settime.c: Likewise.
66986         * lib/utimens.c: Likewise.
66987         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
66988         since we now assume the gettimeofday module.
66989         * lib/tempname.c (__gen_tempname): Likewise.
66990         * lib/gettimeofday.h: Remove.
66991         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
66992         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
66993         Include <time.h>, for 'time()'.
66994         (localtime_buffer_addr): Also use this workaround if
66995         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
66996         to simplify the uses.  All uses changed.
66997         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
66998         that #undef is inside {}, and 'const' follows type name consistently.
66999         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
67000         (gettimeofday): Do not use the maximum possible value for
67001         tv->tv_usec, since that might break usages other than ls.c.
67002         Instead, we'll leave ls.c alone.  This undoes today's patch
67003         by Bruno.  Add a compile-time warning for 1s-clock resolution;
67004         we've never observed the problem but might as well keep the
67005         canary.
67006         * lib/nanosleep.c: Include timespec.h first, for interface check.
67007         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
67008         now assume the sys_time module.
67009         * lib/tempname.c: Likewise.
67010         * lib/timespec.h: Likewise.
67011         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
67012         needed.
67013         * lib/strftime.c: Likewise.
67014         * lib/timespec.h: Likewise.
67015         * lib/posixtm.c: Include posixtm.h first, for interface check.
67016         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
67017         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
67018         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
67019         * lib/sys_time_.h: New file.
67020         * lib/timespec.h (struct timespec): Use long int, not long.
67021         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
67022         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
67023         Remove obsolescent call to AC_HEADER_TIME.
67024         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
67025         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
67026         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
67027         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
67028         Likewise.
67029         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
67030         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
67031         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
67032         into the sys_time module.  Check for gettimeofday just once.
67033         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
67034         for gettimeofday signature to just check the signature.  Merely
67035         compile it, since linking doesn't test signature.  Improve test for
67036         whether gettimeofday.o is actually needed.
67037         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
67038         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
67039         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
67040         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
67041         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
67042         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
67043         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
67044         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
67045         than worrying about sys/time.h.
67046         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
67047         Don't bother worrying about TIME_WITH_SYS_TIME.
67048         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
67049         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
67050         * m4/sys_time_h.m4: New file.
67051         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
67052         Don't include sys/time.h.  Return from main rather than exiting.
67053         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
67054         all uses changed.
67055         * modules/gethrxtime (Depends-on): Add sys_time.
67056         * modules/gettime (Depends-on): Likewise.
67057         * modules/gettimeofday (Depends-on): Likewise.
67058         * modules/nanosleep (Depends-on): Likewise.
67059         * modules/settime (Depends-on): Likewise.
67060         * modules/tempname (Depends-on): Likewise.
67061         * modules/utimens (Depends-on): Likewise.
67062         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
67063         (Include): Change back to <sys/time.h>.
67064         (Maintainer): Add self.
67065         * modules/sys_time: New file.
67066         * modules/tempname (Depends-on): Add gettimeofday.
67067         * tests/test-gettimeofday.c: Include <sys/time.h>
67068         rather than gettimeofday.h.
67069
67070 2007-01-17  Bruno Haible  <bruno@clisp.org>
67071
67072         * gnulib-tool (func_get_license): Revert last patch. Instead, let
67073         the license default to GPL.
67074         (func_create_testdir): Don't complain if a module is LGPL and its
67075         tests module depends on GPLed modules.
67076
67077 2007-01-17  Bruno Haible  <bruno@clisp.org>
67078
67079         * lib/gettimeofday.c (gettimeofday): Add code for the case
67080         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
67081         maximum possible value for tv->tv_usec, rather than the minimum one.
67082
67083 2005-10-08  Martin Lambers  <marlam@marlam.de>
67084 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
67085 2007-01-16  Bruno Haible  <bruno@clisp.org>
67086
67087         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
67088         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
67089         gl_FUNC_GETTIMEOFDAY.
67090         (Include): Add gettimeofday.h.
67091         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
67092         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
67093         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
67094         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
67095         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
67096         * lib/gettimeofday.h: New file.
67097         * lib/gettimeofday.c: Include <sys/timeb.h>.
67098         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
67099         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
67100         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
67101         fall back on time().
67102
67103         * tests/test-gettimeofday.c: New file.
67104         * modules/gettimeofday-tests: New file.
67105
67106 2007-01-16  Eric Blake  <ebb9@byu.net>
67107
67108         * modules/fnmatch (Depends-on): Depend on wchar.
67109         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
67110         * m4/fnmatch.m4: Likewise.
67111         * modules/mbchar (Makefile.am): Assume <wchar.h>.
67112         * m4/mbchar.m4: Likewise.
67113         * modules/mbswidth (Depends-on): Depend on wchar.
67114         * lib/mbswidth.c: Assume <wchar.h>.
67115         * m4/mbswidth.m4: Likewise.
67116         * modules/quotearg (Depends-on): Depend on wchar.
67117         * lib/quotearg.c: Assume <wchar.h>.
67118         * m4/quotearg.m4: Likewise.
67119         * modules/regex (Depends-on): Depend on wchar.
67120         * lib/regex_internal.h: Assume <wchar.h>.
67121         * m4/regex.m4: Likewise.
67122         * modules/stdint (Depends-on): Depend on wchar.
67123         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
67124         * m4/stdint.m4: Likewise.
67125         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
67126         * modules/strftime (Depends-on): Depend on wchar.
67127         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
67128         * modules/strtol (Depends-on): Depend on wchar.
67129         * lib/strtol.c: Assume <wchar.h>.
67130         * modules/wcwidth (Depends-on): Depend on wchar.
67131         * lib/wcwidth.h: Assume <wchar.h>.
67132         * m4/wcwidth.m4: Likewise.
67133
67134 2007-01-16  Bruno Haible  <bruno@clisp.org>
67135
67136         * modules/csharpexec-script: New, created from...
67137         * modules/csharpexec: ... this.
67138
67139 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
67140
67141         * modules/javaexec-script: New, created from...
67142         * modules/javaexec: ... this.
67143
67144 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67145
67146         * modules/poll (Dependencies): Add sys_select.
67147
67148 2007-01-15  Jim Meyering  <jim@meyering.net>
67149
67150         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
67151         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
67152         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
67153         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
67154
67155 2007-01-15  Bruno Haible  <bruno@clisp.org>
67156
67157         * modules/striconveh: New file.
67158         * lib/striconveh.h: New file.
67159         * lib/striconveh.c: New file.
67160         * MODULES.html.sh (Internationalization functions): Add striconveh.
67161
67162         * modules/striconveh-tests: New file.
67163         * tests/test-striconveh.c: New file.
67164
67165 2007-01-15  Bruno Haible  <bruno@clisp.org>
67166
67167         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
67168         not from GNU libiconv or GNU libc.
67169
67170 2007-01-15  Bruno Haible  <bruno@clisp.org>
67171
67172         * doc/gnulib-intro.texi (Copyright): Explain the different license
67173         terms for module descriptions, autoconf macros, tests, documentation.
67174
67175 2007-01-14  Bruno Haible  <bruno@clisp.org>
67176
67177         * modules/striconv-tests: New file.
67178         * tests/test-striconv.c: New file.
67179
67180 2007-01-14  Bruno Haible  <bruno@clisp.org>
67181
67182         * modules/iconv-tests: New file.
67183         * tests/test-iconv.c: New file.
67184
67185 2007-01-14  Bruno Haible  <bruno@clisp.org>
67186
67187         * gnulib-tool (func_get_license): For test modules, use the license of
67188         the main module.
67189
67190 2007-01-14  Bruno Haible  <bruno@clisp.org>
67191
67192         * modules/iconv (Include): Clarify that <iconv.h> can only be included
67193         if iconv is found to exist.
67194
67195 2007-01-14  Bruno Haible  <bruno@clisp.org>
67196
67197         * modules/c-ctype-tests: New file.
67198         * tests/test-c-ctype.c: New file.
67199
67200 2007-01-14  Bruno Haible  <bruno@clisp.org>
67201
67202         * modules/binary-io-tests: New file.
67203         * tests/test-binary-io.sh: New file.
67204         * tests/test-binary-io.c: New file.
67205
67206 2007-01-14  Bruno Haible  <bruno@clisp.org>
67207
67208         * modules/array-oset-tests: New file.
67209         * tests/test-array_oset.c: New file.
67210
67211 2007-01-14  Bruno Haible  <bruno@clisp.org>
67212
67213         * modules/array-list-tests: New file.
67214         * tests/test-array_list.c: New file.
67215
67216 2007-01-14  Bruno Haible  <bruno@clisp.org>
67217
67218         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
67219         and make.
67220         Reported by Simon Josefsson in
67221         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
67222
67223 2007-01-14  Bruno Haible  <bruno@clisp.org>
67224
67225         * modules/allocsa-tests: New file.
67226         * tests/test-allocsa.c: New file.
67227
67228 2007-01-14  Bruno Haible  <bruno@clisp.org>
67229
67230         * modules/fchdir (Depends-on): Add absolute-header.
67231         * modules/unistd (Depends-on): Likewise.
67232
67233 2006-12-30  Bruno Haible  <bruno@clisp.org>
67234
67235         * modules/fchdir: New file.
67236         * modules/unistd (Files): Add lib/unistd_.h.
67237         (Makefile.am): Generate unistd.h from unistd_.h.
67238         * lib/fchdir.c: New file.
67239         * lib/dirent_.h: New file.
67240         * lib/unistd_.h: New file.
67241         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
67242         * m4/fchdir.m4: New file.
67243         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
67244         (gl_HEADER_UNISTD): Invoke it.
67245         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
67246         function.
67247         * lib/backupfile.c (opendir, closedir): Undefine.
67248         * lib/chown.c (open, close): Undefine.
67249         * lib/clean-temp.c (open, close): Undefine.
67250         * lib/copy-file.c (open, close): Undefine.
67251         * lib/execute.c (open, close): Undefine.
67252         * lib/fsusage.c (open, close): Undefine.
67253         * lib/gc-gnulib.c (open, close): Undefine.
67254         * lib/getcwd.c (opendir, closedir): Undefine.
67255         * lib/glob.c (opendir, closedir): Undefine.
67256         * lib/javacomp.c (open, close): Undefine.
67257         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
67258         * lib/openat-proc.c (open, close): Undefine.
67259         * lib/pagealign_alloc.c (open, close): Undefine.
67260         * lib/pipe.c (open, close): Undefine.
67261         * lib/progreloc.c (open, close): Undefine.
67262         * lib/savedir.c (opendir, closedir): Undefine.
67263         * lib/utime.c (open, close): Undefine.
67264         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
67265
67266 2007-01-10  Bruno Haible  <bruno@clisp.org>
67267
67268         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
67269
67270 2007-01-12  Eric Blake  <ebb9@byu.net>
67271
67272         Provide a robust <wchar.h>.  Further simplifications are now
67273         possible in other modules, but not included here.
67274         * modules/wchar: New module.
67275         * m4/wchar.m4: New file.
67276         * lib/wchar_.h: Likewise.
67277         * modules/mbchar (Depends-on): Depend on wchar, as the first use
67278         of the new module.
67279         * MODULES.html.sh (Extended multibyte and wide character utilities):
67280         New section.
67281
67282 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
67283
67284         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
67285         to a reasonable default for memory allocation.
67286         (xreadlink): Don't allocate a huge buffer, to work around a buggy
67287         file system that reports garbage st_size values for symlinks.
67288         Problem reported by Liyang Hu.
67289
67290 2007-01-11  Simon Josefsson  <simon@josefsson.org>
67291
67292         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
67293         Emacs .#* auto-save files).
67294
67295 2007-01-11  Bruno Haible  <bruno@clisp.org>
67296
67297         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
67298         directory.
67299
67300 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
67301
67302         Use @...@ consistently in lib/wctype_.h.
67303         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
67304         on it being set to 1 or 0.
67305         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
67306         go back to AC_SUBSTing it.
67307         * modules/wctype (Makefile.am): Undo previous change.
67308
67309 2007-01-10  Eric Blake  <ebb9@byu.net>
67310
67311         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
67312         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
67313         * modules/wctype (Makefile.am): Likewise.
67314         Reported by Chris McGuire.
67315
67316 2007-01-10  Jim Meyering  <jim@meyering.net>
67317
67318         fts.c: a small readability/maintainability improvement
67319         * lib/fts.c (fts_read): Make this code slightly more readable and
67320         maintainable by hoisting the "sp->fts_cur = p" assignments to
67321         immediately follow the statements that set P.  Derived from
67322         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
67323
67324 2007-01-10  Eric Blake  <ebb9@byu.net>
67325
67326         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
67327         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
67328         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
67329         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
67330         Reported by Chris McGuire.
67331
67332 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67333
67334         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
67335         in sed script.
67336
67337 2007-01-09  Bruno Haible  <bruno@clisp.org>
67338
67339         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
67340         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
67341         variables.
67342         (func_module): Use them.
67343
67344 2007-01-09  Bruno Haible  <bruno@clisp.org>
67345
67346         * modules/unistr/base: New file.
67347         * lib/unistr.h: New file.
67348
67349         * modules/unistr/u8-to-u16: New file.
67350         * lib/unistr/u8-to-u16.c: New file.
67351
67352         * modules/unistr/u8-to-u32: New file.
67353         * lib/unistr/u8-to-u32.c: New file.
67354
67355         * modules/unistr/u16-to-u8: New file.
67356         * lib/unistr/u16-to-u8.c: New file.
67357
67358         * modules/unistr/u16-to-u32: New file.
67359         * lib/unistr/u16-to-u32.c: New file.
67360
67361         * modules/unistr/u32-to-u8: New file.
67362         * lib/unistr/u32-to-u8.c: New file.
67363
67364         * modules/unistr/u32-to-u16: New file.
67365         * lib/unistr/u32-to-u16.c: New file.
67366
67367         * modules/unistr/u8-check: New file.
67368         * modules/unistr/u16-check: New file.
67369         * modules/unistr/u32-check: New file.
67370         * lib/unistr/u8-check.c: New file.
67371         * lib/unistr/u16-check.c: New file.
67372         * lib/unistr/u32-check.c: New file.
67373
67374         * modules/unistr/u8-chr: New file.
67375         * modules/unistr/u16-chr: New file.
67376         * modules/unistr/u32-chr: New file.
67377         * lib/unistr/u8-chr.c: New file.
67378         * lib/unistr/u16-chr.c: New file.
67379         * lib/unistr/u32-chr.c: New file.
67380
67381         * modules/unistr/u8-cmp: New file.
67382         * modules/unistr/u16-cmp: New file.
67383         * modules/unistr/u32-cmp: New file.
67384         * lib/unistr/u8-cmp.c: New file.
67385         * lib/unistr/u16-cmp.c: New file.
67386         * lib/unistr/u32-cmp.c: New file.
67387
67388         * modules/unistr/u8-cpy: New file.
67389         * modules/unistr/u16-cpy: New file.
67390         * modules/unistr/u32-cpy: New file.
67391         * lib/unistr/u8-cpy.c: New file.
67392         * lib/unistr/u16-cpy.c: New file.
67393         * lib/unistr/u32-cpy.c: New file.
67394         * lib/unistr/u-cpy.h: New file.
67395
67396         * modules/unistr/u8-cpy-alloc: New file.
67397         * modules/unistr/u16-cpy-alloc: New file.
67398         * modules/unistr/u32-cpy-alloc: New file.
67399         * lib/unistr/u8-cpy-alloc.c: New file.
67400         * lib/unistr/u16-cpy-alloc.c: New file.
67401         * lib/unistr/u32-cpy-alloc.c: New file.
67402         * lib/unistr/u-cpy-alloc.h: New file.
67403
67404         * modules/unistr/u8-endswith: New file.
67405         * modules/unistr/u16-endswith: New file.
67406         * modules/unistr/u32-endswith: New file.
67407         * lib/unistr/u8-endswith.c: New file.
67408         * lib/unistr/u16-endswith.c: New file.
67409         * lib/unistr/u32-endswith.c: New file.
67410         * lib/unistr/u-endswith.h: New file.
67411
67412         * modules/unistr/u8-mblen: New file.
67413         * modules/unistr/u16-mblen: New file.
67414         * modules/unistr/u32-mblen: New file.
67415         * lib/unistr/u8-mblen.c: New file.
67416         * lib/unistr/u16-mblen.c: New file.
67417         * lib/unistr/u32-mblen.c: New file.
67418
67419         * modules/unistr/u8-mbtouc: New file.
67420         * modules/unistr/u16-mbtouc: New file.
67421         * modules/unistr/u32-mbtouc: New file.
67422         * lib/unistr/u8-mbtouc.c: New file.
67423         * lib/unistr/u16-mbtouc.c: New file.
67424         * lib/unistr/u32-mbtouc.c: New file.
67425
67426         * modules/unistr/u8-mbtouc-safe: New file.
67427         * modules/unistr/u16-mbtouc-safe: New file.
67428         * modules/unistr/u32-mbtouc-safe: New file.
67429         * lib/unistr/u8-mbtouc-safe.c: New file.
67430         * lib/unistr/u16-mbtouc-safe.c: New file.
67431         * lib/unistr/u32-mbtouc-safe.c: New file.
67432
67433         * modules/unistr/u8-move: New file.
67434         * modules/unistr/u16-move: New file.
67435         * modules/unistr/u32-move: New file.
67436         * lib/unistr/u8-move.c: New file.
67437         * lib/unistr/u16-move.c: New file.
67438         * lib/unistr/u32-move.c: New file.
67439         * lib/unistr/u-move.h: New file.
67440
67441         * modules/unistr/u8-next: New file.
67442         * modules/unistr/u16-next: New file.
67443         * modules/unistr/u32-next: New file.
67444         * lib/unistr/u8-next.c: New file.
67445         * lib/unistr/u16-next.c: New file.
67446         * lib/unistr/u32-next.c: New file.
67447
67448         * modules/unistr/u8-prev: New file.
67449         * modules/unistr/u16-prev: New file.
67450         * modules/unistr/u32-prev: New file.
67451         * lib/unistr/u8-prev.c: New file.
67452         * lib/unistr/u16-prev.c: New file.
67453         * lib/unistr/u32-prev.c: New file.
67454
67455         * modules/unistr/u8-set: New file.
67456         * modules/unistr/u16-set: New file.
67457         * modules/unistr/u32-set: New file.
67458         * lib/unistr/u8-set.c: New file.
67459         * lib/unistr/u16-set.c: New file.
67460         * lib/unistr/u32-set.c: New file.
67461         * lib/unistr/u-set.h: New file.
67462
67463         * modules/unistr/u8-startswith: New file.
67464         * modules/unistr/u16-startswith: New file.
67465         * modules/unistr/u32-startswith: New file.
67466         * lib/unistr/u8-startswith.c: New file.
67467         * lib/unistr/u16-startswith.c: New file.
67468         * lib/unistr/u32-startswith.c: New file.
67469         * lib/unistr/u-startswith.h: New file.
67470
67471         * modules/unistr/u8-stpcpy: New file.
67472         * modules/unistr/u16-stpcpy: New file.
67473         * modules/unistr/u32-stpcpy: New file.
67474         * lib/unistr/u8-stpcpy.c: New file.
67475         * lib/unistr/u16-stpcpy.c: New file.
67476         * lib/unistr/u32-stpcpy.c: New file.
67477         * lib/unistr/u-stpcpy.h: New file.
67478
67479         * modules/unistr/u8-stpncpy: New file.
67480         * modules/unistr/u16-stpncpy: New file.
67481         * modules/unistr/u32-stpncpy: New file.
67482         * lib/unistr/u8-stpncpy.c: New file.
67483         * lib/unistr/u16-stpncpy.c: New file.
67484         * lib/unistr/u32-stpncpy.c: New file.
67485         * lib/unistr/u-stpncpy.h: New file.
67486
67487         * modules/unistr/u8-strcat: New file.
67488         * modules/unistr/u16-strcat: New file.
67489         * modules/unistr/u32-strcat: New file.
67490         * lib/unistr/u8-strcat.c: New file.
67491         * lib/unistr/u16-strcat.c: New file.
67492         * lib/unistr/u32-strcat.c: New file.
67493         * lib/unistr/u-strcat.h: New file.
67494
67495         * modules/unistr/u8-strchr: New file.
67496         * modules/unistr/u16-strchr: New file.
67497         * modules/unistr/u32-strchr: New file.
67498         * lib/unistr/u8-strchr.c: New file.
67499         * lib/unistr/u16-strchr.c: New file.
67500         * lib/unistr/u32-strchr.c: New file.
67501
67502         * modules/unistr/u8-strcmp: New file.
67503         * modules/unistr/u16-strcmp: New file.
67504         * modules/unistr/u32-strcmp: New file.
67505         * lib/unistr/u8-strcmp.c: New file.
67506         * lib/unistr/u16-strcmp.c: New file.
67507         * lib/unistr/u32-strcmp.c: New file.
67508
67509         * modules/unistr/u8-strcpy: New file.
67510         * modules/unistr/u16-strcpy: New file.
67511         * modules/unistr/u32-strcpy: New file.
67512         * lib/unistr/u8-strcpy.c: New file.
67513         * lib/unistr/u16-strcpy.c: New file.
67514         * lib/unistr/u32-strcpy.c: New file.
67515         * lib/unistr/u-strcpy.h: New file.
67516
67517         * modules/unistr/u8-strcspn: New file.
67518         * modules/unistr/u16-strcspn: New file.
67519         * modules/unistr/u32-strcspn: New file.
67520         * lib/unistr/u8-strcspn.c: New file.
67521         * lib/unistr/u16-strcspn.c: New file.
67522         * lib/unistr/u32-strcspn.c: New file.
67523         * lib/unistr/u-strcspn.h: New file.
67524
67525         * modules/unistr/u8-strdup: New file.
67526         * modules/unistr/u16-strdup: New file.
67527         * modules/unistr/u32-strdup: New file.
67528         * lib/unistr/u8-strdup.c: New file.
67529         * lib/unistr/u16-strdup.c: New file.
67530         * lib/unistr/u32-strdup.c: New file.
67531         * lib/unistr/u-strdup.h: New file.
67532
67533         * modules/unistr/u8-strlen: New file.
67534         * modules/unistr/u16-strlen: New file.
67535         * modules/unistr/u32-strlen: New file.
67536         * lib/unistr/u8-strlen.c: New file.
67537         * lib/unistr/u16-strlen.c: New file.
67538         * lib/unistr/u32-strlen.c: New file.
67539         * lib/unistr/u-strlen.h: New file.
67540
67541         * modules/unistr/u8-strmblen: New file.
67542         * modules/unistr/u16-strmblen: New file.
67543         * modules/unistr/u32-strmblen: New file.
67544         * lib/unistr/u8-strmblen.c: New file.
67545         * lib/unistr/u16-strmblen.c: New file.
67546         * lib/unistr/u32-strmblen.c: New file.
67547
67548         * modules/unistr/u8-strmbtouc: New file.
67549         * modules/unistr/u16-strmbtouc: New file.
67550         * modules/unistr/u32-strmbtouc: New file.
67551         * lib/unistr/u8-strmbtouc.c: New file.
67552         * lib/unistr/u16-strmbtouc.c: New file.
67553         * lib/unistr/u32-strmbtouc.c: New file.
67554
67555         * modules/unistr/u8-strncat: New file.
67556         * modules/unistr/u16-strncat: New file.
67557         * modules/unistr/u32-strncat: New file.
67558         * lib/unistr/u8-strncat.c: New file.
67559         * lib/unistr/u16-strncat.c: New file.
67560         * lib/unistr/u32-strncat.c: New file.
67561         * lib/unistr/u-strncat.h: New file.
67562
67563         * modules/unistr/u8-strncmp: New file.
67564         * modules/unistr/u16-strncmp: New file.
67565         * modules/unistr/u32-strncmp: New file.
67566         * lib/unistr/u8-strncmp.c: New file.
67567         * lib/unistr/u16-strncmp.c: New file.
67568         * lib/unistr/u32-strncmp.c: New file.
67569
67570         * modules/unistr/u8-strncpy: New file.
67571         * modules/unistr/u16-strncpy: New file.
67572         * modules/unistr/u32-strncpy: New file.
67573         * lib/unistr/u8-strncpy.c: New file.
67574         * lib/unistr/u16-strncpy.c: New file.
67575         * lib/unistr/u32-strncpy.c: New file.
67576         * lib/unistr/u-strncpy.h: New file.
67577
67578         * modules/unistr/u8-strnlen: New file.
67579         * modules/unistr/u16-strnlen: New file.
67580         * modules/unistr/u32-strnlen: New file.
67581         * lib/unistr/u8-strnlen.c: New file.
67582         * lib/unistr/u16-strnlen.c: New file.
67583         * lib/unistr/u32-strnlen.c: New file.
67584         * lib/unistr/u-strnlen.h: New file.
67585
67586         * modules/unistr/u8-strpbrk: New file.
67587         * modules/unistr/u16-strpbrk: New file.
67588         * modules/unistr/u32-strpbrk: New file.
67589         * lib/unistr/u8-strpbrk.c: New file.
67590         * lib/unistr/u16-strpbrk.c: New file.
67591         * lib/unistr/u32-strpbrk.c: New file.
67592         * lib/unistr/u-strpbrk.h: New file.
67593
67594         * modules/unistr/u8-strrchr: New file.
67595         * modules/unistr/u16-strrchr: New file.
67596         * modules/unistr/u32-strrchr: New file.
67597         * lib/unistr/u8-strrchr.c: New file.
67598         * lib/unistr/u16-strrchr.c: New file.
67599         * lib/unistr/u32-strrchr.c: New file.
67600
67601         * modules/unistr/u8-strspn: New file.
67602         * modules/unistr/u16-strspn: New file.
67603         * modules/unistr/u32-strspn: New file.
67604         * lib/unistr/u8-strspn.c: New file.
67605         * lib/unistr/u16-strspn.c: New file.
67606         * lib/unistr/u32-strspn.c: New file.
67607         * lib/unistr/u-strspn.h: New file.
67608
67609         * modules/unistr/u8-strstr: New file.
67610         * modules/unistr/u16-strstr: New file.
67611         * modules/unistr/u32-strstr: New file.
67612         * lib/unistr/u8-strstr.c: New file.
67613         * lib/unistr/u16-strstr.c: New file.
67614         * lib/unistr/u32-strstr.c: New file.
67615         * lib/unistr/u-strstr.h: New file.
67616
67617         * modules/unistr/u8-strtok: New file.
67618         * modules/unistr/u16-strtok: New file.
67619         * modules/unistr/u32-strtok: New file.
67620         * lib/unistr/u8-strtok.c: New file.
67621         * lib/unistr/u16-strtok.c: New file.
67622         * lib/unistr/u32-strtok.c: New file.
67623         * lib/unistr/u-strtok.h: New file.
67624
67625         * modules/unistr/u8-uctomb: New file.
67626         * modules/unistr/u16-uctomb: New file.
67627         * modules/unistr/u32-uctomb: New file.
67628         * lib/unistr/u8-uctomb.c: New file.
67629         * lib/unistr/u16-uctomb.c: New file.
67630         * lib/unistr/u32-uctomb.c: New file.
67631
67632         * MODULES.html.sh (Unicode string functions): Add the new modules.
67633
67634 2007-01-08  Bruno Haible  <bruno@clisp.org>
67635
67636         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
67637         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
67638         subdirectories.
67639
67640 2007-01-08  Karl Berry  <karl@gnu.org>
67641
67642         * doc/error.texi: mention that main() fns must set program_name
67643         when progname is used.
67644
67645 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
67646
67647         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
67648         WCTYPE_H is empty, for the benefit of builds from non-distclean
67649         directories.  Problem reported by Eric Blake in
67650         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
67651
67652 2007-01-08  Bruno Haible  <bruno@clisp.org>
67653
67654         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
67655         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
67656         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
67657         PROVIDE_CANONICALIZE_FILENAME_MODE.
67658         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
67659
67660 2007-01-08  Bruno Haible  <bruno@clisp.org>
67661
67662         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
67663         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
67664         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
67665         * lib/fts.c: Likewise.
67666         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
67667
67668 2006-12-25  Bruno Haible  <bruno@clisp.org>
67669
67670         * modules/utf8-ucs4-safe: New file.
67671         * lib/utf8-ucs4-safe.h: New file.
67672         * lib/unistr/utf8-ucs4-safe.c: New file.
67673
67674         * modules/utf16-ucs4-safe: New file.
67675         * lib/utf16-ucs4-safe.h: New file.
67676         * lib/unistr/utf16-ucs4-safe.c: New file.
67677
67678         * MODULES.html.sh (Unicode string functions): Add the new modules.
67679
67680 2007-01-08  Bruno Haible  <bruno@clisp.org>
67681
67682         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
67683         (Depends-on): Add unitypes.
67684         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
67685         (u8_mbtouc_aux): Move out to separate file.
67686         (u8_mbtouc): Use ucs4_t, uint8_t types.
67687         * lib/unistr/utf8-ucs4.c: New file.
67688
67689         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
67690         (Depends-on): Add unitypes.
67691         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
67692         (u16_mbtouc_aux): Move out to separate file.
67693         (u16_mbtouc): Use ucs4_t, uint16_t types.
67694         * lib/unistr/utf16-ucs4.c: New file.
67695
67696         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
67697         (Depends-on): Add unitypes.
67698         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
67699         (u8_uctomb_aux): Move out to separate file.
67700         (u8_uctomb): Use ucs4_t, uint8_t types.
67701         * lib/unistr/ucs4-utf8.c: New file.
67702
67703         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
67704         (Depends-on): Add unitypes.
67705         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
67706         (u16_uctomb_aux): Move out to separate file.
67707         (u16_uctomb): Use ucs4_t, uint16_t types.
67708         * lib/unistr/ucs4-utf16.c: New file.
67709
67710 2006-12-25  Bruno Haible  <bruno@clisp.org>
67711
67712         * modules/unitypes: New file.
67713         * lib/unitypes.h: New file.
67714         * MODULES.html.sh (func_all_modules): New section "Unicode string
67715         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
67716         this section. Add unitypes.
67717
67718 2007-01-08  Bruno Haible  <bruno@clisp.org>
67719
67720         Avoid variable names that conflict with those from libtool.
67721         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
67722         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
67723         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
67724         library_names_spec to acl_library_names_spec, hardcode_* to
67725         acl_hardcode_*.
67726         Reported by Ralf Wildenhues.
67727
67728 2007-01-08  Bruno Haible  <bruno@clisp.org>
67729
67730         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
67731         definition.
67732         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
67733         definition.
67734         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
67735         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
67736         definition.
67737         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
67738         definition.
67739         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
67740         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
67741         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
67742         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
67743         definition.
67744         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
67745         definition.
67746         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
67747         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
67748         GC_USE_<algorithm>.
67749         * lib/gc-libgcrypt.c: Likewise.
67750         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
67751         * modules/gc-arctwo (configure.ac): Likewise.
67752         * modules/gc-des (configure.ac): Likewise.
67753         * modules/gc-hmac-md5 (configure.ac): Likewise.
67754         * modules/gc-hmac-sha1 (configure.ac): Likewise.
67755         * modules/gc-md2 (configure.ac): Likewise.
67756         * modules/gc-md4 (configure.ac): Likewise.
67757         * modules/gc-md5 (configure.ac): Likewise.
67758         * modules/gc-random (configure.ac): Likewise.
67759         * modules/gc-rijndael (configure.ac): Likewise.
67760         * modules/gc-sha1 (configure.ac): Likewise.
67761
67762 2007-01-08  Bruno Haible  <bruno@clisp.org>
67763
67764         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
67765         macro definition.
67766         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
67767         definition.
67768         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
67769         definition.
67770         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
67771         * modules/fcntl-safer (configure.ac): Likewise.
67772         * modules/fopen-safer (configure.ac): Likewise.
67773         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
67774         GNULIB_FWRITEERROR macro definition.
67775
67776 2007-01-08  Bruno Haible  <bruno@clisp.org>
67777
67778         * m4/gnulib-common.m4: New file.
67779         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
67780         (func_get_filelist): Add m4/gnulib-common.m4.
67781
67782 2007-01-08  Bruno Haible  <bruno@clisp.org>
67783
67784         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
67785         command.
67786
67787 2007-01-08  Jim Meyering  <jim@meyering.net>
67788
67789         Use a more robust test for a "can't happen" condition.
67790         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
67791         narrowed the st_size value.  Presuming the "can't happen" condition
67792         is true, that narrowing could conceivably convert an invalid st_size
67793         value into a valid one.  Instead, use a change based on Matthew
67794         Woehlke's original patch.
67795
67796         Slight readability improvement: use an assert-like macro
67797         in place of literal "abort ()" uses.
67798         * lib/fts.c (fts_assert): Define.
67799         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
67800         Use this macro instead of a bare 'abort'.
67801
67802 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
67803
67804         Don't worry about using IRIX 5.3's wctype.h broken definitions;
67805         simply work around them.
67806         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
67807         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
67808         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
67809         declaring.
67810         Don't bother to define as macros, since the standard doesn't require it.
67811         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
67812         longer worry about IRIX 5.3.
67813         (HAVE_WCTYPE_CTMP_BUG): Remove.
67814
67815 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
67816
67817         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
67818         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
67819         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
67820         Problems reported by Georg Schwarz for IRIX 5.3.
67821
67822         * gnulib-tool (autoconf_minversion): Take the maximum version number
67823         found, not the minimum.  Problem reported by James Youngman.
67824
67825 2007-01-03  Karl Berry  <karl@gnu.org>
67826
67827         * doc/error.texi: new file, explaining interaction with progname.
67828         * doc/gnulib.texi: include it.  Update copyright.
67829
67830 2007-01-03  Simon Josefsson  <simon@josefsson.org>
67831
67832         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
67833         AC_CANONICAL_HOST, to improve autobuild outputs.
67834
67835 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
67836             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
67837
67838         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
67839         sockets, server sockets, and other file descriptors.  Count errors
67840         to compute the return value.  Reorder the code a bit to be easier
67841         to follow.  Don't set event bits that were not requested (except
67842         POLLERR and POLLHUP).
67843
67844 2007-01-01  Bruno Haible  <bruno@clisp.org>
67845
67846         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
67847
67848 2007-01-03  Jim Meyering  <jim@meyering.net>
67849
67850         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
67851
67852 2007-01-02  Bruno Haible  <bruno@clisp.org>
67853
67854         * modules/settime (Include): Require timespec.h.
67855         * modules/nanosleep (Include): Likewise.
67856
67857 2007-01-01  Bruno Haible  <bruno@clisp.org>
67858
67859         * gnulib-tool (func_emit_copyright_notice): Bump year.
67860         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
67861
67862 2007-01-01  Bruno Haible  <bruno@clisp.org>
67863
67864         Improve support for OpenBSD.
67865         * build-aux/config.rpath (libname_spec): Export.
67866         (library_names_spec): New variable. Export.
67867         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
67868         library_names_spec from the config.rpath output. Locate shared library
67869         through the name pattern in library_names_spec.
67870
67871 2007-01-01  Eric Blake  <ebb9@byu.net>
67872
67873         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
67874
67875 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
67876
67877         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
67878         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
67879         assume the C locale, and avoid an "eval" that could cause trouble.
67880         Problem with SORT reported by Bob Proulx.
67881
67882         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
67883         Define.  Trivial patch from Henning Nielsen Lund, originally
67884         sent to bug-grep@gnu.org today.
67885
67886 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
67887
67888         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
67889         struct stat.  Problem reported by Henning Nielsen Lund.
67890         * lib/acl.c: Include acl.h first, to check interface.  Don't
67891         bother to include sys/types.h and sys/stat.h again.
67892
67893 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
67894
67895         Import the following change from libc; problem reported by
67896         Sven Verdoolaege.
67897
67898         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
67899
67900         [BZ #1373]
67901         * lib/argp.h: Remove __NTH for __argp_usage inline function.
67902
67903 2006-12-28  Jim Meyering  <jim@meyering.net>
67904
67905         * build-aux/announce-gen: Do not assume that the package
67906         builds any of tar.gz, tar.bz2, and .xdelta files.
67907         Suggestion from Simon Josefsson.
67908
67909 2006-12-28  Simon Josefsson  <simon@josefsson.org>
67910
67911         * modules/announce-gen: New file.
67912
67913 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
67914
67915         * lib/mbchar.h: Just include <wctype.h>; the wctype module
67916         handles its gotchas now.
67917         * lib/mbswidth.c: Likewise.
67918         * lib/wcwidth.h: Likewise.
67919         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
67920         and iswcntrl; the wctype module does this stuff now.
67921         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
67922         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
67923         * modules/mbchar (Depends-on): Add wctype.
67924         * modules/mbswidth (Depends-on): Likewise.
67925         * modules/wcwidth (Depends-on): Likewise.
67926
67927 2006-12-27  Eric Blake  <ebb9@byu.net>
67928
67929         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
67930         module uses more than what <wctype.h> is required to provide.
67931
67932 2006-12-26  Eric Blake  <ebb9@byu.net>
67933
67934         * gnulib-tool (sed_extract_prog): Avoid space-tab.
67935
67936 2006-12-26  Eric Blake  <ebb9@byu.net>
67937
67938         * modules/absolute-header: New module.
67939         * modules/fcntl (Depends-on): Depend on it.
67940         * modules/inttypes (Depends-on): Likewise.
67941         * modules/stdint (Depends-on): Likewise.
67942         * modules/sys_stat (Depends-on): Likewise.
67943         * modules/wctype (Depends-on): Likewise.
67944         * MODULES.html.sh (Support for building libraries and
67945         executables): Document it.
67946
67947 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
67948
67949         * gnulib-tool (SED): Remove, undoing previous change.
67950         The problem was that it broke coreutils on Solaris, because
67951         "sed --posix" leaked into a makefile.
67952         (sed): New alias, if 'alias' and GNU sed.
67953
67954 2006-12-24  Jim Meyering  <jim@meyering.net>
67955
67956         Work around an fchownat bug in glibc-2.4:
67957         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
67958         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
67959         in spite of the -P option.
67960         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
67961         New macros.
67962         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
67963         * modules/openat (Files): Add lib/fchownat.c.
67964         * lib/openat.c (fchownat): Don't define here.  Move to...
67965         * lib/fchownat.c: ...this new file.
67966
67967 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
67968
67969         Fix bug reported by Bruno Haible in
67970         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
67971         where quotearg.c didn't compile on Mac OS X 10.2 because it
67972         lacks <wchar.h> and wint_t.
67973         * lib/wctype_.h (__wctype_wint_t): New type.
67974         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
67975         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
67976         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
67977         Arg is now of type __wctype_wint_t, not wint_t.
67978         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
67979         substitute HAVE_WINT_T.
67980         * modules/wctype (Files): Add m4/wint_t.m4.
67981         (wctype.h): Substitute HAVE_WINT_T.
67982
67983 2006-12-23  Bruno Haible  <bruno@clisp.org>
67984
67985         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
67986
67987 2006-12-23  Bruno Haible  <bruno@clisp.org>
67988
67989         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
67990         S_ISLNK.
67991         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
67992         mingw.
67993
67994 2006-12-22  Bruno Haible  <bruno@clisp.org>
67995
67996         * lib/copy-file.c: Include acl.h.
67997         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
67998         Close the file descriptors only after being done with copy_acl.
67999         * modules/copy-file (Depends-on): Add acl.
68000
68001 2006-12-22  Bruno Haible  <bruno@clisp.org>
68002
68003         * gnulib-tool (SED): New variable.
68004         Use $SED instead of sed everywhere.
68005
68006 2006-12-22  Bruno Haible  <bruno@clisp.org>
68007
68008         * modules/no-c++: New file.
68009         * m4/no-c++.m4: New file.
68010         * MODULES.html.sh (Support for building libraries and executables):
68011         Add no-c++.
68012
68013 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
68014
68015         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
68016         Include <limits.h>, and use its INT_MAX to rewrite the
68017         j loop so that it does not overflow 'int'.  Problem reported by
68018         Ralf Wildenhues in
68019         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
68020         Play it safe by shifting left by 1 rather than multiplying by 2,
68021         as GCC is less likely to optimize this away when the value
68022         is signed (when it assumes overflow leads to undefined behavior).
68023         Also, don't assume time_t uses two's complement.
68024
68025 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
68026
68027         * MODULES.html.sh: New module wctype.
68028         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
68029         * lib/fnmatch.c: Don't bother to include <wchar.h> before
68030         <wctype.h>, since the new wctype module should fix this.
68031         * lib/quotearg.c: Include <wctype.h> unconditionally, since
68032         the wctype module should arrange for it.
68033         * lib/regex_internal.h: Likewise.
68034         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
68035         since the wctype module should handle this now.
68036         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
68037         * modules/fnmatch (Depends-on): Add wctype.
68038         * modules/quotearg (Depends-on): Likewise.
68039         * modules/regex (Depends-on): Likewise.
68040
68041 2006-12-19  Bruno Haible  <bruno@clisp.org>
68042
68043         * lib/strdup.h [C++]: Wrap definitions in extern "C".
68044         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
68045
68046 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68047
68048         * modules/savewd (Depends-on): Fix dependency on fcntl.
68049
68050 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
68051
68052         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
68053         conforms to C99, rather than relying on the user's environment
68054         setting of STDINT_H.
68055
68056 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
68057         and Eric Blake  <ebb9@byu.net>
68058
68059         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
68060         This is more consistent with the other defines here.
68061         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
68062         Port to z/OS.  Problem reported by Paul Gilmartin.
68063         Change local vars to use gl_ prefix rather than ac_.
68064         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
68065         with other defines.
68066         * modules/double-slash-root: New module.
68067         * modules/dirname (Files): Remove m4/double-slash-root.m4.
68068         (Depends-on): Add double-slash-root.
68069         * MODULES.html.sh (File system functions): Mention new module.
68070
68071 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
68072
68073         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
68074         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
68075         This is for the benefit of gzip, which doesn't do i18n.
68076
68077 2006-12-12  Jim Meyering  <jim@meyering.net>
68078
68079         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
68080         Reported by Andreas Schwab <schwab@suse.de>.
68081
68082 2006-12-12  Bruno Haible  <bruno@clisp.org>
68083
68084         Merge these changes.
68085         2006-09-05  Bruno Haible  <bruno@clisp.org>
68086         * lib/iconvme.c (iconv_string): No need to save and restore errno when
68087         iconv_alloc succeeded.
68088         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
68089         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
68090         test for " && dest " at the end - dest is always != NULL there. Call
68091         iconv with 4xNULL arguments initially, to reset the state. Call iconv
68092         with 2xNULL arguments, also to flush the state storage. Handle the
68093         IRIX iconv behaviour. Realloc the final result, to throw away unused
68094         memory.
68095
68096 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
68097
68098         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
68099         and fchmodat unconditionally, since glibc 2.4 has them.
68100         Problem reported by Arkadiusz Miskiewicz.
68101
68102 2006-12-10  Bruno Haible  <bruno@clisp.org>
68103
68104         * gnulib-tool (func_import): Show the include files only for those
68105         modules that are copied and specified.
68106         Reported by Karl Berry.
68107
68108 2006-12-08  Jim Meyering  <jim@meyering.net>
68109
68110         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
68111         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
68112
68113         * build-aux/announce-gen: Add two new options, both optional:
68114         --bootstrap-tools=TOOL_LIST
68115               a comma-separated list of tools, e.g.,
68116               autoconf,automake,bison,gnulib
68117         --gnulib-snapshot-date=DATE
68118               if gnulib is in the bootstrap tool list,
68119               then report this as the snapshot date.
68120               If not specified, use the current date/time.
68121               If you specify a date here, be sure it's UTC.
68122
68123 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68124
68125         * tests/test-argp-2.sh: Fix test to match actual output.
68126         (func_compare): Fix sed script to be portable.
68127
68128 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
68129
68130         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
68131         workaround for this case.  It is not autoconfigured now; offhand
68132         it's hard to see how to autoconfigure it.
68133
68134 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
68135
68136         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
68137         a directory that is about to be chowned.  Such a directory's
68138         initial file permissions should permit the owner only and this
68139         should not be changed until after the chown, since the group and
68140         other bits would be incorrect if they granted permission before
68141         the chown.
68142
68143         Fix porting problem for iswctype reported by Georg Schwarz in:
68144         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
68145         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
68146         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
68147         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
68148         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
68149
68150 2006-12-03  Jim Meyering  <jim@meyering.net>
68151
68152         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
68153         p->fts_statp may not yet be defined.
68154         (fts_read): Instead, set it in the caller, once p->fts_statp is
68155         sure to be defined, and corresponds to a top-level directory.
68156         This bug made du -x fail.  Here's the coreutils test case:
68157         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
68158         Reported by Mike Frysinger.
68159
68160 2006-12-01  Jim Meyering  <jim@meyering.net>
68161
68162         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
68163         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
68164         Reported by Simon Josefsson.
68165
68166 2006-11-30  Jim Meyering  <jim@meyering.net>
68167
68168         * m4/warning.m4: Use the all-permissive copyright notice
68169         recommended by RMS (rather than LGPL).
68170         * m4/vararrays.m4: Likewise.
68171         * m4/flexmember.m4: Likewise.
68172
68173 2006-11-29  Bruno Haible  <bruno@clisp.org>
68174
68175         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
68176         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
68177         using +=.
68178         Reported by Simon Josefsson <simon@josefsson.org>.
68179
68180 2006-11-28  James Youngman <jay@gnu.org>
68181
68182         * README: Advise users that they might find the bug-gnulib@gnu.org
68183         and autotools-announce@gnu.org mailing lists useful.
68184
68185 2006-11-28  Bruno Haible  <bruno@clisp.org>
68186
68187         * m4/ptrdiff_max.m4: Remove file.
68188
68189 2006-11-21  Bruno Haible  <bruno@clisp.org>
68190
68191         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
68192         _AC_COMPUTE_INT.
68193         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
68194         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
68195         _AC_COMPUTE_INT.
68196         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
68197         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
68198         _AC_COMPUTE_INT.
68199         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
68200
68201 2006-11-28  Jim Meyering  <jim@meyering.net>
68202
68203         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
68204         warning from "gcc -Wshadow" about shadowing the builtin.
68205
68206 2006-11-27  Bruno Haible  <bruno@clisp.org>
68207
68208         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
68209         _AC_COMPUTE_INT.
68210         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
68211
68212 2006-11-27  Bruno Haible  <bruno@clisp.org>
68213             Paul Eggert  <eggert@cs.ucla.edu>
68214
68215         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
68216
68217 2006-11-26  Bruno Haible  <bruno@clisp.org>
68218
68219         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
68220         noinst_LTLIBRARIES.
68221
68222 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
68223             Bruno Haible  <bruno@clisp.org>
68224
68225         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
68226         if compiling with "gcc -ansi".
68227
68228 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
68229
68230         Fix some incompatibilities with gcc -ansi -pedantic.
68231         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
68232         if compiling pedantically with GCC, unless it's C99 or later.
68233         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
68234         it mishandles gcc -ansi -pedantic as well.
68235         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
68236         if gcc -pedantic.
68237         * lib/regexec.c (check_node_accept_bytes): Don't use auto
68238         initializers for struct if -pedantic, unless it's C99 or later.
68239
68240 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
68241
68242         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
68243         Don't close an fd more than once. Identical atimes indicate
68244         success, not failure.
68245
68246 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
68247
68248         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
68249
68250 2006-11-23  Jim Meyering  <jim@meyering.net>
68251
68252         * build-aux/announce-gen: New file.  From coreutils.
68253
68254 2006-11-22  Jim Meyering  <jim@meyering.net>
68255
68256         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
68257         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
68258         (fts_read): Use a temporary to narrow the overused st_size member
68259         before using it in a switch statement.  Reported by Matthew Woehlke.
68260
68261         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
68262         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
68263
68264 2006-11-20  Bruno Haible  <bruno@clisp.org>
68265
68266         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
68267         changequote instead of pairs of brackets.
68268         Reported by Andreas Schwab <schwab@suse.de>.
68269
68270 2006-11-21  Jim Meyering  <jim@meyering.net>
68271
68272         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
68273         so as to remain compatible with older compilers.
68274         Patch from Michael Deutschmann.
68275
68276 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
68277
68278         * MODULES.html.sh (File system functions): Add openat.
68279
68280         * lib/openat.h (rpl_fstatat): New macro, if
68281         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
68282         (fstatat): Define to rpl_fstatat under the same conditions,
68283         unless COMPILING_FSTATAT.
68284         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
68285         seems to have the bug.
68286         * lib/fstatat.c: New file.
68287         * modules/openat (Files): Add it.
68288
68289 2006-11-20  Bruno Haible  <bruno@clisp.org>
68290
68291         * Makefile: New file.
68292
68293 2006-11-20  Jim Meyering  <jim@meyering.net>
68294
68295         The beginnings of syntax-related checks for gnulib.
68296         * lib/Makefile: New file.
68297         * lib/t-idcache: New script.  Ensure that the two halves of
68298         idcache.c stay in sync.
68299
68300         * lib/idcache.c: Adjust comments in user- and group- portions to
68301         be more accurate, and to be consistent with one another.
68302
68303 2006-11-20  Jim Meyering  <jim@meyering.net>
68304
68305         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
68306         continue using the flexible array member (thus, this module performs
68307         half as many malloc calls), with the addition that...
68308         (getgroup, getuser): Consistently record a non-match via an empty
68309         "name" string, and map an empty string match to a NULL return value.
68310         * modules/idcache (Depends-on): Re-add flexmember.
68311
68312         * lib/idcache.c (getuser): Remove all uses of the register keyword.
68313         (getuidbyname, getgroup, getgidbyname): Likewise.
68314
68315         Use cleaner syntax: NULL rather than 0.
68316         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
68317
68318 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
68319
68320         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
68321         It mishandled the case where the group was missing.
68322         Problem reported by Greg Schafer.
68323         * modules/idcache: Likewise.
68324
68325 2006-11-18  Jim Meyering  <jim@meyering.net>
68326
68327         * check-module (%exempt_header): Add exception for some
68328         conditionally-included headers.
68329
68330         * modules/i-ring (Depends-on): Add verify.
68331         (License): Change to LGPL.
68332
68333 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
68334
68335         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
68336         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
68337         and inttostr.h.  Use snprintf rather than uinttostr, so that
68338         LGPLed code doesn't depend on GPLed.
68339
68340 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
68341
68342         * modules/inline (License): Change from GPL to LGPL.
68343
68344 2006-11-17  Jim Meyering  <jim@meyering.net>
68345
68346         * modules/d-type (License): Switch to LGPL.
68347
68348 2006-11-15  Bruno Haible  <bruno@clisp.org>
68349
68350         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
68351
68352 2006-11-15  Eric Blake  <ebb9@byu.net>
68353
68354         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
68355         the module dependency.
68356
68357 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68358             Bruno Haible  <bruno@clisp.org>
68359
68360         * gnulib-tool (func_create_testdir): Add license consistency check.
68361
68362 2006-11-15  Eric Blake  <ebb9@byu.net>
68363
68364         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
68365         random "(cached)" in configure output.
68366
68367 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68368
68369         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
68370         test for conforming inttypes.h is both announced and cached.
68371
68372         * MODULES.html.sh (seen_modules, seen_files): New variables.
68373         (func_module): Rewrite to use a few less gnulib-tool and sed
68374         invocations.  Avoid a couple of quadratic algorithms for ...
68375         (missed_modules, missed_files): ... these, with ...
68376         (func_append, func_tmpdir): ... these new functions, from
68377         gnulib-tool.  Analogously, install traps for cleanup.
68378
68379         * tests/test-gc.c (main): Remove unused variables.
68380         * tests/test-read-file.c: Include stdlib.h, for 'free'.
68381
68382 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
68383
68384         * modules/inttostr (License): Change to LGPL.
68385
68386 2006-11-14  Eric Blake  <ebb9@byu.net>
68387
68388         * modules/tempname (License): Change to LGPL.
68389
68390 2006-11-14  Eric Blake  <ebb9@byu.net>
68391
68392         * doc/functions.texi (Function Portability): *printf functions on
68393         Cygwin now understand all POSIX size specifiers.
68394
68395 2006-11-14  Bruno Haible  <bruno@clisp.org>
68396
68397         * modules/c-ctype (License): Change to LGPL.
68398
68399 2006-11-12  Bruno Haible  <bruno@clisp.org>
68400
68401         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
68402         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
68403         for GNOME libraries, for which the include files are installed in
68404         subdirectories of $prefix/include.
68405
68406 2006-11-12  Bruno Haible  <bruno@clisp.org>
68407
68408         * m4/lib-link.m4: Require at least autoconf-2.54.
68409         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
68410         name to underscores for the --with option.
68411
68412 2006-11-13  Bruno Haible  <bruno@clisp.org>
68413
68414         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
68415         the tests directory.
68416         Reported by Ralf Wildenhues.
68417
68418 2006-11-13  Bruno Haible  <bruno@clisp.org>
68419
68420         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
68421         (func_emit_initmacro_end): Undo the override here.
68422         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
68423         Works around the famous automake error in coreutils.
68424
68425 2006-11-13  Eric Blake  <ebb9@byu.net>
68426
68427         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
68428         element, not its node.
68429
68430 2006-11-12  Bruno Haible  <bruno@clisp.org>
68431
68432         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
68433         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
68434
68435 2006-11-12  Bruno Haible  <bruno@clisp.org>
68436
68437         * gnulib-tool: New option --local-symlink.
68438         (func_usage): Document it.
68439         (lsymbolic): New variable.
68440         (func_import, func_create_testdir): If --symlink was not specified,
68441         test whether --local-symlink was specified and the file comes from
68442         the local_gnulib_dir.
68443
68444 2006-11-12  Bruno Haible  <bruno@clisp.org>
68445
68446         * gnulib-tool (func_ln): New function.
68447         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
68448
68449 2006-11-12  Bruno Haible  <bruno@clisp.org>
68450
68451         Finish support for source files in subdirectories.
68452         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
68453         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
68454         AUTOMAKE_OPTIONS.
68455         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
68456
68457 2006-11-12  Bruno Haible  <bruno@clisp.org>
68458
68459         * gnulib-tool (func_get_automake_snippet): Synthesize also an
68460         EXTRA_lib_SOURCES augmentation.
68461         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
68462
68463 2006-11-12  Jim Meyering  <jim@meyering.net>
68464
68465         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
68466         file descriptors.  This also averts a failure on systems with
68467         native openat support when a traversed directory lacks "x" access.
68468         * lib/fts_.h: Include "i-ring.h"
68469         (struct FTS) [fts_fd_ring]: New member.
68470         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
68471         (FCHDIR): Add parentheses.
68472         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
68473         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
68474         When descending, rather than simply closing the previous
68475         fts_cwd_fd value, push that file descriptor onto the ring.
68476         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
68477         (fts_open): Initialize the new fd_ring member.
68478         (fts_close): Clear the ring.
68479         (fts_safe_changedir): When possible, use our new fd_ring to skip
68480         the diropen and fstat and dev/ino comparison that would normally
68481         accompany a virtual `chdir ("..")'.
68482
68483         * modules/fts (Depends-on): Add i-ring.
68484         * modules/i-ring: New module.
68485         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
68486         * m4/i-ring.m4: New file.
68487
68488 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68489
68490         * gnulib-tool (func_create_testdir): Fix replacement of
68491         `build-aux' in configure.ac.  Run autotools in gltests
68492         subdirectory.
68493         (func_create_testdir, func_create_megatestdir, test): There is
68494         no need for '--force' in most autotool invocations in a new
68495         tree.  Actually fail the whole test if any of the tools, or the
68496         configure or make stages fail.
68497
68498         Sync from Automake.
68499         * build-aux/gnupload: Revert last change.  Add pointer to upload
68500         instructions of the GNU Maintenance Instructions.
68501         Suggestion by Karl Berry.
68502
68503 2006-11-10  Jim Meyering  <jim@meyering.net>
68504
68505         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
68506
68507 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
68508
68509         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
68510         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
68511         (bind_textdomain_codeset) [! ENABLE_NLS]:
68512         Evaluate all the arguments.  That way, callers get compatible behavior
68513         if the arguments have side effects.  Also, it avoids some GCC
68514         diagnostics in some cases; Joel E. Denny reported problems when Bison
68515         was configured with --enable-gcc-warnigs.
68516
68517 2006-11-10  Jim Meyering  <jim@meyering.net>
68518
68519         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
68520         relevant options in CFLAGS (like -O, -fno-inline) are taken into
68521         account.
68522
68523 2006-11-10  Jim Meyering  <jim@meyering.net>
68524
68525         * modules/inline: New file/module.
68526         * modules/xalloc (Files): Remove m4/inline.m4.
68527         (Depends-on): Add inline, instead.
68528         * modules/oset: Likewise.
68529         * modules/list: Likewise.
68530
68531 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
68532
68533         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
68534         Problem reported by Matthew Woehlke.
68535
68536 2006-11-09  Bruno Haible  <bruno@clisp.org>
68537
68538         * lib/tempname.c (gen_tempname): Remove variant that invokes
68539         __gen_tempname.
68540         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
68541         __gen_tempname.
68542
68543 2006-11-08  Bruno Haible  <bruno@clisp.org>
68544
68545         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
68546         to 'yes' instead of 'cross-compiling'.
68547
68548 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
68549
68550         * lib/quotearg.h (quotearg_free): New decl.
68551         * lib/quotearg.c (quotearg_free): New function.
68552         (slot0, nslots, slotvec0, slotvec):
68553         Now file-scope so that quotearg_free can get at them.
68554
68555 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68556
68557         Sync from Automake.
68558         * build-aux/gnupload: Add missing 'gnu' to example URL.
68559         Report by Karl Berry.
68560
68561 2006-11-08  Bruno Haible  <bruno@clisp.org>
68562
68563         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
68564         Suggested by Paul Eggert.
68565
68566 2006-11-08  Jim Meyering  <jim@meyering.net>
68567
68568         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
68569         It's already included if !_LIBC.
68570         (fts_safe_changedir): Add a comment.
68571
68572 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
68573
68574         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
68575         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
68576         Matthew Woehlke.
68577
68578         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
68579         definitions up, to avoid colliding with change below.
68580         (static_inline) [HAVE_INLINE]: New macro.
68581         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
68582         Provide extern decls when !HAVE_INLINE.  Do not define unless
68583         static_inline is defined, either by us or by xmalloc.c.  Use
68584         static_inline rather than static inline.
68585         (XCALLOC): Optimize sizeof(T) = 1 case.
68586         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
68587
68588 2006-11-07  Bruno Haible  <bruno@clisp.org>
68589
68590         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
68591         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
68592         AC_C_INLINE.
68593         * modules/xalloc (Files): Add m4/inline.m4.
68594
68595 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68596
68597         * README: Fix typo.
68598         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
68599         (Miscellanous Notes): ...from this.
68600
68601 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
68602
68603         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
68604         Mention that offsetof should be used instead of sizeof.
68605         From Bruno Haible.
68606
68607 2006-11-07  Bruno Haible  <bruno@clisp.org>
68608
68609         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
68610
68611 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
68612
68613         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
68614         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
68615         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
68616         (gl_tree_add_before, gl_tree_add_after):
68617         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
68618         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
68619         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
68620         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
68621         (gl_linked_add_after, gl_linked_add_at): Likewise.
68622         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
68623         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
68624         (gl_tree_add_before, gl_tree_add_after): Likewise.
68625         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
68626         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
68627         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
68628
68629 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68630
68631         * lib/gl_oset.h: Use C comment style, not C++ comment style.
68632
68633 2006-11-06  Bruno Haible  <bruno@clisp.org>
68634
68635         * m4/inline.m4: New file.
68636         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
68637         * modules/list (Files): Add m4/inline.m4.
68638         * modules/oset (Files): Likewise.
68639
68640 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
68641
68642         * lib/idcache.c: Include <stddef.h>, for offsetof.
68643         (struct userid.name): Change from char * to a flexible array member.
68644         All uses changed.
68645         * modules/idcache (Depends-on): Add flexmember.
68646
68647         * MODULES.html.sh (Core language properties): New module flexmember.
68648         * modules/flexmember, m4/flexmember.m4: New files.
68649
68650         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
68651         inline functions that are identical with the old xnmalloc_inline,
68652         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
68653         that we can avoid some unnecessary integer multiplications and
68654         divisions in the common case where the element size is known at
68655         compile time.
68656         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
68657         needed.
68658         (xnboundedmalloc): Remove.
68659         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
68660         arguments, for consistency with rest of this header.
68661         (xcharalloc): Rewrite using XNMALLOC.
68662         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
68663         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
68664         versions have been moved to lib/xalloc.h and renamed to be the
68665         non-*_inline versions.
68666         (xmalloc, xrealloc): Implement without reference to the xnmalloc
68667         and xnrealloc functions, since those functions are now inline and
68668         now call us.
68669         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
68670         renaming described above.
68671         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
68672         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
68673         captures the dependency in AC_C_INLINE.
68674
68675         New module canonicalize-lgpl, proposed by Charles Wilson in
68676         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
68677         with a few small changes afterwards.
68678         * MODULES.html.sh (File system functions): New module
68679         canonicalize-lgpl.
68680         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
68681         and canonicalize_file_name.
68682         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
68683         * modules/canonicalize-lgpl: New files.
68684
68685 2006-11-05  Bruno Haible  <bruno@clisp.org>
68686
68687         * gnulib-tool (func_import, func_create_testdir): Create directories
68688         also for files in subdirectories of lib/.
68689
68690 2006-11-05  Bruno Haible  <bruno@clisp.org>
68691
68692         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
68693         ANSI C compliant.
68694
68695 2006-11-03  Bruno Haible  <bruno@clisp.org>
68696
68697         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
68698         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
68699         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
68700         (xnboundedmalloc): New inline function.
68701         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
68702         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
68703         xmalloc.
68704         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
68705         xmalloc.
68706         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
68707         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
68708         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
68709         xmalloc.
68710         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
68711         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
68712         xmalloc.
68713         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
68714         gl_tree_add_after): Use XMALLOC instead of xmalloc.
68715         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
68716         xmalloc.
68717         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
68718         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
68719         gl_tree_add_after): Use XMALLOC instead of xmalloc.
68720         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
68721         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
68722         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
68723         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
68724
68725 2006-11-03  Bruno Haible  <bruno@clisp.org>
68726
68727         * lib/c-ctype.h [C++]: Define functions without name mangling.
68728         * lib/fwriteerror.h [C++]: Likewise.
68729         * lib/gcd.h [C++]: Likewise.
68730         * lib/linebreak.h [C++]: Likewise.
68731
68732 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
68733
68734         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
68735         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
68736         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
68737         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
68738         Check for functions and headers just once.
68739         Check for declaration of canonicalize_file_name.
68740         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
68741
68742 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
68743
68744         * gnulib-tool (func_import): Fix typo in actioncmd.
68745
68746 2006-11-02  Bruno Haible  <bruno@clisp.org>
68747
68748         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
68749         newline sequence in the Makefile.am snippet as a space, like "make"
68750         does.
68751         Reported by Roger Persson <perrog@gmail.com>.
68752
68753 2006-11-01  Bruno Haible  <bruno@clisp.org>
68754
68755         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
68756         already declared in <string.h>.
68757         * lib/strcase.h (strncasecmp): Don't declare it if yes.
68758
68759 2006-11-01  Bruno Haible  <bruno@clisp.org>
68760
68761         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
68762         * lib/strcase.h: Include <string.h>.
68763         (strcasecmp): Define to rpl_strcasecmp here.
68764
68765 2006-11-01  Bruno Haible  <bruno@clisp.org>
68766
68767         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
68768
68769 2006-11-01  Eric Blake  <ebb9@byu.net>
68770
68771         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
68772
68773         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
68774
68775 2006-10-29  Bruno Haible  <bruno@clisp.org>
68776
68777         Make it compile in C++ mode.
68778         * lib/full-write.c (full_rw): Add a cast.
68779
68780 2006-11-01  Bruno Haible  <bruno@clisp.org>
68781
68782         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
68783         be POSIX compliant.
68784         Reported by Roger Persson <perrog@gmail.com>.
68785
68786 2006-11-01  Eric Blake  <ebb9@byu.net>
68787
68788         * lib/getopt_.h: Fix comments.
68789
68790 2006-10-31  Eric Blake  <ebb9@byu.net>
68791
68792         * modules/tmpdir (Depends-on): Add sys_stat.
68793         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
68794         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
68795         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
68796         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
68797         tempname.
68798
68799 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
68800
68801         Avoid some C++ diagnostics reported by Bruno Haible.
68802         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
68803         xmalloc.
68804         (quotearg_alloc): Use xcharalloc rather than xmalloc.
68805         (struct slotvec): Move to top level.
68806         (quotearg_n_options): Rewrite to avoid xmalloc.
68807         * lib/xalloc.h (xcharalloc): New function.
68808         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
68809         [defined __cplusplus]: Add function template that provides result
68810         type propagation.  This part of the change is from Bruno Haible.
68811
68812 2006-10-29  Bruno Haible  <bruno@clisp.org>
68813
68814         Make it compile in C++ mode.
68815         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
68816         * lib/strnlen1.c (strnlen1): Cast memchr result.
68817         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
68818         * lib/clean-temp.c (string_equals, string_hash): Add casts.
68819         (create_temp_dir): Rename local variable 'template'.
68820         (compile_csharp_using_sscli): Add cast.
68821         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
68822         * lib/findprog.c (find_in_path): Likewise.
68823         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
68824         * lib/wait-process.c (register_slave_subprocess): Likewise.
68825
68826 2006-10-22  Bruno Haible  <bruno@clisp.org>
68827
68828         * modules/tsearch: New file.
68829         * lib/tsearch.h: New file.
68830         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
68831         * m4/tsearch.m4: New file.
68832         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
68833
68834 2006-10-29  Eric Blake  <ebb9@byu.net>
68835
68836         * lib/arcfour.c: Assume config.h.
68837         * lib/arctwo.c: Likewise.
68838         * lib/base64.c: Likewise.
68839         * lib/check-version.c: Likewise.
68840         * lib/crc.c: Likewise.
68841         * lib/des.c: Likewise.
68842         * lib/gc-gnulib.c: Likewise.
68843         * lib/gc-libgcrypt.c: Likewise.
68844         * lib/gc-pbkdf2-sha1.c: Likewise.
68845         * lib/getaddrinfo.c: Likewise.
68846         * lib/getdelim.c: Likewise.
68847         * lib/getline.c: Likewise.
68848         * lib/hmac-md5.c: Likewise.
68849         * lib/hmac-sha1.c: Likewise.
68850         * lib/iconvme.c: Likewise.
68851         * lib/md2.c: Likewise.
68852         * lib/md4.c: Likewise.
68853         * lib/memxor.c: Likewise.
68854         * lib/read-file.c: Likewise.
68855         * lib/readline.c: Likewise.
68856         * lib/rijndael-alg-fst.c: Likewise.
68857         * lib/rijndael-api-fst.c: Likewise.
68858         * lib/xgetdomainname.c: Likewise.
68859
68860 2006-10-28  Eric Blake  <ebb9@byu.net>
68861
68862         * lib/xstrndup.c: Assume config.h.
68863
68864 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
68865
68866         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
68867         stat-macros.h is now for our own macros, whereas stat_h is for
68868         macros in the <sys/stat.h> name space.
68869         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
68870         (STAT_MACROS_H): Remove.
68871         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
68872         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
68873         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
68874         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
68875         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
68876         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
68877         Move these macros to ...
68878         * lib/stat_.h: here.  Don't include stat-macros.h.
68879         * lib/canonicalize.c: Don't include stat-macros.h.
68880         * lib/chown.c: Likewise.
68881         * lib/euidaccess.c: Likewise.
68882         * lib/file-type.c: Likewise.
68883         * lib/filemode.c: Likewise.
68884         * lib/glob.c: Likewise.
68885         * lib/isapipe.c: Likewise.
68886         * lib/lchown.c: Likewise.
68887         * lib/lstat.c: Likewise.
68888         * lib/mkdir-p.c: Likewise.
68889         * lib/rmdir.c: Likewise.
68890         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
68891         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
68892         unless mkdir isn't declared, to speed up 'configure'.
68893         Always create sys/stat.h, since it's unlikely any real sys/stat.h
68894         would define all the S_* symbols.
68895         * modules/canonicalize (Depends-on):
68896         Depend on sys_stat, not stat-macros.
68897         * modules/chown: Likewise.
68898         * modules/euidaccess: Likewise.
68899         * modules/filemode: Likewise.
68900         * modules/file-type: Likewise.
68901         * modules/glob: Likewise.
68902         * modules/isapipe: Likewise.
68903         * modules/lchown: Likewise.
68904         * modules/lstat: Likewise.
68905         * modules/mkancesdirs: Likewise.
68906         * modules/rmdir: Likewise.
68907         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
68908         * modules/modechange: Likewise.
68909         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
68910         (configure.ac): Remove gl_STAT_MACROS.
68911         * modules/sys_stat (Depends-on): Remove stat-macros.
68912
68913 2006-10-27  Bruno Haible  <bruno@clisp.org>
68914
68915         * m4/signed.m4: Remove file.
68916         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
68917         invocation.
68918         * modules/vasnprintf (Files): Remove m4/signed.m4.
68919
68920 2006-10-27  Bruno Haible  <bruno@clisp.org>
68921
68922         Update to GNU gettext 0.16.
68923         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
68924         m4/inttypes-h.m4, m4/signed.m4.
68925         * m4/gettext.m4: Update to GNU gettext 0.16.
68926         * m4/intl.m4: New file, from GNU gettext.
68927         * m4/intldir.m4: New file, from GNU gettext.
68928         * config/srclist.txt: Update
68929
68930 2006-10-27  Eric Blake  <ebb9@byu.net>
68931
68932         * MODULES.html.sh: Document tempname.
68933         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
68934         dependencies.
68935         (Files): Move lib/tempname.c...
68936         * modules/tempname: ...to this new module.
68937         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
68938         (gl_PREREQ_TEMPNAME): Move...
68939         * m4/tempname.m4: ...to this new file.
68940         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
68941         * modules/sys_stat (Depends-on): Add stat-macros.
68942         * lib/stat_.h (includes): Pick up stat macros.
68943         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
68944         if stat macros are broken.
68945         * lib/tempname.c (includes): No need to include "stat-macros.h".
68946         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
68947         (direxists, __path_search) [!_LIBC]: Don't compile these in
68948         gnulib; the tmpdir module covers that.
68949         * lib/tempname.h: New file.
68950
68951 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
68952
68953         * COPYING: Explain how gnulib-tool converts licence headers.
68954         Almost all wording by Eric Blake.
68955
68956 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
68957
68958         * lib/mbchar.h (is_basic_table): Make read-only.
68959         * lib/mbchar.c (is_basic_table): Likewise.
68960         Reported by John Darrington.
68961
68962 2006-10-25  Bruno Haible  <bruno@clisp.org>
68963
68964         * lib/progname.h (set_program_name): Undefine before defining.
68965
68966 2006-10-25  Bruno Haible  <bruno@clisp.org>
68967
68968         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
68969         false for non-gcc C++ compilers.
68970         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
68971
68972 2006-10-24  Bruno Haible  <bruno@clisp.org>
68973
68974         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
68975         iconv implementations like Irix iconv.
68976
68977 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
68978
68979         * modules/vararrays: New file.
68980         * m4/vararrays.m4: New file, taken from diffutils.
68981         * MODULES.html.sh: New module vararrays.
68982
68983 2006-10-24  Karl Berry  <karl@gnu.org>
68984
68985         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
68986         Don't call GNU Unix.
68987
68988 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68989
68990         * users.txt: Add Libtool.
68991
68992         Sync from Libtool:
68993
68994         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
68995
68996         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
68997         to gnulib's policy of including config.h unconditionally.
68998
68999 2006-10-24  Bruno Haible  <bruno@clisp.org>
69000
69001         * modules/wcwidth (Files): Add m4/wint_t.m4.
69002         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
69003         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
69004
69005 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
69006
69007         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
69008         to pacify GCC with some -W flags enabled.  Problem reported by
69009         Bruno Haible.
69010
69011 2006-10-24  Jim Meyering  <jim@meyering.net>
69012
69013         * MODULES.html.sh: Remove uinttostr.  It's not a module.
69014         Reported by Karl Berry.
69015
69016 2006-10-23  Bruno Haible  <bruno@clisp.org>
69017
69018         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
69019
69020 2006-10-24  Bruno Haible  <bruno@clisp.org>
69021
69022         * lib/gl_list.h: Use C comment style, not C++ comment style.
69023
69024 2006-10-23  Eric Blake  <ebb9@byu.net>
69025
69026         * lib/getaddrinfo.c (includes): Add missing include.
69027
69028 2006-10-23  Bruno Haible  <bruno@clisp.org>
69029             Paul Eggert  <eggert@cs.ucla.edu>
69030
69031         Ability to rename obstack_free.
69032         * lib/obstack.h (__obstack_free): New macro. Declare instead of
69033         obstack_free.
69034         (obstack_free): Invoke the __obstack_free macro.
69035         * lib/obstack.c (obstack_free): Use __obstack_free macro.
69036
69037 2006-10-23  Bruno Haible  <bruno@clisp.org>
69038             Paul Eggert  <eggert@cs.ucla.edu>
69039
69040         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
69041         __argc, __argv from the declaration. (They are defined as macros on
69042         mingw.)
69043
69044 2006-10-22  Bruno Haible  <bruno@clisp.org>
69045
69046         * doc/gnulib-intro.texi: New file.
69047         * doc/gnulib.texi: Include it.
69048
69049 2006-10-21  Bruno Haible  <bruno@clisp.org>
69050
69051         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
69052         "Introduction", "Miscellanous Notes", "Particular Modules".
69053
69054 2006-10-21  Bruno Haible  <bruno@clisp.org>
69055
69056         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69057         Change mostlyclean-local rule to avoid sh syntax error from bash
69058         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
69059
69060 2006-10-23  Jim Meyering  <jim@meyering.net>
69061
69062         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
69063         in place of snprintf.
69064
69065         * modules/inttostr (Files): Add lib/uinttostr.c.
69066         * lib/uinttostr.c (inttostr): New file/function.
69067         * lib/inttostr.h (uinttostr): Declare.
69068         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
69069         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
69070         Add uinttostr.
69071         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
69072
69073 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
69074
69075         * lib/canonicalize.c (ELOOP): Define if not already defined.
69076         Problem reported by Bruno Haible in
69077         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
69078
69079 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
69080
69081         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
69082         Problem reported by Perry Smith and Ville Laurikari.
69083
69084         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
69085         uses.
69086
69087 2006-10-19  Bruno Haible  <bruno@clisp.org>
69088
69089         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
69090         for mingw.
69091
69092 2006-10-19  Bruno Haible  <bruno@clisp.org>
69093
69094         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
69095         Needed for mingw.
69096
69097 2006-10-19  Bruno Haible  <bruno@clisp.org>
69098
69099         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
69100
69101 2006-10-19  Bruno Haible  <bruno@clisp.org>
69102
69103         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
69104         it.
69105
69106 2006-10-19  Bruno Haible  <bruno@clisp.org>
69107
69108         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
69109         invocation.
69110
69111 2006-10-19  Bruno Haible  <bruno@clisp.org>
69112
69113         * gnulib-tool (func_create_testdir): Don't include ftruncate and
69114         mountlist by default.
69115
69116 2006-10-16  Bruno Haible  <bruno@clisp.org>
69117
69118         * lib/c-strstr.c: Include c-strstr.h.
69119
69120 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
69121
69122         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
69123         in a slash.
69124
69125 2006-10-18  Bruno Haible  <bruno@clisp.org>
69126
69127         * lib/lock.h [C++]: Wrap definitions in extern "C".
69128
69129 2006-10-18  Bruno Haible  <bruno@clisp.org>
69130
69131         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
69132         gl_LIBOBJS list.
69133
69134 2006-10-18  Bruno Haible  <bruno@clisp.org>
69135
69136         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
69137
69138 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
69139
69140         * lib/xstrtol.h: Include gettext.h.
69141         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
69142         Problem reported by Eric Blake.
69143         * modules/xstrtol (Depends-on): Add gettext-h.
69144
69145 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
69146
69147         * lib/strftime.c (advance): New macro.
69148         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
69149         incomplete type, so you can't add 0 to it.  Problem and patch
69150         reported by Eelco Dolstra for dietlibc.
69151
69152 2006-10-18  Jim Meyering  <jim@meyering.net>
69153
69154         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
69155         type for a local, and rename it: s/up/user_proc/.
69156
69157 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
69158
69159         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
69160         READ_UTMP_USER_PROCESS.
69161         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
69162
69163 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
69164
69165         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
69166         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
69167
69168 2006-10-17  Eric Blake  <ebb9@byu.net>
69169
69170         * lib/sigprocmask.c (sigprocmask): Fix typo.
69171
69172         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
69173
69174         * modules/clean-temp (Makefile.am): Don't add to make output...
69175         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
69176         config.h.
69177
69178 2006-10-17  Bruno Haible  <bruno@clisp.org>
69179
69180         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
69181         differently if DEFAULT_TEXT_DOMAIN is set.
69182
69183 2006-10-16  Bruno Haible  <bruno@clisp.org>
69184
69185         * lib/clean-temp.c: Include fwriteerror.h.
69186
69187 2006-10-16  Bruno Haible  <bruno@clisp.org>
69188
69189         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
69190
69191 2006-10-16  Bruno Haible  <bruno@clisp.org>
69192
69193         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
69194         * lib/sigprocmask.h: Include <sys/types.h>.
69195         (sigset_t): Use the system's definition if present.
69196
69197 2006-10-17  Eric Blake  <ebb9@byu.net>
69198
69199         * lib/xvasprintf.c (includes): Assume config.h.
69200         * lib/xasprintf.c (includes): Likewise.
69201
69202 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
69203
69204         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
69205         at least as wide as intmax_t.
69206
69207 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
69208
69209         (Imported from Automake.)
69210         * build-aux/gnupload: Update to version 1.1 of directive file.
69211
69212 2006-10-16  Eric Blake  <ebb9@byu.net>
69213
69214         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
69215         match Automake 1.10a.
69216
69217 2006-10-14  Bruno Haible  <bruno@clisp.org>
69218
69219         * modules/sigprocmask: New file.
69220         * lib/sigprocmask.h: New file.
69221         * lib/sigprocmask.c: New file.
69222         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
69223         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
69224         request sigprocmask.o.
69225         (gl_PREREQ_SIGPROCMASK): New macro.
69226         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
69227         (Depends-on): Add sigprocmask.
69228         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
69229         gt_SIGNALBLOCKING. Test for 'raise' only once.
69230         * lib/fatal-signal.c: Include sigprocmask.h.
69231         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
69232         unblock_fatal_signals): Define always.
69233         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69234         sigprocmask.
69235
69236 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
69237
69238         Sync from Automake.
69239         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
69240         which incorrectly sets the mode of an existing destination
69241         directory.  In some cases the unpatched install-sh could do the
69242         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
69243         system.  We hope this is rare in practice, but it's clearly worth
69244         fixing.  Problem reported by Alex Unleashed in
69245         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
69246         Also, don't bother to check for -m bugs unless we're using -m;
69247         suggested by Stepan Kasal.
69248
69249 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69250
69251         Sync from Automake.
69252         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
69253         `-c' flag, so they appear at the same position as in %FASTDEP%
69254         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
69255         which ignores unknown options only after the first non-option.
69256         Bug report against M4 by Nelson H. F. Beebe.
69257
69258 2006-10-13  Jim Meyering  <jim@meyering.net>
69259
69260         Fix a bug in yesterday's change.
69261         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
69262         p->fts_statp->st_dev would be used uninitialized.
69263         Ensures that we always call fts_stat on the very first entry.
69264         Miklos Szeredi reported that find -xdev stopped working.
69265
69266 2006-10-12  Bruno Haible  <bruno@clisp.org>
69267
69268         * gnulib-tool (func_get_automake_snippet): Append an automatically
69269         computed EXTRA_DIST augmentation.
69270         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
69271         * modules/alloca-opt (Makefile.am): Likewise.
69272         * modules/allocsa (Makefile.am): Likewise.
69273         * modules/arcfour (Makefile.am): Likewise.
69274         * modules/arctwo (Makefile.am): Likewise.
69275         * modules/argmatch (Makefile.am): Likewise.
69276         * modules/argz (Makefile.am): Likewise.
69277         * modules/atexit (Makefile.am): Likewise.
69278         * modules/backupfile (Makefile.am): Likewise.
69279         * modules/byteswap (Makefile.am): Likewise.
69280         * modules/c-strtod (Makefile.am): Likewise.
69281         * modules/c-strtold (Makefile.am): Likewise.
69282         * modules/calloc (Makefile.am): Likewise.
69283         * modules/canon-host (Makefile.am): Likewise.
69284         * modules/canonicalize (Makefile.am): Likewise.
69285         * modules/chdir-long (Makefile.am): Likewise.
69286         * modules/chdir-safer (Makefile.am): Likewise.
69287         * modules/check-version (Makefile.am): Likewise.
69288         * modules/chown (Makefile.am): Likewise.
69289         * modules/cloexec (Makefile.am): Likewise.
69290         * modules/close-stream (Makefile.am): Likewise.
69291         * modules/closeout (Makefile.am): Likewise.
69292         * modules/crc (Makefile.am): Likewise.
69293         * modules/csharpexec (Makefile.am): Likewise.
69294         * modules/cycle-check (Makefile.am): Likewise.
69295         * modules/des (Makefile.am): Likewise.
69296         * modules/dev-ino (Makefile.am): Likewise.
69297         * modules/dirfd (Makefile.am): Likewise.
69298         * modules/dirname (Makefile.am): Likewise.
69299         * modules/dup2 (Makefile.am): Likewise.
69300         * modules/eealloc (Makefile.am): Likewise.
69301         * modules/error (Makefile.am): Likewise.
69302         * modules/euidaccess (Makefile.am): Likewise.
69303         * modules/exclude (Makefile.am): Likewise.
69304         * modules/exitfail (Makefile.am): Likewise.
69305         * modules/fcntl-safer (Makefile.am): Likewise.
69306         * modules/fcntl (Makefile.am): Likewise.
69307         * modules/file-type (Makefile.am): Likewise.
69308         * modules/fileblocks (Makefile.am): Likewise.
69309         * modules/filemode (Makefile.am): Likewise.
69310         * modules/filenamecat (Makefile.am): Likewise.
69311         * modules/fnmatch (Makefile.am): Likewise.
69312         * modules/fopen-safer (Makefile.am): Likewise.
69313         * modules/fpending (Makefile.am): Likewise.
69314         * modules/fprintftime (Makefile.am): Likewise.
69315         * modules/free (Makefile.am): Likewise.
69316         * modules/fsusage (Makefile.am): Likewise.
69317         * modules/ftruncate (Makefile.am): Likewise.
69318         * modules/fts (Makefile.am): Likewise.
69319         * modules/gc-arcfour (Makefile.am): Likewise.
69320         * modules/gc-des (Makefile.am): Likewise.
69321         * modules/gc-hmac-md5 (Makefile.am): Likewise.
69322         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
69323         * modules/gc-md4 (Makefile.am): Likewise.
69324         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
69325         * modules/gc-sha1 (Makefile.am): Likewise.
69326         * modules/gc (Makefile.am): Likewise.
69327         * modules/getaddrinfo (Makefile.am): Likewise.
69328         * modules/getcwd (Makefile.am): Likewise.
69329         * modules/getdelim (Makefile.am): Likewise.
69330         * modules/getdomainname (Makefile.am): Likewise.
69331         * modules/getgroups (Makefile.am): Likewise.
69332         * modules/gethostname (Makefile.am): Likewise.
69333         * modules/gethrxtime (Makefile.am): Likewise.
69334         * modules/getline (Makefile.am): Likewise.
69335         * modules/getloadavg (Makefile.am): Likewise.
69336         * modules/getlogin_r (Makefile.am): Likewise.
69337         * modules/getndelim2 (Makefile.am): Likewise.
69338         * modules/getopt (Makefile.am): Likewise.
69339         * modules/getpagesize (Makefile.am): Likewise.
69340         * modules/getpass-gnu (Makefile.am): Likewise.
69341         * modules/getpass (Makefile.am): Likewise.
69342         * modules/getsubopt (Makefile.am): Likewise.
69343         * modules/gettime (Makefile.am): Likewise.
69344         * modules/gettimeofday (Makefile.am): Likewise.
69345         * modules/getugroups (Makefile.am): Likewise.
69346         * modules/getusershell (Makefile.am): Likewise.
69347         * modules/glob (Makefile.am): Likewise.
69348         * modules/group-member (Makefile.am): Likewise.
69349         * modules/hard-locale (Makefile.am): Likewise.
69350         * modules/hash (Makefile.am): Likewise.
69351         * modules/hmac-md5 (Makefile.am): Likewise.
69352         * modules/hmac-sha1 (Makefile.am): Likewise.
69353         * modules/human (Makefile.am): Likewise.
69354         * modules/idcache (Makefile.am): Likewise.
69355         * modules/imaxabs (Makefile.am): Likewise.
69356         * modules/imaxdiv (Makefile.am): Likewise.
69357         * modules/inet_ntop (Makefile.am): Likewise.
69358         * modules/inet_pton (Makefile.am): Likewise.
69359         * modules/intprops (Makefile.am): Likewise.
69360         * modules/inttostr (Makefile.am): Likewise.
69361         * modules/inttypes (Makefile.am): Likewise.
69362         * modules/isapipe (Makefile.am): Likewise.
69363         * modules/javaversion (Makefile.am): Likewise.
69364         * modules/lchmod (Makefile.am): Likewise.
69365         * modules/lchown (Makefile.am): Likewise.
69366         * modules/localcharset (Makefile.am): Likewise.
69367         * modules/long-options (Makefile.am): Likewise.
69368         * modules/lstat (Makefile.am): Likewise.
69369         * modules/malloc (Makefile.am): Likewise.
69370         * modules/mathl (Makefile.am): Likewise.
69371         * modules/mbchar (Makefile.am): Likewise.
69372         * modules/md2 (Makefile.am): Likewise.
69373         * modules/md4 (Makefile.am): Likewise.
69374         * modules/md5 (Makefile.am): Likewise.
69375         * modules/memcasecmp (Makefile.am): Likewise.
69376         * modules/memchr (Makefile.am): Likewise.
69377         * modules/memcmp (Makefile.am): Likewise.
69378         * modules/memcoll (Makefile.am): Likewise.
69379         * modules/memcpy (Makefile.am): Likewise.
69380         * modules/memmem (Makefile.am): Likewise.
69381         * modules/memmove (Makefile.am): Likewise.
69382         * modules/mempcpy (Makefile.am): Likewise.
69383         * modules/memrchr (Makefile.am): Likewise.
69384         * modules/memset (Makefile.am): Likewise.
69385         * modules/memxor (Makefile.am): Likewise.
69386         * modules/mkancesdirs (Makefile.am): Likewise.
69387         * modules/mkdir-p (Makefile.am): Likewise.
69388         * modules/mkdir (Makefile.am): Likewise.
69389         * modules/mkdtemp (Makefile.am): Likewise.
69390         * modules/mkstemp (Makefile.am): Likewise.
69391         * modules/mktime (Makefile.am): Likewise.
69392         * modules/modechange (Makefile.am): Likewise.
69393         * modules/mountlist (Makefile.am): Likewise.
69394         * modules/nanosleep (Makefile.am): Likewise.
69395         * modules/obstack (Makefile.am): Likewise.
69396         * modules/openat (Makefile.am): Likewise.
69397         * modules/pagealign_alloc (Makefile.am): Likewise.
69398         * modules/pathmax (Makefile.am): Likewise.
69399         * modules/physmem (Makefile.am): Likewise.
69400         * modules/poll (Makefile.am): Likewise.
69401         * modules/posixtm (Makefile.am): Likewise.
69402         * modules/posixver (Makefile.am): Likewise.
69403         * modules/putenv (Makefile.am): Likewise.
69404         * modules/quote (Makefile.am): Likewise.
69405         * modules/quotearg (Makefile.am): Likewise.
69406         * modules/raise (Makefile.am): Likewise.
69407         * modules/read-file (Makefile.am): Likewise.
69408         * modules/readline (Makefile.am): Likewise.
69409         * modules/readlink (Makefile.am): Likewise.
69410         * modules/readtokens (Makefile.am): Likewise.
69411         * modules/readutmp (Makefile.am): Likewise.
69412         * modules/realloc (Makefile.am): Likewise.
69413         * modules/regex (Makefile.am): Likewise.
69414         * modules/rename-dest-slash (Makefile.am): Likewise.
69415         * modules/rename (Makefile.am): Likewise.
69416         * modules/rijndael (Makefile.am): Likewise.
69417         * modules/rmdir (Makefile.am): Likewise.
69418         * modules/rpmatch (Makefile.am): Likewise.
69419         * modules/safe-read (Makefile.am): Likewise.
69420         * modules/safe-write (Makefile.am): Likewise.
69421         * modules/same-inode (Makefile.am): Likewise.
69422         * modules/same (Makefile.am): Likewise.
69423         * modules/save-cwd (Makefile.am): Likewise.
69424         * modules/savedir (Makefile.am): Likewise.
69425         * modules/setenv (Makefile.am): Likewise.
69426         * modules/settime (Makefile.am): Likewise.
69427         * modules/sha1 (Makefile.am): Likewise.
69428         * modules/sig2str (Makefile.am): Likewise.
69429         * modules/snprintf (Makefile.am): Likewise.
69430         * modules/stat-macros (Makefile.am): Likewise.
69431         * modules/stat-time (Makefile.am): Likewise.
69432         * modules/stdbool (Makefile.am): Likewise.
69433         * modules/stdint (Makefile.am): Likewise.
69434         * modules/stdlib-safer (Makefile.am): Likewise.
69435         * modules/stpcpy (Makefile.am): Likewise.
69436         * modules/stpncpy (Makefile.am): Likewise.
69437         * modules/strcase (Makefile.am): Likewise.
69438         * modules/strcasestr (Makefile.am): Likewise.
69439         * modules/strchrnul (Makefile.am): Likewise.
69440         * modules/strcspn (Makefile.am): Likewise.
69441         * modules/strdup (Makefile.am): Likewise.
69442         * modules/strerror (Makefile.am): Likewise.
69443         * modules/strftime (Makefile.am): Likewise.
69444         * modules/strndup (Makefile.am): Likewise.
69445         * modules/strnlen (Makefile.am): Likewise.
69446         * modules/strpbrk (Makefile.am): Likewise.
69447         * modules/strsep (Makefile.am): Likewise.
69448         * modules/strstr (Makefile.am): Likewise.
69449         * modules/strtod (Makefile.am): Likewise.
69450         * modules/strtoimax (Makefile.am): Likewise.
69451         * modules/strtok_r (Makefile.am): Likewise.
69452         * modules/strtol (Makefile.am): Likewise.
69453         * modules/strtoll (Makefile.am): Likewise.
69454         * modules/strtoul (Makefile.am): Likewise.
69455         * modules/strtoull (Makefile.am): Likewise.
69456         * modules/strtoumax (Makefile.am): Likewise.
69457         * modules/strverscmp (Makefile.am): Likewise.
69458         * modules/sys_socket (Makefile.am): Likewise.
69459         * modules/sys_stat (Makefile.am): Likewise.
69460         * modules/sysexits (Makefile.am): Likewise.
69461         * modules/time_r (Makefile.am): Likewise.
69462         * modules/timegm (Makefile.am): Likewise.
69463         * modules/timespec (Makefile.am): Likewise.
69464         * modules/tmpfile-safer (Makefile.am): Likewise.
69465         * modules/trim (Makefile.am): Likewise.
69466         * modules/unistd-safer (Makefile.am): Likewise.
69467         * modules/unlinkdir (Makefile.am): Likewise.
69468         * modules/unlocked-io (Makefile.am): Likewise.
69469         * modules/userspec (Makefile.am): Likewise.
69470         * modules/utime (Makefile.am): Likewise.
69471         * modules/utimecmp (Makefile.am): Likewise.
69472         * modules/utimens (Makefile.am): Likewise.
69473         * modules/vasnprintf (Makefile.am): Likewise.
69474         * modules/vasprintf (Makefile.am): Likewise.
69475         * modules/vsnprintf (Makefile.am): Likewise.
69476         * modules/xalloc (Makefile.am): Likewise.
69477         * modules/xgetcwd (Makefile.am): Likewise.
69478         * modules/xnanosleep (Makefile.am): Likewise.
69479         * modules/xreadlink (Makefile.am): Likewise.
69480         * modules/xstrtod (Makefile.am): Likewise.
69481         * modules/xstrtol (Makefile.am): Likewise.
69482         * modules/xstrtold (Makefile.am): Likewise.
69483         * modules/yesno (Makefile.am): Likewise.
69484         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
69485
69486 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
69487
69488         * modules/error (Makefile.am): Distribute files through
69489         EXTRA_DIST, not lib_SOURCES.
69490
69491 2006-10-12  Eric Blake  <ebb9@byu.net>
69492
69493         * modules/error (Makefile.am): Distribute files in /lib.
69494         * modules/obstack (Makefile.am): Likewise.
69495
69496 2006-10-12  Bruno Haible  <bruno@clisp.org>
69497
69498         * modules/acl (Makefile.am): Distribute all files in lib/ through
69499         EXTRA_DIST.
69500         * modules/arcfour (Makefile.am): Likewise.
69501         * modules/arctwo (Makefile.am): Likewise.
69502         * modules/argmatch (Makefile.am): Likewise.
69503         * modules/argz (Makefile.am): Likewise.
69504         * modules/atexit (Makefile.am): Likewise.
69505         * modules/backupfile (Makefile.am): Likewise.
69506         * modules/c-strtod (Makefile.am): Likewise.
69507         * modules/c-strtold (Makefile.am): Likewise.
69508         * modules/calloc (Makefile.am): Likewise.
69509         * modules/canon-host (Makefile.am): Likewise.
69510         * modules/canonicalize (Makefile.am): Likewise.
69511         * modules/chdir-long (Makefile.am): Likewise.
69512         * modules/chdir-safer (Makefile.am): Likewise.
69513         * modules/check-version (Makefile.am): Likewise.
69514         * modules/chown (Makefile.am): Likewise.
69515         * modules/cloexec (Makefile.am): Likewise.
69516         * modules/close-stream (Makefile.am): Likewise.
69517         * modules/closeout (Makefile.am): Likewise.
69518         * modules/crc (Makefile.am): Likewise.
69519         * modules/cycle-check (Makefile.am): Likewise.
69520         * modules/des (Makefile.am): Likewise.
69521         * modules/dirfd (Makefile.am): Likewise.
69522         * modules/dirname (Makefile.am): Likewise.
69523         * modules/dup2 (Makefile.am): Likewise.
69524         * modules/euidaccess (Makefile.am): Likewise.
69525         * modules/exclude (Makefile.am): Likewise.
69526         * modules/exitfail (Makefile.am): Likewise.
69527         * modules/fcntl-safer (Makefile.am): Likewise.
69528         * modules/file-type (Makefile.am): Likewise.
69529         * modules/fileblocks (Makefile.am): Likewise.
69530         * modules/filemode (Makefile.am): Likewise.
69531         * modules/filenamecat (Makefile.am): Likewise.
69532         * modules/fnmatch (Makefile.am): Likewise.
69533         * modules/fopen-safer (Makefile.am): Likewise.
69534         * modules/fpending (Makefile.am): Likewise.
69535         * modules/fprintftime (Makefile.am): Likewise.
69536         * modules/free (Makefile.am): Likewise.
69537         * modules/fsusage (Makefile.am): Likewise.
69538         * modules/ftruncate (Makefile.am): Likewise.
69539         * modules/fts (Makefile.am): Likewise.
69540         * modules/gc (Makefile.am): Likewise.
69541         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
69542         * modules/getaddrinfo (Makefile.am): Likewise.
69543         * modules/getcwd (Makefile.am): Likewise.
69544         * modules/getdelim (Makefile.am): Likewise.
69545         * modules/getdomainname (Makefile.am): Likewise.
69546         * modules/getgroups (Makefile.am): Likewise.
69547         * modules/gethostname (Makefile.am): Likewise.
69548         * modules/gethrxtime (Makefile.am): Likewise.
69549         * modules/getline (Makefile.am): Likewise.
69550         * modules/getloadavg (Makefile.am): Likewise.
69551         * modules/getlogin_r (Makefile.am): Likewise.
69552         * modules/getopt (Makefile.am): Likewise.
69553         * modules/getpass (Makefile.am): Likewise.
69554         * modules/getpass-gnu (Makefile.am): Likewise.
69555         * modules/getsubopt (Makefile.am): Likewise.
69556         * modules/gettime (Makefile.am): Likewise.
69557         * modules/gettimeofday (Makefile.am): Likewise.
69558         * modules/getugroups (Makefile.am): Likewise.
69559         * modules/getusershell (Makefile.am): Likewise.
69560         * modules/glob (Makefile.am): Likewise.
69561         * modules/group-member (Makefile.am): Likewise.
69562         * modules/hard-locale (Makefile.am): Likewise.
69563         * modules/hash (Makefile.am): Likewise.
69564         * modules/hmac-md5 (Makefile.am): Likewise.
69565         * modules/hmac-sha1 (Makefile.am): Likewise.
69566         * modules/human (Makefile.am): Likewise.
69567         * modules/idcache (Makefile.am): Likewise.
69568         * modules/imaxabs (Makefile.am): Likewise.
69569         * modules/imaxdiv (Makefile.am): Likewise.
69570         * modules/inet_ntop (Makefile.am): Likewise.
69571         * modules/inet_pton (Makefile.am): Likewise.
69572         * modules/inttostr (Makefile.am): Likewise.
69573         * modules/isapipe (Makefile.am): Likewise.
69574         * modules/lchown (Makefile.am): Likewise.
69575         * modules/long-options (Makefile.am): Likewise.
69576         * modules/lstat (Makefile.am): Likewise.
69577         * modules/malloc (Makefile.am): Likewise.
69578         * modules/mathl (Makefile.am): Likewise.
69579         * modules/mbchar (Makefile.am): Likewise.
69580         * modules/md2 (Makefile.am): Likewise.
69581         * modules/md4 (Makefile.am): Likewise.
69582         * modules/md5 (Makefile.am): Likewise.
69583         * modules/memcasecmp (Makefile.am): Likewise.
69584         * modules/memchr (Makefile.am): Likewise.
69585         * modules/memcmp (Makefile.am): Likewise.
69586         * modules/memcoll (Makefile.am): Likewise.
69587         * modules/memcpy (Makefile.am): Likewise.
69588         * modules/memmem (Makefile.am): Likewise.
69589         * modules/memmove (Makefile.am): Likewise.
69590         * modules/mempcpy (Makefile.am): Likewise.
69591         * modules/memrchr (Makefile.am): Likewise.
69592         * modules/memset (Makefile.am): Likewise.
69593         * modules/memxor (Makefile.am): Likewise.
69594         * modules/mkancesdirs (Makefile.am): Likewise.
69595         * modules/mkdir (Makefile.am): Likewise.
69596         * modules/mkdir-p (Makefile.am): Likewise.
69597         * modules/mkdtemp (Makefile.am): Likewise.
69598         * modules/mkstemp (Makefile.am): Likewise.
69599         * modules/mktime (Makefile.am): Likewise.
69600         * modules/modechange (Makefile.am): Likewise.
69601         * modules/mountlist (Makefile.am): Likewise.
69602         * modules/nanosleep (Makefile.am): Likewise.
69603         * modules/openat (Makefile.am): Likewise.
69604         * modules/pagealign_alloc (Makefile.am): Likewise.
69605         * modules/physmem (Makefile.am): Likewise.
69606         * modules/poll (Makefile.am): Likewise.
69607         * modules/posixtm (Makefile.am): Likewise.
69608         * modules/posixver (Makefile.am): Likewise.
69609         * modules/putenv (Makefile.am): Likewise.
69610         * modules/quote (Makefile.am): Likewise.
69611         * modules/quotearg (Makefile.am): Likewise.
69612         * modules/raise (Makefile.am): Likewise.
69613         * modules/read-file (Makefile.am): Likewise.
69614         * modules/readline (Makefile.am): Likewise.
69615         * modules/readlink (Makefile.am): Likewise.
69616         * modules/readtokens (Makefile.am): Likewise.
69617         * modules/readutmp (Makefile.am): Likewise.
69618         * modules/realloc (Makefile.am): Likewise.
69619         * modules/regex (Makefile.am): Likewise.
69620         * modules/rename (Makefile.am): Likewise.
69621         * modules/rename-dest-slash (Makefile.am): Likewise.
69622         * modules/rijndael (Makefile.am): Likewise.
69623         * modules/rmdir (Makefile.am): Likewise.
69624         * modules/rpmatch (Makefile.am): Likewise.
69625         * modules/safe-read (Makefile.am): Likewise.
69626         * modules/safe-write (Makefile.am): Likewise.
69627         * modules/same (Makefile.am): Likewise.
69628         * modules/save-cwd (Makefile.am): Likewise.
69629         * modules/savedir (Makefile.am): Likewise.
69630         * modules/setenv (Makefile.am): Likewise.
69631         * modules/settime (Makefile.am): Likewise.
69632         * modules/sha1 (Makefile.am): Likewise.
69633         * modules/sig2str (Makefile.am): Likewise.
69634         * modules/snprintf (Makefile.am): Likewise.
69635         * modules/stdlib-safer (Makefile.am): Likewise.
69636         * modules/stpcpy (Makefile.am): Likewise.
69637         * modules/stpncpy (Makefile.am): Likewise.
69638         * modules/strcase (Makefile.am): Likewise.
69639         * modules/strcasestr (Makefile.am): Likewise.
69640         * modules/strchrnul (Makefile.am): Likewise.
69641         * modules/strcspn (Makefile.am): Likewise.
69642         * modules/strdup (Makefile.am): Likewise.
69643         * modules/strerror (Makefile.am): Likewise.
69644         * modules/strftime (Makefile.am): Likewise.
69645         * modules/strndup (Makefile.am): Likewise.
69646         * modules/strnlen (Makefile.am): Likewise.
69647         * modules/strpbrk (Makefile.am): Likewise.
69648         * modules/strsep (Makefile.am): Likewise.
69649         * modules/strstr (Makefile.am): Likewise.
69650         * modules/strtod (Makefile.am): Likewise.
69651         * modules/strtoimax (Makefile.am): Likewise.
69652         * modules/strtok_r (Makefile.am): Likewise.
69653         * modules/strtol (Makefile.am): Likewise.
69654         * modules/strtoll (Makefile.am): Likewise.
69655         * modules/strtoul (Makefile.am): Likewise.
69656         * modules/strtoull (Makefile.am): Likewise.
69657         * modules/strtoumax (Makefile.am): Likewise.
69658         * modules/strverscmp (Makefile.am): Likewise.
69659         * modules/time_r (Makefile.am): Likewise.
69660         * modules/timegm (Makefile.am): Likewise.
69661         * modules/tmpfile-safer (Makefile.am): Likewise.
69662         * modules/unistd-safer (Makefile.am): Likewise.
69663         * modules/unlinkdir (Makefile.am): Likewise.
69664         * modules/userspec (Makefile.am): Likewise.
69665         * modules/utime (Makefile.am): Likewise.
69666         * modules/utimecmp (Makefile.am): Likewise.
69667         * modules/utimens (Makefile.am): Likewise.
69668         * modules/vasnprintf (Makefile.am): Likewise.
69669         * modules/vasprintf (Makefile.am): Likewise.
69670         * modules/vsnprintf (Makefile.am): Likewise.
69671         * modules/xalloc (Makefile.am): Likewise.
69672         * modules/xgetcwd (Makefile.am): Likewise.
69673         * modules/xnanosleep (Makefile.am): Likewise.
69674         * modules/xreadlink (Makefile.am): Likewise.
69675         * modules/xstrtod (Makefile.am): Likewise.
69676         * modules/xstrtol (Makefile.am): Likewise.
69677         * modules/xstrtold (Makefile.am): Likewise.
69678         * modules/yesno (Makefile.am): Likewise.
69679
69680 2006-10-12  Jim Meyering  <jim@meyering.net>
69681
69682         * m4/getloadavg.m4: Revert the change below.
69683
69684         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
69685         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
69686         fail with a symlink, which is what coreutils' ./bootstrap now
69687         creates by default.
69688
69689 2006-10-12  Bruno Haible  <bruno@clisp.org>
69690
69691         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
69692         mingw.
69693         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
69694         MSVC and mingw explicitly.
69695
69696 2006-10-11  Simon Josefsson  <jas@extundo.com>
69697             Bruno Haible  <bruno@clisp.org>
69698
69699         Add support for multiple gnulib-tool invocations in the scope of a
69700         single configure.ac file.
69701         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
69702         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
69703         with the same contents as the _LIBADD variable.
69704         (func_emit_initmacro_start, func_emit_initmacro_end,
69705         func_emit_initmacro_done): New functions.
69706         (func_import, func_create_testdir): Invoke them. Allow the identifiers
69707         gl_LIBOBJS and gl_LTLIBOBJS.
69708
69709 2006-10-11  Bruno Haible  <bruno@clisp.org>
69710
69711         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
69712         (func_create_testdir): Don't create po/Makefile.am, don't invoke
69713         autoreconf. Instead, invoke autopoint explicitly but move back the
69714         *.m4 files from gnulib.
69715
69716 2006-10-11  Bruno Haible  <bruno@clisp.org>
69717
69718         * gnulib-tool (func_usage): Make module names after --create-testdir
69719         optional.
69720         (func_create_testdir): If no module was specified, use nearly all
69721         modules.
69722
69723 2006-10-12  Jim Meyering  <jim@meyering.net>
69724
69725         Big performance improvement for fts-based tools that use FTS_NOSTAT.
69726         Avoid spurious inode-mismatch problems on non-POSIX file systems.
69727         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
69728         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
69729         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
69730         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
69731         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
69732         (fts_set_stat_required): New function.
69733         (fts_open): Defer the calls to fts_stat, if possible or requested.
69734         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
69735         into fts_stat itself.
69736         (fts_read): Perform any required (deferred) fts_stat call.
69737         (fts_build): Likewise, for the directory we're about to open and read.
69738         In the readdir loop, carefully decide whether each entry will require
69739         an eventual call to fts_stat, using dirent.d_type info if available.
69740         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
69741         a command line argument into this function.  Update all callers.
69742         Map a return value of FTS_DOT to FTS_D for a command line argument.
69743         * modules/fts (Depends-on): Add d-type.  Alphabetize.
69744         Thanks to Miklos Szeredi for his tenacity and for the initial
69745         bug report about "find" failing on a FUSE-based file system.
69746
69747         * lib/fts.c (fts_open): Use consistent indentation.
69748
69749 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
69750
69751         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
69752         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
69753         reported by Jim Meyering.  All uses of cache variables renamed
69754         to match Autoconf's.
69755         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
69756         the other one.
69757
69758         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
69759         Fix misspelling in diagnostic.
69760
69761 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
69762
69763         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
69764         defined.  Problem reported by Matthew Woehlke.
69765
69766         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
69767         Add support for Tandem NonStop R series.
69768         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
69769         Use new macro.
69770
69771         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
69772         (has_trailing_slash): Omit size arg; all callers changed.
69773         Omit 'inline', since it doesn't help performance and we'd
69774         need to configure it.
69775         Don't count //, ///, etc. as having a trailing slash.
69776         As a side effect, this removes a C99ism reported by Matthew Woehlke.
69777         (rpl_rename_dest_slash): On failure, use rename's errno rather
69778         than (in some cases) an incorrect or junk errno.
69779         Simplify code by removing need to compute length; this does
69780         cause it to make two passes instead of one over the file name,
69781         but it's worth it.
69782
69783         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
69784         change, since Autoconf's version may no longer be appropriate now
69785         that we are using CVS Autoconf's version.  Add support for Tandem.
69786
69787 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
69788             Bruno Haible  <bruno@clisp.org>
69789
69790         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
69791         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
69792         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
69793         gl_AC_TYPE_LONG_LONG.
69794
69795         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
69796         instead of HAVE_LONG_LONG.
69797         * lib/printf-args.c (printf_fetchargs): Likewise.
69798         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
69799         * lib/vasnprintf.c (VASNPRINTF): Likewise.
69800         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
69801         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
69802         gl_AC_TYPE_LONG_LONG.
69803
69804 2006-10-11  Bruno Haible  <bruno@clisp.org>
69805
69806         * m4/longlong.m4: Add comments.
69807         * m4/ulonglong.m4: Likewise.
69808
69809 2006-10-10  Bruno Haible  <bruno@clisp.org>
69810
69811         Make it possible to #define stpcpy, strdup to aliases.
69812         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
69813         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
69814
69815 2006-10-10  Bruno Haible  <bruno@clisp.org>
69816
69817         Make it possible to #define gcd to an alias.
69818         * lib/gcd.c: Include config.h.
69819
69820 2006-10-10  Bruno Haible  <bruno@clisp.org>
69821
69822         Make it possible to #define c_isascii to an alias.
69823         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
69824         defined. Undefine the macros before defining them, to avoid gcc
69825         warnings.
69826         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
69827         define NO_C_CTYPE_MACROS early.
69828
69829 2006-10-10  Bruno Haible  <bruno@clisp.org>
69830
69831         Make it possible to #define set_program_name to an alias.
69832         * lib/progname.c: Don't undefine set_program_name; instead, undefine
69833         ENABLE_RELOCATABLE early.
69834
69835 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
69836
69837         Port to Tandem NSK OSS, which has 64-bit signed int but at most
69838         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
69839         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
69840         More generally, don't assume that 64-bit signed int is available
69841         if unsigned int is, and vice versa.
69842         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
69843         unsigned symbols, not on their signed counterparts.
69844         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
69845         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
69846         (UINT64_C, UINTMAX_C):
69847         Likewise.
69848         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
69849         unsigned counterparts.
69850         (Have_long_long, Unsigned): New macros.
69851         (Int): Renamed from INT.
69852         (strtoimax): Use the new macros.
69853         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
69854         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
69855         * modules/inttypes (inttypes.h): Substitute
69856         HAVE_UNSIGNED_LONG_LONG_INT.
69857         * modules/stdint (stdint.h): Likewise.
69858         (Files): Add m4/ulonglong.m4.
69859
69860 2006-10-10  Bruno Haible  <bruno@clisp.org>
69861
69862         Fix a gcc -Wshadow warning.
69863         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
69864         to 'bucket'.
69865         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
69866         gl_linked_indexof_from_to): Likewise.
69867         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
69868         Likewise.
69869         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
69870         Likewise.
69871         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
69872         Reported by Eric Blake.
69873
69874 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
69875
69876         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
69877         for NetBSD.  Problem reported by Bruno Haible.
69878
69879 2006-10-09  Jim Meyering  <jim@meyering.net>
69880
69881         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
69882         Patch from Bruno Haible.
69883
69884 2006-10-09  Jim Meyering  <jim@meyering.net>
69885
69886         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
69887         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
69888         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
69889
69890 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
69891
69892         Don't include <config.h> twice; this doesn't work in some cases,
69893         e.g., when config.h has "#define intmax_t long long int" and
69894         we include <config.h>, <inttypes.h>, <config.h> in that order.
69895         Problem reported by Matthew Woehlke in:
69896         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
69897         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
69898         * lib/fts-cycle.c: Don't include config.h.
69899         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
69900         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
69901         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
69902         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
69903         inttypes.h.
69904         * lib/xstrtoumax.c: Likewise.
69905         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
69906         __strtol and the like, so that this module is more like its siblings.
69907         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
69908         Remove; no longer needed now that we assume gnulib inttypes.h.
69909
69910 2006-10-08  Bruno Haible  <bruno@clisp.org>
69911
69912         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
69913         option.
69914
69915 2006-10-07  Jim Meyering  <jim@meyering.net>
69916
69917         * modules/inttypes (inttypes.h): Revert what seems to have been
69918         an inadvertent part of today's change: use "|", not "/" in the
69919         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
69920
69921 2006-10-07  Bruno Haible  <bruno@clisp.org>
69922
69923         * modules/sublist: New file.
69924
69925 2006-10-07  Bruno Haible  <bruno@clisp.org>
69926
69927         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
69928         * modules/argz (argz.h): Likewise.
69929         * modules/arpa_inet (arpa/inet.h): Likewise.
69930         * modules/byteswap (byteswap.h): Likewise.
69931         * modules/configmake (configmake.h): Likewise.
69932         * modules/fcntl (fcntl.h): Likewise.
69933         * modules/fnmatch (fnmatch.h): Likewise.
69934         * modules/getopt (getopt.h): Likewise.
69935         * modules/glob (glob.h): Likewise.
69936         * modules/inttypes (inttypes.h): Likewise.
69937         * modules/netinet_in (netinet/in.h): Likewise.
69938         * modules/poll (poll.h): Likewise.
69939         * modules/stdbool (stdbool.h): Likewise.
69940         * modules/stdint (stdint.h): Likewise.
69941         * modules/sys_select (sys/select.h): Likewise.
69942         * modules/sys_socket (sys/socket.h): Likewise.
69943         * modules/sys_stat (sys/stat.h): Likewise.
69944         * modules/sysexits (sysexits.h): Likewise.
69945         * modules/unistd (unistd.h): Likewise.
69946         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69947         Add a "DO NOT EDIT" comment to the generated file.
69948         (func_import): Likewise for gnulib-comp.m4.
69949
69950 2006-10-07  Bruno Haible  <bruno@clisp.org>
69951
69952         * lib/gl_sublist.h: New file.
69953         * lib/gl_sublist.c: New file.
69954
69955 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
69956
69957         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
69958         name (relative to the original working directory) and the file
69959         name component (relative to the temporary working directory).  All
69960         callers changed.
69961         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
69962         * lib/mkdir-p.c (make_dir_parents): Likewise.
69963         * lib/mkdir-p.h (make_dir_parents): Likewise.
69964
69965 2006-10-06  Eric Blake  <ebb9@byu.net>
69966
69967         Define several macros for use by the clean-temp module.
69968         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
69969         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
69970         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
69971
69972         * lib/clean-temp.h (close_stream_temp): New declaration.
69973         * lib/clean-temp.c (includes): Pull in headers according to what
69974         other modules are in use.
69975         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
69976
69977 2006-10-06  Bruno Haible  <bruno@clisp.org>
69978
69979         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
69980         instead of fopen, fwriteerror.
69981
69982 2006-10-06  Bruno Haible  <bruno@clisp.org>
69983
69984         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
69985         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
69986         int.
69987         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
69988         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
69989         Return an error indicator.
69990         Suggested by Eric Blake.
69991
69992 2006-10-06  Bruno Haible  <bruno@clisp.org>
69993
69994         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
69995         Reported by Eric Blake.
69996
69997 2006-10-06  Bruno Haible  <bruno@clisp.org>
69998
69999         * modules/closeout (Description): Mention stderr too.
70000
70001 2006-10-06  Bruno Haible  <bruno@clisp.org>
70002         and Paul Eggert  <eggert@cs.ucla.edu>
70003
70004         * lib/closeout.c (close_stdout): Also close stderr.
70005         * lib/closeout.h: Update comment.
70006
70007 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
70008
70009         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
70010         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
70011         * lib/dirchownmod.c: Include lchown.h.
70012         * lib/lchown.c: Don't include files that lchown.h now includes.
70013         Don't declare chown, since lchown.h now does that.
70014         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
70015         (lchown): Define to rpl_chown if lchown is declared but
70016         does not exist.  Declare using a prototype if lchown is not
70017         declared.  Add a copyright notice.
70018         * lib/mkstemp.h: Include <unistd.h>.
70019         * lib/openat.c: Include lchown.h.
70020
70021         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
70022         we now test for that separately.
70023         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
70024         rather than O_NOFOLLOW, when testing whether it's possible to
70025         avoid a race condition reliably.
70026         * lib/savewd.c (savewd_chdir): Likewise.
70027
70028         Remove macros that are no longer needed now that stdint.h is
70029         reliable.
70030         * lib/fsusage.c (UINTMAX_MAX): Remove.
70031         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
70032         * lib/utimecmp.c (SIZE_MAX): Remove.
70033
70034         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
70035
70036         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
70037         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
70038         O_NOATIME works.
70039
70040 2006-10-05  Bruno Haible  <bruno@clisp.org>
70041
70042         * lib/gl_list.h (gl_sortedlist_search_from_to,
70043         gl_sortedlist_indexof_from_to): New declarations.
70044         (gl_list_implementation): New fields sortedlist_search_from_to,
70045         sortedlist_indexof_from_to.
70046         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
70047         inline functions.
70048         * lib/gl_list.c (gl_sortedlist_search_from_to,
70049         gl_sortedlist_indexof_from_to): New functions.
70050         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
70051         function.
70052         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
70053         (gl_array_sortedlist_search_from_to): New function.
70054         (gl_array_list_implementation): Update.
70055         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
70056         function.
70057         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
70058         (gl_carray_sortedlist_search_from_to): New function.
70059         (gl_carray_list_implementation): Update.
70060         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
70061         gl_linked_sortedlist_indexof_from_to): New functions.
70062         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
70063         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
70064         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
70065         gl_tree_sortedlist_indexof_from_to): New functions.
70066         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
70067         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
70068         Update.
70069         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
70070         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
70071         Update.
70072
70073 2006-10-05  Bruno Haible  <bruno@clisp.org>
70074
70075         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
70076         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
70077         (struct gl_list_implementation): Add fields search_from_to,
70078         indexof_from_to. Remove fields search, indexof.
70079         (gl_list_search): Use the search_from_to method.
70080         (gl_list_search_from, gl_list_search_from_to): New functions.
70081         (gl_list_indexof): Use the indexof_from_to method.
70082         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
70083         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
70084         (gl_list_search_from, gl_list_search_from_to): New functions.
70085         (gl_list_indexof): Use the indexof_from_to method.
70086         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
70087         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
70088         gl_array_indexof. Add start_index, end_index arguments.
70089         (gl_array_search_from_to): Renamed from gl_array_search. Add
70090         start_index, end_index arguments.
70091         (gl_array_remove, gl_array_list_implementation): Update.
70092         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
70093         gl_carray_indexof. Add start_index, end_index arguments.
70094         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
70095         start_index, end_index arguments.
70096         (gl_carray_remove, gl_carray_list_implementation): Update.
70097         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
70098         gl_linked_search. Add start_index, end_index arguments.
70099         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
70100         start_index, end_index arguments.
70101         (gl_linked_remove): Update.
70102         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
70103         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
70104         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
70105         field to 'size_t'.
70106         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
70107         gl_tree_search. Add start_index, end_index arguments.
70108         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
70109         start_index, end_index arguments.
70110         (gl_tree_remove): Update.
70111         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
70112         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
70113         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
70114         function.
70115         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
70116         gl_tree_search. Add start_index, end_index arguments.
70117         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
70118         start_index, end_index arguments.
70119         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
70120         Update.
70121         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
70122
70123 2006-10-05  Bruno Haible  <bruno@clisp.org>
70124
70125         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
70126
70127         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
70128         fwriteerror_temp): New declarations.
70129         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
70130         (descriptors): New variable.
70131         (cleanup): First, close the descriptors.
70132         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
70133         fclose_temp, fwriteerror_temp): New functions.
70134
70135 2006-10-04  Jim Meyering  <jim@meyering.net>
70136
70137         * lib/fts.c (fts_open): Tiny comment change.
70138
70139 2006-10-04  Bruno Haible  <bruno@clisp.org>
70140
70141         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
70142         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
70143         gl_LOCK_BODY.
70144         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
70145         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
70146         gl_LOCK_EARLY_BODY.
70147         (gl_LOCK): Require gl_LOCK_BODY.
70148
70149 2006-10-04  Bruno Haible  <bruno@clisp.org>
70150
70151         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
70152         (gl_oset_search_atleast): New declaration.
70153         (struct gl_oset_implementation): Add field 'search_atleast'.
70154         (gl_oset_search_atleast): New inline function.
70155         * lib/gl_oset.c (gl_oset_search_atleast): New function.
70156         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
70157         (gl_array_oset_implementation): Update.
70158         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
70159         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
70160         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
70161
70162 2006-10-04  Bruno Haible  <bruno@clisp.org>
70163
70164         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
70165
70166 2006-10-03  Bruno Haible  <bruno@clisp.org>
70167
70168         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
70169         from gl_avltreehash_list_implementation.
70170
70171 2006-10-03  Bruno Haible  <bruno@clisp.org>
70172
70173         * lib/gl_oset.c (gl_oset_add): Fix return type.
70174
70175 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
70176
70177         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
70178
70179 2006-10-02  Eric Blake  <ebb9@byu.net>
70180
70181         * modules/strnlen (Depends-on): Add extensions.
70182
70183 2006-10-02  Eric Blake  <ebb9@byu.net>
70184
70185         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
70186         definition in 2.60+.
70187
70188 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
70189
70190         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
70191         checks.
70192
70193 2006-10-02  Bruno Haible  <bruno@clisp.org>
70194
70195         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
70196         to the AUTOMAKE_OPTIONS.
70197         Reported by Jim Meyering.
70198
70199 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
70200
70201         Work around bug in Solaris 10 /proc file system:
70202         /proc/self/fd/NNN/.. isn't the parent directory of
70203         the directory whose file descriptor is NNN.  This needs to
70204         be worked around at run time, not compile time, since a
70205         program might be built on Solaris 8, where things work, and
70206         run on Solaris 10.
70207         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
70208         to use the following interface instead:
70209         (OPENAT_BUFFER_SIZE): New macro.
70210         (openat_proc_name): New function.
70211         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
70212         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
70213         Likewise.
70214         * lib/openat-proc.c: New file.
70215         * modules/openat (Files): Add lib/openat-proc.c.
70216         (Depends-on): Add same-inode, stdbool.
70217         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
70218
70219 2006-09-29  Bruno Haible  <bruno@clisp.org>
70220
70221         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
70222         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
70223         argument. Set stdout_closed before testing for ferror, not after.
70224         (fwriteerror, fwriteerror_no_ebadf): New functions.
70225
70226 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70227
70228         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
70229
70230 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
70231
70232         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
70233         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
70234
70235 2006-09-28  Jim Meyering  <jim@meyering.net>
70236
70237         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
70238         Include <unistd.h>.
70239
70240 2006-09-28  Bruno Haible  <bruno@clisp.org>
70241
70242         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
70243         * modules/linkedhash-list (Depends-on): Likewise.
70244         * modules/rbtreehash-list (Depends-on): Likewise.
70245
70246 2006-09-28  Bruno Haible  <bruno@clisp.org>
70247
70248         * lib/strndup.h: Simplify the redefinition of strndup.
70249         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
70250         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
70251
70252 2006-09-28  Bruno Haible  <bruno@clisp.org>
70253
70254         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
70255         * lib/gl_linkedhash_list.c: Likewise.
70256         * lib/gl_rbtreehash_list.c: Likewise.
70257
70258 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
70259
70260         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
70261         getaddrinfo.
70262
70263         * lib/__fpending.h: Don't include <stdio_ext.h> unless
70264         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
70265         it causes <stdio_ext.h> to cause a compile-time error.
70266         Problem reported by Nelson H. F. Beebe.
70267         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
70268         of HAVE_DECL___PENDING.
70269
70270         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
70271         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
70272         declaration.
70273
70274 2006-09-27  Jim Meyering  <jim@meyering.net>
70275
70276         This file could end up with a definition for a function
70277         named __strndup, rather than rpl_strndup on a system with
70278         incomplete weak_alias support.
70279         * lib/strndup.c (strndup): Rename from __strndup.
70280         Remove #defines that used to map __strndup to strndup.
70281         Don't use K&R prototypes.
70282         Remove LIBC-related code, since this file is not sync'd with glibc.
70283         * lib/strndup.h: Revamp, accordingly.
70284         * m4/strndup.m4: Modernize.
70285
70286 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
70287
70288         * modules/savewd (Depends-on): Add 'raise'.
70289         * lib/savewd.c: Include <signal.h>, for 'raise'.
70290
70291 2006-09-26  Jim Meyering  <jim@meyering.net>
70292
70293         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
70294         when we detect Darwin 8.7.0's acl_get_file bug.
70295         Rearrange to perform the new (below) run-test while $LIBS
70296         contains any acl-related library.  Set USE_ACL at the end.
70297         (gl_ACL_GET_FILE): New function.
70298
70299 2006-09-26  Eric Blake  <ebb9@byu.net>
70300
70301         * lib/verror.c: Include <config.h> unconditionally.
70302
70303 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
70304
70305         * modules/clock-time (Maintainer): Add self.
70306         * modules/getlogin_r (Depends-on): Add extensions.
70307
70308 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70309
70310         * modules/clock-time: New module.
70311         * modules/nanosleep (Depends-on): Add clock-time.
70312         * modules/gethrxtime (Depends-on): Likewise.
70313         * modules/gettime (Depends-on): Likewise.
70314         * modules/settime (Depends-on): Likewise.
70315
70316         * modules/fts-lgpl: Depend on openat.
70317         * modules/mkancesdirs: Depend on savewd.
70318         * modules/mkdir-p: Likewise.
70319
70320 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70321
70322         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
70323
70324         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
70325         `gl_have_arbitrary_file_name_length_limit' to
70326         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
70327         actually works between configure runs.
70328
70329 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70330             Bruno Haible  <bruno@clisp.org>
70331
70332         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
70333
70334 2006-09-25  Jim Meyering  <jim@meyering.net>
70335
70336         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
70337         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
70338
70339 2006-09-25  Eric Blake  <ebb9@byu.net>
70340
70341         * gnulib-tool (func_import, func_create_testdir): Fix typos in
70342         exec's in 2006-09-18 patch when shuffling fds.
70343
70344 2006-09-25  Bruno Haible  <bruno@clisp.org>
70345
70346         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
70347         Reported by Jim Meyering.
70348
70349 2006-09-24  Jim Meyering  <jim@meyering.net>
70350
70351         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
70352         compare a pointer against a literal "0".  That caused failures with
70353         at least HP-UX's hpcc.
70354
70355 2006-09-22  Simon Josefsson  <jas@extundo.com>
70356
70357         * modules/gc-sha1:
70358         * modules/gc-md4:
70359         * modules/gc-hmac-sha1:
70360         * modules/gc-hmac-md5:
70361         * modules/gc-des:
70362         * modules/gc-arcfour: Distribute more files.
70363
70364 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70365
70366         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
70367         (gl_linked_iterator_from_to): Initialize struct completely.
70368         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
70369         (gl_tree_iterator_from_to): Likewise
70370         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
70371         * lib/gl_array_list.c [lint] (gl_array_iterator)
70372         (gl_array_iterator_from_to): Likewise.
70373         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
70374         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
70375         (gl_carray_iterator_from_to): Likewise.
70376
70377         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
70378         * lib/md4.c (md4_process_block): Remove unused variable.
70379         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
70380         parentheses for clarity.
70381
70382 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70383
70384         * modules/bison-i18n (Depends-on): Add gettext.
70385
70386 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70387
70388         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
70389         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
70390         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
70391         also add missing comma that caused broken test.
70392         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
70393         stdlib.h, for `abort'.
70394         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
70395         variables.
70396         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
70397         include unistd.h if present, for `rmdir'.
70398         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
70399         variables.
70400         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
70401         in the process include standard headers for prototypes.
70402         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
70403         gets declared on GNU/Linux.
70404         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
70405         unistd.h, for `rmdir'.
70406         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
70407
70408         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
70409         always true.
70410         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
70411
70412         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
70413
70414 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70415
70416         * gnulib-tool (func_version): Create output all at once.  This
70417         may help avoid triggering unnecessary SIGPIPEs, and at any
70418         rate it doesn't hurt.
70419
70420 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70421             Bruno Haible  <bruno@clisp.org>
70422
70423         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
70424         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
70425         * m4/signed.m4 (bh_C_SIGNED): Likewise.
70426
70427         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
70428         (gl_FUNC_VASPRINTF): Invoke it.
70429
70430 2006-09-22  Bruno Haible  <bruno@clisp.org>
70431
70432         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
70433         getloadavg.c as first argument.
70434
70435 2006-09-22  Bruno Haible  <bruno@clisp.org>
70436
70437         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
70438         at the beginning of the gl_INIT macro.
70439         * modules/getloadavg (configure.ac): Pass $gl_source_base to
70440         gl_GETLOADAVG.
70441
70442 2006-09-22  Bruno Haible  <bruno@clisp.org>
70443
70444         * gnulib-tool (func_create_megatestdir): Don't include the config-h
70445         module.
70446         Suggested by Ralf Wildenhues.
70447
70448 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
70449
70450         Import this patch from libc:
70451
70452         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
70453
70454         * lib/regex_internal.c (re_string_reconstruct): Handle
70455         offset < pstr->valid_raw_len && pstr->offsets_needed case.
70456         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
70457         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
70458         re_string_context_at.
70459
70460         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
70461         now requires it.
70462         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
70463         gl_REGEX now does it for us.
70464         (gl_REGEX): Add test taken from
70465         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
70466
70467         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
70468         Check that large offsets work.  Modernize Autoconf usages.
70469         Prefer "yes" to mean a good thing rather than a bad.
70470         Don't put "#define mkstemp" in config.h, as this might interfere
70471         with standard system headers that "#define mkstemp mkstemp64".
70472
70473         * modules/mkstemp (Depends-on): Add extensions, so that
70474         mkstemp is visible on some platforms.
70475         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
70476         (Include): Change to "mkstemp.h" from <stdlib.h>.
70477         (Files): Add mkstemp.h.
70478
70479         * lib/mkstemp.h: New file, since some standard headers
70480         #define mkstemp.
70481         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
70482         Include "mkstemp.h".
70483         Make the _LIBC code resemble glibc original more,
70484         e.g., use K&R style.
70485         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
70486         (mkstemp): Remove, since mkstemp.h does this for us.
70487         * lib/stdlib--.h: Include mkstemp.h.
70488
70489         Import this patch from libc:
70490
70491         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
70492
70493         * lib/tempname.c (__gen_tempname): Change attempts_min
70494         into a macro.  Use preprocessor to decide how to initialize
70495         attempts [Coverity CID 67].
70496
70497 2006-09-20  Bruno Haible  <bruno@clisp.org>
70498
70499         * lib/mkdtemp.c: Import from libc.
70500         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
70501                 * sysdeps/posix/tempname.c (__gen_tempname): Change
70502                 attempts_min into a macro.  Use preprocessor to decide how to
70503                 initialize attempts [Coverity CID 67].
70504         2001-11-27  Paul Eggert  <eggert@twinsun.com>
70505                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
70506                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
70507
70508 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70509
70510         * gnulib-tool (func_exit): New function, to allow to pass the
70511         exit status portably through the trap.  Use everywhere.
70512         (--help, --version): Signal a write error.
70513         (trap): catch SIGPIPE, for write errors.
70514         Exit at the end of the trap, with the correct exit status.
70515
70516 2006-09-19  Karl Berry  <karl@gnu.org>
70517
70518         * doc/gnulib.texi: note about the license texinfo files.
70519
70520 2006-09-19  Eric Blake  <ebb9@byu.net>
70521
70522         * gnulib-tool: Avoid space-tab.
70523
70524 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
70525
70526         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
70527         that prevented coreutils 6.1 from building.  Problem reported
70528         by Petter Reinholdtsen.
70529
70530 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
70531
70532         * gnulib-tool (avoidlist): Fix typo that broke options like
70533         --avoid=lock that are used by coreutils bootstrap.
70534
70535 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
70536
70537         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
70538         more systematically.
70539
70540 2006-09-18  Jim Meyering  <jim@meyering.net>
70541
70542         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
70543
70544 2006-09-18  Bruno Haible  <bruno@clisp.org>
70545
70546         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
70547
70548 2006-09-18  Bruno Haible  <bruno@clisp.org>
70549
70550         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
70551         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
70552         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
70553         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
70554         * m4/gettext.m4: Require autoconf >= 2.52.
70555         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
70556         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
70557         of gl_cv_header_inttypes_h.
70558
70559 2006-09-18  Bruno Haible  <bruno@clisp.org>
70560
70561         * lib/javaversion.c: Include configmake.h.
70562
70563 2006-09-18  Bruno Haible  <bruno@clisp.org>
70564
70565         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
70566         avoid that the while loops be executed in a subshell.
70567
70568 2006-09-18  Bruno Haible  <bruno@clisp.org>
70569
70570         * MODULES.html.sh (func_module): Break long lines.
70571         Suggested by Bruce Korb <bkorb@gnu.org>.
70572
70573 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70574
70575         Speed up by a factor of 1.12.
70576         * gnulib-tool (nl): New variable.
70577         (func_import): Rewrite include directive extraction to only read each
70578         directive once.
70579
70580 2006-09-17  Bruno Haible  <bruno@clisp.org>
70581
70582         * modules/javaversion (Makefile.am): Remove DEFS setting.
70583         (Depends-on): Add configmake, for PKGDATADIR definition.
70584
70585 2006-09-17  Bruno Haible  <bruno@clisp.org>
70586
70587         * gnulib-tool (func_create_testdir): Rewrite all files at once.
70588
70589 2006-09-17  Bruno Haible  <bruno@clisp.org>
70590
70591         * gnulib-tool (func_append): New function, stolen from libtool.m4.
70592         (func_modules_transitive_closure, func_modules_add_dummy,
70593         func_modules_to_filelist, func_import, func_create_testdir,
70594         func_create_megatestdir, ...): Use it wherever possible.
70595         Suggested by Ralf Wildenhues.
70596
70597 2006-09-16  Karl Berry  <karl@gnu.org>
70598
70599         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
70600         to avoid sectioning errors.
70601         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
70602         [ifinfo]: blank line after @center-ed titles.
70603         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
70604         Spell FSF address consistently with others.
70605         (These changes approved by rms.)
70606
70607 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70608
70609         Speed up by a factor of 1.61.
70610         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
70611         already checked module names again.
70612
70613 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70614
70615         Speed up by a factor of 1.13.
70616         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
70617         for new_files, and the input to func_add_or_update.
70618
70619 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70620
70621         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
70622         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
70623
70624 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
70625
70626         * modules/mkancesdirs (Depends-on): Add fcntl.
70627         * modules/savewd: New file.
70628         * MODULES.html.sh (File system functions): Add savewd.
70629
70630         * modules/configmake (Makefile.am): Add support for the
70631         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
70632
70633 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
70634
70635         * m4/savewd.m4: New file.
70636
70637 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
70638
70639         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
70640         (dirchownmod): New arg FD.  All callers changed.
70641         Use FD rather than opening the directory ourself, as opening is
70642         now the caller's responsibility.
70643         * lib/dirchownmod.h: Likewise.
70644         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
70645         hosts that require <sys/types.h> before <sys/stat.h>.  Include
70646         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
70647         (test_dir): Remove.
70648         (mkancesdirs): Return length of prefix of FILE that has already
70649         been made, or -2 if there is a child doing the work.  Redo
70650         algorithm so that it is O(N) rather than O(N**2).  Optimize away
70651         ".", and treat ".." specially since it might stray back into
70652         already-created areas.  Use a subprocess if necessary.  New arg
70653         WD; all users changed.  MAKE_DIR function should now return 1
70654         if it creates a directory that is not readable.  Return -2 if
70655         a child process is spun off.
70656         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
70657         Adjust signature to match code.
70658         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
70659         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
70660         all users changed.
70661         * lib/savewd.c, lib/savewd.h: New files.
70662
70663 2006-09-15  Jim Meyering  <jim@meyering.net>
70664
70665         * modules/rename-dest-slash: New module.
70666         * MODULES.html.sh (posix_compat): Add it here.
70667
70668         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
70669
70670 2006-09-15  Jim Meyering  <jim@meyering.net>
70671
70672         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
70673         file.
70674
70675         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
70676
70677 2006-09-15  Jim Meyering  <jim@meyering.net>
70678
70679         * lib/rename-dest-slash.c (has_trailing_slash): Use
70680         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
70681         (rpl_rename_dest_slash): Perform the cheaper trailing slash
70682         test before testing whether SRC is a directory.
70683         Suggestions from Bruno Haible.
70684
70685         Avoid a warning about an unused variable.
70686         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
70687         into the #ifdef block where it's used.
70688
70689         * lib/rename-dest-slash.c: New file.
70690
70691 2006-09-14  Bruno Haible  <bruno@clisp.org>
70692
70693         * lib/allocsa.c: Include <config.h> unconditionally.
70694         * lib/asnprintf.c: Likewise.
70695         * lib/asprintf.c: Likewise.
70696         * lib/c-strcasecmp.c: Likewise.
70697         * lib/c-strcasestr.c: Likewise.
70698         * lib/c-strncasecmp.c: Likewise.
70699         * lib/c-strstr.c: Likewise.
70700         * lib/classpath.c: Likewise.
70701         * lib/clean-temp.c: Likewise.
70702         * lib/concatpath.c: Likewise.
70703         * lib/copy-file.c: Likewise.
70704         * lib/csharpcomp.c: Likewise.
70705         * lib/csharpexec.c: Likewise.
70706         * lib/execute.c: Likewise.
70707         * lib/fatal-signal.c: Likewise.
70708         * lib/findprog.c: Likewise.
70709         * lib/fwriteerror.c: Likewise.
70710         * lib/gl_array_list.c: Likewise.
70711         * lib/gl_array_oset.c: Likewise.
70712         * lib/gl_avltree_list.c: Likewise.
70713         * lib/gl_avltree_oset.c: Likewise.
70714         * lib/gl_avltreehash_list.c: Likewise.
70715         * lib/gl_carray_list.c: Likewise.
70716         * lib/gl_linked_list.c: Likewise.
70717         * lib/gl_linkedhash_list.c: Likewise.
70718         * lib/gl_list.c: Likewise.
70719         * lib/gl_oset.c: Likewise.
70720         * lib/gl_rbtree_list.c: Likewise.
70721         * lib/gl_rbtree_oset.c: Likewise.
70722         * lib/gl_rbtreehash_list.c: Likewise.
70723         * lib/imaxabs.c: Likewise.
70724         * lib/imaxdiv.c: Likewise.
70725         * lib/javacomp.c: Likewise.
70726         * lib/javaexec.c: Likewise.
70727         * lib/javaversion.c: Likewise.
70728         * lib/linebreak.c: Likewise.
70729         * lib/localcharset.c: Likewise.
70730         * lib/lock.c: Likewise.
70731         * lib/mbchar.c: Likewise.
70732         * lib/mbswidth.c: Likewise.
70733         * lib/mkdtemp.c: Likewise.
70734         * lib/pipe.c: Likewise.
70735         * lib/printf-args.c: Likewise.
70736         * lib/printf-parse.c: Likewise.
70737         * lib/progname.c: Likewise.
70738         * lib/progreloc.c: Likewise.
70739         * lib/readlink.c: Likewise.
70740         * lib/sh-quote.c: Likewise.
70741         * lib/stpcpy.c: Likewise.
70742         * lib/stpncpy.c: Likewise.
70743         * lib/strcasecmp.c: Likewise.
70744         * lib/strcasestr.c: Likewise.
70745         * lib/strcspn.c: Likewise.
70746         * lib/striconv.c: Likewise.
70747         * lib/strncasecmp.c: Likewise.
70748         * lib/strnlen1.c: Likewise.
70749         * lib/strstr.c: Likewise.
70750         * lib/strtok_r.c: Likewise.
70751         * lib/tls.c: Likewise.
70752         * lib/tmpdir.c: Likewise.
70753         * lib/unicodeio.c: Likewise.
70754         * lib/unsetenv.c: Likewise.
70755         * lib/vasnprintf.c: Likewise.
70756         * lib/vasprintf.c: Likewise.
70757         * lib/wait-process.c: Likewise.
70758         * lib/xallocsa.c: Likewise.
70759         * lib/xsetenv.c: Likewise.
70760         * lib/xstriconv.c: Likewise.
70761
70762 2006-09-13  Simon Josefsson  <jas@extundo.com>
70763
70764         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
70765         that internally, suggested by Ralf Wildenhues
70766         <Ralf.Wildenhues@gmx.de>.
70767
70768 2006-09-13  Simon Josefsson  <jas@extundo.com>
70769
70770         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
70771         @LIBOBJS@.
70772         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70773
70774 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
70775
70776         * lib/_fpending.c: Include <config.h> unconditionally, since we no
70777         longer worry about uses that don't define HAVE_CONFIG_H.
70778         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
70779         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
70780         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
70781         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
70782         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
70783         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
70784         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
70785         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
70786         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
70787         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
70788         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
70789         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
70790         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
70791         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
70792         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
70793         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
70794         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
70795         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
70796         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
70797         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
70798         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
70799         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
70800         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
70801         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
70802         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
70803         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
70804         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
70805         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
70806         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
70807         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
70808         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
70809         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
70810         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
70811         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
70812         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
70813         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
70814         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
70815         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
70816         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
70817         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
70818         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
70819         Likewise.
70820
70821 2006-09-13  Eric Blake  <ebb9@byu.net>
70822
70823         * lib/getopt.c: Fix typo in last commit.
70824
70825 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
70826
70827         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
70828         dgettext.
70829
70830 2006-09-12  Jim Meyering  <jim@meyering.net>
70831
70832         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
70833         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
70834         Reported by Nelson H. F. Beebe.
70835
70836 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
70837
70838         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
70839         program_invocation_name and program_invocation_short_name are
70840         initialized.
70841         * lib/argp-namefrob.h: Move declarations of program_invocation_name
70842         and program_invocation_short_name to argp.h, so they are visible
70843         to user programs.
70844         * lib/argp.h: Likewise
70845
70846 2006-09-10  Bruno Haible  <bruno@clisp.org>
70847
70848         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
70849         m4/inttypes_h.m4, m4/uintmax_t.m4.
70850
70851 2006-09-10  Bruno Haible  <bruno@clisp.org>
70852
70853         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
70854         gl_AC_TYPE_UINTMAX_T.
70855
70856 2006-09-10  Bruno Haible  <bruno@clisp.org>
70857
70858         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
70859
70860 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70861
70862         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
70863         convention.  Text proposed by Bruno Haible.
70864         (struct argp_option): Document the use of N_() wrappers.
70865
70866         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
70867         '\v', and translate the two parts separately, instead of feeding
70868         the whole string to gettext.  This allows to exclude
70869         '\v' from the strings visible to the translator by writing doc
70870         strings as N_("..") "\v" N_("..").
70871
70872 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
70873
70874         * config/srclist.txt: Undo latest change; the bug was fixed.
70875
70876 2006-09-09  Bruno Haible  <bruno@clisp.org>
70877
70878         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
70879         assignments if building a library without libtool.
70880         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
70881         in func_emit_lib_Makefile_am.
70882         (func_import): When building a static library libfoo.a, arrange to
70883         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
70884         (func_create_testdir): Likewise.
70885         * modules/gc (configure.ac, Makefile.am): If building statically,
70886         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
70887         * modules/iconvme (configure.ac, Makefile.am): Likewise.
70888         * modules/striconv (configure.ac, Makefile.am): Likewise.
70889         Based on a suggestion by Ralf Wildenhues.
70890
70891 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70892
70893         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
70894         Check for unistd.h too, since Autoconf doesn't assume POSIX.
70895         Also:
70896
70897         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70898         Add year_2050_test to catch glibc bug 2821
70899         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
70900
70901         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70902         Prefer #ifdef to #if.
70903
70904         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
70905         Return from 'main' instead of calling 'exit'.
70906
70907 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70908
70909         * lib/mktime.c (guess_time_tm): Fix bug where mktime
70910         returned the maximum time_t value rather than (time_t) -1.
70911         Problem originally reported by William Bardwell
70912         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
70913
70914         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
70915         Moved to here ...
70916         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
70917         ... from here.
70918
70919 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70920
70921         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
70922         2821 is fixed.
70923
70924 2006-09-08  Jim Meyering  <jim@meyering.net>
70925
70926         Don't make generated files read-only.  That would bother too many
70927         people.  However, do retain the ability to work when targets are
70928         read-only: remove the destination and temporary files before writing
70929         them (when generated via sed or echo), or by using the -f option for
70930         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
70931         * modules/alloca-opt, modules/argz, modules/arpa_inet:
70932         * modules/byteswap, modules/configmake, modules/fcntl:
70933         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
70934         * modules/localcharset, modules/netinet_in, modules/poll:
70935         * modules/stdbool, modules/stdint, modules/sys_select:
70936         * modules/sys_socket, modules/sys_stat, modules/sysexits:
70937
70938 2006-09-08  Jim Meyering  <jim@meyering.net>
70939
70940         Avoid new build failure on FreeBSD 6.0.
70941         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
70942         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
70943         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
70944
70945 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70946
70947         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
70948
70949 2006-09-07  Jim Meyering  <jim@meyering.net>
70950
70951         Fix global typo in last change: use chmod u-w, not chmod u-x.
70952         Spotted by Paul Eggert and Bruce Korb.
70953         * modules/alloca-opt, modules/argz, modules/arpa_inet:
70954         * modules/byteswap, modules/configmake, modules/fcntl:
70955         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
70956         * modules/localcharset, modules/netinet_in, modules/poll:
70957         * modules/stdbool, modules/stdint, modules/sys_select:
70958         * modules/sys_socket, modules/sys_stat, modules/sysexits:
70959
70960 2006-09-06  Jim Meyering  <jim@meyering.net>
70961
70962         Make generated files be read-only.
70963         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
70964         Ensure that each generated file is now read-only.
70965         * modules/argz: Likewise.
70966         * modules/arpa_inet: Likewise.
70967         * modules/byteswap: Likewise.
70968         * modules/configmake: Likewise.
70969         * modules/fcntl: Likewise.
70970         * modules/fnmatch: Likewise.
70971         * modules/getopt: Likewise.
70972         * modules/glob: Likewise.
70973         * modules/inttypes: Likewise.
70974         * modules/netinet_in: Likewise.
70975         * modules/poll: Likewise.
70976         * modules/stdbool: Likewise.
70977         * modules/stdint: Likewise.
70978         * modules/sys_select: Likewise.
70979         * modules/sys_socket: Likewise.
70980         * modules/sys_stat: Likewise.
70981         * modules/sysexits: Likewise.
70982         * modules/localcharset: Same as above, but continue using temporary
70983         file named "t-$@" (why different?) rather than the "$@-t" used
70984         everywhere else.
70985
70986         * modules/sysexits (Makefile.am): Replace literal occurrences
70987         of "sysexit.h" more readable, and more consistent, "$@".
70988
70989 2006-09-06  Bruno Haible  <bruno@clisp.org>
70990
70991         * modules/striconv: New file.
70992         * modules/xstriconv: New file.
70993         * MODULES.html.sh (Internationalization functions): Add striconv,
70994         xstriconv.
70995
70996 2006-09-06  Bruno Haible  <bruno@clisp.org>
70997
70998         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
70999         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
71000         not using libtool correctly.
71001
71002 2006-09-06  Bruno Haible  <bruno@clisp.org>
71003
71004         * lib/striconv.h: New file.
71005         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
71006         iconvstring.c.
71007         * lib/xstriconv.h: New file.
71008         * lib/xstriconv.c: New file.
71009
71010 2006-09-06  Bruno Haible  <bruno@clisp.org>
71011
71012         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
71013         lib_..._LDFLAGS.
71014
71015 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71016
71017         * lib/argz_.h: Sync from Libtool.
71018
71019         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
71020                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
71021
71022         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
71023
71024 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
71025
71026         * modules/trim: New file.
71027
71028 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
71029
71030         * lib/trim.h: New file.
71031         * lib/trim.c: New file.
71032
71033 2006-09-05  Bruno Haible  <bruno@clisp.org>
71034
71035         * MODULES.html.sh (String handling): Add trim.
71036
71037 2006-09-04  Karl Berry  <karl@gnu.org>
71038
71039         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
71040         until next release.
71041
71042 2006-09-03  Bruno Haible  <bruno@clisp.org>
71043
71044         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
71045         correctly.
71046
71047 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71048
71049         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
71050         not gl_GETLOADAVG.  Omit unneeded semicolons.
71051         Problems reported by Ralf Wildenhues in
71052         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
71053         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
71054         at the end, which is the usual gnulib style.
71055
71056         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
71057         of doing all the work ourselves.
71058         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
71059         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
71060
71061 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71062
71063         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
71064         Problem reported by Ralf Wildenhues in
71065         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
71066
71067         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
71068         HAVE_STRUCT_STATFS_F_FSTYPENAME.
71069
71070 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71071
71072         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
71073         yesterday's patch by changing test -n to test -z.
71074
71075 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71076
71077         * modules/getloadavg (Files): Add m4/getloadavg.m4.
71078         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
71079         the former is now obsolescent.
71080
71081         * modules/chdir-long (Depends-on): Add fcntl.
71082
71083 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71084
71085         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
71086         obsolescent, and programs should use gnulib instead.
71087         * m4/getloadavg.m4: New file, with contents taken from Autoconf
71088         but with prefixes changed.
71089
71090 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71091
71092         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
71093         or stdbool.h, because they might not exist while configuring.
71094
71095         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
71096         Don't include unistd.h or limits.h; not needed, since chdir-long.h
71097         does that for us.
71098         (O_DIRECTORY): Remove.
71099
71100 2006-08-31  Eric Blake  <ebb9@byu.net>
71101
71102         * gnulib-tool: Don't let emacs change spaces to TAB.
71103
71104 2006-08-31  Bruno Haible  <bruno@clisp.org>
71105
71106         * gnulib-tool: When calling func_import more than once, do it in a
71107         subshell.
71108         Reported by Eric Blake <ebb9@byu.net>.
71109
71110 2006-08-31  Bruno Haible  <bruno@clisp.org>
71111
71112         * gnulib-tool (nl): Remove variable.
71113         (sed_transform_lib_file): Use more robust test for config-h module.
71114         (func_import): Fix typo in 2006-08-25 patch.
71115
71116 2006-08-31  Bruno Haible  <bruno@clisp.org>
71117
71118         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
71119         specified, augment Makefile.am variables instead of assigning them.
71120
71121 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
71122
71123         Work around a bug in both the Linux and SunOS 64-bit kernels:
71124         nanosleep mishandles sleeps for longer than 2**31 seconds.
71125         Problem reported by Frank v Waveren in
71126         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
71127         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
71128         Check for nanosleep bug.
71129         (LIB_NANOSLEEP): Append clock_gettime library if needed.
71130
71131 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
71132
71133         Work around a bug in both the Linux and SunOS 64-bit kernels:
71134         nanosleep mishandles sleeps for longer than 2**31 seconds.
71135         Problem reported by Frank v Waveren in
71136         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
71137         * lib/nanosleep.c (BILLION): New constant.
71138         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
71139         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
71140         implementation.
71141
71142 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
71143
71144         * modules/nanosleep (Depends-on): Add gettime.
71145
71146 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
71147         and Simon Josefsson  <jas@extundo.com>
71148         and Oskar Liljeblad  <oskar@osk.mine.nu>
71149
71150         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
71151         * gnulib-tool (func_import): New license type 'unmodifiable license
71152         text'.
71153         * modules/fdl: Use it.  Longer description.
71154         * module/gpl, module/lgpl: New files.
71155
71156 2006-08-30  Jim Meyering  <jim@meyering.net>
71157
71158         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
71159         shadowing the parameter.
71160
71161 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71162
71163         Sync from Libtool:
71164
71165         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71166
71167         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
71168         sharing with gnulib.  Report by Eric Blake.
71169
71170 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
71171
71172         * modules/isapipe: New file.
71173         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
71174
71175 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
71176
71177         * modules/configmake (Makefile.am): Add a comment, and omit
71178         the CONFIGMAKE_ prefix from generated macro names.  Suggested
71179         by Bruno Haible.
71180
71181 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
71182
71183         * m4/isapipe.m4: New file.
71184
71185 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
71186
71187         * lib/isapipe.c, lib/isapipe.h: New files.
71188
71189 2006-08-29  Jim Meyering  <jim@meyering.net>
71190
71191         * modules/configmake (Makefile.am): Make configmake.h depend on
71192         Makefile.  Otherwise, a stale configmake.h could hang around.
71193
71194 2006-08-29  Eric Blake  <ebb9@byu.net>
71195
71196         * lib/error.c (error_at_line, print_errno_message): Match libc, after
71197         resolution of upstream bug 3044.
71198
71199 2006-08-29  Bruno Haible  <bruno@clisp.org>
71200
71201         * modules/localcharset (Depends-on): Add configmake.
71202         (Makefile.am): Remove setting of LIBDIR through DEFS.
71203
71204 2006-08-29  Bruno Haible  <bruno@clisp.org>
71205
71206         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
71207         defined.
71208
71209 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
71210
71211         * modules/fcntl: New file.
71212         * modules/chdir-safer (Depends-on): Add fcntl.
71213         * modules/fts: Likewise.
71214         * modules/mkdir-p: Likewise.
71215
71216         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
71217         This undoes the most recent change, since we're now addressing the
71218         problem in a different way.
71219
71220         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
71221         into output, since the output might be called Makefile.am even
71222         if $makefile_name is something different.
71223         (func_import): Use $makefile_am rather than
71224         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
71225         empty.
71226
71227         * modules/inttypes (Files): Add m4/inttypes-h.m4.
71228
71229 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
71230
71231         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
71232         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
71233         recent change to stdint.m4, since we're now addressing the problem in a
71234         different way.
71235
71236 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
71237
71238         * m4/fcntl_h.m4: New file.
71239
71240 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
71241
71242         * lib/fcntl_.h: New file.
71243         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
71244         the fcntl module.
71245         * lib/dirchownmod.c: Likewise.
71246         * lib/fts.c: Likewise.
71247
71248         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
71249         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
71250         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
71251         just before including <inttypes.h>, to avoid circular inclusion.
71252
71253 2006-08-28  Jim Meyering  <jim@meyering.net>
71254
71255         * doc/visibility.texi: Actually read and correct the grammar of the
71256         sentence affected by yesterday's change.
71257
71258 2006-08-28  Eric Blake  <ebb9@byu.net>
71259
71260         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
71261         needs wrapper.
71262
71263 2006-08-28  Eric Blake  <ebb9@byu.net>
71264
71265         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
71266
71267 2006-08-28  Eric Blake  <ebb9@byu.net>
71268
71269         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
71270
71271 2006-08-28  Bruno Haible  <bruno@clisp.org>
71272
71273         * modules/c-strstr: New file, from GNU gettext.
71274         * MODULES.html.sh (String handling): Add c-strstr.
71275
71276 2006-08-28  Bruno Haible  <bruno@clisp.org>
71277
71278         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
71279         macros.
71280         Reported by Eric Blake.
71281
71282 2006-08-28  Bruno Haible  <bruno@clisp.org>
71283
71284         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
71285         (VASNPRINTF): Return a string of length > INT_MAX without failing.
71286         * lib/vasprintf.c: Include errno.h, limits.h.
71287         (EOVERFLOW): New fallback definition.
71288         (vasprintf): Test here whether the string length is > INT_MAX.
71289         * lib/vsnprintf.c: Include errno.h, limits.h.
71290         (EOVERFLOW): New fallback definition.
71291         (vsnprintf): Fix bug when generated string was too long for the buffer.
71292         Test here whether the string length is > INT_MAX.
71293
71294 2006-08-28  Bruno Haible  <bruno@clisp.org>
71295
71296         * lib/inttypes_.h (SCNX*): Remove definitions.
71297         Reported by Eric Blake.
71298
71299 2006-08-28  Bruno Haible  <bruno@clisp.org>
71300
71301         * lib/c-strstr.h: New file, from GNU gettext.
71302         * lib/c-strstr.c: New file, from GNU gettext.
71303
71304 2006-08-28  Bruno Haible  <bruno@clisp.org>
71305
71306         * gnulib-tool: Reorder some statements.
71307
71308 2006-08-28  Bruno Haible  <bruno@clisp.org>
71309
71310         * gnulib-tool: New option --makefile-name.
71311         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
71312         $makefile_name.
71313         (func_import): Write $makefile_name to the cache file, and read it from
71314         there unless explicitly specified. Use $makefile_name as file name
71315         instead of Makefile.am. Adjust the recommendations accordingly.
71316
71317 2006-08-28  Bruno Haible  <bruno@clisp.org>
71318
71319         * gnulib-tool (func_verify_module): Check against misapplying patch.
71320
71321 2006-08-28  Bruno Haible  <bruno@clisp.org>
71322
71323         * gnulib-tool (func_relativize, func_relconcat): New functions.
71324         Give an error if --local-dir is given with --update.
71325         Remove trailing slashes from $local_gnulib_dir.
71326         (func_import): Store the relativized $local_gnulib_dir in
71327         gnulib-cache.m4, and read it from there if not specified explicitly.
71328
71329 2006-08-28  Bruno Haible  <bruno@clisp.org>
71330
71331         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
71332         is the current directory. Respect also $local_gnulib_dir.
71333
71334 2006-08-28  Bruno Haible  <bruno@clisp.org>
71335             Simon Josefsson  <jas@extundo.com>
71336
71337         BeOS portability.
71338         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
71339
71340 2006-08-27  Jim Meyering  <jim@meyering.net>
71341
71342         * doc/visibility.texi: Remove duplicate word: "pointer".
71343
71344 2006-08-26  Bruno Haible  <bruno@clisp.org>
71345
71346         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
71347         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
71348         (Makefile.am): Create inttypes.h from inttypes_.h.
71349         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
71350
71351         * modules/imaxabs: New file.
71352
71353         * modules/imaxdiv: New file.
71354
71355 2006-08-26  Bruno Haible  <bruno@clisp.org>
71356
71357         * m4/inttypes.m4: New file.
71358         * m4/_inttypes_h.m4: Remove file.
71359         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
71360         PRI_MACROS_BROKEN.
71361         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
71362
71363         * m4/imaxabs.m4: New file.
71364
71365         * m4/imaxdiv.m4: New file.
71366
71367 2006-08-26  Bruno Haible  <bruno@clisp.org>
71368
71369         * lib/inttypes_.h: New file.
71370         * lib/inttypes.h: Remove file.
71371         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
71372
71373         * lib/imaxabs.c: New file.
71374
71375         * lib/imaxdiv.c: New file.
71376
71377 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71378
71379         New config-h module, so that "make" output needn't be cluttered
71380         by -DHAVE_CONFIG_H.
71381         * MODULES.html.sh (Support for building libraries and executables):
71382         Add config-h.
71383         * modules/config-h: New file.
71384         * gnulib-tool (nl, sed_transform_lib_file): New vars.
71385         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
71386         the config-h module is used.
71387
71388         New configmake module, so that "make" output needn't be cluttered
71389         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
71390         * MODULES.html.sh (Support for building libraries and executables):
71391         Add configmake.
71392         * modules/configmake: New file.
71393
71394 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71395
71396         * m4/config-h.m4: New file.
71397
71398 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
71399
71400         * config/srclist.txt: Add elisp-comp.
71401
71402 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
71403
71404         * MODULES.html.sh (Support for building libraries and executables):
71405         Add elisp-comp.
71406         * build-aux/elisp-comp: New file.
71407         * modules/elisp-comp: New file.
71408
71409 2006-08-24  Bruno Haible  <bruno@clisp.org>
71410
71411         * gnulib-tool (func_create_testdir): Use non-default values of
71412         sourcebase and m4base.
71413
71414 2006-08-24  Bruno Haible  <bruno@clisp.org>
71415
71416         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
71417         HTML structure.
71418
71419 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
71420
71421         * modules/openat (Depends-on): Add lchown.
71422
71423 2006-08-23  Bruno Haible  <bruno@clisp.org>
71424
71425         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
71426         of gl_LOCK_EARLY instead of gl_LOCK.
71427
71428 2006-08-23  Bruno Haible  <bruno@clisp.org>
71429
71430         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
71431         on OSF/1 to no.
71432         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
71433
71434 2006-08-23  Bruno Haible  <bruno@clisp.org>
71435
71436         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
71437         as unusable.
71438
71439         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
71440         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
71441         (gl_LOCK): New macro.
71442
71443 2006-08-22  Simon Josefsson  <jas@extundo.com>
71444
71445         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
71446         to md5 module.
71447
71448 2006-08-22  Simon Josefsson  <jas@extundo.com>
71449
71450         * MODULES.html.sh: Add "Support for maintaining and release
71451         projects".
71452
71453         * build-aux/gnupload: New file, from coreutils.
71454
71455 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
71456
71457         Avoid the need for AC_LIBSOURCES in m4 macros.
71458         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
71459         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
71460         * modules/check-version (EXTRA_DIST): Add check-version.h.
71461         * modules/crc (EXTRA_DIST): Add crc.h.
71462         * modules/des (EXTRA_DIST): Add des.h.
71463         * modules/gc (EXTRA_DIST): Add gc.h.
71464         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
71465         * modules/getline (EXTRA_DIST): Add getline.h.
71466         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
71467         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
71468         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
71469         * modules/md2 (EXTRA_DIST): Add md2.h.
71470         * modules/md4 (EXTRA_DIST): Add md4.h.
71471         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
71472         * modules/read-file (EXTRA_DIST): Add read-file.h.
71473         * modules/readline (EXTRA_DIST): Add readline.h.
71474         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
71475         rijndael-api-fst.h.
71476
71477 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
71478
71479         * m4/rijndael.m4 (gl_ARCFOUR):
71480         * m4/arctwo.m4 (gl_ARCTWO):
71481         * m4/check-version.m4 (gl_CHECK_VERSION):
71482         * m4/crc.m4 (gl_CRC):
71483         * m4/des.m4 (gl_DES):
71484         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
71485         * m4/gc.m4 (gl_GC):
71486         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
71487         * m4/getline.m4 (gl_FUNC_GETLINE):
71488         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
71489         * m4/hmac-md5.m4 (gl_HMAC_MD5):
71490         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
71491         * m4/md2.m4 (gl_MD2):
71492         * m4/md4.m4 (gl_MD4):
71493         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
71494         * m4/read-file.m4 (gl_FUNC_READ_FILE):
71495         * m4/readline.m4 (gl_FUNC_READLINE):
71496         * m4/rijndael.m4 (gl_RIJNDAEL):
71497         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
71498         to get the necessary .h files and whatnot.
71499
71500 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
71501
71502         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
71503         gnulib rather than the other way around.
71504         * config/srclistvars.sh (COREUTILS): Remove.
71505
71506 2006-08-22  Jim Meyering  <jim@meyering.net>
71507
71508         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
71509
71510         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
71511
71512 2006-08-22  Eric Blake  <ebb9@byu.net>
71513
71514         * modules/regexprops-generic: New file.
71515         * MODULES.html.sh (Support for building documentation): List it.
71516
71517 2006-08-22  Eric Blake  <ebb9@byu.net>
71518
71519         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
71520         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
71521         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
71522         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
71523
71524 2006-08-22  Bruno Haible  <bruno@clisp.org>
71525
71526         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
71527         and lib_LTLIBRARIES like the other lib_* variables.
71528
71529 2006-08-22  Bruno Haible  <bruno@clisp.org>
71530
71531         * build-aux/x-to-1.in: New file, from GNU gettext.
71532
71533 2006-08-22  Bruno Haible  <bruno@clisp.org>
71534
71535         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
71536         <utmpx.h> exists.
71537
71538 2006-08-22  Bruno Haible  <bruno@clisp.org>
71539
71540         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
71541         <utmpx.h> exists.
71542
71543 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
71544
71545         BeOS portability.
71546         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
71547         exist.
71548         Problem reported by Bruno Haible.
71549
71550 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
71551
71552         Avoid the need for AC_LIBSOURCES in m4 macros.
71553         * modules/acl (EXTRA_DIST): Add acl.h.
71554         * modules/argmatch (Files): Add m4/argmatch.m4.
71555         (configure.ac): Add gl_ARGMATCH.
71556         (EXTRA_DIST): Renamed from lib_SOURCES, for
71557         consistency with the other modules.  Remove argmatch.c.
71558         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
71559         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
71560         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
71561         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
71562         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
71563         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
71564         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
71565         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
71566         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
71567         * modules/closeout (EXTRA_DIST): Add closeout.h.
71568         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
71569         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
71570         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
71571         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
71572         dirname.h; remove basename.c and stripslash.c.
71573         * modules/exclude (EXTRA_DIST): Add exclude.h.
71574         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
71575         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
71576         * modules/file-type (EXTRA_DIST): Add file-type.h.
71577         * modules/filemode (EXTRA_DIST): Add filemode.h.
71578         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
71579         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
71580         * modules/fpending (EXTRA_DIST): Add __fpending.h.
71581         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
71582         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
71583         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
71584         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
71585         * modules/getdate (EXTRA_DIST): Add getdate.c.
71586         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
71587         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
71588         * modules/getpass (EXTRA_DIST): Add getpass.h.
71589         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
71590         * modules/group-member (EXTRA_DIST): Add group-member.h.
71591         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
71592         * modules/hash (EXTRA_DIST): Add hash.h.
71593         * modules/human (EXTRA_DIST): Add human.h.
71594         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
71595         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
71596         * modules/lchown (EXTRA_DIST): Add lchown.h.
71597         * modules/long-options (EXTRA_DIST): Add long-options.h.
71598         * modules/lstat (EXTRA_DIST): Add lstat.h.
71599         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
71600         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
71601         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
71602         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
71603         * modules/memxor (EXTRA_DIST): Add memxor.h.
71604         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
71605         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
71606         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
71607         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
71608         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
71609         * modules/physmem (EXTRA_DIST): Add physmem.h.
71610         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
71611         * modules/posixver (EXTRA_DIST): Add posixver.h.
71612         * modules/quote (EXTRA_DIST): Add quote.h.
71613         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
71614         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
71615         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
71616         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
71617         regex_internal.h regexec.c.
71618         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
71619         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
71620         * modules/same (EXTRA_DIST): Add same.h.
71621         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
71622         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
71623         * modules/savedir (EXTRA_DIST): Add savedir.h.
71624         * modules/sha1 (EXTRA_DIST): Add sha1.h.
71625         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
71626         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
71627         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
71628         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
71629         * modules/strdup (EXTRA_DIST): Add strdup.h.
71630         * modules/strftime (EXTRA_DIST): Add strftime.h.
71631         * modules/strndup (EXTRA_DIST): Add strndup.h.
71632         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
71633         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
71634         * modules/time_r (EXTRA_DIST): Add time_r.h.
71635         * modules/timespec (EXTRA_DIST): Add timespec.h.
71636         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
71637         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
71638         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
71639         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
71640         * modules/userspec (EXTRA_DIST): Add userspec.h.
71641         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
71642         * modules/utimens (EXTRA_DIST): Add utimens.h.
71643         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
71644         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
71645         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
71646         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
71647         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
71648         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
71649         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
71650         * modules/yesno (EXTRA_DIST): Add yesno.h.
71651
71652 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
71653
71654         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
71655
71656         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
71657         * m4/dev-ino.m4, same-inode.m4: Remove.
71658
71659         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
71660         * m4/acl.m4 (AC_FUNC_ACL):
71661         * m4/backupfile.m4 (gl_BACKUPFILE):
71662         * m4/c-strtod.m4 (gl_C99_STRTOLD):
71663         * m4/canon-host.m4 (gl_CANON_HOST):
71664         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
71665         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
71666         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
71667         * m4/cloexec.m4 (gl_CLOEXEC):
71668         * m4/close-stream.m4 (gl_CLOSE_STREAM):
71669         * m4/closeout.m4 (gl_CLOSEOUT):
71670         * m4/dirfd.m4 (gl_FUNC_DIRFD):
71671         * m4/dirname.m4 (gl_DIRNAME):
71672         * m4/exclude.m4 (gl_EXCLUDE):
71673         * m4/exitfail.m4 (gl_EXITFAIL):
71674         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
71675         * m4/file-type.m4 (gl_FILE_TYPE):
71676         * m4/filemode.m4 (gl_FILEMODE):
71677         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
71678         * m4/fpending.m4 (gl_FUNC_FPENDING):
71679         * m4/fprintftime.m4 (gl_FPRINTFTIME):
71680         * m4/fts.m4 (gl_FUNC_FTS):
71681         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
71682         * m4/getdate.m4 (gl_GETDATE):
71683         * m4/gethrxtime.m4 (gl_GETHRXTIME):
71684         * m4/getpagesize.m4 (gl_GETPAGESIZE):
71685         * m4/getpass.m4 (gl_FUNC_GETPASS):
71686         * m4/gettime.m4 (gl_GETTIME):
71687         * m4/getugroups.m4 (gl_GETUGROUPS):
71688         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
71689         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
71690         * m4/hard-locale.m4 (gl_HARD_LOCALE):
71691         * m4/hash.m4 (gl_HASH):
71692         * m4/idcache.m4 (gl_IDCACHE):
71693         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
71694         * m4/lchown.m4 (gl_FUNC_LCHOWN):
71695         * m4/long-options.m4 (gl_LONG_OPTIONS):
71696         * m4/lstat.m4 (gl_FUNC_LSTAT):
71697         * m4/md5.m4 (gl_MD5):
71698         * m4/memcasecmp.m4 (gl_MEMCASECMP):
71699         * m4/memcoll.m4 (gl_MEMCOLL):
71700         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
71701         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
71702         * m4/memxor.m4 (gl_MEMXOR):
71703         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
71704         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
71705         * m4/modechange.m4 (gl_MODECHANGE):
71706         * m4/mountlist.m4 (gl_MOUNTLIST):
71707         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
71708         * m4/openat.m4 (gl_FUNC_OPENAT):
71709         * m4/pathmax.m4 (gl_PATHMAX):
71710         * m4/physmem.m4 (gl_PHYSMEM):
71711         * m4/posixtm.m4 (gl_POSIXTM):
71712         * m4/posixver.m4 (gl_POSIXVER):
71713         * m4/quote.m4 (gl_QUOTE):
71714         * m4/quotearg.m4 (gl_QUOTEARG):
71715         * m4/readtokens.m4 (gl_READTOKENS):
71716         * m4/readutmp.m4 (gl_READUTMP):
71717         * m4/regex.m4 (gl_REGEX):
71718         * m4/safe-read.m4 (gl_SAFE_READ):
71719         * m4/safe-write.m4 (gl_SAFE_WRITE):
71720         * m4/same.m4 (gl_SAME):
71721         * m4/save-cwd.m4 (gl_SAVE_CWD):
71722         * m4/savedir.m4 (gl_SAVEDIR):
71723         * m4/settime.m4 (gl_SETTIME):
71724         * m4/sha1.m4 (gl_SHA1):
71725         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
71726         * m4/stat-macros.m4 (gl_STAT_MACROS):
71727         * m4/stat-time.m4 (gl_STAT_TIME):
71728         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
71729         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
71730         * m4/strdup.m4 (gl_FUNC_STRDUP):
71731         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
71732         * m4/strndup.m4 (gl_FUNC_STRNDUP):
71733         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
71734         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
71735         * m4/time_r.m4 (gl_TIME_R):
71736         * m4/timespec.m4 (gl_TIMESPEC):
71737         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
71738         * m4/unlinkdir.m4 (gl_UNLINKDIR):
71739         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
71740         * m4/userspec.m4 (gl_USERSPEC):
71741         * m4/utimecmp.m4 (gl_UTIMECMP):
71742         * m4/utimens.m4 (gl_UTIMENS):
71743         * m4/xalloc.m4 (gl_XALLOC):
71744         * m4/xgetcwd.m4 (gl_XGETCWD):
71745         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
71746         * m4/xreadlink.m4 (gl_XREADLINK):
71747         * m4/xstrtod.m4 (gl_XSTRTOD):
71748         * m4/yesno.m4 (gl_YESNO):
71749         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
71750         to get the necessary .h files and whatnot.
71751
71752 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
71753             Bruno Haible  <bruno@clisp.org>
71754
71755         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
71756         /bin/sh understanding of '!' conditional negation.
71757
71758 2006-08-21  Jim Meyering  <jim@meyering.net>
71759
71760         * modules/openat (Depends-on): Really alphabetize.
71761
71762         * modules/acl (Depends-on): Add error and quote.
71763
71764         * check-module (find_included_lib_files): Add at-func.c to the
71765         ok-to-include-more-than-once white list.
71766
71767         * modules/openat (Depends-on): Add lstat.  Alphabetize.
71768
71769 2006-08-21  Bruno Haible  <bruno@clisp.org>
71770
71771         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71772         Emit a pkgdata_DATA variable only if some snippets add contents to it.
71773         Reported by Martin Lambers <marlam@marlam.de>.
71774
71775 2006-08-21  Bruno Haible  <bruno@clisp.org>
71776
71777         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
71778         specify an installation location, don't emit a noinst_LIBRARIES or
71779         noinst_LTLIBRARIES assignment.
71780
71781 2006-08-21  Bruno Haible  <bruno@clisp.org>
71782
71783         BeOS portability.
71784         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
71785         BeOS has mbrtowc() but no <wctype.h>.
71786
71787 2006-08-21  Bruno Haible  <bruno@clisp.org>
71788
71789         BeOS portability.
71790         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
71791         exist.
71792
71793 2006-08-21  Bruno Haible  <bruno@clisp.org>
71794
71795         BeOS portability.
71796         * lib/mbchar.h: Include <wctype.h> only if it exists.
71797
71798 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
71799
71800         Remove files that are no longer needed by their respective modules.
71801         * m4/obstack.m4: Remove.
71802         * m4/strerror_r.m4: Remove.
71803         * m4/uint32_t.m4: Remove.
71804         * m4/uintptr_t.m4: Remove.
71805         * m4/ullong_max.m4: Remove.
71806         * m4/xstrtoimax.m4: Remove.
71807         * m4/xstrtoumax.m4: Remove.
71808
71809         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
71810         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
71811         dependencies now capture this.
71812
71813         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
71814         Do not use AC_LIBSOURCES, since gnulib modules now do this.
71815         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
71816         * m4/human.m4 (gl_HUMAN): Likewise.
71817         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
71818         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
71819
71820         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
71821
71822         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
71823         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
71824         stdint.
71825         * m4/human.m4 (gl_HUMAN): Likewise.
71826         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
71827         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
71828         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
71829         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
71830         * m4/xstrtol (gl_XSTRTOL): Likewise.
71831
71832         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
71833         AC_TYPE_LONG_LONG_INT.
71834         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
71835         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
71836         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
71837         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
71838
71839         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
71840         on stdbool.
71841
71842         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
71843         (gl_PREREQ_XSTRTOUL): Remove.
71844
71845         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
71846
71847         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
71848         mode.
71849
71850 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
71851
71852         Add and change modules to make it easier for coreutils to use
71853         gnulib-tool.
71854         * modules/backupfile (Files): Remove m4/d-ino.m4.
71855         (Depends-on): Add d-ino.
71856         * modules/cycle-check (Depends-on): Add stdint.
71857         (lib_SOURCES): Add cycle-check.h.
71858         * modules/d-ino: New module.
71859         * modules/d-type: New module.
71860         * modules/error (Files): Remove m4/strerror_r.m4.
71861         * modules/filemode (Files): Add m4/st_dm_mode.m4.
71862         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
71863         m4/inttypes_h.m4, m4/uintmax_t.m4.
71864         (Depends-on): Add stdint.
71865         (lib_SOURCES): Add fsusage.h.
71866         * modules/getcwd (Files): Remove d-ino.m4.
71867         (Depends-on): Add d-ino.
71868         * modules/getndelim2 (Depends-on): Add stdint.
71869         * modules/glob (Files): Remove m4/d-type.m4.
71870         (Depends-on): Add d-type.
71871         * modules/host-os: New module.
71872         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
71873         m4/inttypes_h.m4, m4/uintmax_t.m4.
71874         * Depends-on: Add stdint.
71875         (lib_SOURCES): Add human.h.
71876         * modules/inttostr (Files): Remove m4/intmax_t.m4,
71877         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
71878         m4/uintmax_t.m4, m4/ulonglong.m4.
71879         (Depends-on): Add stdint.
71880         (EXTRA_DIST): Add inttostr.h.
71881         * modules/lchmod: New module.
71882         * modules/link-follow: New module.
71883         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
71884         (Depends-on): Add lchmod.
71885         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
71886         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
71887         (Depends-on): Add stdint.
71888         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
71889         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
71890         (Depends-on): Add stdint.
71891         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
71892         * modules/perl: New module.
71893         * modules/regex (Depends-on): Add stdint.
71894         * modules/rmdir-errno: New module.
71895         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
71896         m4/intmax_t.m4.
71897         (Depends-on): Add stdint.
71898         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
71899         m4/uintmax_t.m4.
71900         (Depends-on): Add stdint.
71901         * modules/unlink-busy: New module.
71902         * modules/utimecmp (Depends-on): Add stdint.
71903         * modules/uptime: New module.
71904         * modules/winsz-ioctl: New module.
71905         * modules/winsz-termios: New module.
71906         * modules/xnanosleep (Depends-on): Add nanosleep.
71907         * modules/ullong_max: Remove.
71908         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
71909         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
71910         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
71911         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
71912         (Depends-on): Add inttypes.
71913         (lib_SOURCES): Add xstrtol.h.
71914         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
71915         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
71916         * MODULES.html.sh: Move 'assert' into the assert section.
71917         Move 'dummy' into the linking section.
71918         Remove ullong_max.
71919         Add section for compatibility checks for POSIX:2001 functions,
71920         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
71921         winsz-ioctl, and winsz-termios into it.
71922         Add lchmod.
71923         Add top-level Misc section and put host-os, perl, and uptime
71924         into it.
71925
71926 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
71927
71928         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
71929         now assume the stdint module.  Do not include inttypes.h.
71930         * lib/fsusage.h: Likewise.
71931         * lib/getndelim2.c: Likewise.
71932         * lib/human.h: Likewise.
71933         * lib/inttostr.h: Likewise.
71934         * lib/obstack.c: Likewise.
71935         * lib/regex_internal.h: Likewise.
71936         * lib/tempname.c: Likewise.
71937         * lib/utimecmp.c: Likewise.
71938         * lib/xstrtol.h: Likewise.
71939
71940         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
71941
71942         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
71943         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
71944         * lib/xtime.h: Likewise.
71945
71946 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71947
71948         * modules/openat (Files): Add lib/fchmodat.c.
71949         Fixes problem reported by Jay Youngman.
71950
71951 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71952
71953         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
71954         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
71955
71956 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
71957             Bruno Haible  <bruno@clisp.org>
71958
71959         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
71960         and is a script that invokes bison. Tighten the code. Add comments.
71961
71962 2006-08-18  Jim Meyering  <jim@meyering.net>
71963
71964         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
71965         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
71966         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
71967         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
71968
71969 2006-08-18  Bruno Haible  <bruno@clisp.org>
71970
71971         * modules/bison-i18n: New file.
71972         * MODULES.html.sh (Internationalization functions): Add it.
71973
71974 2006-08-18  Bruno Haible  <bruno@clisp.org>
71975
71976         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
71977         sys/statvfs.h. When getmntinfo was found, check its declaration and
71978         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
71979
71980 2006-08-18  Bruno Haible  <bruno@clisp.org>
71981
71982         * m4/bison-i18n.m4: New file, from bison.
71983
71984 2006-08-18  Bruno Haible  <bruno@clisp.org>
71985
71986         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
71987         (ME_DUMMY): Treat "kernfs" as a dummy.
71988         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
71989
71990 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
71991
71992         Update from coreutils.
71993
71994         2006-08-15  Jim Meyering  <jim@meyering.net>
71995
71996         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
71997
71998         2006-01-17  Jim Meyering  <jim@meyering.net>
71999
72000         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
72001
72002         2006-01-11  Jim Meyering  <jim@meyering.net>
72003
72004         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
72005         Check for the lchmod function.
72006
72007 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
72008
72009         Update from coreutils.
72010
72011         * lib/__fpending.h: Add copyright notice.
72012         * lib/fprintftime.h: Likewise.
72013         * lib/savedir.c: Use (C) in copyright notice.
72014         * lib/savedir.h: Likewise.
72015
72016         2006-08-15  Jim Meyering  <jim@meyering.net>
72017
72018         * lib/at-func.c: New file, with the logic of all emulated at-functions.
72019         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
72020         in support of the EXPECTED_ERRNO macro.
72021         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
72022         definitions.  Instead, define the appropriate symbols and include
72023         "at-func.c".
72024         * lib/mkdirat.c (mkdirat): Likewise.
72025         * lib/fchmodat.c (fchmodat): Likewise.
72026         (ENOSYS): Remove definition.
72027         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
72028         it.  Don't include "unistd--.h" -- it wasn't ever used.
72029
72030         2006-01-17  Jim Meyering  <jim@meyering.net>
72031
72032         Rewrite fts.c not to change the current working directory,
72033         by using openat, fstatat, fdopendir, etc..
72034
72035         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
72036         (HAVE_OPENAT_SUPPORT): Define.
72037         [_LIBC] (fchdir): Don't undef or define; no longer used.
72038         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
72039         Now, this `function' always succeeds, and consumes its file descriptor
72040         parameter -- so callers must not close such FDs.  Update callers.
72041         (diropen_fd, opendirat, cwd_advance_fd): New functions.
72042         (diropen): Add parameter, SP.  Adjust all callers.
72043         Implement using diropen_fd, rather than open.
72044         (fts_open): Initialize new member, fts_cwd_fd.
72045         Remove fts_rft-setting code.
72046         (fts_close): Close fts_cwd_fd, if necessary.
72047         (__opendir2): Define in terms of opendir or opendirat,
72048         depending on whether the FST_NOCHDIR flag is set.
72049         (fts_build): Since fts_safe_changedir consumes its FD, and since
72050         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
72051         and close the dup'd file descriptor upon failure.
72052         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
72053         (fts_safe_changedir): Tweak semantics to reflect that this function
72054         now calls cwd_advance_fd and hence consumes its FD argument.
72055         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
72056         [struct FTS] (fts_rft): Remove now-unused member.
72057         [struct FTS] (fts_cycle.state): Improve comment.
72058
72059         * lib/openat.c (openat_needs_fchdir): New function.
72060         * lib/openat.h (openat_needs_fchdir): Declare it.
72061
72062 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
72063
72064         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
72065         Problem and fix reported by Pádraig Brady in
72066         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
72067
72068 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
72069
72070         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
72071
72072 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
72073
72074         * lib/memcoll.c (memcoll): Optimize for the common case where the
72075         arguments are bytewise equal.
72076
72077 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
72078
72079         * doc/regexprops-generic.texi: Add a copyright notice.
72080
72081 2006-08-15  Bruno Haible  <bruno@clisp.org>
72082
72083         * modules/tmpdir (License): Change to LGPL.
72084
72085 2006-08-15  Bruno Haible  <bruno@clisp.org>
72086
72087         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
72088         module.
72089
72090 2006-08-14  Simon Josefsson  <jas@extundo.com>
72091
72092         * config/srclist.txt: Add gnupload.
72093
72094 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
72095
72096         Change copyright notice from LGPL 2 to GPL 2, since that's the
72097         standard form used in the gnulib repository.
72098         * tests/test-lock.c: Likewise.
72099         * tests/test-stdint.c: Likewise.
72100         * tests/test-tls.c: Likewise.
72101
72102         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
72103         prelude-manager.  User shorter URLs for GNU projects, without '?'.
72104         Add copyright notice.
72105
72106         * check-module: Add copyright notice.  Output a copyright
72107         notice if "--version" is specified.
72108         * modules/COPYING: New file.
72109         * tests/test-getaddrinfo.c: Add copyright notice.
72110         * tests/test-verify.c: Likewise.
72111
72112 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
72113
72114         Change copyright notice from LGPL 2 to GPL 2, since that's the
72115         standard form used in the gnulib repository.
72116         * lib/lock.c: LGPL -> GPL.
72117         * lib/lock.h: Likewise.
72118         * lib/strnlen1.c: Likewise.
72119         * lib/strnlen1.h: Likewise.
72120         * lib/tls.c: Likewise.
72121         * lib/tls.h: Likewise.
72122         * lib/tmpdir.c: Likewise.
72123
72124         * lib/TODO: Remove; this belongs only in coreutils.
72125
72126 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
72127
72128         Add copyright notices to long-enough files that lack them, since
72129         otherwise the files aren't clearly free.  Use the same notice that
72130         getdate.texi already uses.
72131         * doc/alloca-opt.texi: Add copyright notice.
72132         * doc/alloca.texi: Likewise.
72133         * doc/ctime.texi: Likewise.
72134         * doc/functions.texi: Likewise.
72135         * doc/gcd.texi: Likewise.
72136         * doc/gnulib-tool.texi: Likewise.
72137         * doc/inet_ntoa.texi: Likewise.
72138         * doc/visibility.texi: Likewise.
72139
72140         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
72141         * doc/quote.texi: Add copyright notice.
72142
72143         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
72144         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
72145         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
72146         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
72147         is now obsolete, and give a pointer to the Sun list.
72148         Add copyright notice.
72149
72150 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
72151
72152         * config/srclistvars.sh: Add copyright notice.
72153
72154 2006-08-14  Eric Blake  <ebb9@byu.net>
72155
72156         Import the following change from libc:
72157
72158         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
72159
72160         Upstream bug 2997.
72161         * lib/misc/error.c: Add space between program name and message if file
72162         name is missing.
72163
72164 2006-08-12  Karl Berry  <karl@gnu.org>
72165
72166         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
72167         remove, these originate in gnulib now.
72168
72169 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72170
72171         * doc/Makefile (standards.info standards.html standards.dvi):
72172         Also depend on make-stds.texi.
72173
72174 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
72175
72176         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
72177         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
72178
72179         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
72180         in wchar_t.  Problem reported by Eric Blake.
72181
72182         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
72183         LEN is smaller than SIZE.  Suggested by Bruno Haible.
72184         Also, help the compiler to keep LEN in a register.
72185
72186 2006-08-11  Eric Blake  <ebb9@byu.net>
72187
72188         * users.txt: Sort.  Add tar.
72189
72190 2006-08-11  Bruno Haible  <bruno@clisp.org>
72191
72192         * users.txt: New file.
72193
72194 2006-08-11  Bruno Haible  <bruno@clisp.org>
72195
72196         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
72197         before <wchar.h>. Needed for OSF/1 and BSD/OS.
72198
72199 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
72200
72201         * modules/snprintf (Depends-on): Remove minmax.
72202         (Maintainer): Add self and Bruno.
72203
72204 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
72205
72206         * lib/.cppi-disable: Add snprintf.h, socket_.h.
72207         * lib/snprintf.c: Include <errno.h> and <limits.h>.
72208         (EOVERFLOW): Define if the system does not.
72209         Do not include "minmax.h"; it wasn't used.
72210         (snprintf): Don't assume size_t promotes to an unsigned type.
72211         Fix bug when generated string was too long for the buffer: the
72212         buffer's contents are supposed to be the initial prefix of the
72213         output.  Don't assume vasnprintf returns EOVERFLOW if the size
72214         exceeds INT_MAX; do the check ourselves.
72215
72216         Import the following changes from libc:
72217
72218         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
72219
72220         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
72221         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
72222         set wc to the byte which couldn't be converted.
72223         (re_string_reconstruct): Don't clear valid_raw_len before calling
72224         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
72225         tip_context using re_string_context_at.
72226
72227         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
72228
72229         * lib/posix/regex.h: g++ still cannot handled [restrict].
72230
72231         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
72232
72233         * lib/posix/regex.h: Remove special handling for VMS.
72234
72235 2006-08-10  Jim Meyering  <jim@meyering.net>
72236
72237         * modules/same-inode: New module.
72238         * modules/dev-ino: New module.
72239         * modules/cycle-check: Depend on these modules, rather than simply
72240         including their .h files.
72241         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
72242         required via m4/cycle-check.m4.
72243         * modules/same: Depend on new same-inode module, rather than
72244         including same-inode.h.
72245         * modules/chdir-safer: New file.
72246
72247         * modules/chown (Depends-on): Add stat-macros.
72248
72249 2006-08-10  Jim Meyering  <jim@meyering.net>
72250
72251         * m4/cycle-check.m4: New file.
72252         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
72253         * m4/dev-ino.m4, m4/same-inode.m4: New files.
72254
72255 2006-08-10  Eric Blake  <ebb9@byu.net>
72256
72257         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
72258         in from original proposal.
72259
72260 2006-08-10  Eric Blake  <ebb9@byu.net>
72261         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
72262
72263         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
72264         namespace.
72265
72266 2006-08-10  Bruno Haible  <bruno@clisp.org>
72267
72268         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
72269         as well.
72270
72271 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72272
72273         Sync from coreutils.
72274
72275         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
72276
72277         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
72278         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
72279
72280 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72281
72282         * modules/restrict: Remove; no longer needed now that we assume
72283         Autoconf 2.59 or later.
72284         * MODULES.html.sh: Remove 'restrict'.
72285         * modules/argp (Depends-on): Remove 'restrict'.
72286         * modules/base64 (Depends-on): Likewise.
72287         * modules/gc (Depends-on): Likewise.
72288         * modules/getaddrinfo (Depends-on): Likewise.
72289         * modules/glob (Depends-on): Likewise.
72290         * modules/inet_ntop (Depends-on): Likewise.
72291         * modules/inet_pton (Depends-on): Likewise.
72292         * modules/memxor (Depends-on): Likewise.
72293         * modules/regex (Depends-on): Likewise.
72294         * modules/strtok_r (Depends-on): Likewise.
72295         * modules/time_r (Depends-on): Likewise.
72296
72297 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72298
72299         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
72300         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
72301         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
72302         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
72303         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
72304         * m4/memxor.m4 (gl_MEMXOR): Likewise.
72305         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
72306         gl_C_RESTRICT replaced by AC_C_RESTRICT.
72307
72308         Merge from coreutils.
72309         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
72310         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
72311         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
72312         * m4/time_r.m4 (gl_TIME_R): Likewise.
72313
72314 2006-08-09  Karl Berry  <karl@gnu.org>
72315
72316         * config/srclist.txt: no more gettext-tools, per Bruno.
72317
72318 2006-08-08  Eric Blake  <ebb9@byu.net>
72319
72320         * modules/verror: New module.
72321         * MODULES.html.sh: Document it.
72322
72323 2006-08-08  Eric Blake  <ebb9@byu.net>
72324
72325         * lib/verror.h, lib/verror.c: New files.
72326
72327 2006-08-08  Eric Blake  <ebb9@byu.net>
72328
72329         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
72330         verror_at_line output complies with GNU Coding Standards even when
72331         file is NULL.
72332
72333 2006-08-07  Bruno Haible  <bruno@clisp.org>
72334
72335         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
72336         versions of AIX.
72337         Reported by Ralf Wildenhues.
72338
72339 2006-08-07  Bruno Haible  <bruno@clisp.org>
72340
72341         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
72342         in an AC_DEFUN. Needed so that the autoconf snippets can use
72343         AC_REQUIRE.
72344
72345 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72346
72347         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72348         Initialize pkgdata_DATA.
72349         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
72350         overriding it.
72351
72352 2006-08-06  Eric Blake  <ebb9@byu.net>
72353
72354         * lib/error.h: Fold in some upstream changes from glibc.
72355         * lib/error.c: Likewise.
72356
72357 2006-08-04  Bruno Haible  <bruno@clisp.org>
72358
72359         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72360         Make the mostlyclean-local rule depend on mostlyclean-generic.
72361         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
72362
72363 2006-07-31  Bruno Haible  <bruno@clisp.org>
72364
72365         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
72366         <stdlib.h>, <string.h>.
72367
72368 2006-07-30  Bruno Haible  <bruno@clisp.org>
72369
72370         * modules/readlink (License): Change to LGPL.
72371
72372 2006-07-30  Bruno Haible  <bruno@clisp.org>
72373
72374         * modules/javaversion (Makefile.am): Distribute javaversion.java and
72375         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
72376         set PKGDATADIR to point to it.
72377
72378 2006-07-30  Bruno Haible  <bruno@clisp.org>
72379
72380         * modules/csharpexec (configure.ac): Comment out macro invocation.
72381         * modules/javaexec (configure.ac): Likewise.
72382         * modules/javacomp-script (configure.ac): Likewise.
72383
72384         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
72385
72386 2006-07-30  Bruno Haible  <bruno@clisp.org>
72387
72388         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
72389         linked-list.
72390
72391 2006-07-30  Bruno Haible  <bruno@clisp.org>
72392
72393         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
72394
72395 2006-07-30  Bruno Haible  <bruno@clisp.org>
72396
72397         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72398         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
72399         get removed.
72400
72401 2006-07-29  Bruno Haible  <bruno@clisp.org>
72402
72403         Make it possible for gnulib-tool to work with locally modified or
72404         augmented gnulib repositories.
72405         * gnulib-tool (func_usage): Document --local-dir option.
72406         (local_gnulib_dir): New variable.
72407         Handle --local-dir option.
72408         (func_lookup_file): New function.
72409         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
72410         (func_get_description, func_get_filelist, func_get_description,
72411         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
72412         func_get_automake_snippet, func_get_include_directive,
72413         func_get_license, func_get_maintainer): Use func_lookup_file.
72414         (func_import, func_create_testdir): Use func_lookup_file.
72415
72416 2006-07-29  Bruno Haible  <bruno@clisp.org>
72417
72418         * modules/setenv (Depends-on): Add unistd.
72419
72420 2006-07-29  Bruno Haible  <bruno@clisp.org>
72421
72422         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
72423
72424 2006-07-29  Bruno Haible  <bruno@clisp.org>
72425
72426         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
72427
72428 2006-07-29  Bruno Haible  <bruno@clisp.org>
72429
72430         * gnulib-tool (import, update): If there is no Makefile.am, look at
72431         aclocal.m4, instead of bailing out.
72432
72433 2006-07-29  Bruno Haible  <bruno@clisp.org>
72434
72435         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
72436         Categorize the options by when they are useful.
72437
72438 2006-07-29  Bruno Haible  <bruno@clisp.org>
72439
72440         * gnulib-tool (func_usage): Document option --no-libtool.
72441         Handle option --no-libtool.
72442         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
72443         for changed semantics of $libtool variable.
72444         (func_import): Likewise. If libtool is not used, show this through
72445         an option --no-libtool.
72446         (func_create_testdir): Update.
72447
72448 2006-07-29  Bruno Haible  <bruno@clisp.org>
72449
72450         * gnulib-tool (func_import): Extend error message about missing
72451         --doc-base.
72452
72453 2006-07-29  Bruno Haible  <bruno@clisp.org>
72454
72455         * gnulib-tool (func_import): Don't create the $docbase directory if
72456         there is no file to store there.
72457
72458 2006-07-29  Bruno Haible  <bruno@clisp.org>
72459
72460         * gnulib-tool (autoconf_minversion): If a --dir option is given and
72461         relevant, look for configure.ac there, not in the current directory.
72462         Also use a simple search for AC_PREREQ, not "autoconf --trace".
72463
72464 2006-07-29  Bruno Haible  <bruno@clisp.org>
72465
72466         * gnulib-tool (SORT): New variable.
72467         (func_usage): Undocument --assume-autoconf option.
72468         Remove --assume-autoconf option handling.
72469         (autoconf_minversion): Determine from the contents of configure.ac.
72470         (func_import): Remove autoconf_minversion handling.
72471         Suggested by Eric Blake.
72472
72473 2006-07-29  Bruno Haible  <bruno@clisp.org>
72474
72475         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
72476
72477 2006-07-29  Bruno Haible  <bruno@clisp.org>
72478
72479         * config/srclist.txt (*setenv.[ch]): Remove rules.
72480
72481 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72482
72483         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
72484
72485 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72486
72487         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
72488         arpa/inet.h.
72489
72490 2006-07-28  Simon Josefsson  <jas@extundo.com>
72491
72492         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
72493         * modules/inet_pton (Depends-on): Likewise.
72494
72495 2006-07-28  Simon Josefsson  <jas@extundo.com>
72496
72497         * m4/netinet_in_h.m4: New file.
72498
72499 2006-07-28  Simon Josefsson  <jas@extundo.com>
72500
72501         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
72502         #include's.
72503
72504 2006-07-28  Simon Josefsson  <jas@extundo.com>
72505
72506         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
72507         #include's.
72508
72509 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
72510
72511         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
72512         setgid on directories only if they set these bits.
72513         * lib/modechange.h: Remove obsolete comment about masks.
72514
72515 2006-07-28  Eric Blake  <ebb9@byu.net>
72516
72517         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
72518         macro expansion.
72519
72520 2006-07-28  Bruno Haible  <bruno@clisp.org>
72521
72522         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
72523
72524 2006-07-28  Bruno Haible  <bruno@clisp.org>
72525
72526         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
72527
72528 2006-07-28  Bruno Haible  <bruno@clisp.org>
72529
72530         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
72531         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
72532         Define fallbacks.
72533         Avoids link error on FreeBSD 4.x.
72534         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
72535
72536         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
72537         encoding.
72538         * lib/mbswidth.c (iswcntrl): Likewise.
72539
72540 2006-07-27  Bruno Haible  <bruno@clisp.org>
72541
72542         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
72543         test.
72544
72545 2006-07-27  Bruno Haible  <bruno@clisp.org>
72546
72547         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
72548         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
72549         defined.
72550
72551 2006-07-26  Eric Blake  <ebb9@byu.net>
72552
72553         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
72554
72555 2006-07-26  Eric Blake  <ebb9@byu.net>
72556
72557         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
72558         like mingw that lack mkstemp.
72559         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
72560         avoid compilation warning on mingw.
72561
72562 2006-07-26  Bruno Haible  <bruno@clisp.org>
72563
72564         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
72565         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
72566         INT_FAST*_MIN, INTPTR_MIN.
72567
72568 2006-07-25  Bruno Haible  <bruno@clisp.org>
72569
72570         * modules/version-etc (Depends-on): Add stdarg.
72571
72572 2006-07-25  Bruno Haible  <bruno@clisp.org>
72573
72574         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
72575         complex commands.
72576
72577 2006-07-25  Bruno Haible  <bruno@clisp.org>
72578
72579         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
72580         defined in <stdarg.h> or config.h.
72581
72582 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
72583
72584         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
72585         (gl_STDIO_SAFER): Remove.
72586
72587 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
72588
72589         * MODULES.html.sh (File stream based Input/Output):
72590         Add fopen-safer, tmpfile-safer; remove stdio-safer.
72591         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
72592         * modules/fopen-safer, modules/tmpfile-safer: New files.
72593         * modules/stdio-safer: Remove.
72594
72595 2006-07-24  Bruno Haible  <bruno@clisp.org>
72596
72597         * modules/tmpdir: New file.
72598         * MODULES.html.sh (File system functions): Add it.
72599
72600 2006-07-24  Bruno Haible  <bruno@clisp.org>
72601
72602         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
72603         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
72604
72605 2006-07-24  Bruno Haible  <bruno@clisp.org>
72606
72607         * modules/clean-temp: New file.
72608
72609 2006-07-24  Bruno Haible  <bruno@clisp.org>
72610
72611         * m4/tmpdir.m4: New file, from GNU gettext.
72612
72613 2006-07-24  Bruno Haible  <bruno@clisp.org>
72614
72615         * lib/tmpdir.h: New file, from GNU gettext.
72616         * lib/tmpdir.c: New file, from GNU gettext.
72617
72618 2006-07-24  Bruno Haible  <bruno@clisp.org>
72619
72620         * lib/clean-temp.h: New file, from GNU gettext.
72621         * lib/clean-temp.c: New file, from GNU gettext.
72622
72623 2006-07-23  Eric Blake  <ebb9@byu.net>
72624
72625         * modules/stdio-safer (Files): Add tmpfile-safer.c.
72626         (Depends-on): Add binary-io.
72627
72628 2006-07-23  Eric Blake  <ebb9@byu.net>
72629
72630         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
72631
72632 2006-07-23  Eric Blake  <ebb9@byu.net>
72633
72634         * lib/tmpfile-safer.c: New file.
72635         * lib/stdio-safer.h (fopen_safer): Add prototype.
72636         * lib/stdio--.h (tmpfile): Make safer.
72637
72638 2006-07-23  Bruno Haible  <bruno@clisp.org>
72639
72640         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
72641         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
72642         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
72643         gl_linked_remove_at): Use it.
72644
72645 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72646         and Simon Josefsson <jas@extundo.com>
72647
72648         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
72649
72650         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
72651
72652 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
72653
72654         * modules/close-stream: New file.
72655         * modules/closeout (Description): Make it clear that it exits
72656         with a diagnostic on error.
72657         (Depends-on): Add close-stream.  Remove fpending, stdbool.
72658         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
72659
72660 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
72661
72662         * m4/close-stream.m4: New file.
72663
72664 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
72665
72666         * lib/close-stream.c, lib/close-stream.h: New files.
72667
72668 2006-07-22  Bruno Haible  <bruno@clisp.org>
72669
72670         Merge from GNU gettext 0.15.
72671
72672         2006-05-01  Bruno Haible  <bruno@clisp.org>
72673
72674                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
72675
72676         2006-07-22  Bruno Haible  <bruno@clisp.org>
72677
72678                 * modules/javaversion: New file.
72679                 * MODULES.html.sh (Java): Add javaversion.
72680
72681         2006-03-12  Bruno Haible  <bruno@clisp.org>
72682
72683                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
72684
72685         2005-12-04  Bruno Haible  <bruno@clisp.org>
72686
72687                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
72688                 (untested).
72689
72690         2006-06-21  Bruno Haible  <bruno@clisp.org>
72691
72692                 Avoid warnings from recent versions of mcs.
72693                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
72694                 -o, -L, -r any more. Use options documented since mcs-1.0
72695                 instead. Similarly for -g.
72696
72697         2005-12-04  Bruno Haible  <bruno@clisp.org>
72698
72699                 * build-aux/csharpcomp.sh.in: Suffix for resources is
72700                 .resources, not .resource.
72701
72702         2005-07-09  Bruno Haible  <bruno@clisp.org>
72703
72704                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
72705                 add a .dll suffix.
72706                 Reported by Mark Junker <mjscod@gmx.de>.
72707
72708         2006-07-22  Bruno Haible  <bruno@clisp.org>
72709
72710                 * modules/gettext: Upgrade to gettext-0.15.
72711                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
72712                 m4/visibility.m4.
72713                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
72714
72715 2006-07-22  Bruno Haible  <bruno@clisp.org>
72716
72717         Merge from GNU gettext 0.15.
72718
72719         2006-03-25  Bruno Haible  <bruno@clisp.org>
72720
72721                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
72722
72723         2006-07-21  Bruno Haible  <bruno@clisp.org>
72724
72725                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
72726                 "1.1".
72727
72728         2006-05-09  Bruno Haible  <bruno@clisp.org>
72729
72730                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
72731                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
72732                 for the conftestver execution.
72733
72734         2006-05-01  Bruno Haible  <bruno@clisp.org>
72735
72736                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
72737                 optional target-version argument. Verify that the compiler
72738                 groks source of the specified source-version, or add -source
72739                 option as necessary. Verify that the compiler produces
72740                 bytecode in the specified target-version, or add -target and
72741                 -source options as necessary. Make the result of the test
72742                 available as variable CONF_JAVAC. Also log error output in
72743                 config.log.
72744
72745         2006-03-11  Bruno Haible  <bruno@clisp.org>
72746
72747                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
72748
72749         2006-05-09  Bruno Haible  <bruno@clisp.org>
72750
72751                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
72752                 CLASSPATH_SEPARATOR to a semicolon.
72753
72754         2006-03-12  Bruno Haible  <bruno@clisp.org>
72755
72756                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
72757                 available as variable CONF_JAVA, for subsequent autoconf
72758                 tests. Also log error output in config.log.
72759
72760         2006-07-19  Bruno Haible  <bruno@clisp.org>
72761
72762                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
72763                 that getline works on glibc2 systems. Needed to avoid trouble
72764                 in relocatable.c.
72765                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
72766
72767         2005-12-04  Bruno Haible  <bruno@clisp.org>
72768
72769                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
72770                 launcher (untested).
72771
72772         2005-12-04  Bruno Haible  <bruno@clisp.org>
72773
72774                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
72775
72776         2006-07-22  Bruno Haible  <bruno@clisp.org>
72777
72778                 * gettext.m4: Update from GNU gettext-0.15.
72779                 * nls.m4: Likewise.
72780                 * po.m4: Likewise.
72781                 * inttypes-pri.m4: Likewise.
72782                 * inttypes-h.m4: Renamed from inttypes.m4.
72783                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
72784
72785 2006-07-22  Bruno Haible  <bruno@clisp.org>
72786
72787         Merge from GNU gettext 0.15.
72788
72789         2005-07-05  Bruno Haible  <bruno@clisp.org>
72790
72791                 * printf-args.c (printf_fetchargs): Work around broken
72792                 definition of wint_t on mingw.
72793
72794         2005-02-12  Bruno Haible  <bruno@clisp.org>
72795
72796                 * xallocsa.h: Add extern "C" for C++.
72797
72798         2006-05-17  Bruno Haible  <bruno@clisp.org>
72799
72800                 Cygwin portability.
72801                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
72802
72803         2006-04-30  Bruno Haible  <bruno@clisp.org>
72804
72805                 * progreloc.c: Include <mach-o/dyld.h> if available.
72806                 (find_executable): Use _NSGetExecutablePath when possible.
72807
72808         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
72809
72810                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
72811                 function.
72812
72813         2005-12-29  Bruno Haible  <bruno@clisp.org>
72814
72815                 * progreloc.c (set_program_name_and_installdir): Fix
72816                 compilation error.
72817
72818         2005-12-04  Bruno Haible  <bruno@clisp.org>
72819
72820                 Cygwin portability.
72821                 * progreloc.c: Include <windows.h> also on Cygwin.
72822                 (find_executable): Add support for Cygwin.
72823                 (set_program_name_and_installdir): Handle also platforms with
72824                 nonempty EXEEXT.
72825
72826         2006-07-11  Bruno Haible  <bruno@clisp.org>
72827
72828                 * javacomp.c: Fix a comment.
72829                 Reported by Jim Meyering.
72830
72831         2006-04-30  Bruno Haible  <bruno@clisp.org>
72832
72833                 * javacomp.h (compile_java_class): Add source_version,
72834                 target_version arguments.
72835                 * javacomp.c: Rewritten to choose only a compiler that
72836                 respects the specified source_version and target_version.
72837
72838         2006-06-27  Bruno Haible  <bruno@clisp.org>
72839
72840                 Assume correct S_ISDIR macro.
72841                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
72842
72843         2006-07-22  Bruno Haible  <bruno@clisp.org>
72844
72845                 * javaversion.h: New file, from GNU gettext.
72846                 * javaversion.c: New file, from GNU gettext.
72847                 * javaversion.java: New file, from GNU gettext.
72848                 * javaversion.class: New file, from GNU gettext.
72849
72850         2006-05-17  Bruno Haible  <bruno@clisp.org>
72851
72852                 Cygwin portability.
72853                 * javaexec.c (execute_java_class): Test for jview program
72854                 also on Cygwin.
72855
72856         2006-04-09  Bruno Haible  <bruno@clisp.org>
72857
72858                 * fatal-signal.c: Don't include string.h.
72859                 (at_fatal_signal): Use a copying loop instead of memcpy.
72860
72861         2005-12-04  Bruno Haible  <bruno@clisp.org>
72862
72863                 * csharpexec.c: Add support for 'clix' launcher (untested).
72864                 (execute_csharp_using_sscli): New function.
72865                 (execute_csharp_program): Call it.
72866
72867         2006-06-21  Bruno Haible  <bruno@clisp.org>
72868
72869                 Avoid warnings from recent versions of mcs.
72870                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
72871                 -o, -L, -r any more. Use options documented since mcs-1.0
72872                 instead. Similarly for -g.
72873
72874         2005-07-09  Bruno Haible  <bruno@clisp.org>
72875
72876                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
72877                 add a .dll suffix.
72878                 Reported by Mark Junker <mjscod@gmx.de>.
72879
72880         2006-06-17  Bruno Haible  <bruno@clisp.org>
72881
72882                 * config.charset: Update for NetBSD 3.0.
72883
72884         2006-05-17  Bruno Haible  <bruno@clisp.org>
72885
72886                 Cygwin portability.
72887                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
72888
72889         2006-05-16  Bruno Haible  <bruno@clisp.org>
72890
72891                 * localcharset.c [CYGWIN]: Include <windows.h>.
72892                 (get_charset_aliases): For Cygwin, return the same CPxxx
72893                 aliases list as under WIN32.
72894                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
72895                 the environment variables. Fall back to GetACP().
72896
72897         2006-04-05  Bruno Haible  <bruno@clisp.org>
72898
72899                 * config.charset: Update Juan Manuel Guerrero's address.
72900
72901         2005-02-12  Bruno Haible  <bruno@clisp.org>
72902
72903                 * allocsa.h: Add extern "C" for C++.
72904
72905         2005-02-10  Bruno Haible  <bruno@clisp.org>
72906
72907                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
72908                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
72909
72910         2006-07-22  Bruno Haible  <bruno@clisp.org>
72911
72912                 * gettext.h: Update to GNU gettext-0.15.
72913
72914 2006-07-22  Bruno Haible  <bruno@clisp.org>
72915
72916         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
72917         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
72918         lib-prefix.m4, longdouble.m4, ssize_t.m4.
72919
72920 2006-07-21  Eric Blake  <ebb9@byu.net>
72921
72922         * modules/stdlib-safer: New file.
72923         * MODULES.html.sh (File stream based Input/Output): Add
72924         stdlib-safer.
72925
72926 2006-07-21  Eric Blake  <ebb9@byu.net>
72927
72928         * lib/stdlib-safer.h: New file from coreutils, required by
72929         stdlib--.h.
72930
72931 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
72932
72933         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
72934
72935 2006-07-20  Bruno Haible  <bruno@clisp.org>
72936
72937         * gnulib-tool: Recognize new option --assume-autoconf.
72938         (autoconf_minversion): New variable.
72939         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
72940
72941 2006-07-20  Bruno Haible  <bruno@clisp.org>
72942
72943         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
72944
72945 2006-07-19  Derek R. Price  <derek@ximbiot.com>
72946
72947         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
72948         Reindent and repaginate.
72949
72950 2006-07-19  Derek Price  <derek@ximbiot.com>
72951
72952         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
72953         Correct grammar.
72954
72955 2006-07-17  Bruno Haible  <bruno@clisp.org>
72956
72957         * modules/list: New file.
72958         * modules/array-list: New file.
72959         * modules/carray-list, modules/carray-list-tests: New files.
72960         * modules/linked-list, modules/linked-list-tests: New files.
72961         * modules/avltree-list, modules/avltree-list-tests: New files.
72962         * modules/rbtree-list, modules/rbtree-list-tests: New files.
72963         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
72964         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
72965         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
72966         * modules/oset: New file.
72967         * modules/array-oset: New file.
72968         * modules/avltree-oset, modules/avltree-oset-tests: New files.
72969         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
72970         * tests/test-carray_list.c: New file.
72971         * tests/test-linked_list.c: New file.
72972         * tests/test-avltree_list.c: New file.
72973         * tests/test-rbtree_list.c: New file.
72974         * tests/test-linkedhash_list.c: New file.
72975         * tests/test-avltreehash_list.c: New file.
72976         * tests/test-rbtreehash_list.c: New file.
72977         * tests/test-avltree_oset.c: New file.
72978         * tests/test-rbtree_oset.c: New file.
72979         * MODULES.html.sh (Container data structures): New section.
72980
72981 2006-07-17  Bruno Haible  <bruno@clisp.org>
72982
72983         * m4/gl_list.m4: New file.
72984
72985 2006-07-17  Bruno Haible  <bruno@clisp.org>
72986
72987         * lib/gl_list.h: New file.
72988         * lib/gl_list.c: New file.
72989         * lib/gl_array_list.h: New file.
72990         * lib/gl_array_list.c: New file.
72991         * lib/gl_carray_list.h: New file.
72992         * lib/gl_carray_list.c: New file.
72993         * lib/gl_linked_list.h: New file.
72994         * lib/gl_linked_list.c: New file.
72995         * lib/gl_anylinked_list1.h: New file.
72996         * lib/gl_anylinked_list2.h: New file.
72997         * lib/gl_avltree_list.h: New file.
72998         * lib/gl_avltree_list.c: New file.
72999         * lib/gl_anyavltree_list1.h: New file.
73000         * lib/gl_anyavltree_list2.h: New file.
73001         * lib/gl_rbtree_list.h: New file.
73002         * lib/gl_rbtree_list.c: New file.
73003         * lib/gl_anyrbtree_list1.h: New file.
73004         * lib/gl_anyrbtree_list2.h: New file.
73005         * lib/gl_anytree_list1.h: New file.
73006         * lib/gl_anytree_list2.h: New file.
73007         * lib/gl_linkedhash_list.h: New file.
73008         * lib/gl_linkedhash_list.c: New file.
73009         * lib/gl_anyhash_list1.h: New file.
73010         * lib/gl_anyhash_list2.h: New file.
73011         * lib/gl_avltreehash_list.h: New file.
73012         * lib/gl_avltreehash_list.c: New file.
73013         * lib/gl_rbtreehash_list.h: New file.
73014         * lib/gl_rbtreehash_list.c: New file.
73015         * lib/gl_anytreehash_list1.h: New file.
73016         * lib/gl_anytreehash_list2.h: New file.
73017
73018         * lib/gl_oset.h: New file.
73019         * lib/gl_oset.c: New file.
73020         * lib/gl_array_oset.h: New file.
73021         * lib/gl_array_oset.c: New file.
73022         * lib/gl_avltree_oset.h: New file.
73023         * lib/gl_avltree_oset.c: New file.
73024         * lib/gl_rbtree_oset.h: New file.
73025         * lib/gl_rbtree_oset.c: New file.
73026         * lib/gl_anytree_oset.h: New file.
73027
73028 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
73029
73030         * m4/mkancesdirs.m4: New file.
73031         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
73032         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
73033         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
73034         it.
73035
73036 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
73037
73038         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
73039         * lib/mkancesdirs.h: New files.
73040         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
73041         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
73042         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
73043         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
73044         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
73045         callers changed.  Revamp internals significantly, by not
73046         attempting to create directories that are temporarily more
73047         permissive than the final results.  Do not attempt to use
73048         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
73049         This removes some race conditions, fixes some bugs, and simplifies
73050         things.  Use new dirchownmod function to do owner and mode changes.
73051         * lib/mkdir-p.h: Likewise.
73052         * lib/modechange.c (octal_to_mode): New function.
73053         (struct mode_change): New member mentioned.
73054         (make_node_op_equals): New arg mentioned.  All callers changed.
73055         (mode_compile): Keep track of which mode bits the user has explicitly
73056         mentioned.
73057         (mode_adjust): New arg DIR, so that we implement the X op correctly.
73058         New arg PMODE_BITS, to keep track of which mode bits the user
73059         mentioned; it treats S_ISUID and S_ISGID speciall.
73060         All callers changed.
73061         * lib/modechange.h: Likewise.
73062
73063 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
73064
73065         * MODULES.html.sh: Add mkancestors.
73066         * modules/mkancesdirs: New module.
73067         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
73068         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
73069         The chdir-safer and afs files are now orphans; I'll remove them
73070         unless someone speaks up.
73071         Add lib/dirchownmod.c, lib/dirchownmod.h.
73072         (Depends-on): Remove alloca, chown, save-cwd, dirname.
73073         Add lchown, mkancesdirs.
73074         (Maintainer): Add self.
73075
73076 2006-07-15  Karl Berry  <karl@gnu.org>
73077
73078         * gnulib-tool: help message wording/arrangement.
73079
73080 2006-07-14  Simon Josefsson  <jas@extundo.com>
73081
73082         * doc/gnulib.texi (Libtool and Windows): New section.
73083
73084 2006-07-12  Simon Josefsson  <jas@extundo.com>
73085
73086         * modules/gendocs (License): Fix license, approved by Karl.
73087
73088 2006-07-12  Eric Blake  <ebb9@byu.net>
73089
73090         * MODULES.html.sh: Add gendocs.
73091
73092 2006-07-11  Eric Blake  <ebb9@byu.net>
73093
73094         * modules/fdl: New module, to install doc/fdl.texi.
73095         * MODULES.html.sh: Add new section for documentation modules.
73096         * gnulib-tool: Avoid space-tab.
73097         (--doc-base): New option, to manage files from doc.
73098
73099 2006-07-11  Eric Blake  <ebb9@byu.net>
73100
73101         * m4/absolute-header.m4: Fix comments to match recent change.
73102
73103 2006-07-11  Eric Blake  <ebb9@byu.net>
73104
73105         * gnulib-tool: List --doc-base before --tests-base.
73106
73107 2006-07-11  Derek R. Price  <derek@ximbiot.com>
73108
73109         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
73110
73111 2006-07-11  Bruno Haible  <bruno@clisp.org>
73112
73113         * README: Mention where to put documentation.
73114
73115 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73116
73117         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
73118
73119 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
73120
73121         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
73122         to stdint.m4.
73123
73124 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
73125
73126         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
73127         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
73128         "no/such/file/stdint.h" when there is no such file, so that
73129         the resulting C code can be parsed by dodgy compilers.
73130         Problems reported by Bob Proulx.
73131
73132 2006-07-10  Derek R. Price  <derek@ximbiot.com>
73133
73134         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
73135         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
73136         macros into the GNU _D_EXACT_NAMLEN.
73137         * lib/savedir.c:  Likewise.
73138         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
73139
73140 2006-07-10  Derek R. Price  <derek@ximbiot.com>
73141         and Paul Eggert  <eggert@cs.ucla.edu>
73142
73143         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
73144         * m4/savedir.m4:
73145         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
73146         macros into the GNU _D_EXACT_NAMLEN.
73147
73148 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
73149
73150         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
73151         around the absolute name, to work around a problem with the HP-UX
73152         11.23 native C compiler, reported by Bob Proulx.
73153
73154 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
73155
73156         * doc/maintain.texi, make-stds.texi: Sync from
73157         <http://savannah.gnu.org/projects/gnustandards>.
73158
73159 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
73160
73161         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
73162
73163 2006-07-09  Jim Meyering  <jim@meyering.net>
73164
73165         * m4/glob.m4: Remove a doubled word in a comment.
73166
73167 2006-07-09  Jim Meyering  <jim@meyering.net>
73168
73169         * lib/argp-pv.c: Remove a doubled word in a comment.
73170         * lib/check-version.c (check_version): Likewise.
73171         * lib/javacomp.c (compile_java_class): Likewise.
73172
73173 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
73174
73175         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
73176         for the benefit of people using Autoconf 2.60.  If you want to
73177         support older Autoconf versions you can copy m4/onceonly_2_57.m4
73178         (or m4/onceonly.m4, if pre-2.57) manually.
73179
73180 2006-07-08  Jim Meyering  <jim@meyering.net>
73181
73182         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
73183         comment.
73184         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
73185         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
73186         comment.
73187
73188 2006-07-08  Jim Meyering  <jim@meyering.net>
73189
73190         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
73191
73192 2006-07-07  Simon Josefsson  <jas@extundo.com>
73193
73194         * tests/test-crc.c: Change expected crc value, the test vector
73195         were probably computed using the old broken crc.c?
73196
73197 2006-07-06  Simon Josefsson  <jas@extundo.com>
73198
73199         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
73200         now the canonical place for the M4 file).
73201
73202         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
73203         from the sys_socket dependency now.
73204
73205         * modules/inet_pton (Files): Ditto.
73206
73207         * modules/inet_ntop (Files): Ditto.
73208
73209 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
73210
73211         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
73212         not gl_PREREQ_GETUSERSHELL.
73213
73214 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73215
73216         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
73217         with only one argument, for Autoconf 2.60.
73218         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
73219         expand to nothing, so add a shell command to avoid syntax error.
73220         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
73221
73222 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73223
73224         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
73225
73226 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
73227
73228         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
73229         no longer needed.  Check for isblank decl.
73230         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
73231         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
73232         of existence.
73233
73234 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
73235
73236         * lib/getloadavg.c: Use __VMS, not VMS.
73237         * lib/getopt.c: Likewise.
73238         * lib/getpagesize.h: Likewise.
73239         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
73240         and probably does not work.
73241
73242 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
73243
73244         * lib/.cppi-disable: Add wcwidth.
73245         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
73246         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
73247         (ISGRAPH): Remove.  All uses changed to isgraph.
73248         (FOLD) [!defined _LIBC]: Remove special case.
73249         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
73250         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
73251         HAVE_ISBLANK.
73252         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
73253         case.
73254
73255 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
73256
73257         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
73258         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
73259         brackets.  Other minor changes to suppress some compiler
73260         warnings.
73261
73262 2006-07-06  Derek R. Price  <derek@ximbiot.com>
73263         and Paul Eggert  <eggert@cs.ucla.edu>
73264
73265         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
73266         of invoking obsolescent AC_HEADER_DIRENT macro.
73267         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
73268         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
73269         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
73270         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
73271         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
73272         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
73273         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
73274         * m4/readdir.m4: Remove; no longer needed.
73275
73276 2006-07-06  Derek R. Price  <derek@ximbiot.com>
73277         and Paul Eggert  <eggert@cs.ucla.edu>
73278
73279         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
73280         Don't worry about this obsolete case any more.
73281         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
73282         directories.
73283         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
73284         worry about this obsolete case any more.
73285         * lib/fts.c: Likewise.
73286         * lib/getcwd.c: Likewise.
73287         * lib/glob.h: Likewise.
73288         * lib/savedir.c: Likewise.
73289
73290 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
73291
73292         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
73293         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
73294         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
73295         needed.
73296         All uses removed.
73297         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
73298         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
73299         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
73300         needed.
73301         * m4/getdate.m4 (gl_GETDATE): Likewise.
73302         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
73303         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
73304         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
73305         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
73306         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
73307         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
73308         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
73309         needed.
73310
73311 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
73312
73313         * lib/memcasecmp.c: Include <limits.h>.
73314         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
73315         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
73316         Don't assume isdigit succeeds only on '0' through '9'.
73317
73318 2006-07-05  Eric Blake  <ebb9@byu.net>
73319
73320         * modules/getaddrinfo (Depends-on): Add snprintf.
73321
73322 2006-07-05  Eric Blake  <ebb9@byu.net>
73323
73324         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
73325         to avoid 'header present but could not be compiled' on cygwin.
73326
73327 2006-07-05  Eric Blake  <ebb9@byu.net>
73328
73329         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
73330         missing from netdb.h.
73331         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
73332
73333 2006-07-05  Derek R. Price  <derek@ximbiot.com>
73334
73335         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
73336         no longer needed.
73337         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
73338         * m4/getdate.m4 (gl_GETDATE): Likewise.
73339         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
73340         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
73341         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
73342         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
73343         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
73344
73345 2006-07-05  Derek R. Price  <derek@ximbiot.com>
73346
73347         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
73348         All uses of is_space replaced by isspace.
73349         * lib/exit.h: Don't talk about STDC_HEADERS.
73350         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
73351         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
73352         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
73353         replaced by isprint etc.
73354         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
73355         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
73356         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
73357         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
73358         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
73359         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
73360
73361 2006-07-05  Bruno Haible  <bruno@clisp.org>
73362
73363         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
73364         the function exists, before testing against AIX.
73365         Reported by Martin Lambers <marlam@marlam.de>.
73366
73367 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
73368
73369         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
73370         From Mark D. Baushke.
73371
73372 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
73373
73374         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
73375         to the absolute name, not just one, to bypass Sun C 5.8's
73376         "warning: #include of /usr/include/... may be non-portable".
73377
73378 2006-07-04  Eric Blake  <ebb9@byu.net>
73379
73380         * modules/dirname-tests: New test module.
73381         * tests/test-dirname.c: New file, replacing dirname.c
73382         TEST_DIRNAME section that was recently deleted.
73383
73384 2006-07-04  Bruno Haible  <bruno@clisp.org>
73385
73386         Assume ANSI C header files and <ctype.h> functions.
73387         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
73388         (mbsnwidth): Use isprint, iscntrl instead.
73389
73390 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73391
73392         Merge from coreutils.
73393         * MODULES.html.sh: Add xstrtold.
73394         * modules/xstrtold: New file.
73395         * modules/cycle-check (Files): Add lib/same-inode.h.
73396         * modules/dirname (Files): Add m4/double-slash-root.m4.
73397         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
73398         * modules/mkdir-p (Files): Add lib/same-inode.h.
73399         * modules/same (Files): Add lib/same-inode.h.
73400
73401 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73402
73403         * m4/absolute-header.m4: Renamed from full-header-path.m4.
73404         This is to keep the terminology clean; POSIX talks about
73405         "absolute pathnames", not "full pathnames", but the GNU
73406         Coding Standards say to use "path" for something else;
73407         so use "absolute" to keep both sides happy.
73408         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
73409         Set gl_absolute_header, not gl_full_header_path.
73410         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
73411         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
73412         All uses changed.
73413
73414         Merge from coreutils.
73415
73416         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
73417
73418         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
73419         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
73420         want to require the building of c-strtod.o.
73421         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
73422         needs -lm directly.
73423         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
73424
73425         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
73426
73427         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
73428         --as-needed option if available.  Problem reported by Albert Chin in
73429         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
73430         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
73431         cc merely issues a bunch of annoying warnings for --as-needed
73432         (this problem was reported by Bob Proulx).  Also, try linking with
73433         -lm to detect a bug in binutils 2.16 (this problem was reported
73434         by Ralf Wildenhues).
73435
73436         2006-06-18  Jim Meyering  <jim@meyering.net>
73437
73438         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
73439         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
73440         macro.
73441         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
73442         also check for glibc-2.4's abort-inducing bug.
73443
73444         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
73445         Low-probability clean-up should be to use rmdir to get rid of
73446         the just-created directory, not unlink.
73447
73448         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
73449         configure fail, and request a bug report to inform us about it.
73450         Add a comment that, barring reports to the contrary, in 2007 we'll
73451         assume ftruncate is universally available.
73452
73453         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
73454
73455         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
73456
73457         2006-03-12  Jim Meyering  <jim@meyering.net>
73458
73459         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
73460         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
73461         * m4/same.m4 (gl_SAME): Likewise.
73462         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
73463
73464         2006-03-11  Eric Blake  <ebb9@byu.net>
73465
73466         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
73467         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
73468         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
73469         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
73470
73471 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73472
73473         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
73474         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
73475         reported by Mark D. Baushke, one in
73476         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
73477
73478         Merge from coreutils.
73479
73480         * lib/.cppi-disable: Add stdint_.h.
73481         * lib/.cvsignore: Add stdint.h.
73482
73483         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
73484
73485         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
73486         both double and long double versions.
73487         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
73488         * lib/xstrtold.c: New file.
73489         * lib/xstrtod.h (xstrtold): New decl.
73490
73491         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
73492
73493         * lib/filemode.c (setst): Remove.
73494         (strmode): Rewrite to avoid setst.  This makes the code shorter,
73495         (arguably) clearer, and the generated code is a bit smaller on my
73496         Debian GNU/Linux stable x86 host.
73497
73498         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
73499
73500         * lib/filemode.c: Include "filemode.h" first, to test the interface.
73501         Assume that filemode.h includes sys/types.h and sys/stat.h.
73502         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
73503         (ftypelet): Reorder to put common cases first, for efficiency.
73504         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
73505         to do 'M'.
73506         (strmode): Renamed from mode_string, and now stores 12 bytes instead
73507         of 10, for compatibility with FreeBSD.  All callers changed.
73508         (filemodestring): Now stores 12 bytes instead of 10, and sets file
73509         types that can't be deduced solely from st_mode.  First arg is now a
73510         const pointer.
73511         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
73512         (strmode): Renamed from mode_string.
73513         (filemodestring): New decl.
73514         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
73515         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
73516         needed.
73517         (S_ISPORT, S_ISWHT): New macros, if not already defined.
73518
73519         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
73520
73521         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
73522         fsusage.h now does that.  Include fsusage.h first, to test interface.
73523         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
73524         at most one method (the old code could have generated decls that
73525         didn't conform to C89, not that this was ever exercised).
73526         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
73527
73528         2006-03-19  Jim Meyering  <jim@meyering.net>
73529
73530         Work even in a chroot where d_ino values for entries in "/"
73531         don't match the stat.st_ino values for the same names.
73532         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
73533         number, iterate through all entries again, using lstat instead.
73534         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
73535         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
73536
73537         * lib/getcwd.c (__getcwd): Clarify a comment.
73538         Use memcpy in place of a call to strcpy.
73539
73540         2006-03-12  Jim Meyering  <jim@meyering.net>
73541
73542         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
73543         matches that of the current directory (which we're about to chdir ".."
73544         out of), then save the dev-ino of the parent, instead.
73545
73546         * lib/same-inode.h (SAME_INODE): New file/macro.
73547         * lib/chdir-safer.c (SAME_INODE): Remove definition.
73548         Include "same-inode.h", instead.
73549         * lib/same.c: Likewise.
73550         * lib/cycle-check.h: Include "same-inode.h".
73551         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
73552         * lib/cycle-check.c (SAME_INODE): Remove definition.
73553         * lib/root-dev-ino.h: Include "same-inode.h".
73554
73555         2006-03-11  Eric Blake  <ebb9@byu.net>
73556
73557         * lib/same.c (same_name): s/base_name/last_component/
73558         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
73559         * lib/filenamecat.c (file_name_concat): Likewise.
73560
73561         2006-03-11  Eric Blake  <ebb9@byu.net>,
73562                     Paul Eggert  <eggert@cs.ucla.edu>
73563
73564         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
73565         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
73566         drive prefix.
73567         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
73568         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
73569         (last_component): New method.
73570         * lib/dirname.c (dir_len): Determine when drive letters need a
73571         subsequent slash.  Preserve // when it is special.
73572         (dir_name): Don't append dot when drive letter is absolute.
73573         [TEST_DIRNAME]: Move into a full-blown gnulib test.
73574         * lib/basename.c (base_name): New semantics - malloc the result.
73575         Preserve // when it is special.  Preserve relative files that look
73576         like drive letters.
73577         (base_len): Preserve // when it is special.
73578         (last_component): New method, similar to old base_name semantics.
73579         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
73580         base_name.  Strip redundant slashes from ///.
73581
73582 2006-07-03  Jim Meyering  <jim@meyering.net>
73583
73584         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
73585         macro is used before the first cycle_check call.
73586
73587 2006-07-03  Eric Blake  <ebb9@byu.net>
73588
73589         * modules/dirname (Depends-on): Add xstrndup.
73590
73591 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
73592
73593         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
73594         test cases, so that config.log is a bit easier to follow.
73595
73596 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
73597
73598         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
73599         both are 64 bits, since this seems to be the tradition, and this
73600         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
73601         we ever run into a host that prefers long long to long in this
73602         case, we'll need another configure-time test.  Problem reported by
73603         Jim Meyering.
73604
73605 2006-07-02  Eric Blake  <ebb9@byu.net>
73606
73607         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
73608
73609 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
73610
73611         * modules/inttypes (Depends-on): No longer depends on stdint.
73612         * modules/stdint (Description): Say more about assumptions.
73613         Say that the fast types might differ.  Say macros are used.
73614         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
73615         (Makefile.am): Revise list of substituted symbols to match
73616         new stdint.m4.
73617         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
73618         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
73619         * tests/test-stdint.c (verify_same_types)
73620         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
73621         the code conforms to C99/C89.
73622         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
73623         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
73624
73625 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
73626
73627         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
73628         but fix a bug, by requiring at least 64 bits.
73629         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
73630         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
73631         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
73632         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
73633
73634         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
73635         changes.  Make 2.59 a prerequisite.  Check and substitute for
73636         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
73637         inttypes.h.  Do not use special include files; just use the
73638         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
73639         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
73640         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
73641         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
73642         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
73643         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
73644         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
73645         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
73646         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
73647         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
73648         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
73649         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
73650         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
73651         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
73652         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
73653         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
73654         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
73655         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
73656         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
73657         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
73658         WINT_MAX.  Check for C99 conformance more strictly, by detecting
73659         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
73660         not check for things that C99 does not require, e.g., int8_t.  If
73661         a test isn't needed unless <stdint.h> isn't working, and is
73662         unlikely to be needed for any other reason, then don't do it
73663         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
73664         size_t, since we assume C89 freestanding at least.  Do not check
73665         for sig_atomic_t, wchar_t, or wint_t, since the code now does
73666         the right thing even if the types are not defined.  Instead use:
73667         (gl_STDINT_TYPE_PROPERTIES): New macro.
73668         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
73669         testing whether <sys/types.h> clashes, as Autoconf does this for
73670         us now.  All uses removed.
73671         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
73672         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
73673         (gl_CHECK_TYPE_SAME):
73674         Remove; no longer needed.
73675         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
73676         exists, since we'll return 0 anyway in that case.
73677         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
73678
73679 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
73680
73681         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
73682         possible collision with system files.
73683         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
73684         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
73685         WCHAR_MIN and WCHAR_MAX in this case.
73686         (<stddef.h>): Do not include; no longer needed.
73687         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
73688         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
73689         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
73690         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
73691         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
73692         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
73693         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
73694         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
73695         !defined(__c99))]: Include in this case too, since it's harmless
73696         now.
73697         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
73698         dangerous to do so.
73699         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
73700         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
73701         (_STDINT_MIN, _STDINT_MAX): New macros.
73702         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
73703         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
73704         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
73705         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
73706         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
73707         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
73708         macros, not typedefs; this simplifies things quite a bit.
73709         Use long int for all types narrower than int64_t.
73710         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
73711         Define in terms of long long int or int64_t or long int,
73712         not int64_t or int32_t.  This saves some compile-time testing.
73713         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
73714         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
73715         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
73716         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
73717         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
73718         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
73719         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
73720         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
73721         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
73722         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
73723         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
73724         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
73725         undef any previous version and define our own version, for
73726         simplicity and consistency with the new macros for types.
73727         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
73728         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
73729         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
73730         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
73731         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
73732         @WINT_T_SUFFIX@ to keep things simple here.
73733         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
73734         Simplify by assuming typical 8/16/32/64 host, since we're
73735         already doing that elsewhere anyway.
73736         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
73737         and assume long long int is 64 bits if available.  This
73738         speeds up 'configure'.
73739
73740 2006-07-01  Eric Blake  <ebb9@byu.net>
73741
73742         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
73743         Reported by Andreas Buening.
73744
73745 2006-07-01  Eric Blake  <ebb9@byu.net>
73746
73747         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
73748
73749 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
73750
73751         * lib/getaddrinfo.c: fixed typo
73752
73753 2006-06-29  Jim Meyering  <jim@meyering.net>
73754
73755         * modules/strftime (Maintainer): Add my name, since with the
73756         FPRINTFTIME changes strftime.c has forked from glibc.
73757
73758 2006-06-29  Eric Blake  <ebb9@byu.net>
73759
73760         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
73761
73762 2006-06-29  Eric Blake  <ebb9@byu.net>
73763
73764         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
73765
73766 2006-06-29  Eric Blake  <ebb9@byu.net>
73767
73768         * lib/stat_.h: New file.
73769
73770 2006-06-29  Eric Blake  <ebb9@byu.net>
73771
73772         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
73773         unused static function.
73774
73775 2006-06-29  Eric Blake  <ebb9@byu.net>
73776
73777         * doc/functions.texi (Function Portability): Document missing lstat
73778         on mingw.
73779
73780 2006-06-29  Eric Blake  <ebb9@byu.net>
73781
73782         * MODULES.html.sh: Add sys_stat.
73783         * modules/sys_stat: New module.
73784         * modules/mkstemp (Depends-on): Add sys_stat.
73785
73786 2006-06-29  Derek R. Price  <derek@ximbiot.com>
73787
73788         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
73789
73790 2006-06-29  Derek R. Price  <derek@ximbiot.com>
73791
73792         * m4/c-bs-a.m4: Removed.
73793
73794 2006-06-29  Derek R. Price  <derek@ximbiot.com>
73795
73796         * lib/strftime.c: Assume strftime() exists.
73797
73798 2006-06-29  Derek Price  <derek@ximbiot.com>
73799
73800         * modules/c-bs-a: Removed - \a is C89.
73801         * MODULES.html.sh: Remove c-bs-a.
73802
73803 2006-06-29  Bruno Haible  <bruno@clisp.org>
73804
73805         * modules/wcwidth (License): Change to LGPL.
73806
73807 2006-06-28  Simon Josefsson  <jas@extundo.com>
73808
73809         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
73810         on _WIN32.
73811
73812         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
73813         getnameinfo.
73814
73815 2006-06-28  Simon Josefsson  <jas@extundo.com>
73816
73817         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
73818
73819 2006-06-28  Simon Josefsson  <jas@extundo.com>
73820
73821         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
73822         functions there.  It will succeed on Windows XP, but on Windows
73823         2000 and (presumably) earlier, it will fail, and use the internal
73824         re-implementation.
73825         (use_win32_p): New function.
73826         (getaddrinfo): Use strtoul on servname, to support numeric ports.
73827         Support AI_NUMERICSERV to disable getservbyname.
73828         (getnameinfo): New function, only supports
73829         NI_NUMERICHOST|NI_NUMERICSERV for now.
73830
73831         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
73832         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
73833         getnameinfo.
73834
73835 2006-06-28  Eric Blake  <ebb9@byu.net>
73836
73837         * modules/wcwidth: New file.
73838         * modules/mbchar (Depends-on): Add wcwidth.
73839         * modules/mbswidth (Depends-on): Add wcwidth.
73840         * MODULES.html.sh: Add wcwidth.
73841
73842 2006-06-28  Eric Blake  <ebb9@byu.net>
73843
73844         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
73845         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
73846
73847 2006-06-28  Eric Blake  <ebb9@byu.net>
73848
73849         * lib/xvasprintf.h: Fix comments.
73850
73851 2006-06-28  Eric Blake  <ebb9@byu.net>
73852
73853         * lib/mbchar.h (wcwidth): Include wcwidth.h.
73854         * lib/mbswidth.c (wcwidth): Move from here...
73855         * lib/wcwidth.h: ...to this new file.
73856
73857 2006-06-28  Derek R. Price  <derek@ximbiot.com>
73858
73859         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
73860
73861         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
73862         it's obsolete.
73863         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
73864
73865 2006-06-28  Derek R. Price  <derek@ximbiot.com>
73866
73867         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
73868         Autoconf 2.60 says this stuff was obsolete.
73869
73870 2006-06-28  Bruno Haible  <bruno@clisp.org>
73871
73872         * modules/wcwidth (Files): Add m4/wchar_t.m4.
73873
73874 2006-06-28  Bruno Haible  <bruno@clisp.org>
73875
73876         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
73877         gt_TYPE_WCHAR_T.
73878
73879 2006-06-28  Bruno Haible  <bruno@clisp.org>
73880
73881         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
73882         declaration for wcwidth.
73883         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
73884
73885 2006-06-28  Bruno Haible  <bruno@clisp.org>
73886
73887         * lib/mkdtemp.c [MINGW]: Include <io.h>.
73888         (mkdir): Define using _mkdir.
73889
73890 2006-06-28  Bruno Haible  <bruno@clisp.org>
73891
73892         * lib/getaddrinfo.h: Fix POSIX URL.
73893         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
73894         _WIN32.
73895         (use_win32_p): Make static.
73896         (getaddrinfo): Reject service name if it is empty or does not consist
73897         solely of decimal digits, or if its value is > 65535.
73898         (getnameinfo): Remove useless casts.
73899
73900 2006-06-27  Simon Josefsson  <jas@extundo.com>
73901
73902         * modules/sys_select: New file, suggested by Bruno Haible, Paul
73903         Eggert and Martin Lambers.
73904
73905 2006-06-27  Simon Josefsson  <jas@extundo.com>
73906
73907         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
73908         Eggert and Martin Lambers.
73909
73910 2006-06-27  Bruno Haible  <bruno@clisp.org>
73911
73912         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
73913         result to 0, not to empty.
73914         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
73915
73916 2006-06-27  Bruno Haible  <bruno@clisp.org>
73917
73918         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
73919
73920 2006-06-26  Simon Josefsson  <jas@extundo.com>
73921
73922         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
73923         present.
73924
73925 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
73926
73927         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
73928         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
73929         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
73930
73931 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
73932
73933         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
73934
73935 2006-06-26  Bruno Haible  <bruno@clisp.org>
73936
73937         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
73938
73939 2006-06-26  Bruno Haible  <bruno@clisp.org>
73940
73941         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
73942
73943 2006-06-26  Bruno Haible  <bruno@clisp.org>
73944
73945         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
73946         SGI C compiler in pre-C99 mode.
73947         Suggested by Mark D. Baushke and Larry Jones.
73948
73949 2006-06-26  Bruno Haible  <bruno@clisp.org>
73950
73951         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
73952         WCHAR_MAX.
73953         Reported by Mark D. Baushke and Larry Jones.
73954
73955 2006-06-26  Bruno Haible  <bruno@clisp.org>
73956
73957         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
73958         in pre-C99 mode.
73959         Suggested by Mark D. Baushke and Larry Jones.
73960
73961 2006-06-23  Simon Josefsson  <jas@extundo.com>
73962             Bruno Haible  <bruno@clisp.org>
73963
73964         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
73965         Emit mostlyclean-local rule.
73966         (func_emit_tests_Makefile_am): Likewise.
73967         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
73968
73969 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
73970
73971         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
73972
73973 2006-06-23  Bruno Haible  <bruno@clisp.org>
73974
73975         * tests/test-stdint.c: Update to match ISO C 99 Technical
73976         Corrigendum 1.
73977
73978 2006-06-23  Bruno Haible  <bruno@clisp.org>
73979
73980         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
73981
73982 2006-06-23  Bruno Haible  <bruno@clisp.org>
73983
73984         * lib/stdint_.h: Treat IRIX like OpenBSD.
73985
73986 2006-06-23  Bruno Haible  <bruno@clisp.org>
73987
73988         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
73989         ISO C 99 Technical Corrigendum 1.
73990
73991 2006-06-22  Simon Josefsson  <jas@extundo.com>
73992
73993         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
73994         MinGW.
73995
73996 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
73997
73998         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
73999         needed.  Some compiler complained about some of them.  Problem reported
74000         by Larry Jones in
74001         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
74002
74003 2006-06-21  Simon Josefsson  <jas@extundo.com>
74004
74005         * tests/test-getaddrinfo.c: New file.
74006
74007         * modules/getaddrinfo-tests: New file.
74008
74009         * MODULES.html.sh: Add inet_pton.
74010
74011         * modules/inet_pton: New file.
74012
74013 2006-06-21  Simon Josefsson  <jas@extundo.com>
74014
74015         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
74016         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
74017         of using the (limited) gnulib implementation on Windows XP.
74018
74019         * m4/inet_pton.m4: New file.
74020
74021 2006-06-21  Simon Josefsson  <jas@extundo.com>
74022
74023         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
74024         variable.
74025
74026         * lib/socket_.h: Don't define WINVER.
74027
74028         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
74029         slightly modified to work in gnulib.
74030
74031 2006-06-21  Simon Josefsson  <jas@extundo.com>
74032
74033         * doc/gnulib.texi (Windows sockets): Add.
74034
74035 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
74036
74037         * lib/read-file.c (fread_file): Start with buffer allocation of
74038         0 bytes rather than 1 byte; this simplifies the code.
74039         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
74040         code to free buffer and save/restore errno.
74041         (internal_read_file): Remove unused local.
74042
74043 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
74044
74045         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
74046         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
74047         Problem reported by Denis Excoffier in
74048         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
74049
74050 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74051
74052         * modules/sys_socket, modules/socklen: Include sys/types since
74053         FreeBSD 4.x's sys/socket.h needs it.
74054
74055 2006-06-19  Simon Josefsson  <jas@extundo.com>
74056
74057         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
74058
74059 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
74060
74061         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
74062
74063 2006-06-19  Bruno Haible  <bruno@clisp.org>
74064
74065         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
74066         and FULL_PATH_INTTYPES_H in angle brackets.
74067         Reported by Mark D. Baushke <mdb@gnu.org>.
74068
74069 2006-06-17  Eric Blake  <ebb9@byu.net>
74070
74071         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
74072         errno.
74073
74074 2006-06-17  Bruno Haible  <bruno@clisp.org>
74075
74076         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
74077         <sys/inttypes.h>.
74078
74079 2006-06-17  Bruno Haible  <bruno@clisp.org>
74080
74081         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
74082         whether errno is declared. Assume <errno.h> declares errno.
74083
74084 2006-06-17  Bruno Haible  <bruno@clisp.org>
74085
74086         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
74087
74088 2006-06-17  Bruno Haible  <bruno@clisp.org>
74089
74090         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
74091         problem on Solaris 2.5.1.
74092
74093 2006-06-16  Eric Blake  <ebb9@byu.net>
74094
74095         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
74096         * lib/unicodeio.c [!defined errno]: Likewise.
74097         * lib/strtol.c [!defined errno]: Likewise.
74098         * lib/strtod.c [!defined errno]: Likewise.
74099
74100 2006-06-15  Eric Blake  <ebb9@byu.net>
74101
74102         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
74103
74104 2006-06-15  Eric Blake  <ebb9@byu.net>
74105
74106         * config/srclist.txt (ssize_t.m4): Lose sync.
74107
74108 2006-06-15  Bruno Haible  <bruno@clisp.org>
74109
74110         * modules/stdint (Files): Include m4/full-header-path.m4,
74111         m4/size_max.m4, m4/wchar_t.m4.
74112         (Makefile.am): Many more substitutions.
74113         * modules/stdint-tests: New file.
74114         * tests/test-stdint.c: New file.
74115
74116 2006-06-15  Bruno Haible  <bruno@clisp.org>
74117
74118         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
74119         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
74120         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
74121         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
74122         gl_CHECK_TYPE_SAME): New macros.
74123
74124 2006-06-15  Bruno Haible  <bruno@clisp.org>
74125
74126         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
74127
74128 2006-06-15  Bruno Haible  <bruno@clisp.org>
74129
74130         * lib/stdint_.h: Rewritten to be fully auto-configured.
74131         Fixes bug on HP-UX/IA64.
74132
74133 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
74134
74135         * lib/getdate.y (__attribute__): Don't define if already defined.
74136         Problem reported by Larry Jones.
74137         * lib/utimens.c (__attribute__): Likewise.
74138
74139 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
74140
74141         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
74142         reported by Andreas Schwab.
74143
74144 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74145             Bruno Haible  <bruno@clisp.org>
74146
74147         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
74148         check for the declaration of strnlen and a run test that exposes the
74149         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
74150         rpl_strndup.
74151
74152 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74153             Bruno Haible  <bruno@clisp.org>
74154
74155         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
74156
74157 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74158
74159         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
74160         compile test, for Tru64 4.0D.
74161
74162 2006-05-28  Karl Berry  <karl@gnu.org>
74163
74164         * config/srclist.txt (printf-args.c): lose sync.
74165
74166 2006-05-26  Martin Lambers  <marlam@marlam.de>
74167
74168         * lib/getpass.c: Updates the test for the native W32 API, and adds
74169         missing includes, thus fixing compilation warnings.
74170
74171 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
74172
74173         * lib/exclude.c (exclude_fnmatch): New function.
74174         (excluded_file_name): Call exclude_fnmatch.
74175         * lib/exclude.h (excluded_file_name): New prototype
74176
74177 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
74178
74179         * lib/tempname.c (small_open, large_open): New macros.
74180         (__open, __open64) [!_LIBC]: Remove.
74181         (__gen_tempname): Use small_open and large_open instead of __open
74182         and __open64.  This fixes a portability bug on HP-UX 11.11i
74183         reported by Simon Wing-Tang in
74184         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
74185
74186 2006-05-24  Bruno Haible  <bruno@clisp.org>
74187
74188         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
74189         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
74190         Reported by Thorsten Maerz <torte@netztorte.de> via
74191         Aaron Stone <aaron@serendipity.cx>.
74192
74193 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
74194
74195         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
74196         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
74197         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
74198         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
74199         not really conditional on the cache.
74200         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
74201
74202 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
74203
74204         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
74205         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
74206         (my_usleep): Don't mishandle maximum value.
74207
74208 2006-05-19  Jim Meyering  <jim@meyering.net>
74209
74210         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
74211
74212 2006-05-17  Bruno Haible  <bruno@clisp.org>
74213
74214         Cygwin portability.
74215         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
74216
74217 2006-05-17  Bruno Haible  <bruno@clisp.org>
74218
74219         * lib/stdint_.h: Fix recognition of Cygwin.
74220
74221 2006-05-15  Bruno Haible  <bruno@clisp.org>
74222
74223         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
74224         on libtool patch by Ralf Wildenhues.
74225
74226 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
74227
74228         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
74229         test for C99 conformance; (bool) 0.5 is an integer constant
74230         expression, but (bool) -0.5 is not.  Problem reported by Fedor
74231         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
74232
74233 2006-05-11  Simon Josefsson  <jas@extundo.com>
74234
74235         * m4/xvasprintf.m4: Fix obvious typo.
74236
74237 2006-05-11  Jim Meyering  <jim@meyering.net>
74238
74239         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
74240         James Lemley.
74241
74242 2006-05-10  Simon Josefsson  <jas@extundo.com>
74243
74244         * lib/md4.c: Typo fix, update copyright years.
74245         (K1, K2): Don't use L because it turn computations into 64-bit on
74246         64-bit platforms.
74247
74248 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
74249
74250         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
74251         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
74252         unwanted sign propagation, e.g., on hosts with 64-bit int.
74253         There still are some problems with reeelly weird theoretical hosts
74254         (e.g., 33-bit int) but it's not worth worrying about now.
74255         * lib/sha1.c (rol): Likewise.
74256         (K1, K2, K3, K4): Remove unnecessary L suffix.
74257
74258 2006-05-10  Bruno Haible  <bruno@clisp.org>
74259
74260         * lib/des.c: Cast to avoid warnings.
74261
74262 2006-05-09  Bruno Haible  <bruno@clisp.org>
74263
74264         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
74265         (Depends-on): Depend also on xsize, stdarg.
74266         (configure.ac): Add gl_XVASPRINTF.
74267
74268 2006-05-09  Bruno Haible  <bruno@clisp.org>
74269
74270         * m4/xvasprintf.m4: New file.
74271
74272 2006-05-09  Bruno Haible  <bruno@clisp.org>
74273
74274         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
74275         (EOVERFLOW): Define fallback value.
74276         (xstrcat): New function.
74277         (xvasprintf): Recognize the special case of a string concatenation.
74278
74279 2006-05-08  Eric Blake  <ebb9@byu.net>
74280
74281         * gnulib-tool (func_version): Base copyright year on CVS date.
74282         (func_emit_copyright_notice): New function.
74283         (func_emit_lib_Makefile_am): Use it.
74284         (func_emit_tests_Makefile_am): Likewise.
74285         (func_import): Likewise.
74286
74287 2006-05-08  Bruno Haible  <bruno@clisp.org>
74288
74289         * modules/stdarg: New file.
74290         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
74291
74292 2006-05-08  Bruno Haible  <bruno@clisp.org>
74293
74294         * m4/stdarg.m4: New file, from GNU gettext.
74295
74296 2006-05-08  Bruno Haible  <bruno@clisp.org>
74297
74298         * config/srclist.txt (build-aux/config.rpath): different from latest
74299         release.
74300
74301 2006-05-08  Bruno Haible  <bruno@clisp.org>
74302
74303         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
74304
74305 2006-05-05  Jim Meyering  <jim@meyering.net>
74306
74307         * m4/warning.m4: New file, derived from bison's file by the same name.
74308
74309 2006-05-03  Bruno Haible  <bruno@clisp.org>
74310
74311         * lib/stdint_.h: Shorter URL.
74312         * lib/inttypes.h: Likewise.
74313
74314 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
74315
74316         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
74317
74318 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
74319
74320         * lib/verify.h: Document the internals better.  Most of this change
74321         was written by Bruno Haible.
74322
74323 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
74324
74325         * doc/verify.texi: New file, partly based on a proposal by
74326         Bruno Haible.
74327
74328 2006-05-02  Bruno Haible  <bruno@clisp.org>
74329
74330         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
74331         test from here...
74332         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
74333
74334 2006-04-29  Bruno Haible  <bruno@clisp.org>
74335
74336         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
74337         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
74338
74339 2006-04-29  Bruno Haible  <bruno@clisp.org>
74340
74341         * gnulib-tool: Make --update option actually work.
74342
74343 2006-04-29  Bruno Haible  <bruno@clisp.org>
74344
74345         * doc/gcd.texi: New file.
74346         * doc/gnulib.texi: Include it.
74347
74348 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
74349
74350         * lib/getdate.y (get_date): When adding relative date, start with the
74351         initial time, not with the result of the first mktime call.
74352
74353 2006-04-25  Bruno Haible  <bruno@clisp.org>
74354
74355         * gnulib-tool (func_import): Output the include directives in three
74356         blocks, sorted separately.
74357         Reported by Ben Pfaff <blp@cs.stanford.edu>.
74358
74359 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
74360
74361         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
74362         to define main with arguments, for C++.  Reported by Eric Blake.
74363         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
74364         Prefer 'int main ()' to 'int main (void)', for C++.
74365         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
74366         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
74367         for 'main', for C99 and C++.
74368
74369 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
74370
74371         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
74372         Don't assume that exit status -1 is valid.
74373         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
74374         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
74375         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
74376         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
74377         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
74378         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
74379         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
74380         functions can be used without declaring them, or that you can
74381         exit with status -1.
74382         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
74383
74384 2006-04-24  Karl Berry  <karl@gnu.org>
74385
74386         * config/srclist.txt (longdouble.m4): sync lost.
74387
74388 2006-04-24  Eric Blake  <ebb9@byu.net>
74389
74390         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
74391
74392 2006-04-24  Bruno Haible  <bruno@clisp.org>
74393
74394         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
74395         poll() implementation in AIX.
74396         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74397
74398 2006-04-24  Bruno Haible  <bruno@clisp.org>
74399
74400         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
74401         assigned exactly once.
74402
74403 2006-04-23  Claudio Fontana  <claudio@gnu.org>
74404             Bruno Haible  <bruno@clisp.org>
74405
74406         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
74407         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
74408         for AM_CPPFLAGS.
74409
74410 2006-04-23  Bruno Haible  <bruno@clisp.org>
74411
74412         * modules/copy-file: Depend on unistd.
74413         * modules/execute: Likewise.
74414         * modules/fatal-signal: Likewise.
74415         * modules/findprog: Likewise.
74416         * modules/mkdtemp : Likewise.
74417         * modules/pipe: Likewise.
74418         * modules/wait-process: Likewise.
74419
74420 2006-04-23  Bruno Haible  <bruno@clisp.org>
74421
74422         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
74423         condition was already detected.
74424         Reported by Ben Pfaff <blp@cs.stanford.edu>.
74425
74426 2006-04-23  Bruno Haible  <bruno@clisp.org>
74427
74428         * lib/copy-file.c: Include <unistd.h> unconditionally.
74429         * lib/execute.c: Likewise.
74430         * lib/fatal-signal.c: Likewise.
74431         * lib/findprog.c: Likewise.
74432         * lib/mkdtemp.c: Likewise.
74433         * lib/pipe.h: Likewise.
74434         * lib/pipe.c: Likewise.
74435         * lib/wait-process.h: Likewise.
74436
74437 2006-04-23  Bruno Haible  <bruno@clisp.org>
74438
74439         * gnulib-tool (func_usage): Fix --import description. Document
74440         --update.
74441         (func_import): Create temporary file in a temporary directory, if
74442         --dry-run is specified. Silence errors from 'grep' when there are no
74443         m4 files in $m4dir.
74444         (func_create_testdir): Silence errors from 'grep' when there are no
74445         m4 files in $m4dir.
74446         Reported by Karl Berry <karl@freefriends.org>.
74447
74448 2006-04-20  Bruno Haible  <bruno@clisp.org>
74449
74450         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
74451         one argument, so that the code will be portable to Autoconf 2.60.
74452         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
74453         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
74454         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
74455
74456 2006-04-19  Derek Price  <derek@ximbiot.com>
74457             Eric Blake  <ebb9@byu.net>
74458
74459         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
74460         rather than "/full/path.h".  Update comment to match.  Shorten &
74461         generalize m4_translit call via AS_TR_CPP.
74462
74463 2006-04-19  Derek Price  <derek@ximbiot.com>
74464             Eric Blake  <ebb9@byu.net>
74465
74466         * lib/inttypes.h: Correct grammar in comment.
74467
74468 2006-04-18  Derek Price  <derek@ximbiot.com>
74469             Paul Eggert  <eggert@cs.ucla.edu>
74470
74471         * modules/inttypes: New file.
74472         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
74473
74474 2006-04-18  Derek Price  <derek@ximbiot.com>
74475             Paul Eggert  <eggert@cs.ucla.edu>
74476
74477         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
74478         New files.
74479
74480 2006-04-18  Derek Price  <derek@ximbiot.com>
74481             Paul Eggert  <eggert@cs.ucla.edu>
74482
74483         * lib/inttypes.h: New file.
74484         * lib/strtoimax.c: Assume <inttypes.h>.
74485
74486 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
74487
74488         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
74489         isn't mounted.  Problem reported by Kir Kolyshkin.
74490
74491 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
74492
74493         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
74494         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
74495         Derek R. Price.
74496         * lib/regex.h (RE_DUP_MAX): Update comment to match current
74497         implementation.
74498
74499 2006-04-12  Eric Blake  <ebb9@byu.net>
74500
74501         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
74502         is now done automatically by the corresponding Autoconf macro.
74503
74504 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
74505
74506         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
74507         time_r.h.
74508
74509 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
74510
74511         Merge regex changes from libc, removing some of our
74512         POSIX-conformance changes that were rejected and redoing them in a
74513         less-intrusive way.
74514
74515         * lib/regcomp.c (re_compile_internal, init_dfa):
74516         Length arg is now size_t, not Idx.  All uses changed.
74517         (peek_token): Forward decl now says internal_function.
74518         (__re_error_msgid, __re_error_msgid_idx):
74519         Now static rather than extern with attribute_hidden.
74520         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
74521         For some reason libc prefers K&R style defns for external functions.
74522         (regerror) [!defined _LIBC]: Likewise.
74523         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
74524         (seek_collating_symbol_entry, lookup_collation_sequence_value):
74525         (build_range_exp, build_collating_symbol):
74526         Use K&R-style defn.
74527         (re_compile_fastmap): Use '\0' to memset, not 0.
74528         (utf8_sb_map): Make the calculations more obvious.
74529         (init_dfa, parse_bracket_exp, build_charclass_op):
74530         Call calloc and cast result, as glibc does.
74531         (init_word_char, fetch_token, peek_token, peek_token_bracket):
74532         (build_range_exp, build_collating_symbol):
74533         Now internal functions.
74534
74535         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
74536
74537         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
74538         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
74539         Don't depend on VMS; depend on __VMS instead, for POSIX
74540         namespace cleanness.
74541         (regoff_t): Define to ssize_t, not long int.
74542
74543         Remove the REG_ macros named below.  Instead, make the old names
74544         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
74545         __USE_GNU_REGEX.
74546         (REG_BACKSLASH_ESCAPE_IN_LISTS):
74547         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
74548         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
74549         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
74550         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
74551         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
74552         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
74553         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
74554         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
74555         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
74556         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
74557         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
74558         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
74559         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
74560         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
74561         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
74562         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
74563         (REG_NREGS):
74564         Remove.  All uses replaced by the old RE_* names.
74565         (RE_BACKSLASH_ESCAPE_IN_LISTS):
74566         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
74567         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
74568         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
74569         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
74570         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
74571         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
74572         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
74573         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
74574         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
74575         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
74576         Don't bother having these macros be independent of each others'
74577         values, since they no longer exist in the POSIX name space.
74578
74579         Rename the following member names back to their old names,
74580         unless !__USE_GNU_REGEX.  All uses changed back.
74581         (buffer): Renamed from re_buffer.
74582         (allocated): Renamed from re_allocated.
74583         (used): Renamed from re_used.
74584         (syntax): Renamed from re_syntax.
74585         (fastmap): Renamed from re_fastmap.
74586         (translate): Renamed from re_translate.
74587         (can_be_null): Renamed from re_can_be_null.
74588         (regs_allocated): Renamed from re_regs_allocated.
74589         (fastmap_accurate): Renamed from re_fastmap_accurate.
74590         (no_sub): Renamed from re_no_sub.
74591         (not_bol): Renamed from re_not_bol.
74592         (not_eol): Renamed from re_not_eol.
74593         (newline_anchor): Renamed from re_newline_anchor.
74594         (num_regs): Renamed from rm_num_regs.
74595         (start): Renamed from rm_start.
74596         (end): Renamed from rm_end.
74597
74598         (free_state): Move up a bit.
74599
74600         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
74601         #define to be empty.
74602         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
74603         when that is what is intended.
74604         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
74605         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
74606         (MAX): New macro.
74607         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
74608         All uses changed back to re_malloc, etc.  It's now the caller's
74609         responsibility to check for overflow; all callers changed.
74610         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
74611         (re_x2nrealloc): Remove.
74612         (free_state): Remove decl.
74613
74614         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
74615         (re_set_registers, re_exec):
74616         Use K&R-style defn.
74617
74618         2006-01-31  Roland McGrath  <roland@redhat.com>
74619
74620         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
74621         Reported by Mike Frysinger <vapier@gentoo.org>.
74622
74623         2006-01-15  Andreas Jaeger  <aj@suse.de>
74624
74625         [BZ #1950]
74626         * lib/regex_internal.c (re_string_reconstruct): Adjust for
74627         build_wcs_upper_buffer change.
74628         (build_wcs_upper_buffer): Change return type.
74629
74630         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
74631
74632         * lib/regex_internal.h: Include <stdint.h> if available.
74633
74634         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
74635
74636         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
74637
74638         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
74639
74640         * lib/regcomp.c: Adjust for changed secondary hash function.
74641
74642         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
74643
74644         * lib/regex.h: Pretty printing.
74645         Clean up namespace a bit.
74646
74647         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
74648
74649         * lib/regexec.c (update_cur_sifted_state, check_arrival,
74650         check_arrival_add_next_nodes): Avoid using uninitialized variable.
74651
74652         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
74653                     Ulrich Drepper  <drepper@redhat.com>
74654
74655         [BZ #1302]
74656         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
74657         changed.
74658         (bitset_word_t): Renamed from bitset_word.  All uses changed.
74659
74660         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
74661
74662         [BZ #281]
74663         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
74664         * lib/regcomp.c: Remove unnecessary uses of
74665         unsigned RE_TRANSLATE_TYPE.
74666         * lib/regex_internal.h: Likewise.
74667         * lib/regex_internal.c: Likewise.
74668         * lib/regexec.c: Likewise.
74669         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
74670
74671         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
74672
74673         * lib/regexec.c (find_recover_state): Remove unnecessary
74674         initialization.
74675         (transit_state_bkref): Make DFA a const pointer.
74676         (get_subexp): Likewise.
74677         (check_arrival): Likewise.
74678         (update_cur_sifted_state): Likewise.
74679         (re_search_internal): Likewise.
74680         (prune_impossible_nodes): Likewise.
74681         (acquire_init_state_context): Likewise.
74682         (proceed_next_node): Likewise.
74683         (set_regs): Likewise.
74684         (free_fail_stack_return): Likewise.
74685         (check_arrival_expand_ecl): Mark DFA parameter as const.
74686         (check_arrival_expand_ecl_sub): Likewise.
74687         (check_subexp_limits): Likewise.
74688         (sub_epsilon_src_nodes):  Likewise.
74689         (add_epsilon_src_nodes):  Likewise.
74690         (merge_state_array): Likewise.
74691         (update_regs): Likewise.
74692         (build_trtable): Likewise.
74693         (sift_states_backward): Mark MCTX parameter as const.
74694         (build_sifted_states): Likewise.
74695         (update_cur_sifted_state): Likewise.
74696         (sift_states_mkref): Likewise.
74697         (check_arrival_expand_ecl): Mark eclosure as const.
74698         (check_dst_limits_calc_pos_1): Likewise.
74699         * lib/regex_internal.h (re_match_context_t): Make dfa a const
74700         pointer.
74701
74702         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
74703
74704         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
74705         (transit_state_sb): Likewise.
74706         (transit_state_mb): Likewise.
74707         (sift_states_iter_mb): Likewise.
74708         (check_arrival_add_next_nodes): Likewise.
74709         (check_node_accept_bytes): Change first parameter to pointer-to-const.
74710         [_LIBC] (re_search_2_stub): Use mempcpy.
74711
74712         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
74713         mbrtowc for very simple UTF-8 case.
74714
74715         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
74716         a pointer-to-const.
74717         (re_acquire_state_context): Likewise.
74718         * lib/regex_internal.h: Adjust prototypes.
74719
74720         * lib/regex.c: Prevent using C++ compilers.
74721
74722         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
74723         (re_acquire_state_context): Likewise.
74724
74725 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
74726
74727         * modules/regex (Depends-on): Add ssize_t.
74728
74729 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
74730
74731         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
74732         translation table.
74733
74734 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
74735
74736         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
74737
74738 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
74739             Bruno Haible  <bruno@clisp.org>
74740
74741         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
74742         <sys/types.h> and <inttypes.h>.
74743
74744 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74745
74746         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
74747         `__error_t_defined', so argp.h will not typedef the former.
74748
74749 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
74750
74751         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
74752         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
74753         glibc names.  Even if glibc is changed to conform to POSIX, the
74754         traditional names will be available anyway, since regex depends on
74755         the extensions module.  Also, fix a longstanding typo in the
74756         implementation of Spencer ERE test #75 from grep 2.3.  Problems
74757         reported by Emanuele Giaquinta.  Also, change sense of cached
74758         variable, so that the message makes sense.
74759
74760 2006-03-24  Simon Josefsson  <jas@extundo.com>
74761
74762         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
74763         including some doc fixes.
74764         (base64_encode_alloc): Fix +1 bug on allocation failures.
74765
74766 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74767
74768         * lib/base64.c (base64_encode): Do not read past end of array with
74769         unsanitized input on systems with CHAR_BIT > 8.
74770
74771 2006-03-24  Eric Blake  <ebb9@byu.net>
74772
74773         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
74774
74775 2006-03-22  Karl Berry  <karl@gnu.org>
74776
74777         * config/srclist.txt (*setenv.[ch]): get from coreutils.
74778         * config/srclistvars.sh (COREUTILS): new var.
74779
74780 2006-03-17  Jim Meyering  <jim@meyering.net>
74781
74782         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
74783         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
74784
74785 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
74786
74787         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
74788         no longer needs it.  Instead, check that regoff_t is as least
74789         as wide as ptrdiff_t.
74790
74791         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
74792         so that our regex.h stays compatible with the installed regex.
74793         This is helpful for installers who configure --without-included-regex.
74794         Problem reported by Emanuele Giaquinta.
74795
74796 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
74797
74798         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
74799         Typedef to long int, not to off_, as POSIX will likely change
74800         in that direction.
74801
74802 2006-03-15  Eric Blake  <ebb9@byu.net>
74803
74804         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
74805
74806 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
74807
74808         * lib/argp-help.c (validate_uparams): Fix typo
74809         * lib/argp-parse.c (argp_default_options): Consistently begin help
74810         messages with a lowercase letter.
74811
74812 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
74813
74814         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
74815         overrun buffers and shouldn't be used (much as gets shouldn't be
74816         used).
74817         * lib/time_r.c (asctime_r, ctime_r): Likewise.
74818
74819 2006-03-08  Simon Josefsson  <jas@extundo.com>
74820
74821         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
74822         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74823
74824 2006-03-08  Simon Josefsson  <jas@extundo.com>
74825
74826         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
74827         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74828
74829 2006-03-08  Simon Josefsson  <jas@extundo.com>
74830
74831         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
74832         signal that configure disabled the device.
74833
74834 2006-03-08  Simon Josefsson  <jas@extundo.com>
74835
74836         * build-aux/maint.mk: Fix refresh-po, to handle no translated
74837         languages.
74838
74839 2006-03-07  Simon Josefsson  <jas@extundo.com>
74840
74841         * modules/getopt (Depends-on): Add unistd.
74842
74843         * modules/unistd: New file.
74844
74845 2006-03-07  Simon Josefsson  <jas@extundo.com>
74846
74847         * modules/gc-random: New file.
74848
74849 2006-03-07  Simon Josefsson  <jas@extundo.com>
74850
74851         * m4/unistd_h.m4: New file.
74852
74853 2006-03-07  Simon Josefsson  <jas@extundo.com>
74854
74855         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
74856         test to be side-effect free by storing the result in the cache
74857         variable gl_cv_lib_readline, and moving the assignment of
74858         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
74859         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74860
74861 2006-03-07  Simon Josefsson  <jas@extundo.com>
74862
74863         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
74864         error on missing devices (the functions will return an error).
74865
74866         * m4/gc.m4: Move random stuff to gc-random.m4
74867
74868 2006-03-07  Simon Josefsson  <jas@extundo.com>
74869
74870         * lib/unistd_.h: New file.
74871
74872 2006-03-07  Simon Josefsson  <jas@extundo.com>
74873
74874         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
74875
74876 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
74877
74878         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
74879         Problem reported by Juan Manuel Guerrero.
74880
74881 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
74882
74883         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
74884         the unistd module.
74885         * lib/getlogin_r.c: Likewise.
74886         * lib/getlogin_r.h: Likewise.
74887         * lib/glob.c: Likewise.
74888         * lib/pagealign_alloc.c: Likewise.
74889         * lib/unistd_.h: Remove; no longer needed.
74890
74891 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
74892
74893         * MODULES.html.sh (Support for systems lacking POSIX:2001):
74894         Add unistd.
74895         * modules/c-stack (Depends-on): Add unistd.
74896         * modules/getlogin_r: Likewise.
74897         * modules/glob: Likewise.
74898         * modules/pagealign_alloc: Likewise.
74899         * modules/unistd (Files): Remove lib/unistd_.h.
74900         (EXTRA_DIST): Remove.
74901         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
74902         need unistd_.h.
74903         (MOSTLYCLEANFILES): Remove unistd.h-t.
74904
74905 2006-03-03  Simon Josefsson  <jas@extundo.com>
74906
74907         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
74908
74909 2006-03-03  Simon Josefsson  <jas@extundo.com>
74910
74911         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
74912         libidn and bison.
74913
74914 2006-03-03  Simon Josefsson  <jas@extundo.com>
74915
74916         * build-aux/maint.mk: Add indent target.
74917
74918 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
74919
74920         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
74921         our replacement poll.h in any case, to avoid a differing
74922         declaration from a system header.  Seen on AIX.
74923
74924 2006-03-01  Simon Josefsson  <jas@extundo.com>
74925
74926         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
74927         <kasal@ucw.cz>.
74928
74929 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74930
74931         * modules/gettime (Depends-on): Add extensions module.
74932         * modules/nanosleep (Depends-on): Likewise.
74933         * modules/settime (Depends-on): Likewise.
74934
74935 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74936
74937         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
74938         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
74939         pedantically.
74940         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
74941         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
74942
74943         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
74944         not "==".  Reported by Ralf Wildenhues.
74945
74946 2006-03-01  Karl Berry  <karl@gnu.org>
74947
74948         * doc/Copyright/request-*: new files, synced from gnuorg.
74949
74950 2006-03-01  Karl Berry  <karl@gnu.org>
74951
74952         * config/srclist.txt (Copyright/*): new entries.
74953
74954 2006-02-28  Simon Josefsson  <jas@extundo.com>
74955
74956         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
74957
74958 2006-02-27  Simon Josefsson  <jas@extundo.com>
74959
74960         * lib/base64.h: Indent #define's.  From Jim Meyering
74961         <jim@meyering.net>.
74962
74963 2006-02-27  Jim Meyering  <jim@meyering.net>
74964
74965         Revert the change of 2006-02-24, so these files can continue
74966         to be sync'd from gettext.
74967         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
74968         of `config.h'.
74969
74970 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
74971
74972         * modules/intprops: New file.
74973         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
74974         Add intprops.
74975         * modules/getloadavg (Files): Remove lib/intprops.h.
74976         (Depends-on): Add intprops.
74977         * modules/human: Likewise.
74978         * modules/inttostr: Likewise.
74979         * modules/openat: Likewise.
74980         * modules/sig2str: Likewise.
74981         * modules/userspec: Likewise.
74982         * modules/utimecmp: Likewise.
74983         * modules/xnanosleep: Likewise.
74984         * modules/xstrtol: Likewise.
74985
74986 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
74987
74988         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
74989         * modules/lock-tests (TESTS): Use $(EXEEXT).
74990         * modules/tls-tests: Likewise.
74991         * modules/argp-tests: Likewise.
74992         (check_PROGRAMS): New var, replacing...
74993         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
74994
74995 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74996
74997         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
74998         `config.h'.
74999
75000 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
75001
75002         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
75003
75004 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75005
75006         Sync from coreutils.
75007         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
75008         gl_CHDIR_SAFER.
75009
75010 2006-02-22  Jim Meyering  <jim@meyering.net>
75011
75012         Sync from coreutils.
75013         * m4/chdir-safer.m4: New file.
75014
75015 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
75016
75017         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
75018         AT_FDCWD exceeds INT_MAX.
75019         * lib/openat.h (AT_FDCWD): Likewise.
75020
75021 2006-02-17  Eric Blake  <address@hidden>
75022
75023         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
75024
75025 2006-02-16  Simon Josefsson  <jas@extundo.com>
75026
75027         * modules/getaddrinfo (Depends-on): Add sys_socket.
75028
75029 2006-02-15  Simon Josefsson  <jas@extundo.com>
75030
75031         * build-aux/maint.mk: Add dsyntax-check rule.
75032
75033 2006-02-15  Eric Blake  <ebb9@byu.net>
75034
75035         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
75036         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
75037         'present but cannot compile' warnings on cygwin.
75038         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
75039         use ws2tcpip.h if sys/socket.h works.
75040         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
75041         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
75042
75043 2006-02-14  Simon Josefsson  <jas@extundo.com>
75044
75045         * modules/maintainer-makefile (Files): Rename.
75046
75047         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
75048         and (the local) Makefile.cfg to maint-cfg.mk.
75049
75050         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
75051         to the latter.
75052
75053         * modules/maintainer-makefile: New module.
75054
75055         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
75056         severaly stripped to make it possible to build it up from scratch
75057         with reliable tests.
75058
75059         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
75060         fixes to permit overriding the default actions when configure and
75061         makefile are not available.
75062
75063 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
75064
75065         Sync from coreutils.
75066         * modules/lstat (Depends-on): Don't depend on xalloc.
75067         (License): Change from GPL to LGPL, since this is now simply a
75068         replacement for a libc function.
75069
75070 2006-02-14  Jim Meyering  <jim@meyering.net>
75071
75072         Sync from coreutils.
75073
75074         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
75075         failure on deficient systems, and simplify gnulib lgpl dependencies.
75076         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
75077         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
75078
75079         * lib/xalloc-die.c: Remove unused definition of N_.
75080
75081 2006-02-14  Jim Meyering  <jim@meyering.net>
75082
75083         Sync from coreutils.
75084         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
75085         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
75086         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
75087         double-quote uses of that variable, to accommodate the rare case in
75088         which getmntent is available in none of the libraries checked.  This
75089         happens at least on FreeBSD 5.0.
75090
75091 2006-02-13  Simon Josefsson  <jas@extundo.com>
75092
75093         * gnulib-tool (Usage): Fix --import, from
75094         karl@freefriends.org (Karl Berry).
75095
75096 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
75097
75098         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
75099
75100 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
75101
75102         * lib/argp-namefrob.h: Restore changes accidentally lost during the
75103         "autoupdate" on 2005-12-12.
75104
75105 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
75106
75107         * modules/closeout (Depends-on): Remove atexit.
75108
75109 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
75110
75111         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
75112         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
75113
75114 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
75115
75116         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
75117         __EXTENSIONS__ if this causes compilation to fail.  Problem
75118         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
75119         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
75120
75121 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
75122
75123         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
75124         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
75125         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
75126         All uses changed.
75127
75128 2006-01-26  Simon Josefsson  <jas@extundo.com>
75129
75130         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
75131         prototype is visible on mingw32.
75132
75133         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
75134         for mingw32.
75135
75136         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
75137         mingw32).
75138
75139 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
75140
75141         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
75142         attempt to open for write; this always fails, at least on POSIX
75143         hosts.  This reinstates the 2006-01-09 change, which was
75144         inadvertently removed.
75145
75146 2006-01-26  Bruno Haible  <bruno@clisp.org>
75147
75148         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
75149         Reported by Paul Eggert.
75150
75151 2006-01-26  Bruno Haible  <bruno@clisp.org>
75152             Paul Eggert  <eggert@cs.ucla.edu>
75153
75154         * lib/stdbool_.h (_Bool)
75155         [(! (defined __cplusplus || defined __BEOS__)
75156           && !defined __GNUC__
75157           && !(defined __HP_cc || defined __xlc__
75158                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
75159                || defined __sgi))]:
75160         #define to signed char in these cases too; this simplifies
75161         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
75162         etc., separately) and makes it more conservative.
75163
75164 2006-01-25  Simon Josefsson  <jas@extundo.com>
75165
75166         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
75167         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
75168         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
75169
75170 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
75171
75172         * lib/argp-namefrob.h: Bugfix. Remove stray #
75173
75174 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
75175
75176         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
75177         so that we test the test.
75178         Check for yet another HP-UX cc bug involving *bool |= bool.
75179
75180 2006-01-25  Karl Berry  <karl@gnu.org>
75181
75182         * config/srclist.txt (vasnprintf.c): sync lost.
75183
75184 2006-01-25  Jim Meyering  <jim@meyering.net>
75185
75186         Sync from the stable (b5) branch of coreutils:
75187
75188         * lib/fts.c (fts_children): Don't let close() clobber errno from
75189         failed fchdir().
75190
75191         * lib/fts.c (fts_stat): When following a symlink-to-directory,
75192         don't necessarily interpret stat-fails+lstat-succeeds as indicating
75193         a dangling symlink.  That can also happen at least for ELOOP.
75194         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
75195         FYI, this bug predates the inclusion of fts.c in coreutils.
75196
75197         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
75198         in their own block, so pre-c99 compilers don't object.
75199
75200         Avoid the double-free (first in fts_read, second in fts_close) that
75201         would occur when an `active' directory is made inaccessible (e.g.,
75202         via chmod a-x) during a traversal.
75203         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
75204         before returning.  Reproduce this failure by
75205         mkdir -p a/b; cd a; chmod a-x . b
75206         Reported by Stavros Passas.
75207
75208 2006-01-25  Jim Meyering  <jim@meyering.net>
75209
75210         * lib/fileblocks.c: Remove more useless parentheses.
75211         * lib/readutmp.h: Likewise.
75212
75213 2006-01-25  Bruno Haible  <bruno@clisp.org>
75214
75215         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
75216         warnings.
75217         Reported by Paul Eggert.
75218
75219 2006-01-25  Bruno Haible  <bruno@clisp.org>
75220
75221         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
75222         rid of a trap command. For Solaris sh.
75223         Reported by Mark D. Baushke <mdb@gnu.org>.
75224
75225 2006-01-24  Simon Josefsson  <jas@extundo.com>
75226
75227         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
75228         Bruno.
75229
75230 2006-01-24  Karl Berry  <karl@gnu.org>
75231
75232         * config/srclist.txt (argp-namefrob.h): sync lost.
75233
75234 2006-01-24  Jim Meyering  <jim@meyering.net>
75235
75236         * modules/openat (Files): Add lib/intprops.h.
75237         From Mark D. Baushke.
75238
75239 2006-01-24  Jim Meyering  <jim@meyering.net>
75240
75241         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
75242         Reported by Mark D. Baushke.
75243
75244 2006-01-24  Jim Meyering  <jim@meyering.net>
75245
75246         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
75247
75248 2006-01-24  Bruno Haible  <bruno@clisp.org>
75249
75250         * modules/strnlen (Maintainer): Change from glibc to all.
75251
75252 2006-01-24  Bruno Haible  <bruno@clisp.org>
75253
75254         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
75255         Patch by Paul Eggert.
75256
75257 2006-01-24  Bruno Haible  <bruno@clisp.org>
75258
75259         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
75260         already has it.
75261         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
75262         2005-11-26.
75263
75264         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
75265         'signed char' to avoid problems with the built-in _Bool type.
75266         Reported by Paul Eggert on 2005-11-26.
75267
75268 2006-01-24  Bruno Haible  <bruno@clisp.org>
75269
75270         * gnulib-tool (func_import): Avoid constructing complicated sed
75271         expressions inside backquote.
75272         Report and solution by Mark D. Baushke <mdb@gnu.org>.
75273
75274 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
75275
75276         These changes imported from libc.
75277         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
75278         test and two separate function calls.
75279         * lib/strndup.c (__strndup): Add libc_hidden_def.
75280
75281 2006-01-23  Simon Josefsson  <jas@extundo.com>
75282
75283         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
75284         Remove the test_*_SOURCES variable: automake infers it by default.
75285         * modules/tls-tests: Likewise.
75286
75287 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75288
75289         Work around porting bugs reported by Dieter in
75290         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
75291         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
75292         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
75293         Include "getopt.h" first, to check interface.
75294         (getenv): Declare only if defined HAVE_DECL_GETENV &&
75295         !HAVE_DECL_GETENV.
75296         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
75297         (__strndup): Revert to K&R-style function dfns, the glibc style.
75298         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
75299         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
75300         Include strnlen.h first, to get prototype properly.
75301         (strnlen): Renamed from __strnlen.
75302         Remove weak alias.
75303
75304 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75305
75306         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
75307
75308 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75309
75310         * config/srclist.txt: Adjust to reflect glibc reorganization.
75311         This affects only comments.
75312
75313 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75314
75315          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
75316          Reported by Bruce Korb <bkorb@gnu.org>.
75317
75318 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
75319
75320         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
75321         to pacify gcc -Wswitch-default.
75322
75323 2006-01-22  Bruno Haible  <bruno@clisp.org>
75324
75325         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
75326         temporary buffer for sprintf, take into account the precision also
75327         for 'd', 'i', 'u', 'o', 'x', 'X'.
75328
75329 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
75330
75331         * modules/argp-tests: New module
75332         * tests/test-argp.c: New file
75333         * tests/test-argp-2.sh: New file
75334
75335 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
75336
75337         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
75338         (__argp_base_name): Removed
75339         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
75340         typo.
75341         (__argp_base_name): Provide macro definition or extern declaration
75342         depending on the configuration
75343
75344 2006-01-20  Simon Josefsson  <jas@extundo.com>
75345
75346         * modules/inet_ntop (Depends-on): Depend on sys_socket.
75347
75348 2006-01-20  Simon Josefsson  <jas@extundo.com>
75349
75350         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
75351
75352 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
75353
75354         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
75355         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
75356         Suggested by Bruno Haible.
75357
75358 2006-01-20  Karl Berry  <karl@gnu.org>
75359
75360         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
75361         until changes propagate, I guess.
75362
75363 2006-01-19  Simon Josefsson  <jas@extundo.com>
75364
75365         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
75366
75367 2006-01-19  Simon Josefsson  <jas@extundo.com>
75368
75369         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
75370
75371 2006-01-19  Simon Josefsson  <jas@extundo.com>
75372
75373         * gnulib-tool: Set check_PROGRAMS.
75374
75375         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
75376         modules/des-tests, modules/gc-arcfour-tests,
75377         modules/gc-arctwo-tests, modules/gc-des-tests,
75378         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
75379         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
75380         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
75381         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
75382         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
75383         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
75384         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
75385         test_*_SOURCES.
75386
75387 2006-01-18  Simon Josefsson  <jas@extundo.com>
75388
75389         * modules/socklen (Depends-on): Depend on sys_socket.
75390
75391 2006-01-18  Simon Josefsson  <jas@extundo.com>
75392
75393         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
75394         modules/des-tests, modules/gc-arcfour-tests,
75395         modules/gc-arctwo-tests, modules/gc-des-tests,
75396         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
75397         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
75398         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
75399         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
75400         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
75401         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
75402         $(EXEEXT) to automake TESTS variable, for mingw32.
75403
75404 2006-01-17  Simon Josefsson  <jas@extundo.com>
75405
75406         * modules/socklen (Include): Need sys/socket.h.
75407
75408 2006-01-17  Bruno Haible  <bruno@clisp.org>
75409
75410         * modules/ssize_t (Include): Add <sys/types.h>.
75411
75412 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
75413
75414         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
75415         it's not portable and it doesn't work with cross-compiles.
75416         Problem reported by Bruno Haible.  Fix missing-$ typo in
75417         'test "gl_cv_ignore_unused_libraries" ...' that prevented
75418         -zignore from being used with Sun's C compiler.
75419
75420 2006-01-12  Simon Josefsson  <jas@extundo.com>
75421
75422         * lib/base64.c: Fix warning, reported by Bruno Haible
75423         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
75424
75425 2006-01-12  Bruno Haible  <bruno@clisp.org>
75426
75427         * modules/ldd: New file.
75428         * build-aux/ldd.sh.in: New file.
75429         * MODULES.html.sh (Support for building libraries and executables): Add
75430         ldd.
75431
75432 2006-01-12  Bruno Haible  <bruno@clisp.org>
75433
75434         * m4/ldd.m4: New file.
75435
75436 2006-01-12  Bruno Haible  <bruno@clisp.org>
75437
75438         * gnulib-tool (func_import, func_create_testdir): Don't go into an
75439         endless loop while replacing $auxdir with build-aux.
75440
75441 2006-01-11  Simon Josefsson  <jas@extundo.com>
75442
75443         * lib/stdint_.h (SIZE_MAX): Add missing (.
75444
75445 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
75446
75447         Sync from coreutils.
75448         * lib/md5.c: Fix commentary typos.
75449         (alignof, UNALIGNED_P): No need for a GCC-specific version.
75450         * lib/md5.h (__attribute__): Remove; unused.
75451         * lib/sha1.c: Fix commentary to match md5 better.
75452         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
75453         so that we don't need to worry about alignment.  All uses changed.
75454         This merges the 2005-10-28 md5 change into sha1.
75455
75456 2006-01-11  Jim Meyering  <jim@meyering.net>
75457
75458         Sync from coreutils.
75459         * lib/md5.c (OP): Fix spacing.
75460
75461 2006-01-11  Bruno Haible  <bruno@clisp.org>
75462
75463         Ensure automatic ordering between gl_LOCK and gl_ARGP.
75464         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
75465         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
75466
75467 2006-01-11  Bruno Haible  <bruno@clisp.org>
75468
75469         Ensure automatic ordering between gl_LOCK and gl_ARGP.
75470         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
75471         the "early" section as well.
75472
75473 2006-01-11  Bruno Haible  <bruno@clisp.org>
75474
75475         Avoid "ar: no archive members specified" error on MacOS X.
75476         * gnulib-tool (func_modules_add_dummy): New function.
75477         (func_import, func_create_testdir): Invoke it.
75478
75479 2006-01-11  Bruno Haible  <bruno@clisp.org>
75480
75481         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
75482         with $auxdir in AC_CONFIG_FILES statements.
75483
75484 2006-01-11  Bruno Haible  <bruno@clisp.org>
75485
75486         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75487         Initialize also noinst_HEADERS to empty.
75488
75489 2006-01-11  Bruno Haible  <bruno@clisp.org>
75490
75491         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
75492         variables.
75493         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
75494         autoreconf.
75495
75496 2006-01-11  Bruno Haible  <bruno@clisp.org>
75497
75498         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
75499         overridable by the user.
75500         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75501
75502 2006-01-10  Simon Josefsson  <jas@extundo.com>
75503
75504         * modules/sys_socket: New file.
75505
75506 2006-01-10  Simon Josefsson  <jas@extundo.com>
75507
75508         * m4/sys_socket_h.m4: New file.
75509
75510 2006-01-10  Simon Josefsson  <jas@extundo.com>
75511
75512         * lib/socket_.h: New file.
75513
75514 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
75515
75516         * modules/readutmp (Maintainer): Add myself.
75517
75518 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
75519
75520         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
75521         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
75522         People who are still concerned with buggy memcmp implementations
75523         can invoke gl_FUNC_MEMCMP themselves.
75524
75525 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
75526
75527         * lib/regex_internal.h (BITSET_WORD_BITS):
75528         Work around a bug in 64-bit PGC (before version 6.1-2), where the
75529         preprocessor mishandles large unsigned values as if they were signed.
75530         Problem reported by Claudio Fontana in
75531         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
75532
75533 2006-01-10  Jim Meyering  <jim@meyering.net>
75534
75535         Avoid the double-free (first in fts_read, second in fts_close) that
75536         would occur when an `active' directory is made inaccessible (e.g.,
75537         via chmod a-x) during a traversal.
75538         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
75539         before returning.  Reproduce this failure by
75540         mkdir -p a/b; cd a; chmod a-x . b
75541         Reported by Stavros Passas.
75542
75543         Sync from coreutils.
75544         * lib/sha1.c: Tweak grammar in a comment.
75545
75546 2006-01-10  Jim Meyering  <jim@meyering.net>
75547
75548         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
75549         Patch by Joerg Sonnenberger.
75550
75551 2006-01-10  Bruno Haible  <bruno@clisp.org>
75552
75553         * modules/readutmp: Depend on module free.
75554         * modules/strtok_r: Depend on module restrict.
75555
75556 2006-01-10  Bruno Haible  <bruno@clisp.org>
75557
75558         * modules/gettext (configure.ac): Add an invocation of
75559         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
75560
75561 2006-01-10  Bruno Haible  <bruno@clisp.org>
75562
75563         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
75564         Reported by Werner Lemberg <wl@gnu.org>.
75565
75566 2006-01-10  Bruno Haible  <bruno@clisp.org>
75567
75568         * lib/localcharset.c: Update from GNU gettext.
75569
75570 2006-01-10  Bruno Haible  <bruno@clisp.org>
75571
75572         * lib/argp.h (__const): Remove macro. Use const instead.
75573         * lib/argp-fmtstream.h (__const): Likewise.
75574         * lib/glob_.h (__const): Remove macro.
75575         * lib/glob-libc.h: Use const instead of __const.
75576
75577 2006-01-10  Bruno Haible  <bruno@clisp.org>
75578
75579         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
75580         variable.
75581         Needed to avoid an automake error regarding the 'gettext' module.
75582
75583 2006-01-09  Simon Josefsson  <jas@extundo.com>
75584
75585         * modules/inet_ntop (Depends-on): Add restrict.
75586
75587 2006-01-09  Simon Josefsson  <jas@extundo.com>
75588
75589         * modules/gc-rijndael-tests (License): Put under LGPL.
75590
75591         * modules/gc-des-tests (License): Likewise.
75592
75593         * modules/gc-arcfour-tests (License): Likewise.
75594
75595         * modules/gc-arctwo-tests (License): Likewise.
75596
75597         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
75598
75599         * modules/gc-hmac-sha1-tests (Files): Likewise.
75600
75601         * modules/gc-hmac-md5-tests (License): Likewise.
75602
75603         * modules/gc-sha1-tests (License): Likewise.
75604
75605         * modules/gc-md5-tests (License): Likewise.
75606
75607         * modules/gc-md4-tests (License): Likewise.
75608
75609         * modules/gc-md2-tests (License): Likewise.
75610
75611         * modules/gc-tests (License): Likewise.
75612
75613         * modules/des-tests (License): Likewise.
75614
75615         * modules/md4-tests (License): Likewise.
75616
75617         * modules/md2-tests (License): Likewise.
75618
75619 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
75620
75621         Sync from coreutils:
75622
75623         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
75624         * modules/lib-ignore: New file.
75625         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
75626         chdir-safer.m4, lchmod.m4.
75627         * modules/openat: Add mkdirat.c, openat-priv.h.
75628
75629 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
75630
75631         Sync from coreutils.
75632         * m4/lib-ignore.m4: New file.
75633         * m4/lchmod.m4: New file.
75634
75635 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
75636
75637         Sync from coreutils.
75638         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
75639         for write access: POSIX says that must fail.
75640         * lib/fts.c (diropen): Likewise.
75641         * lib/save-cwd.c (save_cwd): Likewise.
75642         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
75643         well, for minor improvements on hosts that lack O_DIRECTORY.
75644         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
75645         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
75646         Fall back on chown if open failed with EACCES.
75647
75648         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
75649         Report an error at compile-time if only a 1-second nominal clock
75650         resolution is found.
75651
75652         * lib/lchmod.h: New file.
75653         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
75654         (make_dir_parents): Use lchown rather than chown, and
75655         lchmod rather than chmod.
75656
75657         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
75658         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
75659         "proc" reported by n0dalus.
75660
75661         * lib/mountlist.c: Include <limits.h>.
75662         (dev_from_mount_options)
75663         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
75664         New function.  It no longer assumes "dev=" has the System V meaning
75665         on Linux (since it doesn't).  It also parses "dev=" more carefully.
75666         (read_file_system_list)
75667         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
75668         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
75669         dev= in that case.
75670
75671         * lib/posixtm.h (PDS_PRE_2000): New macro.
75672         * lib/posixtm.c (year): Arg is now syntax_bits rather than
75673         allow_century.  All usages changed.  Reject dates outside the range
75674         1969-1999 if PDS_PRE_2000 is used.
75675
75676 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
75677
75678         Sync from coreutils.
75679         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
75680         (Time of day items): Mention the possibility of leap seconds.
75681         Problem reported by Dr. David Alan Gilbert.
75682
75683 2006-01-09  Jim Meyering  <jim@meyering.net>
75684
75685         Sync from coreutils.
75686
75687         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
75688
75689         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
75690
75691         * lib/modechange.c (mode_compile): Reject an invalid mode string
75692         that starts with an octal digit.  From Andreas Gruenbacher.
75693
75694         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
75695         and dup to open_safer and dup_safer, respectively.
75696         (openat_permissive): Fix typo in comment.
75697
75698         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
75699         "gettext.h"; either no longer needed or are guaranteed by openat.h.
75700         (_): Remove; no longer needed.
75701         (openat): Renamed from rpl_openat; no need for rpl_openat
75702         since openat.h renames openat for us.
75703         Replace most of the body with a call to openat_permissive,
75704         to avoid duplicate code.
75705         Port to (probably hypothetical) environments were mode_t is
75706         wider than int.
75707         (openat_permissive): Require mode arg, so that we can check
75708         types better.  Put it just after flags.  Change cwd failure
75709         indicator from pointer-to-bool to pointer-to-errno-value.
75710         All callers changed.
75711         Invoke openat_save_fail and/or openat_restore_fail if
75712         cwd_errno is null, so that openat can call us.
75713         (openat_permissive, fdopendir, fstatat, unlinkat):
75714         Simplify errno handling to avoid some duplicate code,
75715         as it's OK to set errno on success.
75716         * lib/openat.h: Revamp code so that function macros depend on
75717         __OPENAT_PREFIX only, not also on AT_FDCWD.
75718         (openat_ro): Remove.  Caller changed to use openat_permissive.
75719         (openat_permissive): Now a macro, if not a function.
75720         (openat_restore_fail, openat_save_fail): Now always functions,
75721         since mkdirat needs them even if __OPENAT_PREFIX is defined.
75722
75723         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
75724         and openat.c.
75725         * lib/mkdirat.c: Include openat-priv.h.
75726         Remove definitions of macros defined therein.
75727         * lib/openat.c: Likewise.
75728
75729         * lib/mkdirat.c (mkdirat): New file and function.
75730         * lib/openat.h (mkdirat): Declare.
75731
75732         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
75733
75734         * lib/openat.h (openat_permissive): Declare.
75735         (openat_ro): Define.
75736
75737         * lib/openat.c (EXPECTED_ERRNO): New macro.
75738         (openat_permissive): New function -- used in remove.c rewrite.
75739         (all functions): Set errno just before returning, only if there
75740         was an actual failure.
75741         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
75742
75743         Emulate openat-family functions using Linux's procfs, if possible.
75744         Idea and some code based on Ulrich Drepper's glibc changes.
75745
75746         * lib/openat.c: (BUILD_PROC_NAME): New macro.
75747         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
75748         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
75749         before falling back on save_cwd and restore_cwd.
75750         (fdopendir, fstatat, unlinkat): Likewise.
75751
75752         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
75753         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
75754
75755         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
75756         as second argument to va_arg.  Otherwise, some versions of gcc
75757         warn that `if this code is reached, the program will abort'.
75758
75759 2006-01-09  Jim Meyering  <jim@meyering.net>
75760
75761         Sync from coreutils.
75762         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
75763         Require openat-priv.h.
75764
75765 2006-01-09  Bruno Haible  <bruno@clisp.org>
75766
75767         * modules/strnlen (Include): Use strnlen.h.
75768
75769 2006-01-09  Bruno Haible  <bruno@clisp.org>
75770
75771         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
75772
75773 2006-01-09  Bruno Haible  <bruno@clisp.org>
75774
75775         * lib/sysexit_.h (EX_OK): New macro.
75776         Suggested by Martin Lambers <marlam@marlam.de>.
75777
75778 2006-01-09  Bruno Haible  <bruno@clisp.org>
75779
75780         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
75781         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
75782
75783 2006-01-09  Bruno Haible  <bruno@clisp.org>
75784
75785         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
75786         numbers.
75787
75788 2006-01-09  Bruno Haible  <bruno@clisp.org>
75789
75790         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
75791         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
75792         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
75793         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
75794
75795 2006-01-09  Bruno Haible  <bruno@clisp.org>
75796
75797         * build-aux/javacomp.sh.in: New file, moved from lib/.
75798         * modules/javacomp-script (Files): Update.
75799         (configure.ac): Add AC_CONFIG_FILES invocation.
75800         (EXTRA_DIST): Remove variable.
75801
75802         * build-aux/javaexec.sh.in: New file, moved from lib/.
75803         * modules/javaexec (Files): Update.
75804         (configure.ac): Add AC_CONFIG_FILES invocation.
75805         (EXTRA_DIST): Remove javaexec.sh.in.
75806
75807         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
75808         * modules/csharpcomp-script (Files): Update.
75809         (configure.ac): Add AC_CONFIG_FILES invocation.
75810         (EXTRA_DIST): Remove variable.
75811
75812         * build-aux/csharpexec.sh.in: New file, moved from lib/.
75813         * modules/csharpexec (Files): Update.
75814         (configure.ac): Add AC_CONFIG_FILES invocation.
75815         (EXTRA_DIST): Remove csharpexec.sh.in.
75816
75817 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
75818
75819         Sync from coreutils.
75820
75821         Add POSIX ACL support
75822         * lib/acl.h (copy_acl, set_acl): Add declarations.
75823         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
75824         systems other than Linux.
75825         (chmod_or_fchmod): New function: use fchmod when possible,
75826         and chmod otherwise.
75827         (file_has_acl): Add a POSIX ACL implementation, with a
75828         Linux-specific subcase.
75829         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
75830         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
75831         acls are unsupported.
75832         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
75833         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
75834         are unsupported.
75835
75836 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
75837
75838         Sync from coreutils.
75839         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
75840
75841 2006-01-07  Bruno Haible  <bruno@clisp.org>
75842
75843         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
75844         gl_EARLY.
75845
75846 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
75847
75848         * lib/strftime.c (tzname): Don't declare if it is already #defined.
75849         Problem reported for Mingw by Mark Junker.
75850
75851 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
75852
75853         * README: Gnulib normally doesn't generate a tarball.
75854
75855 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
75856
75857         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
75858         long int, not int, for nanosecond counts, so that people who are
75859         used to POSIX struct timespec won't be surprised.  Reported by Jim
75860         Meyering.
75861
75862 2005-12-28  Bruno Haible  <bruno@clisp.org>
75863
75864         * build-aux/config.rpath: Update from GNU gettext.
75865
75866 2005-12-16  Jim Meyering  <jim@meyering.net>
75867
75868         * modules/fprintftime: New module.
75869         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
75870
75871 2005-12-16  Jim Meyering  <jim@meyering.net>
75872
75873         * m4/fprintftime.m4: New file.
75874
75875 2005-12-16  Jim Meyering  <jim@meyering.net>
75876
75877         * lib/fprintftime.c, lib/fprintftime.h: New files.
75878
75879 2005-12-15  Simon Josefsson  <jas@extundo.com>
75880
75881         * modules/socklen (configure.ac): Fix M4 macro name, to align with
75882         new m4/socklen.m4.
75883
75884 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
75885
75886         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
75887         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
75888
75889 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
75890
75891         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
75892         * lib/argp-help.c (fill_in_uparams): Check if the constructed
75893         struct uparams is valid. Fall back to the default values if it is
75894         not.
75895
75896 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75897
75898         * modules/argp (Files): Add argp-pin.c
75899         (Depends-on): dirname
75900         (lib_SOURCES): Add argp-pin.c
75901
75902 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75903
75904         * m4/argp.m4:  Check if program_invocation_name and
75905         program_invocation_short_name are declared and define appropriate
75906         macros if they are not.
75907
75908 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75909
75910         * lib/argp-help.c (__argp_base_name): New function
75911         (__argp_short_program_name): Rewrite using __argp_base_name
75912         * lib/argp-namefrob.h: Define program_invocation_name and
75913         program_invocation_short_name if requested
75914         (__argp_base_name): Add prototype
75915         * lib/argp-parse.c (argp_def): Use gettext wrappers
75916         (argp_default_parser): Use __argp_base_name
75917         * lib/argp-pin.c: New file. Defines program_invocation_name and
75918         program_invocation_short_name on systems that lack them.
75919
75920 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
75921
75922         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
75923         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
75924         porting problem reported by Georg Schwarz in
75925         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
75926
75927 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
75928
75929         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
75930         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
75931         porting problem reported by Georg Schwarz in
75932         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
75933
75934 2005-12-05  Bruno Haible  <bruno@clisp.org>
75935
75936         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
75937         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
75938         Reported by Mark Junker <mjscod@gmx.de>.
75939
75940 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
75941
75942         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
75943         Use implementation from Albert Chin, with some
75944         comments/corrections by Stepan Kasal and myself.
75945
75946 2005-12-02  Bruno Haible  <bruno@clisp.org>
75947
75948         * gnulib-tool (func_import): Accept GPLed build tool modules when
75949         --lgpl is given.
75950         * modules/csharpcomp-script: New file.
75951         * modules/csharpcomp: Depend on it.
75952         * modules/javacomp-script: New file.
75953         * modules/javacomp: Depend on it.
75954         Suggested by Simon Josefsson.
75955
75956 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
75957
75958         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
75959         statement, to work around an HP-UX 10.20 compiler bug reported by
75960         Peter O'Gorman.
75961
75962 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
75963
75964         * modules/savedir (Depends-on): Add openat.
75965
75966 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
75967
75968         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
75969         (uintmax_t) [defined uintmax_t]: Do not declare.
75970         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
75971         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
75972         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
75973         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
75974         sake of portability to weird hosts that C allows (though we don't
75975         know of any practical examples).
75976
75977         * lib/savedir.h (fdsavedir): New decl.
75978         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
75979         contains most of the former guts of savedir.
75980         (savedir): Use savedirstream.
75981         Include "openat.h".
75982
75983 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
75984
75985         * modules/obstack (Files): Add m4/ulonglong.m4.
75986         Problem reported by Davide Angelocola.
75987
75988 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
75989
75990         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
75991         coreutils no longer futzes with rounding modes.
75992
75993 2005-11-14  Jim Meyering  <jim@meyering.net>
75994
75995         * lib/mkstemp-safer.c: Include <config.h>, required for possible
75996         replacement of mkstemp.
75997
75998 2005-11-10  Simon Josefsson  <jas@extundo.com>
75999
76000         * lib/readline.c: Remove EOL.
76001
76002 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
76003
76004         * modules/gethrxtime (Depends-on): Add gettime.
76005
76006 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
76007
76008         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
76009         or gettimeofday; no longer needed.
76010
76011 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
76012
76013         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
76014         time business.
76015         (gethrxtime) [! (HAVE_NANOUPTIME
76016         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
76017         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
76018         our own approximation.
76019
76020 2005-11-08  Eric Blake  <ebb9@byu.net>
76021
76022         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
76023
76024 2005-11-08  Eric Blake  <ebb9@byu.net>
76025
76026         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
76027
76028 2005-11-04  Bruno Haible  <bruno@clisp.org>
76029
76030         * gnulib-tool: Implement --update mode.
76031
76032 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
76033
76034         Fix porting problem reported by Theodoros V. Kalamatianos.
76035         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
76036         Don't assume that futimes failing means we must fail.
76037
76038 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
76039
76040         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
76041         variables to suggest the intended function of the PATH_MAX check.
76042
76043 2005-10-30  Kean Johnston  <jkj@sco.com>
76044
76045         Trivial changes to support SCO systems.
76046         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
76047         as PATH_MAX.
76048         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
76049         where __ptr is null when no I/O is pending.
76050
76051 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
76052
76053         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
76054         leave errno alone.  Problem reported by Dmitry V. Levin.
76055
76056 2005-10-28  Simon Josefsson  <jas@extundo.com>
76057
76058         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
76059         Test more.
76060
76061         * tests/test-gc-md2.c, tests/test-md2.c: New files.
76062
76063         * modules/md2, modules/md2-tests: New files.
76064
76065 2005-10-28  Simon Josefsson  <jas@extundo.com>
76066
76067         * m4/inet_ntop.m4: More tests.
76068
76069         * m4/gc-md2.m4, md2.m4: New file.
76070
76071 2005-10-28  Simon Josefsson  <jas@extundo.com>
76072
76073         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
76074         "restrict" keywords, as per POSIX.  Protect the function
76075         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
76076         Don't use K&R prototypes.  Check the sprintf return values.
76077         Re-define EAFNOSUPPORT if not present.  Indent.
76078
76079         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
76080         suggested by Bruno Haible <bruno@clisp.org>.
76081
76082         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
76083
76084         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
76085
76086         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
76087         libgcrypt).
76088
76089         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
76090
76091         * lib/md2.h, lib/md2.c: New files.
76092
76093 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
76094
76095         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
76096         errno alone.  Problem reported by Frederic Jolliton.
76097
76098 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
76099
76100         * modules/verify (License): Change from GPL to LGPL.  This is a
76101         tiny module and there are apparently near-equivalents that are
76102         under the BSD license.
76103
76104 2005-10-24  Simon Josefsson  <jas@extundo.com>
76105
76106         * modules/sha1: Relicense to LGPL.
76107
76108 2005-10-24  Simon Josefsson  <jas@extundo.com>
76109
76110         * lib/md4.h: Shrink buffer size, now that we changed the type.
76111
76112 2005-10-23  Simon Josefsson  <jas@extundo.com>
76113
76114         * gnulib-tool (func_import): Fix --tests-base.
76115
76116 2005-10-22  Simon Josefsson  <jas@extundo.com>
76117
76118         * modules/arcfour (Depends-on): Need stdint.
76119
76120 2005-10-22  Simon Josefsson  <jas@extundo.com>
76121
76122         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
76123         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
76124
76125 2005-10-22  Simon Josefsson  <jas@extundo.com>
76126
76127         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
76128         suggested by Bruno Haible <bruno@clisp.org>.
76129
76130 2005-10-22  Simon Josefsson  <jas@extundo.com>
76131
76132         * lib/crc.h: Include stddef.h, for size_t.
76133
76134 2005-10-22  Simon Josefsson  <jas@extundo.com>
76135
76136         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
76137         arcfour_context struct (simplify test vector testing in GNU
76138         Shishi).
76139
76140 2005-10-21  Simon Josefsson  <jas@extundo.com>
76141
76142         * modules/des, modules/des-tests: New files.
76143
76144         * modules/gc-des, modules/gc-des-tests: New files.
76145
76146         * tests/test-des.c, tests/test-gc-des.c: New file.
76147
76148 2005-10-21  Simon Josefsson  <jas@extundo.com>
76149
76150         * modules/arctwo, modules/arctwo-tests: New files.
76151
76152         * tests/test-arctwo.c: New file.
76153
76154         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
76155
76156         * tests/test-gc-arctwo.c: New file.
76157
76158 2005-10-21  Simon Josefsson  <jas@extundo.com>
76159
76160         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
76161         Bruno Haible <bruno@clisp.org>.
76162
76163         * m4/gc-des.m4: New file.
76164
76165 2005-10-21  Simon Josefsson  <jas@extundo.com>
76166
76167         * m4/arctwo.m4: New file.
76168
76169         * m4/gc-arctwo.m4: New file.
76170
76171 2005-10-21  Simon Josefsson  <jas@extundo.com>
76172
76173         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
76174         block.
76175
76176 2005-10-21  Simon Josefsson  <jas@extundo.com>
76177
76178         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
76179         <bruno@clisp.org>.
76180
76181         * lib/hmac-sha1.c (hmac_sha1): Likewise.
76182
76183         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
76184         Bruno Haible <bruno@clisp.org>.
76185
76186         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
76187         <bruno@clisp.org>.
76188
76189 2005-10-21  Simon Josefsson  <jas@extundo.com>
76190
76191         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
76192
76193 2005-10-21  Simon Josefsson  <jas@extundo.com>
76194
76195         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
76196
76197 2005-10-21  Simon Josefsson  <jas@extundo.com>
76198
76199         * lib/des.h, lib/des.c: New files.
76200
76201         * lib/gc-gnulib.c: Support DES.c
76202
76203 2005-10-21  Simon Josefsson  <jas@extundo.com>
76204
76205         * lib/arctwo.h, lib/arctwo.c: New files.
76206
76207         * lib/gc-gnulib.c: Support ARCTWO.
76208
76209 2005-10-21  Simon Josefsson  <jas@extundo.com>
76210
76211         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
76212         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76213
76214 2005-10-21  Simon Josefsson  <jas@extundo.com>
76215
76216         * gnulib-tool (func_import, func_create_testdir): Define automake
76217         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
76218         Makefile.am snippet),
76219         suggested by Bruno Haible <bruno@clisp.org>.
76220
76221         * modules/gc (Makefile.am): Use it.
76222
76223 2005-10-21  Bruno Haible  <bruno@clisp.org>
76224
76225         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
76226         patch.
76227
76228 2005-10-19  Simon Josefsson  <jas@extundo.com>
76229
76230         * tests/test-gc-rijndael.c: New file.
76231
76232         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
76233
76234 2005-10-19  Simon Josefsson  <jas@extundo.com>
76235
76236         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
76237         interface too.
76238
76239 2005-10-19  Simon Josefsson  <jas@extundo.com>
76240
76241         * tests/test-gc-arcfour.c: New file.
76242
76243         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
76244
76245 2005-10-19  Simon Josefsson  <jas@extundo.com>
76246
76247         * modules/gc-md4, modules/gc-md4-tests: New file.
76248
76249         * tests/test-gc-md4.c: New file.
76250
76251 2005-10-19  Simon Josefsson  <jas@extundo.com>
76252
76253         * m4/gc-md4.m4: New file.
76254
76255 2005-10-19  Simon Josefsson  <jas@extundo.com>
76256
76257         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
76258         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
76259         <kasal@ucw.cz>.
76260
76261 2005-10-19  Simon Josefsson  <jas@extundo.com>
76262
76263         * m4/gc-arcfour.m4: New file.
76264
76265         * m4/gc-rijndael.m4: New file.
76266
76267 2005-10-19  Simon Josefsson  <jas@extundo.com>
76268
76269         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
76270
76271 2005-10-19  Simon Josefsson  <jas@extundo.com>
76272
76273         * lib/gc-gnulib.c: Support ARCFOUR.
76274
76275 2005-10-19  Simon Josefsson  <jas@extundo.com>
76276
76277         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
76278         support.
76279
76280         * lib/gc.h: Add ECB enum type.
76281
76282         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
76283
76284 2005-10-18  Simon Josefsson  <jas@extundo.com>
76285
76286         * tests/test-md5.c: New file.
76287
76288         * modules/md5-tests: New file.
76289
76290 2005-10-18  Simon Josefsson  <jas@extundo.com>
76291
76292         * tests/test-md4.c: New file.
76293
76294         * modules/md4, modules/md4-tests: New files.
76295
76296 2005-10-18  Simon Josefsson  <jas@extundo.com>
76297
76298         * m4/md4.m4: New file.
76299
76300 2005-10-18  Simon Josefsson  <jas@extundo.com>
76301
76302         * lib/md4.h, lib/md4.c: New files, based on md5.?.
76303
76304 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
76305
76306         * gnulib-tool (func_create_testdir): Omit the second check whether
76307         BUILT_SOURCES in nonempty.
76308
76309 2005-10-17  Simon Josefsson  <jas@extundo.com>
76310
76311         * tests/test-rijndael.c: New file.
76312
76313 2005-10-17  Simon Josefsson  <jas@extundo.com>
76314
76315         * modules/sha1: Depend on stdint instead of md5.
76316
76317         * modules/md5: Depend on stdint, remove uint32_t.
76318
76319 2005-10-17  Simon Josefsson  <jas@extundo.com>
76320
76321         * modules/gc-sha1-tests: New file.
76322
76323         * tests/test-gc-sha1.c: New file.
76324
76325 2005-10-17  Simon Josefsson  <jas@extundo.com>
76326
76327         * m4/md5.m4: Remove call to uint32_t.m4.
76328
76329 2005-10-17  Simon Josefsson  <jas@extundo.com>
76330
76331         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
76332
76333         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
76334         md5.h.
76335
76336         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
76337
76338         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
76339
76340 2005-10-17  Simon Josefsson  <jas@extundo.com>
76341
76342         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
76343
76344 2005-10-17  Simon Josefsson  <jas@extundo.com>
76345
76346         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
76347
76348 2005-10-17  Simon Josefsson  <jas@extundo.com>
76349
76350         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
76351
76352         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
76353
76354 2005-10-17  Bruno Haible  <bruno@clisp.org>
76355
76356         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
76357         that it can also be used in a test.
76358
76359 2005-10-16  Bruno Haible  <bruno@clisp.org>
76360
76361         * gnulib-tool (func_emit_tests_Makefile_am): Also define
76362         TESTS_ENVIRONMENT, so that individual tests can augment it.
76363
76364         * gnulib-tool (func_create_testdir): Use an intermediate target for
76365         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
76366         macros, like $(ALLOCA_H), which cannot be passed through the command
76367         line.
76368
76369 2005-10-15  Simon Josefsson  <jas@extundo.com>
76370
76371         * modules/rijndael-tests: New file.
76372
76373         * modules/rijndael: New file.
76374
76375 2005-10-15  Simon Josefsson  <jas@extundo.com>
76376
76377         * m4/rijndael.m4: New file.
76378
76379 2005-10-15  Simon Josefsson  <jas@extundo.com>
76380
76381         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
76382
76383         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
76384
76385 2005-10-14  Simon Josefsson  <jas@extundo.com>
76386
76387         * tests/test-arcfour.c: New file.
76388
76389         * modules/arcfour, modules/arcfour-tests: New files.
76390
76391 2005-10-14  Simon Josefsson  <jas@extundo.com>
76392
76393         * m4/arcfour.m4: New file.
76394
76395 2005-10-14  Simon Josefsson  <jas@extundo.com>
76396
76397         * lib/arcfour.h, lib/arcfour.c: New files.
76398
76399 2005-10-14  Roland McGrath  <roland@redhat.com>
76400
76401         Import from libc.  [BZ #1331]
76402         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
76403         macro argument.
76404         Reported by Matej Vela <vela@debian.org>.
76405
76406 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
76407
76408         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
76409         include <wchar.h>; no longer needed.
76410
76411 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
76412
76413         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
76414
76415 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
76416         and  Ulrich Drepper  <drepper@redhat.com>
76417
76418         Import from libc.
76419         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
76420         instead of inline stream orientation test and two separate
76421         function calls.  Pay no attention to USE_IN_LIBIO.
76422
76423 2005-10-13  Simon Josefsson  <jas@extundo.com>
76424
76425         * modules/gc-hmac-md5-tests: New file.
76426
76427         * tests/test-gc-hmac-sha1.c: New file.
76428
76429         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
76430
76431         * modules/gc-hmac-md5-tests: New file.
76432
76433         * tests/test-gc-md5.c: New file.
76434
76435         * modules/gc-md5-tests: New file.
76436
76437 2005-10-13  Simon Josefsson  <jas@extundo.com>
76438
76439         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
76440         Move memory allocation outside of loop.
76441
76442 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
76443
76444         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
76445         intermediate directory is in a read-only file system.  Problem
76446         reported by Eric Blake.
76447
76448 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
76449
76450         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
76451
76452 2005-10-12  Simon Josefsson  <jas@extundo.com>
76453
76454         * tests/test-hmac-sha1.c: New file.
76455
76456         * modules/hmac-sha1-tests: New file.
76457
76458         * modules/hmac-sha1: New file.
76459
76460 2005-10-12  Simon Josefsson  <jas@extundo.com>
76461
76462         * modules/gc-sha1: New file.
76463
76464 2005-10-12  Simon Josefsson  <jas@extundo.com>
76465
76466         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
76467
76468         * tests/test-gc-pbkdf2-sha1.c: New file.
76469
76470 2005-10-12  Simon Josefsson  <jas@extundo.com>
76471
76472         * modules/gc-md5, modules/gc-hmac-md5: New files.
76473
76474         * modules/gc (Files): Remove md5, memxor and hmac files.
76475
76476 2005-10-12  Simon Josefsson  <jas@extundo.com>
76477
76478         * m4/gc-pbkdf2-sha1.m4: New file.
76479
76480         * m4/gc-hmac-sha1.m4: New file.
76481
76482         * m4/gc-sha1: New file.
76483
76484         * m4/hmac-sha1.m4: New file.
76485
76486 2005-10-12  Simon Josefsson  <jas@extundo.com>
76487
76488         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
76489
76490         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
76491
76492 2005-10-12  Simon Josefsson  <jas@extundo.com>
76493
76494         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
76495         suggested by Bruno Haible <bruno@clisp.org>.
76496
76497 2005-10-12  Simon Josefsson  <jas@extundo.com>
76498
76499         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
76500
76501 2005-10-12  Simon Josefsson  <jas@extundo.com>
76502
76503         * lib/gc-pbkdf2-sha1.c: New file.
76504
76505         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
76506
76507 2005-10-12  Simon Josefsson  <jas@extundo.com>
76508
76509         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
76510
76511         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
76512
76513 2005-10-12  Simon Josefsson  <jas@extundo.com>
76514
76515         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
76516         GC_USE_HMAC_MD5, respectively.
76517
76518         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
76519         (gc_md5): Fix typo.
76520
76521         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
76522
76523         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
76524
76525         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
76526
76527 2005-10-12  Bruno Haible  <bruno@clisp.org>
76528
76529         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
76530         Reported by Stepan Kasal <kasal@ucw.cz>.
76531
76532 2005-10-11  Simon Josefsson  <jas@extundo.com>
76533
76534         * tests/test-crc.c: New file.
76535
76536         * modules/crc, modules/crc-tests: New files.
76537
76538 2005-10-11  Simon Josefsson  <jas@extundo.com>
76539
76540         * m4/crc.m4: New file.
76541
76542 2005-10-11  Simon Josefsson  <jas@extundo.com>
76543
76544         * lib/gc.h: Add gc_hash and gc_hash_buffer.
76545
76546         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
76547
76548         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
76549
76550 2005-10-11  Simon Josefsson  <jas@extundo.com>
76551
76552         * lib/crc.h, lib/crc.c: New files.
76553
76554         * lib/gc.h (gc_hash_buffer): Add doc.
76555
76556 2005-10-11  Bruno Haible  <bruno@clisp.org>
76557
76558         * modules/c-strcasestr: New file.
76559         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
76560
76561 2005-10-11  Bruno Haible  <bruno@clisp.org>
76562
76563         * modules/c-strcase: New file.
76564         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
76565
76566 2005-10-11  Bruno Haible  <bruno@clisp.org>
76567
76568         * lib/strcasecmp.c: Include limits.h.
76569         (strcasecmp): Avoid integer overflow on exotic platforms.
76570         * lib/strncasecmp.c: Include limits.h.
76571         (strncasecmp): Avoid integer overflow on exotic platforms.
76572         Reported by Paul Eggert.
76573
76574 2005-10-11  Bruno Haible  <bruno@clisp.org>
76575
76576         * lib/c-strcasestr.h: New file, from GNU gettext.
76577         * lib/c-strcasestr.c: New file, from GNU gettext.
76578
76579 2005-10-11  Bruno Haible  <bruno@clisp.org>
76580
76581         * lib/c-strcase.h: New file, from GNU gettext.
76582         * lib/c-strcasecmp.c: New file, from GNU gettext.
76583         * lib/c-strncasecmp.c: New file, from GNU gettext.
76584
76585 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
76586
76587         * modules/mempcpy (License): GPL -> LGPL.
76588         * modules/strchrnul (License): Likewise.
76589         * modules/sysexits (License): Likewise.
76590
76591 2005-10-08  Simon Josefsson  <jas@extundo.com>
76592
76593         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
76594
76595 2005-10-07  Simon Josefsson  <jas@extundo.com>
76596
76597         * m4/memxor.m4: Remove gl_C_RESTRICT call.
76598
76599 2005-10-06  Simon Josefsson  <jas@extundo.com>
76600
76601         * tests/test-hmac-md5.c: New file.
76602
76603         * modules/hmac-md5-tests: New file.
76604
76605         * modules/hmac-md5: New file.
76606
76607 2005-10-06  Simon Josefsson  <jas@extundo.com>
76608
76609         * m4/hmac-md5.m4: New file.
76610
76611         * m4/memxor.m4: Require gl_C_RESTRICT.
76612
76613 2005-10-06  Simon Josefsson  <jas@extundo.com>
76614
76615         * lib/memxor.c (memxor): Avoid casts and warnings.
76616
76617 2005-10-06  Simon Josefsson  <jas@extundo.com>
76618
76619         * lib/hmac-md5.c: New file.
76620
76621         * lib/hmac.h: New file.
76622
76623 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
76624
76625         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
76626         promotes to int, not unsigned int, to catch the AIX 5.3
76627         compiler bug.
76628
76629 2005-10-05  Simon Josefsson  <jas@extundo.com>
76630
76631         * modules/memxor: New file.
76632
76633         * modules/iconv (Files): Move config.rpath to havelib, it is used
76634         there.
76635
76636         * modules/havelib (Files): Add config.rpath.
76637
76638 2005-10-05  Simon Josefsson  <jas@extundo.com>
76639
76640         * m4/memxor.m4: New file.
76641
76642 2005-10-05  Simon Josefsson  <jas@extundo.com>
76643
76644         * lib/memxor.c (memxor): Fix compiler error.
76645
76646         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
76647         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
76648
76649         * lib/memxor.h, lib/memxor.c: New files.
76650
76651         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
76652         we assume all systems have it, suggested by Jim Meyering
76653         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
76654         any systems lack sys/socket.h; mingw32 is known to lack it, but we
76655         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
76656         same reasons.
76657
76658 2005-10-05  Simon Josefsson  <jas@extundo.com>
76659
76660         * config/srclist.txt: Add glibc bug 1423 for md5.h.
76661
76662 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
76663
76664         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
76665         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
76666         needed, since the source code now assumes these .h files.
76667
76668 2005-10-05  Derek Price  <derek@ximbiot.com>
76669
76670         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
76671
76672 2005-10-05  Bruno Haible  <bruno@clisp.org>
76673
76674         * modules/stdint (License): Change to LGPL.
76675
76676 2005-10-04  Simon Josefsson  <jas@extundo.com>
76677
76678         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
76679         D. Baushke" <mdb@gnu.org>.
76680
76681 2005-10-04  Bruno Haible  <bruno@clisp.org>
76682
76683         * lib/verify.h (verify_true): Provide alternative definition for C++.
76684
76685 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
76686
76687         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
76688         (SSIZE_MAX): New macro, if not already defined.
76689         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
76690         than 2 GiB.
76691
76692 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
76693
76694         Sync from coreutils.
76695         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
76696         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
76697         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
76698         ULLONG_MAX doesn't work with 2.7.2.1.
76699
76700 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
76701
76702         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
76703         From Ben Pfaff.
76704
76705         * modules/exclude (Depends-on): Depend on verify.
76706         * modules/strtoimax (Depends-on): Likewise.
76707         * modules/utimecmp (Depends-on): Likewise.
76708
76709 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
76710
76711         * lib/exclude.c: Include verify.h.
76712         (verify): Remove.  All callers changed to use verify.h's version.
76713         * lib/strtoimax.c: Likewise.
76714         * lib/utimecmp.c: Likewis.e
76715
76716         Sync from coreutils.
76717         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
76718         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
76719         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
76720         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
76721         bother returning ENOSYS if settimeofday or stime fails; just let
76722         them return whatever errno they want to return.
76723         * lib/utimens.c: Include unistd.h, for dup2.
76724         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
76725         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
76726
76727 2005-10-02  Jim Meyering  <jim@meyering.net>
76728
76729         Sync from coreutils.
76730         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
76731         from glibc-2.2.5 that fails for read-only files.
76732
76733 2005-10-02  Jim Meyering  <jim@meyering.net>
76734
76735         Sync from coreutils.
76736         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
76737         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
76738         `#if HAVE_CONFIG_H'.
76739         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
76740         Remove AT_FDCWD test.
76741         Do not consume the fd unless successful.
76742         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
76743         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
76744         block, so that we don't even try to compile it if settimeofday is
76745         available.  This works around a compilation failure on OSF1 V5.1,
76746         due to stime requiring a `long int*' while tv_sec is `int'.
76747
76748 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
76749
76750         Sync from coreutils.
76751         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
76752         against `yes', rather than just testing for nonempty.
76753
76754 2005-10-01  Simon Josefsson  <jas@extundo.com>
76755
76756         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
76757         and Darwin.
76758
76759         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
76760         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
76761         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
76762         freeaddrinfo and gai_strerror are declared by the POSIX headers.
76763         Check if struct addrinfo is declared.
76764
76765 2005-10-01  Simon Josefsson  <jas@extundo.com>
76766
76767         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
76768         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
76769         AI_* and EAI_* definitions.  Protect function declarations.
76770
76771 2005-10-01  Jim Meyering  <jim@meyering.net>
76772
76773         Sync from coreutils.
76774
76775         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
76776         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
76777         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
76778         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
76779         in the inet and nsl libraries.  Required on Solaris 5.7.
76780
76781 2005-10-01  Jim Meyering  <jim@meyering.net>
76782
76783         Sync from coreutils.
76784         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
76785         in the inet and nsl libraries.  Required on Solaris 5.7.
76786
76787 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
76788
76789         * lib/getdelim.c (getdelim): Remove unused variables.
76790
76791 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
76792
76793         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
76794         so that the code works even with ancient cpp.  Portability problem
76795         with GCC 2.7.2.1 reported by Thomas M.Ott.
76796
76797 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
76798
76799         * modules/regex (Depends-on): Add strcase.
76800
76801         * modules/gethostname (Licence): Change from GPL to LGPL, since
76802         gethostname.c is a trivial implementation of a standard library
76803         function.
76804         * modules/poll (License): Change from GPL to LGPL, since it's
76805         derived from LGPL code.
76806
76807 2005-09-27  Jim Meyering  <jim@meyering.net>
76808
76809         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
76810         HAVE_CONFIG_H.
76811
76812         * lib/intprops.h (signed_type_or_expr__): Define.
76813         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
76814         for unsigned types.
76815
76816 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
76817
76818         * lib/verify.h (verify_expr): Remove, replacing with:
76819         (verify_true): New macro that returns true instead of void.
76820         (verify_type__): Remove.
76821         (verify): Use verify_true rather than verify_type__.
76822
76823 2005-09-26  Bruno Haible  <bruno@clisp.org>
76824
76825         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
76826         is necessary.
76827         (lib_SOURCES): Remove mbchar.c.
76828         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
76829         (Files): Add m4/mbrtowc.m4.
76830         * modules/mbiter: Likewise.
76831         * modules/mbuiter: Likewise.
76832
76833 2005-09-26  Bruno Haible  <bruno@clisp.org>
76834
76835         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
76836         compile mbchar.c if they are not both present.
76837         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
76838         * m4/mbiter.m4 (gl_MBITER): Likewise.
76839         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
76840         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
76841         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
76842
76843 2005-09-25  Jim Meyering  <jim@meyering.net>
76844
76845         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
76846         also uses socklen_t.
76847
76848 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
76849
76850         * lib/utimens.c (ENOSYS): Define if not already defined.
76851         (futimens): Support having a null PATH if the file descriptor
76852         is nonnegative.
76853
76854         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
76855         Remove.
76856         (__attribute): Define to empty unless GCC 3.1 or later.
76857         This works around a core dump on OpenBSD 3.4, which has GCC
76858         2.95.3, which dumps core when given __attribute__(()).  It also
76859         simplifies other tests, since we really don't want to bother with
76860         worrying about which ancient version of GCC supported what.
76861         Original problem reported by Yoann Vandoorselaere, with part of
76862         the fix suggested by Derek Price.
76863
76864 2005-09-24  Jim Meyering  <jim@meyering.net>
76865
76866         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
76867         so we can once again use a positive bitfield width of 1 -- now we
76868         don't have to explain why we were using a bitfield width of 2.
76869
76870 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
76871
76872         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
76873         and similarly for the other external symbols.  Problem reported
76874         by James Gallager.
76875
76876         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
76877         bug reported by Jim Meyering.
76878
76879         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
76880         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
76881         not needed, since socklen is a prerequisite module.
76882
76883 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
76884
76885         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
76886         Problem reported by Eric Blake.
76887         (getaddrinfo): Initialize se so that it's not garbage.
76888         Redo internal storage allocation so that it doesn't make unportable
76889         assumptions about alignment.
76890         Fix a memory leak.
76891
76892         * lib/utimens.c (futimens): Use futimesat if available.
76893         Prefer it to futimes since it doesn't have the futimes bug.
76894
76895         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
76896         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
76897         Instead, declare a function that returns a pointer to an array,
76898         and use verify_type__ to declare the size of the array.
76899         Problem and germ of a solution reported by Bruno Haible.
76900         (verify_type__): Use 2, not 1, for bitfield size, to avoid
76901         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
76902
76903 2005-09-23  Jim Meyering  <jim@meyering.net>
76904
76905         Sync from coreutils.
76906         Correct build failure (socklen_t not defined) on at least
76907         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
76908         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
76909
76910 2005-09-23  Jim Meyering  <jim@meyering.net>
76911
76912         * modules/getaddrinfo (Depends-on): Add socklen.
76913
76914 2005-09-23  Bruno Haible  <bruno@clisp.org>
76915
76916         * tests/test-verify.c: New file.
76917
76918 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
76919
76920         Sync from coreutils.
76921
76922         * modules/argmatch (Depends-on): Add verify.
76923         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
76924         unistd-safer.
76925         * modules/save-cwd (Depends-on): Likewise.
76926
76927         * modules/openat (Files): Add lib/openat-die.c.
76928         (Depends-on): Remove error, exitfail.
76929         Add dirname.
76930
76931         * modules/verify: New file.
76932         * MODULES.html.sh (Diagnostics <assert.h>): New section,
76933         with "verify" module.
76934
76935 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
76936
76937         Sync from coreutils.
76938
76939         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
76940         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
76941         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
76942         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
76943         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
76944         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
76945         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
76946         Don't bother checking for string.h, stdlib.h, unistd.h.
76947         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
76948         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
76949         module's job.
76950         * m4/jm-macros.m4 (gl_MACROS): Likewise.
76951         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
76952
76953         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
76954         (gl_GETDATE): Use it.
76955
76956         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
76957
76958 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
76959
76960         Sync from coreutils.
76961
76962         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
76963         stat-time.h.
76964         * lib/argmatch.h: Include verify.h
76965         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
76966         (ARGMATCH_ASSERT): Remove; unused.
76967         * lib/canonicalize.c: Assume STDC_HEADERS.
76968         * lib/exclude.c: Include "strcase.h".
76969         * lib/regex_internal.h [!defined _LIBC]: Likewise.
76970         * lib/getusershell.c: Include stdio--.h rather than stdio.h
76971         and stdio-safer.h.
76972         (getusershell): Call fopen, not fopen_safer.
76973         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
76974         Do not include unistd-safer.h.
76975         (save_cwd): Don't call fd_safer; no longer needed
76976         now that we include fcntl--.h.
76977
76978         * lib/getdate.y (relative_time): New type.
76979         (RELATIVE_TIME_0): New constant.
76980         (parser_control): Use relative_time instead of doing it ourselves.
76981         (%union): Add new relative_time rel member.
76982         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
76983         Now typeless.
76984         (relunit, relunit_snumber): Now of type rel.
76985         (zone, rel, relunit, get_date): Adjust to above changes.
76986
76987         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
76988         Do not include unistd-safer.h.
76989         (getloadavg): Don't call fd_safer; no longer needed
76990         now that we include fcntl--.h.
76991
76992         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
76993         (make_dir_parents): Treat ENOSYS like EEXIST.
76994
76995         Improve quality of diagnostics on restore_cwd failure.
76996         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
76997         (make_dir_parents): Last arg is now int * (for errno), not bool *.
76998         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
76999         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
77000         each time through the loop.  Do not diagnose restore_cwd failure;
77001         that is the caller's job (and perhaps the caller does not care).
77002
77003         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
77004         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
77005         If the file already exists but is not a directory, don't bother
77006         to try to make its parents.
77007         Close potential file descriptor leak if we can't chdir("/") (!).
77008         Don't always return true if chdir($PWD) fails; return true only
77009         if the requested action was done successfully (except for the
77010         chdir($PWD)).
77011         Don't log final directory unless we actually made it.
77012         Refactor to avoid duplicate code to fix up permissions.
77013         Don't attempt to fix up parent permissions if chdir($PWD) fails.
77014
77015         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
77016         to make it a bit faster and (I hope) clearer.
77017         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
77018         Fix bug in formats like %2N.
77019
77020         * lib/verify.h: New file.
77021
77022 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
77023
77024         Sync from coreutils.
77025         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
77026
77027 2005-09-22  Jim Meyering  <jim@meyering.net>
77028
77029         Sync from coreutils.
77030
77031         * m4/lstat.m4 (gl_FUNC_LSTAT):
77032         Use AC_LIBSOURCES to require lstat.c and lstat.h.
77033         Remove obsolete comment.
77034         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
77035         * m4/xstrtod.m4: Likewise.
77036
77037         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
77038
77039 2005-09-22  Jim Meyering  <jim@meyering.net>
77040
77041         Sync from coreutils.
77042
77043         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
77044
77045         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
77046         the .tm_year member, since otherwise gcc-4.0 would now warn about
77047         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
77048
77049         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
77050         order to avoid an unsuppressible warning from gcc on 64-bit systems.
77051
77052         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
77053         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
77054         when run in a time zone for which daylight savings time is in effect
77055         for the starting date.
77056
77057         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
77058         stop us from restricting permissions of just-created absolute-named
77059         directories.
77060         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
77061         to restore initial working directory.
77062         * lib/mkdir-p.c (make_dir_parents): New parameter:
77063         different_working_dir, to tell caller if/when we change the working
77064         directory and are unable to return to the initial one.
77065         * lib/mkdir-p.h (make_dir_parents): Update prototype.
77066         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
77067         `return false'.  This fixes a bug introduced on 2004-07-30.
77068
77069         * lib/openat.c (fdopendir): Be sure to close the supplied
77070         file descriptor before returning.  This makes our replacement
77071         implementation a little closer to Solaris's, where fdopendir
77072         ties the file descriptor to the returned DIR* pointer.
77073         * lib/openat.c (unlinkat): New function.
77074         * lib/openat.h (unlinkat): Add prototype.
77075         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
77076         (openat_restore_fail): Rename from openat_restore_die.
77077         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
77078
77079         Provide an alternative to exiting immediately upon save_cwd or
77080         restore_cwd failure.  Now, an application can arrange e.g.,
77081         to perform a longjump in that case.
77082         * lib/openat.c: Include dirname.h.
77083         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
77084         (rpl_openat, fdopendir, fstatat): Call openat_save_die
77085         and openat_restore_die rather than calling error directly.
77086         Don't include "error.h" or "exitfail.h"; they're no longer needed.
77087
77088         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
77089         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
77090         define.
77091
77092         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
77093         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
77094                             int utc, int nanoseconds);
77095         Background:
77096         date should not have to allocate a megabyte of virtual memory to
77097         handle a format argument like +%1048575T.  When implemented with
77098         strftime, it must allocate such a buffer, use strftime to fill it
77099         in, print it, then free it.
77100         With fprintftime, it simply prints everything and exits.
77101         With no need for memory allocation, that's one fewer way to fail.
77102         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
77103         optional field width, not before, so we accept %9:z, not %:9z.
77104         (my_strftime): Be sure to use L_('x') for literals.
77105
77106         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
77107         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
77108         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
77109         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
77110         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
77111         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
77112         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
77113         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
77114         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
77115         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
77116         * lib/xgethostname.c, lib/xreadlink.c:
77117         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
77118
77119         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
77120         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
77121         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
77122         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
77123         and don't include <sys/file.h>).
77124
77125 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
77126
77127         Sync from coreutils.
77128
77129         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
77130         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
77131         [!LDAV_DONE]: Avoid unused variable warning.
77132
77133 2005-09-21  Bruno Haible  <bruno@clisp.org>
77134
77135         * lib/unicodeio.h (unicode_to_mb): New declaration.
77136
77137 2005-09-20  Derek Price  <derek@ximbiot.com>
77138
77139         * lib/getaddrinfo.c: Don't include <netdb.h> included from
77140         getaddrinfo.h.
77141
77142 2005-09-20  Bruno Haible  <bruno@clisp.org>
77143
77144         * gnulib-tool: Remove trailing slashes from the values specified for
77145         --source-base, --m4-base, --tests-base, --aux-dir.
77146         Suggested by Simon Josefsson <jas@extundo.com>.
77147
77148 2005-09-20  Bruno Haible  <bruno@clisp.org>
77149
77150         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
77151         func_modules_to_filelist, func_import, func_create_testdir): Make all
77152         sorting results locale-independent, so that gnulib-cache.m4 doesn't
77153         change when gnulib-tool is invoked in a different locale.
77154
77155 2005-09-19  Simon Josefsson  <jas@extundo.com>
77156
77157         * m4/socklen.m4: Fix typo.
77158
77159 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77160
77161         Use a consistent style for including <config.h>.
77162         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
77163         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
77164         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
77165         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
77166         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
77167         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
77168         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
77169         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
77170         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
77171         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
77172         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
77173         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
77174         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
77175         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
77176         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
77177         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
77178         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
77179         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
77180         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
77181         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
77182         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
77183         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
77184         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
77185         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
77186         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
77187         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
77188         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
77189         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
77190         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
77191         lib/xstrtoumax.c, lib/yesno.c:
77192         Standardize inclusion of config.h.
77193         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
77194         lib/inttostr.h:  Removed inclusion of config.h from header files.
77195         * lib/inttostr.c:  Adjusted in-tree users.
77196         * lib/timespec.h: Remove superfluous warning to include config.h.
77197         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
77198         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
77199         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
77200         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
77201         config.h with HAVE_CONFIG_H.
77202
77203 2005-09-19  Jim Meyering  <jim@meyering.net>
77204
77205         * modules/pathmax (License): Change to LGPL.
77206
77207 2005-09-19  Derek Price  <derek@ximbiot.com>
77208
77209         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
77210
77211 2005-09-19  Bruno Haible  <bruno@clisp.org>
77212
77213         * gnulib-tool (import): Provide default for --tests-base.
77214
77215 2005-09-19  Bruno Haible  <bruno@clisp.org>
77216
77217         * doc/quote.texi: New file, extracted from gnulib.texi.
77218         * doc/ctime.texi: New file, extracted from gnulib.texi.
77219         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
77220         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
77221         * doc/gnulib.texi: Include them.
77222
77223 2005-09-18  Bruno Haible  <bruno@clisp.org>
77224
77225         Portability fix.
77226         * gnulib-tool (func_readlink): New function.
77227         (func_ln_if_changed): Use it.
77228
77229 2005-09-18  Bruno Haible  <bruno@clisp.org>
77230
77231         * gnulib-tool: Support --with-tests also with --import.
77232         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
77233         (func_import): Use variables $testsbase and $inctests. Emit a
77234         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
77235         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
77236         SUBDIRS += $testsdir.
77237         (func_create_testdir): Update.
77238
77239 2005-09-18  Bruno Haible  <bruno@clisp.org>
77240
77241         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
77242         instead of $dry_run.
77243         (func_cp_if_changed, func_mv_if_changed): Remove functions.
77244         (func_ln_if_changed): Don't handle dry-run here.
77245         (func_import): In dry-run mode, detect more precisely which actions
77246         would be performed, and don't use "...ing" verbs.
77247
77248 2005-09-18  Bruno Haible  <bruno@clisp.org>
77249
77250         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
77251         (func_import): Use join on two temporary files instead of three nested
77252         loops, in order to determine which files are new or old.
77253
77254 2005-09-18  Bruno Haible  <bruno@clisp.org>
77255
77256         * gnulib-tool (func_import): Comment out code that spits out the
77257         new files with --dry-run.
77258
77259 2005-09-18  Bruno Haible  <bruno@clisp.org>
77260
77261         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
77262
77263 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
77264
77265         * lib/stat-time.h: New file.
77266         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
77267         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
77268         in a different way.
77269         (timespec_cmp): New function.
77270         * lib/utimecmp.c: Include stat-time.h.
77271         (SYSCALL_RESOLUTION): Depend on whether various struct stat
77272         members exist, not on the obsolescent ST_MTIM_NSEC.
77273         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
77274
77275 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
77276
77277         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
77278
77279 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
77280
77281         * MODULES.html.sh (File system functions): Add stat-time.
77282         * modules/stat-time: New file.
77283         * modules/timespec (Files): Remove m4/st_mtim.m4; this
77284         is now done in a different way, by the stat-time module.
77285         * modules/utimecmp (Depends-on): Add stat-time.
77286
77287 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
77288
77289         * m4/st_mtim.m4: Remove.  Superseded by...
77290         * m4/stat-time.m4: New file.
77291         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
77292         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
77293
77294 2005-09-15  Derek Price  <derek@ximbiot.com>
77295
77296         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
77297
77298 2005-09-15  Derek Price  <derek@ximbiot.com>
77299
77300         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
77301         * lib/regex_internal.c: Ditto, using this...
77302         (__GNUC_PREREQ): ...new macro.
77303         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
77304         using...
77305         (__GNUC_PREREQ): ...this new macro.
77306
77307         * lib/strstr.h: Include string.h. Define strstr as a macro here.
77308
77309 2005-09-15  Derek Price  <derek@ximbiot.com>
77310             Paul Eggert  <eggert@cs.ucla.edu>
77311
77312         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
77313         changes, consolidating in...
77314         * lib/regex_internal.h: ...this file.
77315
77316 2005-09-13  Jim Meyering  <jim@meyering.net>
77317
77318         * lib/canon-host.c: Filter through gnu indent and reword comments
77319         slightly.
77320         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
77321
77322 2005-09-13  Derek Price  <derek@ximbiot.com>
77323
77324         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
77325         failure.
77326         Reported by Jim Meyering  <jim@meyering.net>.
77327
77328 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
77329
77330         * lib/base64.c: Typo.
77331         (base64_encode): Put b64str in initialized data section.
77332
77333 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
77334
77335         Merge glibc and coreutils changes into gnulib, plus a few
77336         extra fixes.
77337         * lib/md5.c: Use #error rather than a string.
77338         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
77339         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
77340         (__attribute__): Define to empty for non recent-GCC.
77341         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
77342         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
77343         Renamed from their non-__ counterparts, with new macros replacing
77344         them if not _LIBC.  Add __THROW attribute.
77345         (rol): Remove.
77346         (struct md5_ctx): Align buffer if using GCC.
77347         * lib/sha1.h (struct sha1_ctx): Likewise.
77348         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
77349         The old name was backwards.
77350         (NOTSWAP): Remove; not used.
77351         (rol): New macro, moved here from md5.h.
77352         (sha1_process_block): Remove a FIXME that doesn't make sense.
77353
77354 2005-09-12  Derek Price  <derek@ximbiot.com>
77355
77356         Return usable errors from canon-host.
77357         * lib/canon-host.h: New file.
77358         * lib/canon-host.c (canon_host): Wrap...
77359         (canon_host_r): ...this new function, which now relies exclusively on
77360         getaddrinfo.
77361         (ch_strerror): New function.
77362         (last_cherror): New global.
77363         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
77364         interface.
77365         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
77366         void *.
77367         (freeaddrinfo): Free ai->ai_canonname when set.
77368
77369 2005-09-12  Derek Price  <derek@ximbiot.com>
77370
77371         Make canon-host require getaddrinfo.
77372         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
77373         AC_LIBSOURCE canon-host.h.  Call...
77374         (gl_PREREQ_CANON_HOST): ...this new function, which requires
77375         gl_GETADDRINFO.
77376         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
77377
77378 2005-09-12  Derek Price  <derek@ximbiot.com>
77379
77380         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
77381         LGPL.
77382         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
77383
77384 2005-09-12  Derek Price  <derek@ximbiot.com>
77385
77386         * lib/gai_strerror.c: Include config.h when available.  Include
77387         getaddrinfo.h before other headers to test interface.
77388         Reported by Larry Jones <lawrence.jones@ugs.com>.
77389
77390 2005-09-12  Derek Price  <derek@ximbiot.com>
77391             Paul Eggert  <eggert@cs.ucla.edu>
77392
77393         * modules/glob (Files): Add glob-libc.h.
77394
77395 2005-09-12  Derek Price  <derek@ximbiot.com>
77396             Paul Eggert  <eggert@cs.ucla.edu>
77397
77398         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
77399         glob_.h, glob-libc.h.
77400         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
77401
77402 2005-09-12  Derek Price  <derek@ximbiot.com>
77403             Paul Eggert  <eggert@cs.ucla.edu>
77404
77405         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
77406         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
77407         protecting things that should be done only in gnulib contexts.
77408         * lib/glob_.h: New file, containing only the glob things needed for
77409         gnulib.
77410         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
77411         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
77412         (glob, globfree, glob_pattern_p): Now defined simply in terms of
77413         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
77414         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
77415         and to respect the namespace rules better.
77416
77417 2005-09-08  Simon Josefsson  <jas@extundo.com>
77418
77419         * modules/socklen: New file.
77420
77421 2005-09-08  Simon Josefsson  <jas@extundo.com>
77422
77423         * m4/socklen.m4: New file.
77424
77425 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77426
77427         * modules/utimens (Files): Add m4/utimbuf.m4, since
77428         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
77429         Reported by Sergey Poznyakoff.
77430
77431 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77432
77433         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
77434         definitions, since that's the preferred style in glibc.
77435         Fix a minor spacing issue, and update copyright notice to match
77436         glibc's.
77437
77438 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77439
77440         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
77441
77442 2005-09-06  Simon Josefsson  <jas@extundo.com>
77443
77444         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
77445         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
77446
77447 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
77448
77449         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
77450         warning.
77451
77452 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
77453
77454         * config/srclist.txt: Add glibc bug 1302.
77455
77456 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
77457
77458         Change bitset word type from unsigned int to unsigned long int,
77459         as this has better performance on typical 64-bit hosts.
77460         Port bitset code to hosts with unusual word sizes.
77461         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
77462         (build_collating_symbol):
77463         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
77464         argument is a bitset.  This is merely a style issue, but it makes
77465         it clearer that an entire array is expected.
77466         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
77467         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
77468         Port to the case where bitset_word is not the same as unsigned int.
77469         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
77470         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
77471         Likewise.
77472         * lib/regexec.c (check_dst_limits_calc_pos_1,
77473         check_subexp_matching_top):
77474         (build_trtable, group_nodes_into_DFAstates):
77475         Likewise.
77476         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
77477         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
77478         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
77479         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
77480         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
77481         * lib/regcomp.c (optimize_subexps, lower_subexp):
77482         Work even if bitset_word has holes in its bitwise representation.
77483         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
77484         * lib/regexec.c (check_dst_limits_calc_pos_1,
77485         check_subexp_matching_top):
77486         Likewise.
77487         * lib/regex_internal.c (re_string_reconstruct):
77488         Don't assume UCHAR_MAX == 255.
77489         * lib/regex_internal.h (bitset_set_all): Likewise.
77490         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
77491         All uses changed.
77492         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
77493         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
77494         All uses changed.
77495         (BITSET_WORD_MAX): New macro.
77496         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
77497         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
77498         (bitset_empty, bitset_copy):
77499         Prefer sizeof (bitset) to multiplying it out ourselves.
77500         (bitset_not_merge): Remove; unused.
77501         (bitset_contain): Return bool, not unsigned int with one bit on.
77502         All callers changed.
77503         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
77504         alignment than re_node_set; do this by defining a new internal
77505         type struct dests_alloc and using it to allocate memory.
77506
77507 2005-09-05  Bruno Haible  <bruno@clisp.org>
77508
77509         * gnulib-tool (func_import): Fix comparison in handling of symbolic
77510         links.
77511
77512 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
77513
77514         * modules/size_max (Makefile.am): Add size_max.h
77515
77516 2005-09-04  Derek Price  <derek@ximbiot.com>
77517
77518         * gnulib-tool (func_import): Fix reversed $symbolic logic.
77519
77520 2005-09-03  Simon Josefsson  <jas@extundo.com>
77521
77522         * gnulib-tool: Fix typo.
77523
77524 2005-09-03  Simon Josefsson  <jas@extundo.com>
77525
77526         * config/srclist.txt: Add glibc bug 1293.
77527
77528 2005-09-03  Derek Price  <derek@ximbiot.com>
77529
77530         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
77531         From Larry Jones <lawrence.jones@ugs.com>.
77532
77533 2005-09-02  Simon Josefsson  <jas@extundo.com>
77534
77535         * modules/socklen: New file.
77536
77537 2005-09-02  Simon Josefsson  <jas@extundo.com>
77538
77539         * modules/havelib: New module.
77540
77541         * modules/gettext, modules/iconv, modules/lock, modules/readline:
77542         Use havelib.
77543
77544 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
77545
77546         Check for arithmetic overflow when calculating sizes, to prevent
77547         some buffer-overflow issues.  These patches are conservative, in the
77548         sense that when I couldn't determine whether an overflow was possible,
77549         I inserted a run-time check.
77550         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
77551         macros.
77552         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
77553         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
77554         (re_xnrealloc, re_x2nrealloc): New inline functions.
77555         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
77556         parse_bracket_exp):
77557         (build_equiv_class, build_charclass): Check for arithmetic overflow
77558         in size expression calculations.
77559         * lib/regex_internal.c (re_string_realloc_buffers):
77560         (build_wcs_upper_buffer, re_node_set_add_intersect):
77561         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
77562         (re_dfa_add_node, register_state): Likewise.
77563         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
77564         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
77565         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
77566         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
77567
77568 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
77569
77570         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
77571         m4/ulonglong.m4.  Problem reported by Martin Lambers.
77572
77573 2005-09-02  Bruno Haible  <bruno@clisp.org>
77574
77575         Support for lib vs. lib64 distinction on biarch platforms.
77576         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
77577         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
77578         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
77579
77580 2005-09-02  Bruno Haible  <bruno@clisp.org>
77581
77582         * gnulib-tool (import): In the other first-use case, provide defaults
77583         as well.
77584
77585 2005-09-02  Bruno Haible  <bruno@clisp.org>
77586
77587         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
77588         patches not yet found in the latest gettext release.
77589
77590 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77591
77592         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
77593         to avoid a collision with bits/local_lim.h in glibc.
77594         All uses changed.  Problem reported by Dmitry V. Levin in
77595         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
77596
77597         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
77598         bugs in int versus size_t comparisons.
77599         (re_string_context_at): Fix bug where the code assumed that
77600         Idx is signed.
77601
77602         Use bool where appropriate.
77603         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
77604         All callers changed.
77605         (calc_eclosure_iter): Likewise, for ROOT arg.
77606         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
77607         (build_charclass_op): Likewise, for NON_MATCH arg.
77608         * lib/regex_internal.c (re_string_allocate, re_string_construct):
77609         (re_string_construct_common): Likewise, for ICASE arg.
77610         * lib/regexec.c (re_search_2_stub, re_search_stub):
77611         Likewise, for RET_LEN arg.
77612         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
77613         (set_regs): Likewise, for FL_BACKTRACK arg.
77614         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
77615         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
77616         (calc_eclosure_iter, parse_bracket_exp):
77617         Use bool for internal variables that are booleans.
77618         * lib/regexec.c (re_search_internal, check_matching,
77619         proceed_next_node):
77620         (set_regs, build_sifted_states, sift_states_bkref):
77621         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
77622         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
77623         (find_collation_sequence_value):
77624         Likewise.
77625         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
77626         (re_node_set_compare):
77627         Return bool, not int. All callers changed.
77628         * lib/regexec.c (check_halt_node_context, check_dst_limits):
77629         (build_trtable, check_node_accept): Likewise.
77630         * lib/regex_internal.h: Include stdbool.h.
77631
77632         Fix bugs uncovered when converting to bool.
77633         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
77634         failure instead of charging ahead blindly.
77635         * lib/regex_internal.c (register_state): Likewise.
77636         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
77637         for freeing internal storage.
77638         (group_nodes_into_DFA_states): Use unsigned int, not int, for
77639         bitset pieces used as boolean, to avoid undefined behavior
77640         on hosts that do int overflow checking.
77641
77642 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77643
77644         * config/srclist.txt: Add glibc bugs 1285-1287.
77645
77646 2005-09-01  Jim Meyering  <jim@meyering.net>
77647
77648         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
77649         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
77650         Require gl_STAT_MACROS, too.
77651
77652 2005-09-01  Bruno Haible  <bruno@clisp.org>
77653
77654         * gnulib-tool (import): In the first-use case, provide defaults.
77655
77656 2005-09-01  Bruno Haible  <bruno@clisp.org>
77657
77658         * gnulib-tool (func_import): Remove the .tmp files.
77659
77660 2005-09-01  Bruno Haible  <bruno@clisp.org>
77661
77662         * gnulib-tool (func_import): Fix handling of symbolic links.
77663
77664 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77665
77666         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
77667         old glibc regex code mishandles strings longer than 2**31 bytes.
77668         This patch fixes this when the regex code is used in gnulib
77669         (i.e., outside glibc).
77670
77671         This patch should not affect the use of the regex code inside
77672         glibc.  No doubt this problem also needs to be handled for glibc
77673         as well, but the result will be an incompatible change to the
77674         glibc ABI, and the old ABI will have to be supported too.  That
77675         can be the the subject for another patch.
77676
77677         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
77678         governing whether the rest of this patch is active.  By default,
77679         the macro is disabled and the patch has no effect.
77680         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
77681         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
77682         (struct re_pattern_buffer, re_search, re_search_2, re_match):
77683         (re_match_2, re_set_registers): Use the new types.
77684         * lib/regex_internal.h (Idx, re_hashval_t): New types.
77685         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
77686         New macros.
77687         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
77688         (re_string_context_at, bin_tree_t, re_dfastate_t):
77689         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
77690         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
77691         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
77692         (re_string_char_size_at, re_string_wchar_at):
77693         (re_string_elem_size_at):
77694         Use the new types and macros to port to 64-bit hosts.
77695         Use unsigned types for internal values, so that the code
77696         mostly works even for arrays larger than SSIZE_MAX.
77697         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
77698         (search_duplicated_node, calc_eclosure_iter, fetch_number):
77699         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
77700         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
77701         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
77702         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
77703         (calc_inveclosure, parse_dup_op, build_range_exp):
77704         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
77705         (fetch_number, create_token_tree, mark_opt_subexp):
77706         Likewise.
77707         * lib/regex_internal.c (re_string_construct_common,
77708         create_ci_newstate):
77709         (create_cd_newstate, re_string_allocate, re_string_construct):
77710         (re_string_realloc_buffers, build_wcs_upper_buffer):
77711         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
77712         (re_string_reconstruct, re_string_peek_byte_case):
77713         (re_string_fetch_byte_case, re_string_context_at):
77714         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
77715         (re_node_set_init_copy, re_node_set_add_intersect):
77716         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
77717         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
77718         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
77719         (re_acquire_state, re_acquire_state_context, register_state):
77720         Likewise.
77721         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
77722         search_cur_bkref_entry):
77723         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
77724         (re_search_internal, re_search_2_stub, re_search_stub)
77725         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
77726         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
77727         (update_cur_sifted_state, check_dst_limits):
77728         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
77729         (check_subexp_limits, sift_states_bkref, merge_state_array):
77730         (check_subexp_matching_top, get_subexp, get_subexp_sub):
77731         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
77732         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
77733         (expand_bkref_cache, check_node_accept_bytes):
77734         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
77735         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
77736         (acquire_init_state_context, check_halt_node_context):
77737         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
77738         (sift_states_backward, clean_state_log_if_needed):
77739         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
77740         (find_recover_state, transit_state_sb, transit_state_mb):
77741         (transit_state_bkref, build_trtable, match_ctx_clean):
77742         Likewise.
77743         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
77744         to work around an assumption that REG_MISSING is negative.
77745
77746         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
77747         (seek_collating_symbol_entry) [defined _LIBC]:
77748         (lookup_collation_sequence_value) [defined _LIBC]:
77749         (build_range_exp, build_collating_symbol) [defined _LIBC]:
77750         Use prototypes rather than old-style function definitions.
77751         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
77752         (transit_state_sb) [0]:
77753         (find_collation_sequence_value) [defined _LIBC]: Likewise.
77754
77755         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
77756         rm_eo.
77757
77758         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
77759         (optimize_subexps, lower_subexp):
77760         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
77761         since the signed shift might overflow.  Use 1u<<31 instead.
77762         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
77763         Likewise.
77764         * lib/regexec.c (check_dst_limits_calc_pos_1,
77765         check_subexp_matching_top): Likewise.
77766
77767         * lib/regcomp.c (optimize_subexps, lower_subexp):
77768         Use CHAR_BIT rather than 8, for clarity.
77769         * lib/regexec.c (check_dst_limits_calc_pos_1):
77770         (check_subexp_matching_top): Likewise.
77771         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
77772         have to worry about portability issues when shifting it left.
77773         Remove no-longer-needed test for table_size > 0.
77774         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
77775         in a word, as the resulting behavior is undefined.
77776         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
77777         in one case, a <= should have been an <, and in another case the
77778         whole test was missing.
77779         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
77780         the standard name CHAR_BIT.
77781         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
77782         this is not true on one's complement and signed-magnitude hosts.
77783
77784         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
77785         next_last_offset.
77786         (struct re_dfa_t): Remove unused member states_alloc.
77787         * lib/regcomp.c (init_dfa): Don't initialize unused members.
77788
77789 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77790
77791         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
77792         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
77793         and large-file glibc and in 32-bit large-file Solaris.
77794
77795 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77796
77797         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
77798         lengths fit in regoff_t; this isn't true if regoff_t is the same
77799         width as size_t.
77800         * lib/regex.c (re_search_internal): 5th arg is LAST_START
77801         (= START + RANGE) instead of RANGE.  This avoids overflow
77802         problems when regoff_t is the same width as size_t.
77803         All callers changed.
77804         (re_search_2_stub): Check for overflow when adding the
77805         sizes of the two strings.
77806         (re_search_stub): Check for overflow when adding START
77807         to RANGE; if it occurs, substitute the extreme value.
77808
77809 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77810
77811         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
77812
77813 2005-08-31  Jim Meyering  <jim@meyering.net>
77814
77815         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
77816         a pointer-to-const.
77817         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
77818         (register_state): Likewise.
77819         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
77820         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
77821         (group_nodes_into_DFAstates): Likewise.
77822
77823 2005-08-31  Jim Meyering  <jim@meyering.net>
77824
77825         * check-module: Add a FIXME comment.
77826
77827 2005-08-31  Eric Blake  <ebb9@byu.net>
77828
77829         * modules/unistd-safer (Files): Add unistd--.h.
77830         * modules/stdio-safer (Files): Add stdio--.h.
77831
77832 2005-08-31  Derek Price  <derek@ximbiot.com>
77833
77834         * lib/getdelim.c (getdelim): Return EOF on EOF.
77835         Reported by Larry Jones <lawrence.jones@ugs.com>.
77836
77837 2005-08-31  Bruno Haible  <bruno@clisp.org>
77838
77839         Avoid unnecessary diffs in the generated lib/Makefile.am.
77840         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
77841         the generated files.
77842         (func_import): Don't set cmd.
77843
77844 2005-08-31  Bruno Haible  <bruno@clisp.org>
77845
77846         * lib/strstr.c: Include <stddef.h>, for NULL.
77847         * lib/strcasestr.c: Likewise.
77848         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
77849
77850 2005-08-31  Bruno Haible  <bruno@clisp.org>
77851
77852         * gnulib-tool: New option --macro-prefix.
77853         (func_import): Use macro_prefix.
77854         (import): Handle option --macro-prefix.
77855
77856 2005-08-31  Bruno Haible  <bruno@clisp.org>
77857
77858         * gnulib-tool (import): Rename most ac_* variables to cached_*.
77859         Also use new variables cached_lgpl, cached_libtool.
77860
77861 2005-08-31  Bruno Haible  <bruno@clisp.org>
77862
77863         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
77864         always instantiating them.
77865
77866 2005-08-31  Bruno Haible  <bruno@clisp.org>
77867
77868         * gnulib-tool (func_import): Read the previous cached settings
77869         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
77870         earlier added by gnulib but are now dropped. Warn when a gnulib file
77871         overwrites a non-gnulib file.
77872
77873 2005-08-31  Bruno Haible  <bruno@clisp.org>
77874
77875         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
77876         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
77877         projects that don't keep autogenerated files in CVS. Put into
77878         actioncmd only the specified modules, not the transitive closure.
77879
77880 2005-08-31  Bruno Haible  <bruno@clisp.org>
77881
77882         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
77883         Create directories that shall be filled.
77884         (import): Don't look for gl_* macros in configure.ac. Recurse across
77885         all directories containing a gnulib-cache.m4 files, if meaningful.
77886
77887 2005-08-31  Bruno Haible  <bruno@clisp.org>
77888
77889         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
77890         (import): Set seen_libtool when we see gl_LIBTOOL.
77891
77892 2005-08-31  Bruno Haible  <bruno@clisp.org>
77893
77894         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
77895         declaration macro definitions from generated gnulib.m4.
77896
77897 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
77898
77899         * lib/iconvme.h: Add prototype for iconv_alloc.
77900
77901 2005-08-29  Simon Josefsson  <jas@extundo.com>
77902
77903         * lib/iconvme.c: Fix errno.
77904
77905 2005-08-29  Bruno Haible  <bruno@clisp.org>
77906
77907         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
77908         that it works when the directory contains spaces.
77909
77910 2005-08-29  Bruno Haible  <bruno@clisp.org>
77911
77912         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
77913
77914 2005-08-29  Bruno Haible  <bruno@clisp.org>
77915
77916         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
77917         Emit more advice.
77918
77919 2005-08-29  Bruno Haible  <bruno@clisp.org>
77920         and Stepan Kasal  <kasal@ucw.cz>
77921
77922         * check-module: If more parameters are given, check each of them
77923         separately; add more exceptions, as noted by Jim Meyering.
77924         (check_module): New procedure.
77925         (%exempt_header): Now contains all exceptions.
77926
77927 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
77928
77929         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
77930
77931 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
77932
77933         * lib/iconvme.c: Split iconv_string into iconv_alloc.
77934
77935 2005-08-28  Bruno Haible  <bruno@clisp.org>
77936
77937         * m4/gnulib-tool.m4: New file.
77938
77939 2005-08-27  Jim Meyering  <jim@meyering.net>
77940
77941         * modules/unistd-safer (Files): Add pipe-safer.c.
77942         * modules/fcntl-safer (Files): Add creat-safer.c.
77943
77944 2005-08-27  Jim Meyering  <jim@meyering.net>
77945
77946         * m4/stdlib-safer.m4: New file.  From coreutils.
77947         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
77948         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
77949         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
77950         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
77951         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
77952
77953 2005-08-27  Jim Meyering  <jim@meyering.net>
77954
77955         * lib/fopen-safer.c: Merge minor changes from coreutils.
77956         * lib/dup-safer.c: Likewise.
77957         * lib/fd-safer.c: Likewise.
77958
77959         Merge from coreutils.
77960         * lib/stdio--.h: New file.
77961         * lib/stdlib--.h: New file.
77962         * lib/mkstemp-safer.c: New file.
77963
77964         GNU tar needs these.
77965         * lib/pipe-safer.c: New file.
77966         * lib/creat-safer.c: New file.
77967         * lib/fcntl--.h (creat): Define to creat_safer.
77968         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
77969         * lib/unistd--.h (pipe): Define to pipe_safer.
77970         * lib/unistd-safer.h: Declare pipe_safer.
77971
77972 2005-08-26  Simon Josefsson  <jas@extundo.com>
77973
77974         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
77975         Haible <bruno@clisp.org>.
77976
77977 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
77978
77979         * lib/regex_internal.h: Remove all references to
77980         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
77981         or better.
77982         (bitset_not, bitset_merge, bitset_not_merge):
77983         (bitset_mask, re_string_allocate, re_string_construct):
77984         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
77985         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
77986         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
77987         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
77988         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
77989         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
77990         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
77991         (re_acquire_state_context):
77992         Remove unnecessary forward decls.
77993         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
77994         Put __attribute at function definition,
77995         now that the function decl has been removed.
77996         * lib/regex_internal.c (re_string_peek_byte_case):
77997         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
77998         Likewise.
77999
78000 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
78001
78002         * m4/regex.m4: Add AC_PREREQ(2.50).
78003         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
78004
78005 2005-08-25  Simon Josefsson  <jas@extundo.com>
78006
78007         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
78008         __fsetlocking.
78009
78010 2005-08-25  Simon Josefsson  <jas@extundo.com>
78011
78012         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
78013         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
78014         GLIBC specific code.
78015
78016 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78017
78018         Make regex safe for g++.  This fixes one real bug (an "err"
78019         that should have been "*err").  g++ problem reported by
78020         Sam Steingold.
78021         * lib/regex_internal.h (re_calloc): New macro, consistent with
78022         re_malloc etc.  All callers of calloc changed to use re_calloc.
78023         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
78024         not int.  All callers changed.
78025         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
78026         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
78027         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
78028         (find_recover_state): Change "err" to "*err"; this fixes what
78029         appears to be a real bug.
78030         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
78031         versus int.
78032
78033 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78034
78035         * modules/regex (Depends-on): Add malloc, since the code
78036         assumes that !malloc(0) means failure.
78037
78038 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78039
78040         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
78041
78042         alloca modernization/simplification for regex.
78043         * lib/regex.c: Remove portability cruft for alloca.  This no longer
78044         needs to be at the start of the file, and can be moved into
78045         regex_internal.h and simplified.
78046         * lib/regex_internal.h: Include <alloca.h>.
78047         (__libc_use_alloca) [!defined _LIBC]: New macro.
78048         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
78049         now works outside glibc.
78050
78051 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78052
78053         * config/srclist.txt: Add glibc bugs 1241, 1245.
78054
78055 2005-08-25  Jim Meyering  <jim@meyering.net>
78056
78057         * lib/open-safer.c: Include <config.h>.
78058         Otherwise, we'd lose LARGEFILE support in any file using
78059         e.g. "fcntl--.h"
78060
78061 2005-08-25  Bruno Haible  <bruno@clisp.org>
78062
78063         * m4/minmax.m4: Require autoconf 2.52.
78064         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
78065         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
78066         alternatives of translit over the alphabet.
78067         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
78068
78069 2005-08-24  Simon Josefsson  <jas@extundo.com>
78070
78071         * tests/test-getpass.c: New file.
78072
78073 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
78074
78075         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
78076         for GNU regex features.
78077
78078 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
78079
78080         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
78081         * lib/regex.h (regerror): Likewise.
78082
78083         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
78084         requires this.  (The code never needed it.)
78085
78086         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
78087         All uses of recently-renamed identifiers changed to use the new,
78088         POSIX-compliant names.  The code will build and run just fine
78089         without these changes, but it's better to eat our own dog food
78090         and use the standard-conforming names.
78091
78092         * lib/regex.h: Fix a multitude of POSIX name space violations.
78093         These changes have an effect only for programs that define
78094         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
78095         do not change anything for programs compiled in the normal way.
78096         Also, there is no effect on the ABI.
78097
78098         (_REGEX_SOURCE): New macro.
78099         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
78100         defined and _GNU_SOURCE is not; this fixes a name space violation.
78101
78102         Rename the following macros to obey POSIX requirements.
78103         The old names are still visible as macros if _REGEX_SOURCE is defined.
78104         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
78105         RE_BACKSLASH_ESCAPE_IN_LISTS.
78106         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
78107         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
78108         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
78109         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
78110         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
78111         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
78112         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
78113         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
78114         (REG_INTERVALS): renamed from RE_INTERVALS.
78115         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
78116         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
78117         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
78118         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
78119         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
78120         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
78121         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
78122         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
78123         RE_UNMATCHED_RIGHT_PAREN_ORD.
78124         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
78125         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
78126         (REG_DEBUG): renamed from RE_DEBUG.
78127         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
78128         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
78129         unusual, since we can't clash with the POSIX REG_ICASE.
78130         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
78131         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
78132         (REG_NO_SUB): renamed from RE_NO_SUB.
78133         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
78134         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
78135         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
78136         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
78137         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
78138         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
78139         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
78140         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
78141         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
78142         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
78143         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
78144         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
78145         RE_SYNTAX_POSIX_MINIMAL_BASIC.
78146         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
78147         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
78148         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
78149         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
78150         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
78151         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
78152         (REG_FIXED): Renamed from REGS_FIXED.
78153         (REG_NREGS): Renamed from RE_NREGS.
78154
78155         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
78156         of other REG_* macros, since POSIX says the user is allowed to
78157         #undef these macros selectively.
78158
78159         (reg_errcode_t): Update comment stating what other tables need
78160         to be consistent.
78161
78162         Rename the following enum values to obey POSIX requirements.
78163         The old names are still visible as macros.
78164         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
78165         is not defined, since GNU is supposed to be a superset of POSIX as
78166         much as possible, and since we want reg_errcode_t to be a signed
78167         type for implementation consistency.
78168         (_REG_NOERROR): Renamed from REG_NOERROR.
78169         (_REG_NOMATCH): Renamed from REG_NOMATCH.
78170         (_REG_BADPAT): Renamed from REG_BADPAT.
78171         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
78172         (_REG_ECTYPE): Renamed from REG_ECTYPE.
78173         (_REG_EESCAPE): Renamed from REG_EESCAPE.
78174         (_REG_ESUBREG): Renamed from REG_ESUBREG.
78175         (_REG_EBRACK): Renamed from REG_EBRACK.
78176         (_REG_EPAREN): Renamed from REG_EPAREN.
78177         (_REG_EBRACE): Renamed from REG_EBRACE.
78178         (_REG_BADBR): Renamed from REG_BADBR.
78179         (_REG_ERANGE): Renamed from REG_ERANGE.
78180         (_REG_ESPACE): Renamed from REG_ESPACE.
78181         (_REG_BADRPT): Renamed from REG_BADRPT.
78182         (_REG_EEND): Renamed from REG_EEND.
78183         (_REG_ESIZE): Renamed from REG_ESIZE.
78184         (_REG_ERPAREN): Renamed from REG_ERPAREN.
78185         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
78186         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
78187         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
78188         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
78189
78190         (_REG_RE_NAME, _REG_RM_NAME): New macros.
78191         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
78192         changed.  But support the old name if the new one is not defined
78193         and if _REGEX_SOURCE.
78194
78195         Change the following member names in struct re_pattern_buffer.
78196         The old names are still supported if !_REGEX_SOURCE.
78197         The new names are always supported, regardless of _REGEX_SOURCE.
78198         (re_buffer): Renamed from buffer.
78199         (re_allocated): Renamed from allocated.
78200         (re_used): Renamed from used.
78201         (re_syntax): Renamed from syntax.
78202         (re_fastmap): Renamed from fastmap.
78203         (re_translate): Renamed from translate.
78204         (re_can_be_null): Renamed from can_be_null.
78205         (re_regs_allocated): Renamed from regs_allocated.
78206         (re_fastmap_accurate): Renamed from fastmap_accurate.
78207         (re_no_sub): Renamed from no_sub.
78208         (re_not_bol): Renamed from not_bol.
78209         (re_not_eol): Renamed from not_eol.
78210         (re_newline_anchor): Renamed from newline_anchor.
78211
78212         Change the following member names in struct re_registers.
78213         The old names are still supported if !_REGEX_SOURCE.
78214         The new names are always supported, regardless of _REGEX_SOURCE.
78215         (rm_num_regs): Renamed from num_regs.
78216         (rm_start): Renamed from start.
78217         (rm_end): Renamed from end.
78218
78219         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
78220         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
78221         Prepend __ to parameter names.
78222
78223         Undo yesterday's changes.
78224
78225 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
78226
78227         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
78228         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
78229         lib/regex.c.
78230
78231 2005-08-24  Jim Meyering  <jim@meyering.net>
78232
78233         Sync from coreutils.
78234         * m4/fcntl-safer.m4: New file.
78235
78236         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
78237         and object files for this module.
78238
78239 2005-08-24  Jim Meyering  <jim@meyering.net>
78240
78241         Sync from coreutils.
78242         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
78243
78244 2005-08-24  Jim Meyering  <jim@meyering.net>
78245
78246         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
78247         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
78248
78249 2005-08-24  Jim Meyering  <jim@meyering.net>
78250
78251         * modules/fcntl-safer: New module.
78252         * modules/fts (Depends-on): Add fcntl-safer.
78253         * MODULES.html.sh (File descriptor based Input/Output):
78254         Add fcntl-safer.
78255
78256 2005-08-24  Bruno Haible  <bruno@clisp.org>
78257
78258         Support for unit test modules.
78259         * modules/README: Mention tests modules.
78260         * modules/TEMPLATE-TESTS: New file.
78261         * gnulib-tool: New options --extract-tests-module, --with-tests and
78262         --tests-base (unused for the moment).
78263         (testsbase, inctests): New variables.
78264         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
78265         (func_verify_module): Exclude TEMPLATE-TESTS.
78266         (func_verify_nontests_module, func_verify_tests_module): New functions.
78267         (func_get_dependencies): Add implicit dependency for tests modules.
78268         (func_get_tests_module): New function.
78269         (func_modules_transitive_closure): When --with-tests was specified,
78270         include the unit tests as well, unless explicitly avoided.
78271         (func_emit_lib_Makefile_am): Ignore the tests modules here.
78272         (func_emit_tests_Makefile_am): New function.
78273         (func_create_testdir): When --with-tests was specified, emit a
78274         tests/ directory.
78275         * MODULES.html.sh (Future developments): Update.
78276
78277 2005-08-24  Bruno Haible  <bruno@clisp.org>
78278
78279         * modules/tls-tests: New file.
78280         * tests/test-tls.c: New file, from GNU gettext.
78281
78282 2005-08-24  Bruno Haible  <bruno@clisp.org>
78283
78284         * modules/lock-tests: New file.
78285         * tests/test-lock.c: New file, from GNU gettext.
78286
78287 2005-08-24  Bruno Haible  <bruno@clisp.org>
78288
78289         * lib/lock.h: Add multiple inclusion guard.
78290         * lib/tls.h: Add multiple inclusion guard.
78291
78292 2005-08-24  Bruno Haible  <bruno@clisp.org>
78293
78294         * gnulib-tool: Add support for the --aux-dir option to
78295         --create-testdir, --create-megatestdir, --test, --megatest.
78296         (func_create_testdir, func_create_megatestdir): Optionally emit a
78297         AC_CONFIG_AUX_DIR directive.
78298         (create-testdir, create-megatestdir, test, megatest): Provide a
78299         default value for $auxdir.
78300
78301 2005-08-24  Bruno Haible  <bruno@clisp.org>
78302
78303         * gnulib-tool (import): Use compound statement instead of subshell
78304         where possible.
78305
78306 2005-08-24  Bruno Haible  <bruno@clisp.org>
78307
78308         * gnulib-tool (import): Change --aux-dir default to "build-aux".
78309
78310 2005-08-24  Bruno Haible  <bruno@clisp.org>
78311
78312         * gnulib-tool (func_version): Update.
78313
78314 2005-08-24  Bruno Haible  <bruno@clisp.org>
78315
78316         * gnulib-tool (func_import, func_create_testdir,
78317         func_create_megatestdir): Quote all autoconf macro arguments.
78318
78319 2005-08-24  Bruno Haible  <bruno@clisp.org>
78320
78321         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
78322         option --force, because --force causes the aclocal.m4 of each
78323         subdirectory to be newer than the corresponding config.h.in.
78324
78325 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
78326
78327         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
78328         All contents moved to gl_REGEX.
78329         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
78330         assume that it does.
78331
78332 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
78333
78334         * lib/regex.h (REG_NOSYS)
78335         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
78336         Define, since POSIX requires it as of 2001.
78337         (_REG_ENOSYS)
78338         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
78339         New private symbol, used to keep the enum signed in all cases.
78340         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
78341         Youngman in
78342         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
78343
78344         * lib/regex_internal.c (re_string_skip_chars, register_state):
78345         (calc_state_hash):
78346         Remove forward decls; no longer needed now that we use prototypes.
78347         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
78348         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
78349         (clean_state_log_if_needed): Likewise.
78350
78351 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
78352
78353         * config/srclist.txt: Add glibc bugs 1231-1233.
78354
78355 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78356
78357         Fix problems reported by Sam Steingold in
78358         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
78359         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
78360         assumed that reg_errcode_t is a signed type, which is not
78361         necessarily true if _XOPEN_SOURCE is not defined.
78362         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
78363         since some compilers warn about it otherwise.
78364
78365 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78366
78367         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
78368         (init_word_char, create_initial_state, duplicate_node_closure):
78369         (fetch_token, peek_token_bracket, build_range_exp):
78370         (build_collating_symbol): Remove forward decls; no longer needed
78371         now that we use prototypes.
78372
78373         * lib/regcomp.c:
78374         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
78375         (re_compile_fastmap_iter, regcomp, regerror, regfree):
78376         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
78377         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
78378         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
78379         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
78380         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
78381         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
78382         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
78383         (build_range_exp, build_collating_symbol, parse_bracket_exp):
78384         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
78385         (build_charclass, build_charclass_op, fetch_number, create_tree):
78386         (create_token_tree, mark_opt_subexp, duplicate_tree):
78387         Use prototypes rather than old-style definitions.
78388
78389         * lib/regex_internal.c:
78390         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
78391         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
78392         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
78393         (re_string_reconstruct, re_string_peek_byte_case):
78394         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
78395         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
78396         (re_node_set_init_copy, re_node_set_add_intersect):
78397         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
78398         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
78399         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
78400         (re_acquire_state, re_acquire_state_context, register_state):
78401         (create_ci_newstate, create_cd_newstate, free_state):
78402         Likewise.
78403         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
78404         re_search_2):
78405         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
78406         (re_search_internal, prune_impossible_nodes):
78407         (acquire_init_state_context, check_matching, static):
78408         (check_halt_node_context, check_halt_state_context, proceed_next_node):
78409         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
78410         (update_regs, sift_states_backward, build_sifted_states):
78411         (clean_state_log_if_needed, merge_state_array):
78412         (update_cur_sifted_state, add_epsilon_src_nodes):
78413         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
78414         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
78415         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
78416         (find_recover_state, check_subexp_matching_top, transit_state_mb):
78417         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
78418         (check_arrival, check_arrival_add_next_nodes):
78419         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
78420         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
78421         (check_node_accept_bytes, check_node_accept, extend_buffers):
78422         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
78423         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
78424         (sift_ctx_init):
78425         Likewise.
78426
78427         * lib/regex_internal.h:
78428         (re_string_allocate, re_string_construct, re_string_reconstruct):
78429         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
78430         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
78431         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
78432         (re_string_context_at, re_string_peek_byte_case):
78433         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
78434         is defined, since we now use prototypes always.
78435
78436         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
78437         C89 or better.  All uses removed.
78438
78439 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78440
78441         * config/srclist.txt: Add glibc bugs 1220-1227.
78442
78443 2005-08-20  Jim Meyering  <jim@meyering.net>
78444
78445         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
78446         of unused local, dfa.
78447
78448 2005-08-20  Bruno Haible  <bruno@clisp.org>
78449
78450         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
78451
78452 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78453
78454         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
78455         (re_node_set_insert_last, re_dfa_add_node):
78456         Rename local variables to avoid GCC shadowing warnings.
78457
78458 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78459
78460         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
78461         [defined lint]: Suppress bogus uninitialized-variable warnings.
78462
78463         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
78464         and let the caller return REG_ESPACE if out of space.  This
78465         removes an uninitialied-variable warning with GCC 4.0.1, and also
78466         avoids taking the address of a local variable.  All callers
78467         changed.
78468
78469 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78470
78471         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
78472         $LIBCSRC/posix/regexec.c.
78473         Add glibc bug 1217 for regcomp.c.
78474
78475 2005-08-19  Jim Meyering  <jim@meyering.net>
78476
78477         * lib/regexec.c (proceed_next_node): Redo local variables to
78478         avoid GCC shadowing warnings.
78479
78480 2005-08-18  Bruno Haible  <bruno@clisp.org>
78481
78482         * lib/strstr.c (strstr): Fix return value in multibyte case.
78483         * lib/strcasestr.c (strcasestr): Likewise.
78484
78485 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
78486
78487         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
78488
78489 2005-08-17  Jim Meyering  <jim@meyering.net>
78490
78491         Make the %s format (seconds since the epoch) work for a negative
78492         number and when used with a zero-padded field width, e.g. %015s.
78493
78494         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
78495         label so that it precedes the code to set `digits'.  Otherwise,
78496         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
78497         print `00-22'.  Now, it prints `-0022', as it should.
78498
78499 2005-08-17  Bruno Haible  <bruno@clisp.org>
78500
78501         * modules/strstr (Files): Add m4/mbrtowc.m4.
78502         (Depends-on): Add mbuiter.
78503
78504 2005-08-17  Bruno Haible  <bruno@clisp.org>
78505
78506         * modules/strcasestr: New file.
78507         * MODULES.html.sh (String handling, based on ANSI C 89): Add
78508         strcasestr.
78509
78510 2005-08-17  Bruno Haible  <bruno@clisp.org>
78511
78512         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
78513
78514 2005-08-17  Bruno Haible  <bruno@clisp.org>
78515
78516         * modules/mbuiter: New file.
78517         * MODULES.html.sh (Extended multibyte and wide character utilities):
78518         Add mbuiter.
78519
78520 2005-08-17  Bruno Haible  <bruno@clisp.org>
78521
78522         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
78523         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
78524
78525 2005-08-17  Bruno Haible  <bruno@clisp.org>
78526
78527         * m4/strcasestr.m4: New file.
78528
78529 2005-08-17  Bruno Haible  <bruno@clisp.org>
78530
78531         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
78532         * lib/strstr.c: Completely rewritten, with multibyte locale support.
78533
78534 2005-08-17  Bruno Haible  <bruno@clisp.org>
78535
78536         * lib/strcasestr.h: New file.
78537         * lib/strcasestr.c: New file.
78538
78539 2005-08-17  Bruno Haible  <bruno@clisp.org>
78540
78541         * lib/strcasecmp.c: Use mbuiter.h.
78542
78543 2005-08-17  Bruno Haible  <bruno@clisp.org>
78544
78545         * lib/mbuiter.h: New file.
78546
78547 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
78548
78549         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
78550         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
78551         and gl_GETOPT are both invoked via different paths (as happens
78552         with GNU tar CVS because it uses both argp and getopt), the former
78553         wins.
78554
78555 2005-08-16  Bruno Haible  <bruno@clisp.org>
78556
78557         * modules/tls: New file.
78558         * MODULES.html.sh (Multithreading): Add tls.
78559
78560 2005-08-16  Bruno Haible  <bruno@clisp.org>
78561
78562         * modules/strnlen1: New file.
78563         * MODULES.html.sh (String handling): Add strnlen1.
78564
78565 2005-08-16  Bruno Haible  <bruno@clisp.org>
78566
78567         * modules/strcase (Files): Add m4/mbrtowc.m4.
78568         (Depends-on): Add strnlen1, mbchar.
78569
78570 2005-08-16  Bruno Haible  <bruno@clisp.org>
78571
78572         * modules/mbiter: New file.
78573         * MODULES.html.sh (Extended multibyte and wide character utilities):
78574         Add mbiter.
78575
78576 2005-08-16  Bruno Haible  <bruno@clisp.org>
78577
78578         * modules/mbfile: New file.
78579         * MODULES.html.sh (Extended multibyte and wide character utilities):
78580         Add mbfile.
78581
78582 2005-08-16  Bruno Haible  <bruno@clisp.org>
78583
78584         * modules/mbchar: New file.
78585         * MODULES.html.sh (Extended multibyte and wide character utilities):
78586         New section.
78587
78588 2005-08-16  Bruno Haible  <bruno@clisp.org>
78589
78590         * m4/tls.m4: New file, from GNU gettext.
78591
78592 2005-08-16  Bruno Haible  <bruno@clisp.org>
78593
78594         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
78595         always.
78596         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
78597
78598 2005-08-16  Bruno Haible  <bruno@clisp.org>
78599
78600         * m4/mbiter.m4: New file.
78601
78602 2005-08-16  Bruno Haible  <bruno@clisp.org>
78603
78604         * m4/mbfile.m4: New file.
78605
78606 2005-08-16  Bruno Haible  <bruno@clisp.org>
78607
78608         * m4/mbchar.m4: New file.
78609
78610 2005-08-16  Bruno Haible  <bruno@clisp.org>
78611
78612         * lib/tls.h: New file, from GNU gettext.
78613         * lib/tls.c: New file, from GNU gettext.
78614
78615 2005-08-16  Bruno Haible  <bruno@clisp.org>
78616
78617         * lib/strnlen1.h: New file.
78618         * lib/strnlen1.c: New file.
78619
78620 2005-08-16  Bruno Haible  <bruno@clisp.org>
78621
78622         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
78623         (mbi_init): Update.
78624         (mbi_avail, mbi_advance): Let the iteration end before the terminating
78625         NUL byte, not after it.
78626
78627 2005-08-16  Bruno Haible  <bruno@clisp.org>
78628
78629         * lib/strcase.h (strcasecmp): Add note in comments.
78630         * lib/strncasecmp.c: Use code from strcasecmp.c.
78631         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
78632         (strcasecmp): Work correctly in multibyte locales.
78633
78634 2005-08-16  Bruno Haible  <bruno@clisp.org>
78635
78636         * lib/mbiter.h: New file.
78637
78638 2005-08-16  Bruno Haible  <bruno@clisp.org>
78639
78640         * lib/mbfile.h: New file.
78641
78642 2005-08-16  Bruno Haible  <bruno@clisp.org>
78643
78644         * lib/mbchar.h: New file.
78645         * lib/mbchar.c: New file.
78646
78647 2005-08-16  Bruno Haible  <bruno@clisp.org>
78648
78649         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
78650         the valid ones. Makes the comparison operations transitive:
78651         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
78652         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
78653
78654 2005-08-15  Simon Josefsson  <jas@extundo.com>
78655
78656         * modules/ssize_t (License): Change to 'unlimited'.
78657
78658         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
78659
78660 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78661
78662         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
78663         Add comments for each pending glibc patch.
78664
78665 2005-08-15  Bruno Haible  <bruno@clisp.org>
78666
78667         * lib/regex.h (__restrict_arr): Don't define to __restrict if
78668         __cplusplus is defined.
78669
78670 2005-08-14  Jim Meyering  <jim@meyering.net>
78671
78672         Sync from coreutils.
78673
78674         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
78675         Use the hash-table-based cycle-detection code not just when
78676         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
78677         Reported by James Youngman in
78678         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
78679         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
78680         FTS_TIGHT_CYCLE_CHECK.
78681         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
78682         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
78683         once again.
78684         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
78685         * lib/fts.c (fd_safer): Remove decl.
78686         Include fcntl--.h rather than unistd-safer.h
78687         (fts_safe_changedir): Don't call fd_safer; no longer needed
78688         now that we include fcntl--.h.
78689
78690 2005-08-12  Simon Josefsson  <jas@extundo.com>
78691
78692         * modules/getndelim2: Use ssize_t module.
78693         * modules/getnline: Likewise.
78694         * modules/safe-read: Likewise.
78695         * modules/xreadlink: Likewise.
78696
78697         * modules/ssize_t: New file.
78698
78699 2005-08-12  Simon Josefsson  <jas@extundo.com>
78700
78701         * m4/readline.m4: Look for termcap, curses or ncurses if required.
78702
78703 2005-08-12  Simon Josefsson  <jas@extundo.com>
78704
78705         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78706         ssize_t.
78707
78708 2005-08-12  Simon Josefsson  <jas@extundo.com>
78709
78710         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
78711         readline, getdelim and check_version.
78712         (Support for systems lacking ISO C 99: Sizes of integer types):
78713         Add size_max.
78714
78715 2005-08-12  Bruno Haible  <bruno@clisp.org>
78716
78717         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
78718
78719 2005-08-11  Simon Josefsson  <jas@extundo.com>
78720
78721         * modules/readline: New file.
78722
78723         * modules/strnlen (Files): Add strnlen.h.
78724
78725 2005-08-11  Simon Josefsson  <jas@extundo.com>
78726
78727         * m4/readline.m4: New file.
78728
78729 2005-08-11  Simon Josefsson  <jas@extundo.com>
78730
78731         * lib/readline.h, readline.c: New file.
78732
78733 2005-08-11  Simon Josefsson  <jas@extundo.com>
78734
78735         * doc/gnulib.texi (Initial import, Finishing touches): Mention
78736         gl_AVOID.
78737
78738 2005-08-11  Bruno Haible  <bruno@clisp.org>
78739
78740         * lib/strnlen.h (strnlen): Change parameter name to match comment.
78741
78742 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
78743
78744         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
78745
78746 2005-08-10  Simon Josefsson  <jas@extundo.com>
78747
78748         * tests/test-iconvme.c: New file.
78749
78750 2005-08-10  Simon Josefsson  <jas@extundo.com>
78751
78752         * m4/strnlen.m4: New file.
78753
78754         * m4/strndup.m4: Don't check for strnlen declaration, done in
78755         strnlen.m4.
78756
78757 2005-08-10  Simon Josefsson  <jas@extundo.com>
78758
78759         * lib/strndup.c: Use strnlen.h.
78760
78761         * lib/strnlen.h: New file.
78762
78763 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
78764
78765         * README: Typos.
78766
78767 2005-08-02  Simon Josefsson  <jas@extundo.com>
78768
78769         * modules/readline: New file.
78770
78771 2005-08-02  Simon Josefsson  <jas@extundo.com>
78772
78773         * modules/getdelim: New file.
78774
78775         * modules/getline: Rewrite, don't use getndelim2.
78776
78777 2005-08-02  Simon Josefsson  <jas@extundo.com>
78778
78779         * m4/getline.m4: Separate out getdelim stuff into separate module.
78780
78781         * m4/getdelim.m4: New file.
78782
78783 2005-08-02  Simon Josefsson  <jas@extundo.com>
78784
78785         * lib/getline.h, getline.c: Rewrite.
78786
78787         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
78788
78789 2005-07-31  Bruno Haible  <bruno@clisp.org>
78790
78791         * lib/lock.h (gl_lock_initializer): New macro.
78792         (gl_lock_define_initialized): Use it.
78793         (gl_rwlock_initializer): New macro.
78794         (gl_rwlock_define_initialized): Use it.
78795         (gl_recursive_lock_initializer): New macro.
78796         (gl_recursive_lock_define_initialized): Use it.
78797
78798 2005-07-30  Karl Berry  <karl@gnu.org>
78799
78800         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
78801         Report from Ben Pfaff, regarding getopt.
78802
78803 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
78804
78805         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
78806         normal way.
78807         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
78808         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
78809         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
78810         (gl_GETOPT): Use the new macros.  Most of the implementation
78811         is moved to the new macros.  This is for programs like Emacs
78812         that don't want all the functionality of gl_GETOPT.
78813
78814 2005-07-26  Bruno Haible  <bruno@clisp.org>
78815
78816         * m4/lock.m4: Update from GNU gettext.
78817
78818 2005-07-26  Bruno Haible  <bruno@clisp.org>
78819
78820         * lib/lock.h: Update from GNU gettext.
78821         * lib/lock.c: Update from GNU gettext.
78822
78823 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
78824
78825         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
78826         obsolescent AC_TRY_RUN.  Include the default includes files, for
78827         'exit'.
78828
78829 2005-07-24  Bruno Haible  <bruno@clisp.org>
78830
78831         * modules/visibility: New file.
78832         * MODULES.html.sh (Misc): Add visibility.
78833
78834 2005-07-24  Bruno Haible  <bruno@clisp.org>
78835
78836         * m4/visibility.m4: New file.
78837
78838 2005-07-24  Bruno Haible  <bruno@clisp.org>
78839
78840         * doc/visibility.texi: New file.
78841
78842 2005-07-22  Bruno Haible  <bruno@clisp.org>
78843
78844         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
78845         $(ALLOCA_H), redundant through BUILT_SOURCES.
78846         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
78847         redundant through BUILT_SOURCES.
78848         * modules/byteswap (Makefile.am): Remove explicit dependency on
78849         $(BYTESWAP_H), redundant through BUILT_SOURCES.
78850         * modules/fnmatch (Makefile.am): Remove explicit dependency on
78851         $(FNMATCH_H), redundant through BUILT_SOURCES.
78852         * modules/getopt (Makefile.am): Remove explicit dependency on
78853         $(GETOPT_H), redundant through BUILT_SOURCES.
78854         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
78855         redundant through BUILT_SOURCES.
78856         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
78857         redundant through BUILT_SOURCES.
78858         * modules/stdbool (Makefile.am): Remove explicit dependency on
78859         $(STDBOOL_H), redundant through BUILT_SOURCES.
78860         * modules/stdint (Makefile.am): Remove explicit dependency on
78861         $(STDINT_H), redundant through BUILT_SOURCES.
78862         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
78863         Remove explicit dependency on $(SYSEXITS_H).
78864         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
78865
78866 2005-07-18  Simon Josefsson  <jas@extundo.com>
78867
78868         * lib/check-version.c (check_version): Accept identical versions too.
78869
78870 2005-07-18  Bruno Haible  <bruno@clisp.org>
78871
78872         * modules/lock: New file.
78873         * MODULES.html.sh (Multithreading): New section.
78874
78875 2005-07-18  Bruno Haible  <bruno@clisp.org>
78876
78877         * m4/lock.m4: New file, from GNU gettext.
78878
78879 2005-07-18  Bruno Haible  <bruno@clisp.org>
78880
78881         * lib/lock.h: New file, from GNU gettext.
78882         * lib/lock.c: New file, from GNU gettext.
78883
78884 2005-07-18  Bruno Haible  <bruno@clisp.org>
78885
78886         * lib/lock.h (gl_once_t): New type.
78887         (gl_once_define, gl_once): New macros.
78888         * lib/lock.c (fresh_once): New variable.
78889         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
78890         functions.
78891
78892 2005-07-16  Simon Josefsson  <jas@extundo.com>
78893
78894         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
78895         workaround, suggested by Bruno.
78896
78897 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
78898
78899         * modules/xalloc (Depends-on): Add xalloc-die.
78900         * modules/xvasprintf (Depends-on): Add xalloc-die.
78901
78902 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
78903
78904         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
78905         with a minor change.
78906
78907 2005-07-15  Bruno Haible  <bruno@clisp.org>
78908
78909         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
78910         When using lib/poll.c, define poll as rpl_poll.
78911
78912 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
78913
78914         * modules/argp (Depends-on): Remove unlocked-io.
78915
78916 2005-07-14  Derek Price  <derek@ximbiot.com>
78917
78918         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
78919         for glob symlink bug.
78920
78921 2005-07-14  Bruno Haible  <bruno@clisp.org>
78922
78923         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
78924         Instead, test for *_unlocked function declarations directly.
78925
78926 2005-07-11  Simon Josefsson  <jas@extundo.com>
78927
78928         * modules/size_max: New file.
78929
78930         * modules/xsize: Depend on size_max module for size_max.m4.
78931
78932 2005-07-11  Simon Josefsson  <jas@extundo.com>
78933
78934         * lib/size_max.h: New file.
78935
78936 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
78937
78938         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
78939         copyright symbol and the year.
78940         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
78941         (version_etc_va): Use parameterized copyright notice.
78942         Reword to conform to the current GNU coding standards.
78943
78944 2005-07-11  Karl Berry  <karl@gnu.org>
78945
78946         * doc/gnulib.texi (Quoting): new node.
78947         (Initial import): more info, from Patrice.
78948
78949 2005-07-11  Bruno Haible  <bruno@clisp.org>
78950
78951         * gnulib-tool (func_usage): Document option --avoid.
78952         (Command line options): Handle --avoid.
78953         (func_acceptable): New function.
78954         (func_modules_transitive_closure): Use it.
78955
78956 2005-07-11  Bruno Haible  <bruno@clisp.org>
78957
78958         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
78959         Reported by Jim Meyering.
78960
78961 2005-07-10  Bruno Haible  <bruno@clisp.org>
78962
78963         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
78964         Needed when size_t is smaller than 'unsigned int'.
78965         Reported by Paul Eggert.
78966
78967 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78968
78969         * modules/argp (Depends-on): Add unlocked-io
78970
78971 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78972
78973         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
78974         block of defines.
78975
78976 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
78977
78978         * config/srclist.txt: Comment out regcomp.c, since we have a porting
78979         fix now.
78980
78981 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
78982         and Paul Eggert  <eggert@cs.ucla.edu>
78983
78984         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
78985         in wint_t, not wchar_t.  Remove now-unnecessary cast.
78986
78987 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
78988
78989         * modules/regex (Files): Add lib/regex_internal.c,
78990         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
78991         (Depends-on): Add extensions.
78992         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
78993
78994 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
78995
78996         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
78997         pathconf.
78998         * m4/same.m4 (gl_SAME): Likewise.
78999         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
79000
79001         * m4/regex.m4: Adjust to new libc regex implementation.
79002         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
79003         all the .c and .h parts of (the new) regex.
79004         Quote the m4 stuff better.
79005         Check for RE_ICASE bug of old gnulib.
79006         Check for REG_STARTEND of recent libc.
79007         Rename local variables from jm_* to gl_*.
79008         Quote operand of "test -f".
79009         Say "recent enough" version of libc, not "version 2".
79010         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
79011         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
79012         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
79013         Remove check for btowc, isascii.
79014         Require AM_LANGINFO_CODESET.
79015
79016 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
79017
79018         * lib/regex.c, regex.h: Sync from libc.
79019         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
79020         * lib/regexec.c:
79021         New files, synced from libc, except that regex_internal.h
79022         currently has a small porting fix.
79023
79024 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
79025
79026         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
79027         regex_internal.c, regexec.c.
79028         Add regex_internal.h too, but as a comment, since the libc version
79029         is currently broken in gnulib mode.
79030
79031 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
79032
79033         Support programs like Emacs that use gnulib but not gettext.
79034         * MODULES.html.sh (Internationalization functions): Add gettext-h.
79035         * modules/gettext-h: New file.
79036         * modules/gettext (Files): Remove lib/gettext.h.
79037         (Depends-on): Add gettext-h.
79038         (Makefile.am): Remove lib_SOURCES.
79039         * modules/argmatch, modules/c-stack, modules/closeout:
79040         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
79041         * modules/execute, modules/file-type, modules/getaddrinfo:
79042         * modules/getopt, modules/human, modules/javacomp:
79043         * modules/javaexec, modules/mkdir-p, modules/obstack:
79044         * modules/openat, modules/pagealign_alloc, modules/pipe:
79045         * modules/quotearg, modules/regex, modules/rpmatch:
79046         * modules/unicodeio, modules/userspec, modules/version-etc:
79047         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
79048         * modules/xsetenv:
79049         Depend on gettext-h, not gettext.
79050
79051 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
79052
79053         * gnulib-tool (func_import): Add support for 'public domain' license.
79054         * modules/alloca, modules/atexit, modules/memmove:
79055         Now public domain, not GPL.
79056         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
79057         * modules/realloc, modules/strerror, modules/strtod:
79058         Now LGPL, not GPL.
79059
79060 2005-07-05  Bruno Haible  <bruno@clisp.org>
79061
79062         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
79063         autoconf CVS. Needed for mingw.
79064
79065 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79066
79067         Remove the dependency of the strftime module on the tzset module.
79068         * modules/strftime (Depends-on): Remove dependency on tzset.
79069
79070 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79071
79072         Remove the dependency of the strftime module on the tzset module.
79073         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
79074         gl_FUNC_TZSET_CLOBBER.
79075
79076 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79077
79078         Remove the dependency of the strftime module on the tzset module.
79079         * lib/strftime.c (my_strftime)
79080         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
79081         Copy the input structure, to work around some of the bug with
79082         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
79083         Solaris releases, you should also use the tzset module, but we won't
79084         require it as a dependency any more since we don't want LGPLed code
79085         to depend on GPLed code.
79086
79087 2005-07-02  Jim Meyering  <jim@meyering.net>
79088
79089         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
79090         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
79091         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
79092         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
79093
79094 2005-07-02  Jim Meyering  <jim@meyering.net>
79095
79096         * lib/backupfile.c (backup_args): Change a `0' to NULL.
79097
79098 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
79099
79100         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
79101         declares only 'struct timespec;' (!).
79102
79103 2005-07-01  Jim Meyering  <jim@meyering.net>
79104
79105         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
79106         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
79107         * lib/save-cwd.c, tempname.c:
79108         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
79109         and don't include <sys/file.h>).
79110
79111 2005-06-29  Jim Meyering  <jim@meyering.net>
79112
79113         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
79114         type name.  Use the variable name instead.
79115         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
79116         Likewise.
79117
79118 2005-06-28  Simon Josefsson  <jas@extundo.com>
79119
79120         * modules/check-version (Files): Add check-version.m4.
79121
79122 2005-06-28  Simon Josefsson  <jas@extundo.com>
79123
79124         * m4/check-version.m4: New file, suggested by Jim Meyering
79125         <jim@meyering.net>.
79126
79127 2005-06-28  Simon Josefsson  <jas@extundo.com>
79128
79129         * lib/check-version.h, lib/check-version.c: New files.
79130
79131 2005-06-28  Simon Josefsson  <jas@extundo.com>
79132
79133         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
79134         collision with global variable.  Better indentation.  Don't
79135         increment buffer pointer beyond buffer end.  Based on comments
79136         from Paul Eggert <eggert@cs.ucla.edu>.
79137
79138         * lib/base64.h: Indent.
79139
79140 2005-06-28  Simon Josefsson  <jas@extundo.com>
79141
79142         * doc/gnulib.texi (Library version handling): New section.
79143
79144 2005-06-28  Jim Meyering  <jim@meyering.net>
79145
79146         * check-module (find_included_lib_files): Hard-code another
79147         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
79148         but modules/fts-lgpl (correctly) does not list those files.
79149
79150         * modules/canonicalize (Files): Add lib/pathmax.h.
79151
79152 2005-06-25  Simon Josefsson  <jas@extundo.com>
79153
79154         * modules/check-version: New file.
79155
79156 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
79157
79158         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
79159         initializer of struct addrinfo, as an indication that we don't
79160         care how many members the structure has.
79161
79162 2005-06-24  Derek Price  <derek@ximbiot.com>
79163         and Bruno Haible  <bruno@clisp.org>
79164
79165         Remove stat module & update lstat.
79166         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
79167         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
79168         * m4/stat.m4: Remove this file.
79169
79170 2005-06-24  Derek Price  <derek@ximbiot.com>
79171         and Bruno Haible  <bruno@clisp.org>
79172
79173         Remove stat module & update lstat.
79174         * lib/stat.c: Remove this file...
79175         (slash_aware_lstat): ...moving this content and its support...
79176         * lib/lstat.c (rpl_lstat): ...into here.
79177         * lib/lstat.h: New file.
79178
79179 2005-06-24  Derek Price  <derek@ximbiot.com>
79180         and Bruno Haible  <bruno@clisp.org>
79181
79182         Remove stat module & update lstat.
79183         * config/srclist.txt (libc sources): Remove stat.
79184
79185 2005-06-24  Derek Price  <derek@ximbiot.com>
79186         and Bruno Haible  <bruno@clisp.org>
79187
79188         Remove stat module & update lstat.
79189         * MODULES.html.sh (stat): Remove.
79190         * MODULES.html: Regenerated.
79191         * modules/lstat (Description): Correct function name.
79192         (Files): Add "lstat.h".
79193         (Depends-on): Remove stat, add xalloc, stat-macros.
79194         * modules/stat: Remove this file.
79195         (Include): Add "lstat.h", remove <sys/stat.h>.
79196
79197 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
79198
79199         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
79200         (ranged_convert): Don't save conversion in a temporary struct.
79201         This causes a warning with GCC 4.0.0, and anyway in the typical
79202         case it's not worth the extra 100 bytes or so of code.
79203         (ranged_convert, __mktime_internal): When calling a function via a
79204         pointer P, use P () rather than (*P) (), as we now assume C89 or
79205         better.
79206
79207 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79208
79209         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
79210         "who -r" failed to give output.  Problem reported by Tim Waugh.
79211
79212         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
79213         (xcalloc): Use it to avoid needless tests.
79214         Problem reported by Jim Meyering.
79215
79216 2005-06-20  Derek Price  <derek@ximbiot.com>
79217
79218         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
79219         unnecessary for Autoconfs > 2.59c.
79220
79221 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79222
79223         * lib/argp.h (__option_is_short): Check upper limit of
79224         __key. Isprint() requires its argument to have the value
79225         of an unsigned char or EOF.
79226
79227 2005-06-16  Jim Meyering  <jim@meyering.net>
79228
79229         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
79230         when either N or S is zero.
79231
79232 2005-06-16  Derek Price  <derek@ximbiot.com>
79233
79234         * m4/bison.m4: Declare YACC & YFLAGS precious.
79235
79236 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
79237
79238         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
79239         multibyte string or pattern, fall back on unibyte matching.
79240         Problem reported by James Youngman.
79241
79242 2005-06-08  Bruno Haible  <bruno@clisp.org>
79243
79244         * modules/csharpcomp: New file.
79245         * MODULES.html.sh (C#): Add csharpcomp.
79246
79247 2005-06-08  Bruno Haible  <bruno@clisp.org>
79248
79249         * m4/csharpcomp.m4: New file, from GNU gettext.
79250
79251 2005-06-08  Bruno Haible  <bruno@clisp.org>
79252
79253         * lib/csharpcomp.h: New file, from GNU gettext.
79254         * lib/csharpcomp.c: New file, from GNU gettext.
79255         * lib/csharpcomp.sh.in: New file, from GNU gettext.
79256
79257 2005-06-08  Bruno Haible  <bruno@clisp.org>
79258
79259         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
79260         warning on mingw.
79261
79262 2005-06-07  Derek Price  <derek@ximbiot.com>
79263
79264         Sync from CVS.
79265         * lib/glob_.h: Indent nested #ifdef.
79266
79267 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
79268
79269         Sync from coreutils.
79270         Use "file name" when talking about file names, instead of "filename"
79271         or "path", as per the GNU coding standards.
79272         * lib/mkdir-p.c: Renamed from makepath.c.
79273         (make_dir_parents): Renamed from make_path.  All callers changed.
79274         * lib/mkdir-p.h: Likewise.  All includers changed.
79275         * lib/filenamecat.c: Renamed from path-concat.c.
79276         (file_name_concat): Renamed from path_concat.  All callers changed.
79277         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
79278         * lib/filenamecat.h: Likewise.  All includers changed.
79279         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
79280         in comments or local variable names.
79281         * lib/basename.c: Likewise.
79282         * lib/canonicalize.c, canonicalize.h: Likewise.
79283         * lib/dirname.c, dirname.h: Likewise.
79284         * lib/euidaccess.c: Likewise.
79285         * lib/exclude.c: Likewise
79286         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
79287         * lib/fsusage.c, fsuage.h: Likewise.
79288         * lib/fts.c, fts_.h: Likewise.
79289         * lib/getcwd.c: Likewise.
79290         * lib/getloadavg.c: Likewise.
79291         * lib/mkstemp.c: Likewise.
79292         * lib/mountlist.c, mountlist.h: Likewise.
79293         * lib/openat.c, openat.h: Likewise.
79294         * lib/readlink-stub.c: Likewise.
79295         * lib/readutmp.c, readutmp.h: Likewise.
79296         * lib/rename.c: Likewise.
79297         * lib/rmdir.c: Likewise.
79298         * lib/same.c: Likewise.
79299         * lib/savedir.c: Likewise.
79300         * lib/stripslash.c: Likewise.
79301         * lib/tempname.c: Likewise.
79302         * lib/xreadlink.c: Likewise.
79303         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
79304         All uses changed.
79305         * lib/exclude.h: Likewise.
79306
79307         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
79308         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
79309         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
79310         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
79311         * lib/pathmax.h: Include <limits.h> unconditionally, since other
79312         files have been getting away with it for years (MORE/BSD 4.3
79313         is extinct now).
79314         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
79315         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
79316
79317         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
79318         Define to 256, not 255, as per modern POSIX.
79319
79320 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
79321
79322         Sync from coreutils.
79323         Use "file name" when talking about file names, instead of "filename"
79324         or "path", as per the GNU coding standards.
79325         * MODULES.html.sh: mkdir-p renamed from makepath.
79326         filenamecat renamed from path-concat.
79327         * modules/filenamecat: Renamed from modules/path-concat.
79328         (Files): filenamecat.h and filenamecat.c renamed from
79329         path-concat.h and path-concat.c.
79330         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
79331         (Include): filenamecat.h, not path-concat.h.
79332         * modules/mkdir-p: Renamed from modules/makepath.
79333         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
79334         makepath.c.
79335         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
79336         (Include): mkdir-p.h, not makepath.h.
79337
79338 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
79339
79340         Sync from coreutils.
79341         * m4/mkdir-p.m4: Renamed from makepath.m4.
79342         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
79343         Rename files from makepath.c to mkdir-p.c, and from
79344         makepath.h to mkdir-p.h.
79345         * m4/filenamecat.m4: Renamed from path-concat.m4.
79346         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
79347         Rename files from path-concat.c to filenamecat.c,
79348         and from path-concat.h to filenamecat.h.
79349         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
79350         "file name" in local variables or comments.
79351         * m4/rename.m4: Likewise.
79352
79353 2005-06-01  Bruno Haible  <bruno@clisp.org>
79354
79355         * modules/csharpexec: New file.
79356         * MODULES.html.sh (C#): New section.
79357
79358 2005-06-01  Bruno Haible  <bruno@clisp.org>
79359
79360         * m4/csharp.m4: New file, from GNU gettext.
79361         * m4/csharpexec.m4: New file, from GNU gettext.
79362
79363 2005-06-01  Bruno Haible  <bruno@clisp.org>
79364
79365         * lib/csharpexec.h: New file, from GNU gettext.
79366         * lib/csharpexec.c: New file, from GNU gettext.
79367         * lib/csharpexec.sh.in: New file, from GNU gettext.
79368
79369 2005-05-31  Derek Price  <derek@ximbiot.com>
79370             Paul Eggert  <eggert@cs.ucla.edu>
79371
79372         Sync from cvs.
79373         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
79374
79375 2005-05-31  Derek Price  <derek@ximbiot.com>
79376             Paul Eggert  <eggert@cs.ucla.edu>
79377
79378         Sync from cvs.
79379         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
79380
79381 2005-05-29  Derek Price  <derek@ximbiot.com>
79382
79383         * config/srclist.txt (glob_.h, glob.c): Add these files.
79384
79385 2005-05-29  Derek Price  <derek@ximbiot.com>
79386
79387         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
79388         * modules/glob: New file.
79389         * modules/getlogin_r: Add link to POSIX spec in description.
79390
79391 2005-05-29  Derek Price  <derek@ximbiot.com>
79392             Paul Eggert  <eggert@cs.ucla.edu>
79393
79394         * m4/glob.m4: New file.
79395
79396 2005-05-29  Derek Price  <derek@ximbiot.com>
79397             Paul Eggert  <eggert@cs.ucla.edu>
79398
79399         * lib/glob_.h, lib/glob.c: New files.
79400
79401 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
79402
79403         * modules/fts (Files): Remove m4/inttypes-pri.m4.
79404         * modules/fts-lgpl (Depends-on): Remove gettext.
79405
79406 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
79407
79408         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
79409         and don't require gt_INTTYPES_PRI.
79410
79411 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
79412
79413         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
79414
79415         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
79416         the configuration hassle isn't worth it.
79417         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
79418         (LONGEST_MODIFIER, PRIuMAX): Remove.
79419
79420 2005-05-27  Bruno Haible  <bruno@clisp.org>
79421
79422         * lib/getlogin_r.h: Remove second include of <stddef.h>.
79423
79424 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
79425
79426         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
79427         _POSIX_PTHREAD_SEMANTICS for Solaris.
79428
79429 2005-05-25  Derek Price  <derek@ximbiot.com>
79430
79431         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
79432
79433 2005-05-25  Derek Price  <derek@ximbiot.com>
79434             Paul Eggert  <eggert@cs.ucla.edu>
79435
79436         * modules/getlogin_r, m4/getlogin_r.m4: New files.
79437         * lib/getlogin_r.c, getlogin_r.h: New files.
79438
79439 2005-05-25  Bruno Haible  <bruno@clisp.org>
79440             Derek Price  <derek@ximbiot.com>
79441
79442         * lib/getlogin_r.h: Simplify API documentation.
79443
79444 2005-05-23  Derek Price  <derek@ximbiot.com>
79445
79446         * modules/minmax (Files): Add m4/minmax.m4.
79447         (configure.ac): Add gl_MINMAX.
79448
79449 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
79450
79451         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
79452         so that unistd-safer.h (GPL'ed code) need not be included.
79453
79454 2005-05-22  Bruno Haible  <bruno@clisp.org>
79455
79456         * m4/minmax.m4: New file.
79457         Based on a patch by Derek Price <derek@ximbiot.com>.
79458
79459 2005-05-22  Bruno Haible  <bruno@clisp.org>
79460
79461         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
79462         (INT64_MIN): Fix definition.
79463         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
79464
79465         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
79466         NEED_SIGNED_INT_TYPES.
79467
79468         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
79469         HAVE_SYSTEM_INTTYPES.
79470
79471 2005-05-22  Bruno Haible  <bruno@clisp.org>
79472
79473         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
79474         Also include <sys/param.h> if it defines MIN, MAX.
79475         Based on a patch by Derek Price <derek@ximbiot.com>.
79476
79477 2005-05-21  Jim Meyering  <jim@meyering.net>
79478
79479         * modules/fts (Files): Add m4/inttypes-pri.m4.
79480         (Depends-on): Add lstat and remove gettext.  Alphabetize.
79481
79482 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
79483
79484         New fts module.
79485         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
79486         (setup_dir, free_dir): New functions.
79487         (enter_dir, leave_dir): Define trivial
79488         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
79489         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
79490         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
79491         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
79492         Move to fts-cycle.c.
79493         (fts_open): Use setup_dir.
79494         (fts_close): Use free_dir.
79495         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
79496         This adds a label and some gotos, but the alternatives were messier.
79497         Check for memory allocation failure when entering a dir.
79498         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
79499         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
79500         (FTS): New member fts_cycle, that is a union that contains the
79501         old active_dir_ht and cycle_state.  All uses changed to mention
79502         fts_cycle.ht and fts_cycle.state.
79503         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
79504         fts.c, with the following changes:
79505         (setup_dir, free_dir): New functions.
79506         (enter_dir): Now returns bool.  Return true if successful, false
79507         if memory exhausted.  All callers changed.
79508         Do not bother partly cleaning up on
79509         memory allocation failure; that is free_dir's job.
79510         However, free ad if hash_insert fails, to avoid memory leak.
79511         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
79512         fts->fts_options to see which union member to use.
79513
79514 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
79515
79516         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
79517         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
79518
79519 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
79520
79521         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
79522
79523 2005-05-20  Jim Meyering  <jim@meyering.net>
79524
79525         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
79526         Now a macro, to pacify GCC.
79527
79528 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
79529
79530         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
79531         of -1.
79532
79533 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
79534
79535         * lib/chown.c (rpl_chown): Return -1 on failure.
79536
79537 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
79538
79539         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
79540         Don't check for stddef.h.
79541         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
79542         don't use its results.
79543         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
79544         since we include them unconditionally.  Don't require
79545         AM_STDBOOL_H, since stdbool is a prerequisite.
79546         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
79547         since we assume C89 or better.
79548         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
79549         as we don't use their results.
79550         Don't check for fchdir, memmove, memset, strrchr, as we use
79551         them unconditionally.
79552         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
79553         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
79554
79555 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
79556
79557         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
79558         Include <stddef.h> unconditionally, since we assume C89 now.
79559         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
79560         * lib/fts.c: Include fts_.h first, to check interface.
79561         Do not include intprops.h; no longer needed.
79562         Include cycle-check.h and hash.h, since fts_.h no longer does.
79563         Remove unnecessary casts of closedir to void.
79564         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
79565         decide whether to decrement nlinks.
79566         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
79567         (FTS): Use struct hash_table * instead of Hash_table, so that
79568         we no longer need to include hash.h here.
79569
79570 2005-05-18  Jim Meyering  <jim@meyering.net>
79571
79572         * modules/dirfd (License): Change to LGPL.  Most of the code
79573         is already in the public domain.
79574
79575 2005-05-18  Jim Meyering  <jim@meyering.net>
79576
79577         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
79578         Reported by Yoann Vandoorselaere.
79579
79580 2005-05-17  Jim Meyering  <jim@meyering.net>
79581
79582         * m4/fts.m4: New file, from coreutils.
79583
79584 2005-05-17  Jim Meyering  <jim@meyering.net>
79585
79586         * lib/fts.c, lib/fts_.h: New files, from coreutils.
79587
79588 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
79589
79590         Sync from coreutils.
79591         * m4/unlinkdir.m4: New file.
79592
79593 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
79594
79595         Sync from coreutils.
79596         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
79597         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
79598         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
79599         White space changes only.
79600         * lib/makepath.c (make_path): Port to hosts where leading "//" is
79601         special.
79602         * lib/yesno.c: Include getline.h, not ctype.h.
79603         (yesno): Don't remove leading white space; POSIX doesn't allow it.
79604         Use getline to remove arbitrary restriction on response length.
79605
79606 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
79607
79608         * config/srclist-update: Spell out "Street" in FSF postal
79609         mail address; this is the style the FSF seems to prefer.
79610
79611         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
79612         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
79613         this updates FSF postal mail address.
79614
79615         Sync from coreutils.
79616         * modules/unlinkdir: New file.
79617         * modules/yesno (Depends-on): Add getline.
79618         * MODULES.html.sh (File system functions): Add unlinkdir.
79619
79620 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
79621
79622         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
79623         lib/strsep.h:
79624         Change the initial comment to refer to GPL, not LGPL.
79625         gnulib-tool will change it to LGPL as needed.
79626
79627         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
79628         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
79629         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
79630         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
79631         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
79632         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
79633         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
79634         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
79635         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
79636         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
79637         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
79638         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
79639         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
79640         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
79641         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
79642         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
79643         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
79644         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
79645         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
79646         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
79647         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
79648         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
79649         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
79650         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
79651         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
79652         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
79653         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
79654         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
79655         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
79656         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
79657         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
79658         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
79659         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
79660         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
79661         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
79662         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
79663         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
79664         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
79665         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
79666         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
79667         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
79668         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
79669         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
79670         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
79671         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
79672         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
79673         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
79674         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
79675         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
79676         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
79677         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
79678         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
79679         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
79680         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
79681         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
79682         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
79683         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
79684         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
79685         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
79686         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
79687         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
79688         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
79689         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
79690         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
79691         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
79692         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
79693         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
79694         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
79695         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
79696         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
79697         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
79698         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
79699         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
79700         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
79701         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
79702         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
79703         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
79704         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
79705         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
79706         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
79707         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
79708         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
79709         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
79710         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
79711         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
79712         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
79713         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
79714         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
79715         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
79716         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
79717         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
79718         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
79719         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
79720         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
79721         lib/yesno.c, lib/yesno.h:
79722         Update FSF postal mail address.
79723
79724 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
79725
79726         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
79727         tests/test-memmem.c, tests/test-stpncpy.c:
79728         Update FSF postal mail address.
79729
79730 2005-05-13  Bruno Haible  <bruno@clisp.org>
79731
79732         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
79733         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
79734         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
79735         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
79736         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
79737         Add support for 64-bit integers in the MSVC compiler.
79738
79739 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79740
79741         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
79742
79743 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
79744
79745         * gnulib-tool (func_import): Sort and uniquify recommended includes.
79746
79747 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
79748
79749         * doc/getdate.texi (General date syntax): Don't say that date
79750         date --iso-8601=ns generates acceptable dates; it doesn't yet.
79751         Problem reported by Nic Ferrier.
79752
79753 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79754
79755         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
79756         specified in ai_socktype. Fix invalid ai_protocol
79757         check. ai_protocol is usually set to 0 or depending on
79758         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
79759         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
79760         ai_socktype / ai_protocol in the returned addrinfo structure.
79761
79762 2005-05-10  Simon Josefsson  <jas@extundo.com>
79763
79764         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
79765         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
79766
79767 2005-05-10  Karl Berry  <karl@gnu.org>
79768
79769         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
79770         (from http://www.gnu.org/licenses).
79771         * doc/COPYING.LIB: also rename to COPYING.LESSER.
79772         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
79773         fdl.texi suffices.
79774
79775 2005-05-10  Karl Berry  <karl@gnu.org>
79776
79777         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
79778         (COPYING.DOC): remove.
79779
79780         * config/srclist-update: new FSF address.
79781
79782 2005-05-10  Derek Price  <derek@ximbiot.com>
79783
79784         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
79785         possible.
79786
79787 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79788             Bruno Haible  <bruno@clisp.org>
79789
79790         * modules/inet_ntop: New file.
79791         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79792         inet_ntop.
79793
79794 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79795             Bruno Haible  <bruno@clisp.org>
79796
79797         * m4/inet_ntop.m4: New file.
79798
79799 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79800             Bruno Haible  <bruno@clisp.org>
79801
79802         * lib/inet_ntop.h: New file.
79803         * lib/inet_ntop.c: New file, from glibc with modifications.
79804
79805 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
79806
79807         * modules/time_r (License): Change to LGPL.
79808         * modules/extensions (License): Change to LGPL.  Actually,
79809         the license is more permissive than that, but currently gnulib-tool
79810         doesn't know how to handle more-permissive licenses.
79811
79812         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
79813         Problem reported by Dave Love.
79814
79815 2005-05-08  Jim Meyering  <jim@meyering.net>
79816
79817         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
79818         blank.
79819
79820 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
79821
79822         * modules/argmatch (Depends-on): Add stdbool.
79823         * modules/backupfile (Depends-on): Likewise.
79824         * modules/chdir-long (Depends-on): Likewise.
79825         * modules/closeout (Depends-on): Likewise.
79826         * modules/cycle-check (Depends-on): Likewise.
79827         * modules/dirname (Depends-on): Likewise.
79828         * modules/fnmatch (Depends-on): Likewise.
79829         * modules/fsusage (Depends-on): Likewise.
79830         * modules/fwriteerror (Depends-on): Likewise.
79831         * modules/getcwd (Depends-on): Likewise.
79832         * modules/getloadavg (Depends-on): Likewise.
79833         * modules/hard-locale (Depends-on): Likewise.
79834         * modules/makepath (Depends-on): Likewise.
79835         * modules/mountlist (Depends-on): Likewise.
79836         * modules/nanosleep (Depends-on): Likewise.
79837         * modules/posixtm (Depends-on): Likewise.
79838         * modules/quotearg (Depends-on): Likewise.
79839         * modules/readtokens (Depends-on): Likewise.
79840         * modules/readtokens0 (Depends-on): Likewise.
79841         * modules/readutmp (Depends-on): Likewise.
79842         * modules/save-cwd (Depends-on): Likewise.
79843         * modules/strftime (Depends-on): Likewise.
79844         * modules/userspec (Depends-on): Likewise.
79845         * modules/utimecmp (Depends-on): Likewise.
79846         * modules/xgetcwd (Depends-on): Likewise.
79847         * modules/xnanosleep (Depends-on): Likewise.
79848         * modules/xstrtod (Depends-on): Likewise.
79849         * modules/yesno (Depends-on): Likewise.
79850
79851 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
79852
79853         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
79854         needless checks.
79855
79856 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
79857
79858         Merge from coreutils.  Among other things,
79859         add bulletproofing for cases where stdin, stdout, or stderr are closed.
79860         * lib/fd-safer.c: New file.
79861         * lib/fcntl-safer.h, open-safer.c: Remove.
79862         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
79863         * lib/dup-safer.c: Include unistd-safer.h first.
79864         Don't include errno.h.
79865         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
79866         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
79867         * lib/file-type.c: Rely on file-type.h change.
79868         * lib/getloadavg.c: Include unistd-safer.h.
79869         (getloadavg): Use safer open.
79870         * lib/getusershell.c: Include "stdio-safer.h".
79871         (getusershell): Use safer fopen.
79872         * lib/long-options.c (long_options): Use NULL rather than 0.
79873         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
79874         'free'.
79875         * lib/modechange.c: Likewise.
79876         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
79877         (MODE_DONE): New constant.
79878         (struct mode_change): Remove 'next' member.
79879         (make_node_op_equals): New function; like the old one of the
79880         same name, except it allocates an array.
79881         (mode_compile, mode_create_from_ref): Use it.
79882         (mode_compile): Allocate result as an array, not a linked list.
79883         Parse octal string ourself, so that we catch mistakes like "+0".
79884         (mode_adjust): Arg is an array, not a linked list.
79885         * lib/modechange.c: Include stat-macros.h, xalloc.h.
79886         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
79887         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
79888         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
79889         Remove.  This is now stat-macros.h's job.
79890         (talloc): Remove.  All callers replaced by xalloc, so that
79891         our invokers don't have to worry about reporting memory failures.
79892         (make_node_op_equals): Remove.
79893         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
79894         New constants.
79895         (struct mode_change): Moved here from modechange.h.
79896         (mode_append_entry): Remove.
79897         (mode_compile): Remove MASKED_OPS arg, since it encouraged
79898         apps to have incorrect behavior.  Use simpler algorithm for head
79899         and tail.  Don't futz with umask; that's now the job of mode_adjust.
79900         Detect more invalid usages rather than having somewhat-random behavior.
79901         Don't insert an "a=" action, as that leads to incorrect behavior.
79902         (mode_compile, mode_create_from_ref): Return NULL on error instead
79903         of an enum, since now there's only one way to have an error.  All
79904         callers changed.
79905         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
79906         at the correct time.  Simplify calculation of "+u" and its ilk.
79907         Don't mishandle "+X".
79908         (mode_free): Remove "register" and localize decls.
79909         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
79910         (struct mode_change): Move to modechange.c; callers don't
79911         need to see this stuff.
79912         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
79913         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
79914         (mode_change, mode_adjust): Reflect the new signatures noted above.
79915         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
79916         that might redefine system include files.
79917         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
79918         (my_usleep): Use NULL rather than (void *) 0.
79919         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
79920         Use siginterrupt to specify that system calls should be interrupted.
79921         (rpl_nanosleep): Move initialization of suspended closer to call of
79922         my_usleep.
79923         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
79924         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
79925         (desirable_utmp_entry): New function.
79926         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
79927         using x2nrealloc, to simplify logic.
79928         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
79929         size calculation.  Do not assume utmp file is a regular file.
79930         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
79931         (READ_UTMP_CHECK_PIDS): New constant.
79932         * lib/save-cwd.c: Include unistd-safer.h.
79933         (save_cwd): Use fd_safer.
79934         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
79935         [!_LIBC] Include "stat-macros.h" instead.
79936         * lib/unistd-safer.h (fd_safer): New decl.
79937
79938 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
79939
79940         * modules/getloadavg (Depends-on): Add unistd-safer.
79941         * modules/getusershell (Depends-on): Add stdio-safer.
79942         * modules/lstat (Depends-on): Remove xalloc.
79943         * modules/mkstemp (Depends-on): Add stat-macros.
79944         * modules/modechange (Depends-on): Remove xstrtol.
79945         Add stat-macros, xalloc.
79946         * modules/save-cwd (Depends-on): Add unistd-safer.
79947         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
79948         * modules/unistd-safer (Files): Add lib/fd-safer.c
79949         (Makefile.am): Remove lib_SOURCES.
79950
79951         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
79952         Remove fcntl-safer; unistd-safer supersedes it.
79953
79954 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
79955
79956         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
79957         AC_HEADER_STAT.
79958         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
79959         (gl_PREREQ_CHOWN): Remove.
79960         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
79961         it.  Don't require AC_HEADER_STAT.
79962         (gl_PREREQ_LSTAT): Remove.
79963         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
79964         Don't require AC_HEADER_STAT.
79965         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
79966         (gl_PREREQ_RMDIR): Remove.
79967         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
79968         mention stat-macros.h or AC_HEADER_STAT, since we'll make
79969         the stat-macros module a prerequisite.
79970         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
79971         * m4/filemode.m4 (gl_FILEMODE): Likewise.
79972         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
79973         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
79974         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
79975         variable names.
79976         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
79977         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
79978         variable prefixes.
79979         * m4/fcntl-safer.m4: Remove.
79980         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
79981         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
79982         Invoke gl_PREREQ_FD_SAFER.
79983         (gl_PREREQ_FD_SAFER): New macro.
79984         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
79985         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
79986         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
79987         Remove duplicate call to AC_LIBOBJ(readutmp).
79988         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
79989
79990         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
79991         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
79992
79993 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
79994
79995         * MODULES.html.sh (Misc): Add byteswap.
79996
79997 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
79998
79999         * modules/getcwd (Depends-on): Add extensions.
80000         * modules/openat (Depends-on): Likewise.
80001
80002 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
80003
80004         * modules/byteswap: New file.
80005
80006 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
80007
80008         * m4/byteswap.m4: New file.
80009
80010 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
80011
80012         * lib/byteswap_.h: New file.
80013
80014 2005-04-25  Karl Berry  <karl@gnu.org>
80015
80016         * m4/gettext.m4: Update from GNU gettext 0.14.4.
80017
80018 2005-04-25  Albert Chin  <china@thewrittenword.com>
80019
80020         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
80021         Toolkit C bug.
80022
80023 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
80024
80025         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
80026         (func_ln_if_changed): Remove forcibly for no error message
80027         in case file does not exist.
80028
80029 2005-04-19  Simon Josefsson  <jas@extundo.com>
80030
80031         * gnulib-tool (Options): Make --symlink mean --symbolic.
80032
80033 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
80034
80035         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
80036
80037 2005-04-16  Simon Josefsson  <jas@extundo.com>
80038
80039         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
80040
80041 2005-04-15  Simon Josefsson  <jas@extundo.com>
80042
80043         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
80044
80045 2005-04-15  Simon Josefsson  <jas@extundo.com>
80046
80047         * gnulib-tool: Rename --symlink to --symbolic.
80048
80049 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
80050
80051         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
80052         symbolic links to files instead of copying/moving.  Add --aux-dir,
80053         specifying directory relative --dir where auxiliary build tools
80054         are placed.
80055
80056 2005-04-14  Bruno Haible  <bruno@clisp.org>
80057
80058         * modules/allocsa (License): Change to LGPL.
80059         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
80060
80061 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
80062
80063         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
80064         that "UTC +1 second" continues to work.  Problem reported
80065         by Dmitry V. Levin.
80066         (relunit_snumber): New rule.
80067         (relunit): Use it.
80068
80069 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
80070
80071         * lib/getdate.y (universal_time_zone_table): New constant.
80072         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
80073         universal_time_zone_table.
80074         (lookup_zone): Prefer universal_time_zone_table to
80075         local_time_zone_table, so that "GMT" time stamps are allowed in
80076         London during the summer.  Problem reported by Ian Abbott.
80077
80078 2005-04-12  Jim Meyering  <jim@meyering.net>
80079
80080         * lib/human.c (humblock): Set *options even when returning due to
80081         xstrtoumax conversion failure.  Thanks to a used-uninitialized
80082         warning from gcc-4.
80083
80084 2005-04-09  Jim Meyering  <jim@meyering.net>
80085
80086         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
80087         -Wuninitialized: initialize tm0.tm_year.
80088
80089 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
80090
80091         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
80092         count, since there's no maximum.  All uses changed.
80093         Add member dsts_seen.
80094         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
80095         not being INT_MAX.
80096         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
80097         Use pc_rels_seen to decide whther a date is absolute.
80098
80099         * lib/getdate.y (number): Don't overwrite year.
80100         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
80101         check.
80102
80103 2005-04-02  Simon Josefsson  <jas@extundo.com>
80104
80105         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
80106         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
80107
80108 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
80109
80110         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
80111         where no absolute path name can be longer than PATH_MAX.
80112
80113 2005-03-27  Jim Meyering  <jim@meyering.net>
80114
80115         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
80116
80117 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
80118
80119         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
80120         "one's complement" -> "ones' complement" in comment, as per Knuth.
80121         "value of type" -> "type or expression" in comment.
80122         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
80123
80124 2005-03-26  Jim Meyering  <jim@meyering.net>
80125
80126         Comment nits.
80127         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
80128         Correct typos: s/or/of/.
80129
80130 2005-03-26  Jim Meyering  <jim@meyering.net>
80131
80132         * modules/check-include-files: Move to ../ and rename to...
80133         * check-module: ...this.
80134
80135 2005-03-25  Jim Meyering  <jim@meyering.net>
80136
80137         * modules/xvasprintf (Files): Add xalloc.h.
80138
80139 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
80140
80141         * modules/gettext (Files): config/config.rpath ->
80142         build-aux/config.rpath
80143         * modules/iconv (Files): Likewise.
80144         Problem reported by Oskar Liljeblad.
80145
80146 2005-03-23  Jim Meyering  <jim@meyering.net>
80147
80148         * modules/check-include-files: New script to check for
80149         missing dependencies, multiple includes, etc.
80150
80151         * modules/c-strtold (Depends-on): Add xalloc.
80152         * modules/c-strtod (Depends-on): Add xalloc.
80153         * modules/hash (Depends-on): Add xalloc.
80154         (Files): Remove lib/xalloc.h.
80155
80156         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
80157         * modules/userspec (Files): Add lib/inttostr.h.
80158
80159 2005-03-23  Jim Meyering  <jim@meyering.net>
80160
80161         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
80162
80163 2005-03-22  Jim Meyering  <jim@meyering.net>
80164
80165         * modules/stat-macros: New module.
80166         * modules/canonicalize, modules/euidaccess, modules/file-type,
80167         * modules/filemode, modules/lchown, modules/makepath,
80168         * modules/rmdir, modules/stat: Depend on new stat-macros module
80169         rather than listing lib/stat-macros.h manually.
80170         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
80171
80172 2005-03-22  Jim Meyering  <jim@meyering.net>
80173
80174         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
80175
80176 2005-03-22  Bruno Haible  <bruno@clisp.org>
80177
80178         * config/srclist.txt: Replace target directory 'config' with
80179         'build-aux'.
80180         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
80181         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
80182         ../build-aux/.
80183
80184 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
80185
80186         * modules/chdir-long (Depends-on): Add mempcpy.
80187
80188         * modules/acl, modules/backupfile, modules/c-strtod,
80189         modules/c-strtold, modules/canon-host, modules/canonicalize,
80190         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
80191         modules/exclude, modules/exitfail, modules/file-type,
80192         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
80193         modules/getdate, modules/getline, modules/getpagesize,
80194         modules/getpass, modules/getugroups, modules/group-member,
80195         modules/hard-locale, modules/hash, modules/human, modules/idcache,
80196         modules/inttostr, modules/long-options, modules/makepath,
80197         modules/md5, modules/memcasecmp, modules/memcoll,
80198         modules/modechange, modules/mountlist, modules/path-concat,
80199         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
80200         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
80201         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
80202         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
80203         modules/strftime, modules/strndup, modules/strverscmp,
80204         modules/timespec, modules/unlocked-io, modules/userspec,
80205         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
80206         modules/yesno:
80207         Remove lib_SOURCES line from Makefile.am section, as this is now
80208         done automatically by the corresponding Autoconf macro.
80209
80210 2005-03-21  Jim Meyering  <jim@meyering.net>
80211
80212         Changes imported from coreutils.
80213
80214         * lib/cycle-check.c: Don't include xalloc.h.
80215
80216         * lib/path-concat.c: Don't include assert.h.
80217         (path_concat): Remove assertion that would have triggered
80218         for ABASE starting with more than one slash.
80219         Reported by Andreas Schwab.
80220
80221         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
80222         properly when ABASE is an absolute file name.
80223         Correct the description of this function.
80224         Include <assert.h>.
80225         Add an assertion and a test driver.
80226         This fixes a bug introduced on 2004-07-02.
80227         Andreas Schwab reported the resulting failure of cp --parents:
80228         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
80229
80230 2005-03-21  Jim Meyering  <jim@meyering.net>
80231
80232         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
80233         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
80234
80235 2005-03-21  Jim Meyering  <jim@meyering.net>
80236         and  Paul Eggert  <eggert@cs.ucla.edu>
80237
80238         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
80239         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
80240         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
80241         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
80242         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
80243         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
80244         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
80245         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
80246         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
80247         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
80248         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
80249         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
80250         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
80251         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
80252         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
80253         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
80254         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
80255         for these modules.
80256
80257 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
80258
80259         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
80260         (which shouldn't happen), generate nothing instead of returning 0
80261         immediately, so that nstrftime (NULL, ...) doesn't return 0.
80262
80263 2005-03-16  Bruno Haible  <bruno@clisp.org>
80264
80265         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
80266         HAVE_LONGLONG_64BIT.
80267
80268 2005-03-16  Bruno Haible  <bruno@clisp.org>
80269
80270         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
80271         HAVE_LONGLONG_64BIT.
80272
80273 2005-03-16  Bruno Haible  <bruno@clisp.org>
80274
80275         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
80276         HAVE_LONGLONG_64BIT.
80277
80278 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
80279
80280         * lib/strftime.c (my_strftime): Prepend space to format so that we can
80281         reliably distinguish strftime failure from empty output on POSIX
80282         hosts.
80283
80284 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
80285
80286         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
80287         (iconv_string): Don't guess a size-zero buffer, as that might cause
80288         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
80289         result would be 'too large', where 'too large' is (heuristically)
80290         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
80291         overflow concerns.  This will prevent some unwanted malloc failures
80292         when the inputs are very large.
80293
80294 2005-03-15  Karl Berry  <karl@gnu.org>
80295
80296         * config/srclist.txt (config.rpath): from gettext.
80297         * config/config.rpath: update.
80298
80299 2005-03-15  Bruno Haible  <bruno@clisp.org>
80300
80301         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
80302         to 'negate'.
80303
80304         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
80305         variable.
80306
80307         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
80308         results.
80309
80310 2005-03-14  Simon Josefsson  <jas@extundo.com>
80311
80312         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
80313         <fx@gnu.org>.
80314
80315 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
80316
80317         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
80318         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
80319         intprops.h.
80320         * lib/strtol.c: Likewise.
80321
80322 2005-03-14  Jim Meyering  <jim@meyering.net>
80323
80324         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
80325         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
80326         to be nonzero so that we (and caller) can detect the difference
80327         between a valid zero-length expansion and an error return, even
80328         when the underlying strftime fails before writing anything into
80329         that location.
80330
80331 2005-03-14  Bruno Haible  <bruno@clisp.org>
80332
80333         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
80334         Update from GNU gettext 0.14.3.
80335
80336 2005-03-10  Jim Meyering  <jim@meyering.net>
80337
80338         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
80339
80340 2005-03-10  Jim Meyering  <jim@meyering.net>
80341
80342         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
80343         so that this module works on systems without fchdir.
80344
80345 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
80346
80347         Factor int-properties macros into a single file, except for
80348         glibc-related files.
80349         * lib/intprops.h: New file.
80350         * lib/getloadavg.c: Include it instead of limits.h.
80351         (INT_STRLEN_BOUND): Remove.
80352         * lib/human.c: Include intprops.h.
80353         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
80354         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
80355         302/1000.
80356         * lib/inttostr.h: Include intprops.h instead of limits.h.
80357         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
80358         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
80359         for consistency with intprops.h.
80360         (time_t_is_integer, twos_complement_arithmetic): Use them.
80361         * lib/sig2str.h: Include <signal.h>, intprops.h.
80362         (INT_STRLEN_BOUND): Remove.
80363         * lib/strftime.c (TYPE_SIGNED): Remove.
80364         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
80365         * lib/strtol.c: Adjust comments to match intprops.h.
80366         * lib/userspec.c: Include intprops.h.
80367         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
80368         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
80369         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
80370         instead of rolling our own expressions.
80371         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
80372
80373         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
80374         instead of int.
80375         (my_strftime): Do not mishandle years close to INT_MAX, by doing
80376         the right thing even if adding 1900 would overflow.  Similarly
80377         for tm_mon + 1 and tm_yday + 1.
80378         Make %Y always equivalent to %C%y, and similarly for %G and %g.
80379         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
80380         (DO_SIGNED_NUMBER): New macro.
80381         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
80382
80383 2005-03-07  Bruno Haible  <bruno@clisp.org>
80384
80385         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
80386
80387 2005-03-07  Bruno Haible  <bruno@clisp.org>
80388
80389         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
80390
80391 2005-03-04  Derek R. Price  <derek@ximbiot.com>
80392
80393         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
80394         (func_import): Only replace files via --import when they have actually
80395         changed.
80396
80397 2005-03-03  Derek R. Price  <derek@ximbiot.com>
80398
80399         * m4/mmap-anon.m4: New file.
80400         * m4/pagealign_alloc.m4: New file.
80401
80402 2005-03-03  Derek R. Price  <derek@ximbiot.com>
80403             Bruno Haible  <bruno@clisp.org>
80404
80405         * modules/pagealign_alloc: New file.
80406         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
80407
80408 2005-03-03  Derek R. Price  <derek@ximbiot.com>
80409             Bruno Haible  <bruno@clisp.org>
80410
80411         * lib/pagealign_alloc.h: New file.
80412         * lib/pagealign_alloc.c: New file.
80413
80414 2005-03-03  Bruno Haible  <bruno@clisp.org>
80415
80416         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
80417         Use an all-permissive copyright notice, recommended by RMS.
80418
80419 2005-03-02  Bruno Haible  <bruno@clisp.org>
80420
80421         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
80422         of AIX, the replacement has to be done only after <string.h> is
80423         included, therefore not in config.h. stpncpy.h does the replacement,
80424         and stpncpy.c uses it.
80425
80426 2005-03-02  Bruno Haible  <bruno@clisp.org>
80427
80428         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
80429         stpncpy.c uses it.
80430
80431 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
80432
80433         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
80434         The workaround isn't strictly needed for POSIX conformance, and
80435         it's too much of a pain to configure and maintain.  We'll ask
80436         people to fix their kernels instead.
80437         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
80438         (NANOSLEEP_BUG_WORKAROUND): Remove.
80439         (xnanosleep): Remove the workaround.
80440
80441 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
80442
80443         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
80444         Reported by Derek Price.
80445         (Include): Add "timespec.h".
80446
80447         * modules/xnanosleep (Depends-on): Remove gethrxtime.
80448
80449 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
80450
80451         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
80452         to detect nanosleep bug.
80453
80454 2005-03-01  Bruno Haible  <bruno@clisp.org>
80455
80456         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
80457
80458 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
80459
80460         * modules/gethrxtime: New file.
80461         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
80462         (Depends-on): Add gethrxtime.
80463         (configure.ac): Add gl_XNANOSLEEP.
80464         (Makefile.am): Remove lib_SOURCES line.
80465
80466 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
80467
80468         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
80469         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
80470
80471 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
80472
80473         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
80474         * lib/timespec.h (gettime): Return void, since it always
80475         succeeds now.  All uses changed.
80476         * lib/gettime.c (gettime): Likewise.
80477         [HAVE_NANOTIME]: Prefer nanotime.
80478         Assume gettimeofday succeeds, as POSIX requires.
80479         Assime time () succeeds, since other code already does.
80480         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
80481         (timespec_subtract): Remove.
80482         (NANOSLEEP_BUG_WORKAROUND): New constant.
80483         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
80484         things considerably.  Use it only on GNU/Linux hosts, since the
80485         workaround shouldn't be needed elsewhere.
80486
80487 2005-02-24  Bruno Haible  <bruno@clisp.org>
80488
80489         * modules/gettext (Files): Add m4/glibc2.m4.
80490
80491 2005-02-24  Bruno Haible  <bruno@clisp.org>
80492
80493         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
80494         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
80495         * m4/progtest.m4:
80496         Update from GNU gettext 0.14.2.
80497         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
80498
80499 2005-02-24  Bruno Haible  <bruno@clisp.org>
80500
80501         * lib/localcharset.c: Update from GNU gettext 0.14.2.
80502         * lib/config.charset: Update from GNU gettext 0.14.2.
80503
80504 2005-02-24  Bruno Haible  <bruno@clisp.org>
80505
80506         * lib/gettext.h: Update from GNU gettext 0.14.2.
80507
80508 2005-02-23  Simon Josefsson  <jas@extundo.com>
80509
80510         * m4/iconvme.m4: New file.
80511
80512 2005-02-23  Jim Meyering  <jim@meyering.net>
80513
80514         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
80515         change.
80516         Thanks to Bruno Haible for catching it.
80517
80518 2005-02-22  Simon Josefsson  <jas@extundo.com>
80519
80520         * modules/iconvme: New file.
80521
80522         * MODULES.html.sh: Add iconvme.
80523
80524 2005-02-22  Simon Josefsson  <jas@extundo.com>
80525
80526         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
80527
80528 2005-02-22  Simon Josefsson  <jas@extundo.com>
80529
80530         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
80531
80532 2005-02-22  Jim Meyering  <jim@meyering.net>
80533
80534         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
80535         s/ifndef/ifdef/.
80536
80537 2005-02-20  Neil Conway  <neilc@samurai.com>
80538
80539         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
80540         returned by OSX/Darwin if the specified buffer is not large
80541         enough for the hostname.
80542
80543 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80544
80545         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
80546         pass it to _help, otherwise the latter coredumps trying to
80547         dereference state.root_argp.
80548
80549 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
80550
80551         * modules/chdir-long (Depends-on): Add memrchr.
80552         * modules/memrchr (Files): Add lib/memrchr.h.
80553         (Include): "memrchr.h".
80554
80555 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
80556
80557         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
80558
80559 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
80560
80561         * lib/memrchr.h: New file.
80562         * lib/chdir-long.c: Include it.
80563         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
80564         Don't bother including stddef.h.
80565
80566 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
80567
80568         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
80569         inclusion.
80570         Include <sys/types.h>, for dev_t.
80571         (ME_DUMMY, ME_REMOTE): Move from here....
80572         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
80573         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
80574         Dmitry V. Levin.
80575         Include mountlist.h first, to test the interface.
80576
80577 2005-01-29  Bruno Haible  <bruno@clisp.org>
80578
80579         * lib/progname.c (program_name): Initialize.
80580         Needed when linking statically on MacOS X.
80581
80582 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
80583
80584         Sync from coreutils.
80585         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
80586         (Depends-on): Add c-strtod.
80587         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
80588
80589 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
80590
80591         Sync from coreutils.
80592         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
80593
80594         Remove files that are specific to coreutils.
80595         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
80596
80597 2005-01-28  Bruno Haible  <bruno@clisp.org>
80598
80599         * modules/javacomp: New file.
80600         * MODULES.html.sh (Java): Add javacomp.
80601
80602 2005-01-28  Bruno Haible  <bruno@clisp.org>
80603
80604         * m4/javacomp.m4: New file, from GNU gettext.
80605
80606 2005-01-28  Bruno Haible  <bruno@clisp.org>
80607
80608         * lib/javacomp.sh.in: New file, from GNU gettext.
80609         * lib/javacomp.h: New file, from GNU gettext.
80610         * lib/javacomp.c: New file, from GNU gettext.
80611
80612 2005-01-26  Simon Josefsson  <jas@extundo.com>
80613
80614         * lib/gai_strerror.c: Use GPL in header.
80615
80616 2005-01-26  Bruno Haible  <bruno@clisp.org>
80617
80618         * modules/javaexec: New file.
80619         * MODULES.html.sh (Java): Add javaexec.
80620
80621 2005-01-26  Bruno Haible  <bruno@clisp.org>
80622
80623         * m4/javaexec.m4: New file, from GNU gettext.
80624
80625 2005-01-26  Bruno Haible  <bruno@clisp.org>
80626
80627         * lib/javaexec.sh.in: New file, from GNU gettext.
80628         * lib/javaexec.h: New file, from GNU gettext.
80629         * lib/javaexec.c: New file, from GNU gettext.
80630
80631 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80632
80633         * modules/lchown (Depends-on): Remove lchown.h
80634
80635 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80636
80637         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
80638         must be defined if the header file was not found, in order
80639         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
80640
80641 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80642
80643         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
80644         initializers for struct pentry_state.
80645         (__argp_error): Check return value of __asprintf
80646         (__argp_failure): Translate error message
80647
80648         * lib/argp-parse.c: Removed braces around the expansion of N_()
80649
80650 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
80651
80652         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
80653         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
80654         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
80655         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
80656         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
80657         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
80658         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
80659         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
80660         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
80661         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
80662         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
80663         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
80664         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
80665         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
80666         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
80667         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
80668         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
80669         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
80670         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
80671         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
80672         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
80673         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
80674         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
80675         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
80676         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
80677         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
80678         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
80679         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
80680         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
80681         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
80682         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
80683         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
80684         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
80685         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
80686         xstrtol.m4, xstrtoumax.m4, yesno.m4:
80687         Use an all-permissive copyright notice, recommended by RMS.
80688
80689 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
80690
80691         * modules/chdir-long (Depends-on): Remove mempcpy.
80692
80693 2005-01-21  Jim Meyering  <jim@meyering.net>
80694
80695         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
80696         same value as for Solaris 9.
80697
80698         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
80699         component length.  This included changing the parameter to be
80700         of type `char *' rather than `char const *'.
80701         * lib/chdir-long.h (chdir_long): Update prototype.
80702
80703         * lib/openat.c (fdopendir, fstatat): New functions.
80704         * lib/openat.h: Include headers required for use of DIR and struct
80705         stat.
80706         [AT_SYMLINK_NOFOLLOW]: Define.
80707         (fdopendir, fstatat): Add prototypes.
80708
80709 2005-01-21  Bruno Haible  <bruno@clisp.org>
80710
80711         * modules/classpath: New file.
80712         * MODULES.html.sh (Java): Add classpath.
80713
80714 2005-01-21  Bruno Haible  <bruno@clisp.org>
80715
80716         * lib/classpath.h: New file, from GNU gettext.
80717         * lib/classpath.c: New file, from GNU gettext.
80718
80719 2005-01-20  Simon Josefsson  <jas@extundo.com>
80720
80721         * modules/version-etc-fsf: New file.
80722
80723 2005-01-20  Simon Josefsson  <jas@extundo.com>
80724
80725         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
80726         * lib/version-etc.c: Remove version_etc_copyright.
80727         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
80728         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
80729
80730 2005-01-20  Simon Josefsson  <jas@extundo.com>
80731
80732         * lib/base64.h (isbase64): Add.
80733
80734         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
80735         using a unsigned prototype, don't inline.
80736         (base64_decode): Use it.
80737
80738 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
80739
80740         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
80741         it.
80742
80743 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
80744
80745         * lib/save-cwd.c (save_cwd): Remove code to support the case
80746         where fchdir is missing or flaky.
80747
80748 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
80749
80750         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
80751
80752 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
80753
80754         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
80755         AC_LIBSOURCES now does this.
80756         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
80757         with new ullong_max module.
80758
80759 2005-01-19  Bruno Haible  <bruno@clisp.org>
80760
80761         * modules/sh-quote: New file.
80762         * MODULES.html.sh (Executing programs): Add sh-quote.
80763
80764 2005-01-19  Bruno Haible  <bruno@clisp.org>
80765
80766         * lib/sh-quote.h: New file, from GNU gettext.
80767         * lib/sh-quote.c: New file, from GNU gettext.
80768
80769 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
80770
80771         Merge from coreutils.
80772         * m4/ullong_max.m4: New file.
80773         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
80774         (gl_MACROS): Assume localeconv exists.
80775
80776 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
80777
80778         Merge changes from coreutils, as described below in several
80779         changelogs dated today.
80780
80781         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
80782         (O_DIRECTORY): Remove; not needed here, since "." must be
80783         a directory.  All uses removed.
80784         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
80785         universal on Suns, and we also need to test for IRIX.
80786         Revamp code to use 'if' rather than '#if'.
80787         Avoid unnecessary comparison of cwd->desc to 0.
80788
80789         * lib/utimens.c (futimens): Robustify the previous patch, by checking
80790         for known valid error numbers rather than observed invalid ones.
80791
80792 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
80793
80794         * modules/ullong_max: New file.
80795
80796         * modules/chdir-long, modules/openat: New files.
80797         * modules/save-cwd (Depends-on): Depend on chdir-long.
80798         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
80799
80800 2005-01-18  Jim Meyering  <jim@meyering.net>
80801
80802         Merge from coreutils.
80803         * m4/chdir-long.m4, m4/openat.m4: New files.
80804         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
80805         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
80806         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
80807         is sane and DOES follow symlinks.  Besides, testing 20 different
80808         systems found no broken chown implementations.
80809         Prompted by a change in rsync's copy of this macro.
80810         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
80811
80812         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
80813
80814         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
80815         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
80816         NULL-means-set-to-current-time semantics.
80817         Remove temporary file immediately, rather than waiting
80818         for configure's at-exit trap code to do it.
80819
80820 2005-01-18  Jim Meyering  <jim@meyering.net>
80821
80822         * lib/version-etc.c (version_etc_copyright): Update copyright date.
80823
80824         * lib/utimens.c (futimens): Account for the fact that futimes
80825         can also fail with errno == ENOSYS or errno == ENOENT.
80826         Patch from Dmitry V. Levin.
80827
80828         Change the name of the robust chdir function from chdir to chdir_long.
80829         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
80830         (restore_cwd): Use chdir_long, not chdir.
80831         * lib/chdir-long.c: Renamed from chdir.c.
80832         * lib/chdir-long.h: Renamed from chdir.h.
80833         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
80834         Hurd.
80835
80836 2005-01-18  Bruno Haible  <bruno@clisp.org>
80837
80838         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
80839         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
80840         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
80841         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
80842         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
80843         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
80844         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
80845         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
80846         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
80847         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
80848         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
80849         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
80850         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
80851         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
80852         Use an all-permissive copyright notice, recommended by RMS.
80853
80854 2005-01-18  Bob Proulx  <bob@proulx.com>
80855
80856         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
80857         simplify offsetof() macro construct to avoid compile failure with
80858         native HP-UX 11.0 ANSI C compiler.
80859
80860 2005-01-17  Bruno Haible  <bruno@clisp.org>
80861
80862         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
80863         redundant because stpncpy.m4 takes care of it.
80864
80865 2005-01-17  Bruno Haible  <bruno@clisp.org>
80866
80867         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
80868
80869 2005-01-17  Bruno Haible  <bruno@clisp.org>
80870
80871         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
80872         used.
80873
80874 2005-01-17  Bruno Haible  <bruno@clisp.org>
80875
80876         * lib/fwriteerror.h (fwriteerror): Change specification to include
80877         fclose.
80878         * lib/fwriteerror.c: Include <stdbool.h>.
80879         (fwriteerror): At the end, close the file stream. Record whether
80880         stdout was already closed.
80881
80882 2005-01-17  Bruno Haible  <bruno@clisp.org>
80883
80884         * lib/execute.c (environ): Declare if needed.
80885         * lib/pipe.c (environ): Likewise.
80886         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
80887
80888 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80889
80890         * modules/argp: Depend on vsnprintf
80891
80892 2005-01-10  Jim Meyering  <jim@meyering.net>
80893
80894         * modules/closeout (Depends-on): Add atexit.
80895
80896 2005-01-06  Bruno Haible  <bruno@clisp.org>
80897
80898         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
80899
80900 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
80901
80902         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
80903         definitions to be after all include files, to avoid collisions.
80904         Problem reported by Bob Proulx.
80905
80906 2005-01-04  Jim Meyering  <jim@meyering.net>
80907
80908         Changes imported from coreutils.
80909         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
80910         as the mkstemp template, use a temporary directory and an
80911         8.3-friendly template to avoid trouble on systems like DJGPP.
80912         Reported by Juan M. Guerrero via Stepan Kasal.
80913         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
80914         close. Remove the temporary directory right away, rather than waiting
80915         for configure's at-exit trap code to do it.
80916         Suggestion from Stepan Kasal.
80917
80918 2005-01-01  Simon Josefsson  <jas@extundo.com>
80919
80920         * gnulib-tool: Print #include directives when --import'ing.
80921
80922 2004-12-28  Simon Josefsson  <jas@extundo.com>
80923
80924         * tests/test-base64.c: Include required header files.  Remove
80925         unused variables.
80926
80927 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
80928
80929         * modules/error (Depends-on): Remove gettext.
80930
80931 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
80932
80933         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
80934         not needed.  This removes a dependency on the gettext module.
80935         [defined _LIBC]: Do not include <libintl.h>; not needed.
80936
80937 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
80938
80939         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
80940         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
80941
80942 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
80943
80944         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
80945         HAVE_DECL_STRTOLD.
80946
80947 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
80948
80949         * modules/getdate (Depends-on): Remove alloca-opt.
80950
80951 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
80952
80953         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
80954
80955 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
80956
80957         * lib/argp-parse.c: Include <stddef.h>.
80958         (alignof, alignto): New macros.
80959         (parser_init): Don't assume that void * is aligned sufficiently
80960         for struct option.
80961
80962         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
80963         need to extend the stack.
80964         (YYINITDEPTH): New macro, so that the initial stack isn't overly
80965         large.
80966
80967 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80968
80969         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
80970
80971 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
80972
80973         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
80974         (2004-10-24) change.  Apparently this was a false alarm.
80975
80976         * modules/getdate: Depend on alloca-opt, not alloca.
80977
80978 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
80979
80980         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
80981         Remove now-obsolete comment about AIX.
80982         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
80983         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
80984         (YYMAXDEPTH): New macro.
80985
80986 2004-12-18  Simon Josefsson  <jas@extundo.com>
80987
80988         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
80989
80990 2004-12-18  Bruno Haible  <bruno@clisp.org>
80991
80992         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
80993
80994 2004-12-18  Bruno Haible  <bruno@clisp.org>
80995
80996         * lib/fatal-signal.c (fatal_signals): Make non-const.
80997         (init_fatal_signals): New function.
80998         (uninstall_handlers, install_handlers): Ignore signals that were set to
80999         SIG_IGN.
81000         (at_fatal_signal): Call init_fatal_signals.
81001         (init_fatal_signal_set): Likewise. Ignore signals that were set to
81002         SIG_IGN.
81003         Reported by Paul Eggert.
81004
81005 2004-12-18  Bruno Haible  <bruno@clisp.org>
81006
81007         * doc/alloca.texi: New file.
81008         * doc/alloca-opt.texi: New file.
81009
81010 2004-12-17  Jim Meyering  <jim@meyering.net>
81011
81012         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
81013         Otherwise, install-sh could exit with improper exit status when
81014         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
81015
81016 2004-12-16  Simon Josefsson  <jas@extundo.com>
81017
81018         * tests/test-base64.c: Add license.
81019
81020 2004-12-15  Stepan Kasal  <address@hidden>
81021
81022         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
81023
81024 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
81025
81026         * modules/getcwd (Files): Add m4/d-ino.m4.
81027         Suggested by Mark D. Baushke.
81028
81029 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
81030
81031         * lib/getdate.y (textint): New member "negative".
81032         (time_zone_hhmm): New function.
81033         Expect 14 shift-reduce conflicts, not 13.
81034         (o_colon_minutes): New rule.
81035         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
81036         (yylex): Set the "negative" member of signed numbers.
81037
81038 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
81039
81040         * doc/getdate.texi (Time of day items, Time zone items):
81041         Describe new formats +00:00, UTC+00:00.
81042
81043 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
81044
81045         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
81046         spurious "-l"s.  Problem reported by Stepan Kasal.
81047
81048 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
81049
81050         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
81051         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
81052
81053 2004-12-04  Simon Josefsson  <jas@extundo.com>
81054
81055         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
81056         Vandoorselaere <yoann@prelude-ids.org>.
81057
81058 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
81059
81060         Changes imported from coreutils.
81061         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
81062         exist.
81063         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
81064
81065 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
81066
81067         Changes imported from coreutils.
81068         * lib/hard-locale.c: Assume <locale.h> exists.
81069         Include "strdup.h".
81070         (GLIBC_VERSION): New macro.
81071         (hard_locale): Assume setlocale exists.
81072         Rewrite to avoid #ifdef.
81073         Use strdup rather than malloc + strcpy.
81074         * lib/human.c: Assume <locale.h> exists.
81075         (human_readable): Assume localeconv exists.
81076
81077 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
81078
81079         * modules/hard-locale (Depends-on): Add strdup.
81080
81081 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
81082
81083         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
81084         convert T2, not T.  (Imported from libc.)
81085
81086 2004-11-30  Simon Josefsson  <jas@extundo.com>
81087
81088         * modules/restrict (License): Change to LGPL.
81089
81090 2004-11-30  Simon Josefsson  <jas@extundo.com>
81091
81092         * m4/restrict.m4: Add copyright and copying conditions.
81093
81094 2004-11-30  Simon Josefsson  <jas@extundo.com>
81095
81096         * m4/base64.m4: New file.
81097
81098 2004-11-30  Simon Josefsson  <jas@extundo.com>
81099
81100         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
81101         base64.
81102
81103         * tests/test-base64.c: New file.
81104
81105         * modules/base64: New file.
81106
81107 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
81108
81109         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
81110         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
81111
81112         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
81113
81114 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
81115
81116         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
81117         (__getcwd.c): Don't restore errno; glibc doesn't.
81118         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
81119         first, falling back to our code only if its results look suspicious.
81120         Ensure that the resulting buffer is only as large as necessary.
81121
81122         * lib/readutmp.c: Include readutmp.h first.
81123         Include <errno.h>, since readutmp.h no longer does that.
81124         * lib/readutmp.h: Don't include <errno.h>,
81125         <sys/param.h>, <time.h>; not needed to establish interface.
81126         (errno): Remove decl.
81127         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
81128         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
81129         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
81130
81131 2004-11-28  Simon Josefsson  <jas@extundo.com>
81132
81133         * lib/base64.h, base64.c: New file.
81134
81135 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
81136
81137         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
81138
81139 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
81140
81141         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
81142         (Depends-on): Remove pathmax, same.  Add mempcpy.
81143         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
81144         (Makefile.am): Append getcwd.h to lib_SOURCES.
81145         (Include): Add getcwd.h.
81146         (Maintainer): Change from Jim Meyering to "all, glibc",
81147         since getdate now uses intended-for-glibc code.
81148         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
81149         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
81150
81151 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
81152
81153         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
81154         HP's ANSI C compiler.
81155         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
81156         Declaring int functions causes warnings on some modern systems and
81157         shouldn't be needed to compile on ancient ones.
81158         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
81159         defined.
81160
81161         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
81162         with the following changes.
81163         (__set_errno): Parenthesize properly.
81164         Include <stdbool.h>.
81165         (MIN, MAX, MATCHING_INO): New macros.
81166         (__getcwd): Define with prototype, not K&R form.
81167         Use heuristics to allocate default buffer on stack if possible.
81168         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
81169         behavior, and to avoid the PATH_MAX limit when computing
81170         ../../../../...
81171         Use MATCHING_INO to compare inode number to file.
81172         Check for arithmetic overflow in size calculations.
81173         Fix bug in reallocation of dot array that caused getcwd to fail
81174         on directories nested deeper than 75.
81175         Be more careful about saving errno on error.
81176         Do not use realloc; use only free+malloc, as this is a bit
81177         more flexible and avoids a needless copy operation.
81178         Do not inspect st_dev and st_ino for symbolic links; POSIX
81179         doesn't specify the latter.
81180         Check for closedir errors.
81181         Avoid needless casts.
81182         Use "#ifdef weak_alias" around weak_alias, to be like other
81183         glibc code.
81184         The following changes to getcwd.c have effect only when used in
81185         gnulib; they have no effect inside glibc proper.
81186         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
81187         as alloca isn't used.
81188         (alloca, __alloca): Likewise.
81189         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
81190         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
81191         unconditionally, as gnulib assumes C89 or better.
81192         Do not include <sys/param.h>.
81193         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
81194         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
81195         better.
81196         (NULL) [!defined NULL]: Remove; we assume C89 or better.
81197         Include <dirent.h> in a way that is compatible with modern Autoconf.
81198         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
81199         New macros, if not already defined.
81200         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
81201         Use "_LIBC", not "defined _LIBC", for consistency.
81202         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
81203         a mempcpy module.
81204         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
81205         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
81206         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
81207         credit only to Jim Meyering and adjust the copyright dates.
81208         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
81209         <stdlib.h>, <unistd.h>, "pathmax.h".
81210         Instead, include "xgetcwd.h" (first) and "getcwd.h".
81211         (INITIAL_BUFFER_SIZE): Remove.
81212         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
81213
81214 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
81215
81216         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
81217         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
81218         Use the _ONCE methods, for efficiency.
81219         Check for fcntl.h.  In test program, include <errno.h>
81220         and <fcntl.h> if available.  Remove old K&R cruft from
81221         test program.  Check for common errors in GNU/Linux,
81222         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
81223         don't do AC_LIBOBJ, as that's getcwd.m4's job.
81224         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
81225         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
81226         name accordingly.
81227         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
81228         accommodate new getcwd.c.
81229         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
81230         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
81231         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
81232         that's all we need now.
81233
81234 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81235
81236         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
81237         argp-parse.c depends on getopt internals, that means we should
81238         always use our getopt, to be on the safe side.
81239         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
81240         order not to spoil the result of an eventual previous invocation
81241         of gl_GETOPT_SUBSTITUTE.
81242
81243 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81244
81245         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
81246         redefinition warnings. To avoid them, include the defines
81247         in `#if !defined __need_getopt ... #endif'. The only place
81248         where __getopt_argv_const is used is in definitions
81249         of getopt_long and getopt_long_only below, which are as well
81250         protected by `#ifndef __need_getopt'.
81251         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
81252         __need_getopt after including <stdio.h> and <unistd.h> These
81253         headers might have defined it.
81254
81255 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
81256
81257         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
81258
81259 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
81260
81261         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
81262         (futimens): New function, which uses futimes if available.
81263         (futimens, utimens): Support timespec==NULL, with same semantics
81264         as utime and utimens.
81265         * lib/utimens.h (futimens): New decl.
81266
81267 2004-11-23  Jim Meyering  <jim@meyering.net>
81268
81269         * lib/getopt_.h: Remove trailing blanks.
81270
81271 2004-11-23  Jim Meyering  <jim@meyering.net>
81272
81273         * lib/__fpending.c: Add comment.
81274
81275 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
81276
81277         * modules/canonicalize (Depends-on): Add xreadlink.
81278         Problem reported by James Youngman.
81279
81280 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
81281
81282         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
81283         New macros.
81284         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
81285         optopt): Use them instead of invoking ## directly; otherwise, the
81286         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
81287
81288 2004-11-19  Bruno Haible  <bruno@clisp.org>
81289
81290         * lib/strtok_r.c: Move comments from here...
81291         * lib/strtok_r.h: ... to here.
81292
81293 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
81294
81295         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
81296         implementations that mishandle size_t overflow.
81297
81298 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
81299
81300         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
81301         might fail.  Problem reported by Yoann Vandoorselaere.
81302         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
81303         implementations that mishandle size_t overflow.
81304
81305 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
81306
81307         * modules/canon-host (Depends-on): Add strdup.
81308
81309 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
81310
81311         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
81312
81313 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
81314
81315         * lib/canon-host.c: Include "strdup.h".
81316         (canon_host): Use getaddrinfo if available, so that IPv6 works.
81317         Use strdup instead of malloc/strcpy to duplicate strings.
81318
81319         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
81320         (human_space_before_unit): New constant.
81321         * lib/human.c (human_readable): Support it.
81322
81323         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
81324         (xgetcwd): Set errno correctly when failing.
81325         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
81326         the failure is actually due to a PATH_MAX problem.
81327
81328         Further getopt changes to make it more likely that glibc will
81329         buy the changes back.
81330         * lib/getopt.c (POSIXLY_CORRECT): New constant.
81331         (getopt): Use it, so to preserve glibc semantic
81332         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
81333         when compiling for libc.
81334         * lib/getopt_.h (__getopt_argv_const): Bring it back.
81335         (getopt_long, getopt_long_only): Use it.
81336
81337         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
81338         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
81339         (getopt): Argv is now char * const *, as per standard.
81340         (_getopt_internal_r, _getopt_internal): Argv is now char **,
81341         not char *__getopt_argv_const *.
81342         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
81343         _getopt_long_only_r): Likewise.
81344         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
81345         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
81346         _getopt_long_r, _getopt_long_only_r): Likewise.
81347         * lib/getopt_.h (__getopt_argv_const): Remove.
81348         (getopt): Argv is now char * const *, as per standard.
81349
81350         * lib/getdate.y (tORDINAL): New token.
81351         (day, relunit): Allow it for relative times.
81352         (relative_time_table): Use tORDINAL for ordinals.
81353
81354 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
81355
81356         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
81357         Document that "second" isn't allowed as an ordinal number.
81358
81359 2004-11-16  Jim Meyering  <jim@meyering.net>
81360
81361         * modules/closeout (Depends-on): Add fpending.
81362
81363 2004-11-15  Jim Meyering  <jim@meyering.net>
81364
81365         * lib/closeout.c: Include "__fpending.h" once again.
81366         Include <stdbool.h>.
81367         (close_stdout): Don't fail just because stdout was closed initially,
81368         since some programs don't write to stdout in the normal course of
81369         operation (other than --version and --help), and we don't want this
81370         function to make e.g. `touch file >&-' fail.
81371         But do fail if it was closed and someone has tried to write to it.
81372         E.g., `printf foo >&-' must fail.
81373
81374 2004-11-13  Jim Meyering  <jim@meyering.net>
81375
81376         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
81377
81378 2004-11-12  Simon Josefsson  <jas@extundo.com>
81379
81380         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
81381         small doc fix is still pending.
81382
81383 2004-11-11  Simon Josefsson  <jas@extundo.com>
81384
81385         * modules/strtok_r: New file.
81386
81387         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81388         strtok_r.
81389
81390 2004-11-11  Simon Josefsson  <jas@extundo.com>
81391
81392         * m4/strtok_r.m4: New file.
81393
81394         * m4/getopt.m4: Replace opterr.
81395
81396 2004-11-11  Simon Josefsson  <jas@extundo.com>
81397
81398         * lib/strtok_r.h, strtok_r.c: New file.
81399
81400 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
81401
81402         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
81403         of replacing opterr, getopt, etc.  This should handle the
81404         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
81405
81406 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
81407
81408         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
81409         we can stop lying to compilers about the constness of argv when we
81410         are compiled outside glibc.
81411         (getopt, getopt_long, getopt_long_only): Use it.
81412         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
81413         _getopt_internal, getopt): Likewise.
81414         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
81415         _getopt_long_only_r): Likewise.
81416         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
81417         _getopt_long_r, _getopt_long_only_r): Likewise.
81418
81419         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
81420         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
81421         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
81422         the other external symbols.
81423         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
81424         declaration, since the above renaming now works around collisions.
81425
81426 2004-11-11  Jim Meyering  <jim@meyering.net>
81427
81428         * lib/linebreak.c: Remove trailing blanks.
81429         * lib/alloca_.h: Likewise.
81430         * lib/acosl.c: Likewise.
81431         * lib/euidaccess.c: Likewise.
81432         * lib/allocsa.h: Likewise.
81433
81434 2004-11-10  Simon Josefsson  <jas@extundo.com>
81435
81436         * m4/getaddrinfo.m4: New file.
81437
81438 2004-11-10  Simon Josefsson  <jas@extundo.com>
81439
81440         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
81441
81442 2004-11-10  Simon Josefsson  <jas@extundo.com>
81443
81444         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81445         getaddrinfo.
81446
81447         * modules/getaddrinfo: New file.
81448
81449 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
81450
81451         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
81452
81453 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
81454
81455         * lib/mktime.c (SHR): New macro, which is a portable
81456         substitute for >> that should work even on Crays.
81457         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
81458         Problem reported by Mark D. Baushke in
81459         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
81460         * lib/getdate.y (SHR): Likewise.
81461         (tm_diff): Use it.
81462         * lib/strftime.c (SHR): Likewise.
81463         (tm_diff): Use it.
81464         * lib/quotearg.c (struct quoting_options): Use unsigned int for
81465         quote_these_too, so that right shifts are well defined.  All uses
81466         changed.
81467
81468 2004-11-10  Jim Meyering  <jim@meyering.net>
81469
81470         Ensure that no close failure goes unreported.
81471         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
81472         return early when it seems there's nothing to flush.
81473         Don't include __fpending.h.
81474
81475 2004-11-10  Jim Meyering  <jim@meyering.net>
81476
81477         * modules/closeout (Depends-on): Remove fpending.
81478
81479 2004-11-10  Jim Meyering  <jim@meyering.net>
81480
81481         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
81482
81483 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
81484
81485         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
81486         gl_FUNC_STRFTIME.
81487         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
81488         and AC_REQUIRE when possible, to avoid duplicate checks.
81489         Check for <wchar.h>.
81490
81491 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
81492
81493         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
81494
81495 2004-11-09  Bruno Haible  <bruno@clisp.org>
81496
81497         * m4/sockpfaf.m4: New file.
81498
81499 2004-11-05  Bruno Haible  <bruno@clisp.org>
81500
81501         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
81502         Reported by Mark D. Baushke <mdb@cvshome.org>.
81503
81504 2004-11-04  Bruno Haible  <bruno@clisp.org>
81505
81506         2004-09-11  Bruno Haible  <bruno@clisp.org>
81507                 * allocsa.valgrind: New file.
81508         2004-02-06  Bruno Haible  <bruno@clisp.org>
81509                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
81510                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
81511                 Reported by Christopher Seip <chris.seip@hp.com>.
81512
81513 2004-11-04  Bruno Haible  <bruno@clisp.org>
81514
81515         * modules/allocsa (Files): Add lib/allocsa.valgrind.
81516         (Makefile.am): Distribute it.
81517
81518 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
81519
81520         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
81521         with errno == ERANGE if the buffer is too small.
81522         Problem reported by Mark D. Baushke.
81523
81524 2004-11-03  Albert Chin  <china@thewrittenword.com>
81525             Paul Eggert  <eggert@cs.ucla.edu>
81526
81527         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
81528         equivalent, substitute $ac_type for equivalent type rather than
81529         blindly using uint32_t *always* which won't work if uint32_t is not
81530         available.  Define _UINT32_T to work around typedef of uint32_t if
81531         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
81532         2.5.1.
81533
81534 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
81535
81536         * m4/jm-macros.m4: Sync from coreutils.
81537         (gl_MACROS): Check for mbrlen, for pathchk.
81538         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
81539
81540 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
81541
81542         * lib/xreadlink.c (MAXSIZE): New macro.
81543         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
81544         size does not exceed MAXSIZE.  Avoid cast.
81545         As suggested by Mark D. Baushke in
81546         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
81547         if readlink fails with buffer size just under MAXSIZE, try again
81548         with MAXSIZE.
81549
81550 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
81551
81552         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
81553
81554 2004-11-02  Derek R. Price  <derek@ximbiot.com>
81555         and  Paul Eggert  <eggert@cs.ucla.edu>
81556
81557         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
81558         (get_date): Overparenthesize to avoid GCC warning.
81559
81560 2004-11-02  Bruno Haible  <bruno@clisp.org>
81561
81562         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
81563         returns void.
81564
81565 2004-11-02  Bruno Haible  <bruno@clisp.org>
81566
81567         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
81568         function returns void.
81569
81570 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
81571
81572         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
81573         fflush_unlocked, flockfile, funlockfile, funlockfile,
81574         fputs_unlocked, putc_unlocked.
81575
81576 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
81577
81578         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
81579         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
81580         already declared.
81581
81582 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
81583
81584         * modules/getdate (Files): Add doc/getdate.texi.
81585         (Depends-on): Add setenv, xalloc.
81586
81587 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
81588
81589         * lib/getdate.y: Add support for TZ="foo" within a date string.
81590         Fix some bugs near time_t boundaries.  Reject dates with
81591         out-of-range components, e.g., "Sept 31".
81592         Include <stdlib.h>, "setenv.h", "xalloc.h".
81593         (ISDIGIT_LOCALE): Remove; unused.
81594         Note that the TZ and time functions used here are not reentrant.
81595         (mktime_ok, get_tz): New functions.
81596         (TZBUFSIZE): New constant.
81597         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
81598         This requires that we sometimes generate our own TZ="XXX..." setting.
81599
81600 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
81601
81602         * doc/getdate.texi: New file, from coreutils with modifications for
81603         the new TZ parsing.
81604
81605 2004-10-27  Derek R. Price  <derek@ximbiot.com>
81606
81607         * lib/mktime.c (not_equal_tm): Remove redundant check.
81608
81609 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
81610
81611         * modules/regex (lib_SOURCES): Add regex.c.
81612         Reported by James Youngman in
81613         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
81614
81615 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
81616
81617         * lib/getdate.y: Use Bison 1.875 features, and some minor
81618         code cleanups.  This change does not affect semantics.
81619         Don't include <stdlib.h>; no longer needed.
81620         Don't include unlocked-io.h; only the "#if TEST" code uses
81621         stdio, and performance isn't crucial there.
81622         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
81623         Bison 1.875 features as described below.
81624         All uses of "PC." replaced by "pc->".
81625         (YYSTYPE): Add a forward declaration.
81626         (yylex, yyerror): Use full prototypes in forward decls.
81627         Use "%pure-parser" rather than obsolescent "%pure_parser".
81628         Use %parse-param and %lex-param instead of obsolescent
81629         YYPARSE_PARAM and YYLEX_PARAM.
81630         (meridian_table, month_and_day_table, time_units_table,
81631         relative_time_table, time_zone_table, military_table,
81632         lookup_zone, lookup_word, get_date):
81633         Use NULL instead of 0 where appropriate.
81634         (to_hour): Avoid abort (), to avoid a dependency on
81635         stdlib.h.
81636         (yyerror, yylex): Now accepts parser_control * arg.
81637         (main) [TEST]: Use '\0' rather than 0 for char.
81638
81639 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
81640
81641         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
81642
81643 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
81644
81645         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
81646         It's now the caller's responsibility to handle the case where
81647         !HAVE_GETPAGESIZE && !defined getpagesize.
81648
81649         * lib/mktime.c (leapyear): Arg is long int, not int.
81650
81651 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
81652
81653         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
81654
81655 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
81656
81657         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
81658         missing.  Problem reported by James Youngman.
81659
81660 2004-10-16  Simon Josefsson  <jas@extundo.com>
81661
81662         * gnulib-tool: Fix comments.  Fix parse problem.
81663         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
81664
81665 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
81666
81667         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
81668         implementation of getopt_long.  Problem reported by Alexander Taler in:
81669         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
81670
81671 2004-10-15  Bruno Haible  <bruno@clisp.org>
81672
81673         * gnulib-tool: Untabify. Initialize supplied_libname.
81674         (func_usage): More homogenous output.
81675         (func_modules_transitive_closure, func_modules_to_filelist,
81676         func_emit_lib_Makefile_am): New functions.
81677         (func_import): New function, extracted from big case statement. Use
81678         func_get_license, func_modules_transitive_closure,
81679         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
81680         opt_lgpl. Don't use test -a, as it's not portable.
81681         (func_create_testdir): Use func_modules_transitive_closure,
81682         func_modules_to_filelist, func_emit_lib_Makefile_am.
81683
81684 2004-10-15  Bruno Haible  <bruno@clisp.org>
81685
81686         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
81687
81688 2004-10-15  Bruno Haible  <bruno@clisp.org>
81689
81690         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
81691         the portions belonging to each module.
81692         Suggested by Derek Robert Price <derek@ximbiot.com>.
81693
81694 2004-10-12  Simon Josefsson  <jas@extundo.com>
81695
81696         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
81697         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
81698         to real functions.
81699
81700 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81701
81702         * modules/vsnprintf: New file.
81703
81704 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81705
81706         * m4/vsnprintf.m4: New file.
81707
81708 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81709
81710         * lib/vsnprintf.h: New file.
81711         * lib/vsnprintf.c: New file.
81712
81713 2004-10-11  Bruno Haible  <bruno@clisp.org>
81714
81715         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
81716         vsnprintf.
81717
81718 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
81719
81720         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
81721
81722 2004-10-07  Bruno Haible  <bruno@clisp.org>
81723
81724         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
81725         fits into the provided buffer.
81726
81727 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
81728
81729         * lib/diacrit.c, diacrit.h: Add GPL notice.
81730
81731         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
81732         notice.
81733         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
81734         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
81735         This avoids a potential constant-folding bug.
81736
81737 2004-10-05  Bruno Haible  <bruno@clisp.org>
81738
81739         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
81740         for the declaration of strsep.
81741
81742 2004-10-05  Bruno Haible  <bruno@clisp.org>
81743
81744         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
81745
81746 2004-10-04  Simon Josefsson  <jas@extundo.com>
81747
81748         * modules/memmem: New file.
81749         * tests/test-memmem.c: New file.
81750         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
81751
81752 2004-10-04  Simon Josefsson  <jas@extundo.com>
81753
81754         * m4/memmem.m4: New file.
81755
81756 2004-10-04  Simon Josefsson  <jas@extundo.com>
81757
81758         * lib/memmem.h: New file.
81759         * lib/memmem.c: New file, taken from glibc.
81760
81761 2004-10-04  Simon Josefsson  <jas@extundo.com>
81762
81763         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
81764         '#ifdef USE_UNLOCKED_IO'.
81765
81766 2004-10-04  Simon Josefsson  <jas@extundo.com>
81767
81768         * config/srclist.txt: Add memmem from glibc.
81769
81770 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
81771
81772         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
81773
81774         * modules/argmatch, modules/argp, modules/closeout, modules/error,
81775         modules/exclude, modules/getdate, modules/getline,
81776         modules/getndelim2, modules/getpass, modules/getpass-gnu,
81777         modules/getusershell, modules/linebuffer, modules/md5,
81778         modules/mountlist, modules/posixtm, modules/readtokens,
81779         modules/readutmp, modules/regex, modules/sha1,
81780         modules/version-etc, modules/yesno:
81781         Remove dependency on unlocked-io.
81782
81783 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
81784
81785         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
81786
81787         * m4/unlocked-io.m4: Add copyright notice.
81788         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
81789
81790 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
81791
81792         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
81793         * lib/xmalloc.c (xmemdup): Likewise.
81794         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
81795         XFREE): Remove these long-obsolescent macros.
81796         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
81797         * lib/xstrdup.c: Remove.
81798
81799         * lib/regex.c (re_comp): Cast gettext return value to char *,
81800         Problem reported by Martin Neitzel via Mark D. Baushke.
81801
81802 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
81803
81804         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
81805         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
81806         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
81807         regex.c, sha1.c, version-etc.c, yesno.c:
81808         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
81809         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
81810         the includer's responsibility.
81811
81812         Sync from coreutils.
81813
81814         * lib/modechange.c (mode_compile): Don't decrement a pointer that
81815         points to the start of a string, as the C Standard says the
81816         resulting behavior is undefined.
81817
81818         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
81819         simple -> simple_backups, numbered_existing ->
81820         numbered_existing_backups, numbered -> numbered_backups
81821         to avoid shadowing problems.  All uses changed.
81822         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
81823         * lib/backupfile.c (check_extension, numbered_backup):
81824         Rename locals to avoid shadowing 'basename'.
81825         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
81826         once.
81827
81828         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
81829         * lib/.cvsignore: Add getopt.h.
81830
81831 2004-10-04  Bruno Haible  <bruno@clisp.org>
81832
81833         * modules/README: New file.
81834         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
81835         not a module.
81836
81837 2004-10-02  Jim Meyering  <jim@meyering.net>
81838
81839         * lib/dirfd.h, getpagesize.h: Add copyright notice.
81840
81841 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81842
81843         * modules/strsep: New file.
81844
81845 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81846
81847         * m4/strsep.m4: New file.
81848
81849 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81850
81851         * lib/strsep.h: New file.
81852         * lib/strsep.c: New file.
81853
81854 2004-10-01  Simon Josefsson  <jas@extundo.com>
81855
81856         * lib/snprintf.c (snprintf): Handle size==0.
81857
81858 2004-10-01  Simon Josefsson  <jas@extundo.com>
81859             Bruno Haible  <bruno@clisp.org>
81860
81861         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
81862         (snprintf): Declare 'args'.
81863
81864 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
81865
81866         * lib/snprintf.c: Remove comments as to why each header is needed.
81867
81868 2004-10-01  Bruno Haible  <bruno@clisp.org>
81869
81870         * MODULES.html.sh: Add strsep.
81871
81872 2004-09-30  Simon Josefsson  <jas@extundo.com>
81873
81874         * modules/snprintf: New file.
81875
81876 2004-09-30  Simon Josefsson  <jas@extundo.com>
81877
81878         * m4/snprintf.m4: New file.
81879
81880 2004-09-30  Simon Josefsson  <jas@extundo.com>
81881
81882         * lib/snprintf.h, lib/snprintf.c: New files.
81883
81884 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81885
81886         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
81887         (hol_entry_help): Never translate an empty string.
81888         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
81889         * lib/argp.h (OPTION_NO_TRANS): New option.
81890
81891 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
81892
81893         * modules/argp (Maintainer): Replace Simon Josefsson
81894         by Sergey Poznyakoff.
81895
81896 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
81897
81898         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
81899         changes merged back into glibc.
81900
81901 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
81902
81903         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
81904
81905 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
81906
81907         * lib/xvasprintf.c: Include xalloc.h.
81908         (xvasprintf): Use xalloc_die, not xmalloc_die.
81909
81910 2004-09-29  Bruno Haible  <bruno@clisp.org>
81911
81912         * modules/alloca-opt: New file, derived from modules/alloca.
81913         * modules/allocsa: Depend on alloca-opt instead of alloca.
81914         * modules/setenv: Likewise.
81915         * modules/vasnprintf: Likewise.
81916         * MODULES.html.sh: Add alloca-opt.
81917
81918 2004-09-28  Simon Josefsson  <jas@extundo.com>
81919
81920         * gnulib-tool: New parameter --lgpl, to asseert that modules are
81921         LGPL, and to replace license template from GPL to LGPL.
81922
81923 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
81924
81925         * modules/dummy: Change license to LGPL.
81926
81927 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
81928
81929         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
81930
81931 2004-09-24  Simon Josefsson  <jas@extundo.com>
81932
81933         * modules/minmax (License): Change from GPL to LGPL.
81934
81935 2004-09-23  Simon Josefsson  <jas@extundo.com>
81936
81937         * gnulib-tool (--import): Typo.
81938
81939 2004-09-23  Simon Josefsson  <jas@extundo.com>
81940
81941         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
81942
81943 2004-09-22  Bruno Haible  <bruno@clisp.org>
81944
81945         * modules/*: Add 'License' field.
81946         * gnulib-tool: Accept --extract-license option.
81947         (func_get_license): New function.
81948
81949 2004-09-21  Bruno Haible  <bruno@clisp.org>
81950
81951         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
81952         Reported by Simon Josefsson.
81953
81954 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
81955
81956         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
81957         gl_AC_TYPE_LONG_LONG.
81958
81959 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
81960
81961         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
81962
81963 2004-09-18  Simon Josefsson  <jas@extundo.com>
81964         and  Paul Eggert  <eggert@cs.ucla.edu>
81965
81966         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
81967         calls with autoreconf.  Define GL_LIB.
81968
81969 2004-09-14  Karl Berry  <karl@gnu.org>
81970
81971         * config/srclist.txt: unsync setenv.c, sigh.
81972
81973 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
81974
81975         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
81976         Problem reported by Bruno Haible in:
81977         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
81978
81979 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
81980
81981         * config/srclist.txt: Comment out argp-pvh.c.
81982
81983 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
81984
81985         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
81986         in case some system header has #define'd it.  Problem reported by
81987         Soeren D. Schulze in
81988         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
81989
81990 2004-09-09  Karl Berry  <karl@gnu.org>
81991
81992         * regex.[ch]: delete from the root.  These were supposed to be
81993                 synced with emacs cvs, but this has not happened for about
81994                 a year, and anyway nothing else uses emacs regex.[ch].
81995                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
81996                 lib/regex[.ch] is untouched.
81997
81998 2004-09-09  Bruno Haible  <bruno@clisp.org>
81999
82000         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
82001
82002 2004-09-09  Bruno Haible  <bruno@clisp.org>
82003
82004         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
82005         modifications.
82006         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
82007
82008 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
82009
82010         * modules/xvasprintf: New file.
82011         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
82012
82013 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
82014
82015         * lib/xvasprintf.h: New file.
82016         * lib/xvasprintf.c: New file.
82017         * lib/xasprintf.c: New file.
82018
82019 2004-09-08  Bruno Haible  <bruno@clisp.org>
82020
82021         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
82022
82023 2004-09-08  Bruno Haible  <bruno@clisp.org>
82024
82025         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
82026         length is > INT_MAX.
82027         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
82028         more.
82029
82030 2004-09-08  Bruno Haible  <bruno@clisp.org>
82031
82032         * lib/stdint_.h: New file, taken from GNU clisp.
82033
82034 2004-09-08  Bruno Haible  <bruno@clisp.org>
82035             Oskar Liljeblad  <oskar@osk.mine.nu>
82036
82037         * modules/stdint: New file.
82038         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
82039
82040 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82041
82042         Import from coreutils.
82043         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
82044         strings on unbounded length.  alloca's performance benefits aren't
82045         that important here.
82046         (V_STRDUP): Remove.
82047         (parse_with_separator): New function, with most of the internals
82048         of the old parse_user_spec.  Allow user to omit both user and group,
82049         for compatibility with FreeBSD.
82050         Clone only the user name, not the entire spec.
82051         Do not set *uid, *gid unless entirely successful.
82052         Avoid memory leak in some failing cases.
82053         Fix regression for USER.GROUP reported by Dmitry V. Levin in
82054         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
82055         (parse_user_spec): Rewrite to use parse_with_separator.
82056
82057 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82058
82059         * modules/userspec: Don't depend on alloca.
82060
82061 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82062
82063         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
82064
82065 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
82066
82067         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
82068         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
82069         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
82070
82071 2004-08-16  Simon Josefsson  <jas@extundo.com>
82072
82073         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
82074         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
82075         Add --dry-run for --import.
82076         Let user provided command line parameters override configure.ac
82077         settings.
82078
82079 2004-08-12  Simon Josefsson  <jas@extundo.com>
82080
82081         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
82082         as discussed with Paul Eggert in threads rooted at
82083         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
82084         and
82085         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
82086         Before, the test was empty, and relied on ELIDE_CODE in source
82087         code.)
82088         (gl_PREREQ_GETOPT): New macro.
82089         (gl_GETOPT): Use them.
82090
82091 2004-08-12  Simon Josefsson  <jas@extundo.com>
82092
82093         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
82094         * lib/getopt_.h: Renamed from getopt.h.
82095
82096 2004-08-12  Simon Josefsson  <jas@extundo.com>
82097
82098         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
82099         Change default library name from libfoo to libgnu.
82100         Now, if you have a configure.ac that says:
82101                 gl_SOURCE_BASE(gl)
82102                 gl_M4_BASE(gl/m4)
82103                 gl_MODULES(error getopt etcetera)
82104                 gl_INIT
82105         you can import all you need by running:
82106                 ../gnulib/gnulib-tool --import
82107
82108         * modules/getopt (Files): Rename getopt.h to getopt_.h.
82109         (Makefile.am): Rewrite, use logic from argz.
82110         (Include): Use <getopt.h> instead of "getopt.h".
82111
82112 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
82113
82114         * modules/argp (Files): Add m4/unlocked-io.m4.
82115         (Depends-on): Add extensions.
82116
82117 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
82118
82119         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
82120         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
82121         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
82122         Check for program_invocation_name, program_invocation_short_name,
82123         flockfile, funlockfile, features.h, _getopt_long_only_r.
82124
82125 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
82126
82127         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
82128         its complicated substitute.
82129         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
82130         and program_invocation_name.
82131         (__argp_basename) [!_LIBC]: Remove; the only use was
82132         replaced by its body.
82133         (__argp_short_program_name): Change condition from
82134         !defined __argp_short_program_name to
82135         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
82136         to match argp-namefrob.h.
82137         (__argp_failure): Don't assume strerror_r returns char *.
82138         * lib/argp-parse.c (N_): Define unconditionally.
82139         (argp_default_options): Fill out initializers with 0 to avoid
82140         gcc warnings.
82141
82142 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
82143
82144         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
82145         getopt1.c.
82146
82147 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
82148
82149         Merge from coreutils.
82150
82151         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
82152
82153         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
82154         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
82155
82156 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
82157
82158         Merge from coreutils.
82159
82160         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
82161         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
82162         for Reliant Unix 5.43.
82163
82164         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
82165         (union fooround): Use uintmax_t, not long int.
82166         The rest is a merge from libc:
82167         [defined _LIBC]: Include <shlib-compat.h>.
82168         (_obstack) [defined _LIBC]: Remove after 2.3.4.
82169
82170         * lib/settime.c (settime): Recode to avoid warning with
82171         Sun Forte C 6U2.
82172
82173         * lib/strverscmp.c: Convert to UTF-8.
82174
82175 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
82176
82177         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
82178         m4/uintmax_t.m4.
82179
82180 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
82181
82182         * modules/xalloc-die: New file.
82183         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
82184
82185         * modules/md5 (Files): Add m4/uint32_t.m4.
82186         * modules/sha1: Renamed from modules/sha.
82187         (Files):
82188         Rename lib/sha.h to lib/sha1.h.
82189         Rename lib/sha.c to lib/sha1.c.
82190         Rename m4/sha.m4 to m4/sha1.m4.
82191         (lib_SOURCES): Likewise.
82192         (configure.ac): Rename gl_SHA to gl_SHA1.
82193         (Include): sha.h -> sha1.h.
82194
82195 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
82196
82197         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
82198         * m4/sha1.m4: Renamed from sha.m4.
82199         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
82200
82201 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
82202
82203         * lib/obstack.h (obstack_empty_p):
82204         Don't assume that chunk->contents is suitably aligned.
82205         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
82206         Likewise. Problem reported by Benno in
82207         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
82208
82209         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
82210         readable.  This could be improved further but it'd take some work.
82211
82212 2004-08-08  Simon Josefsson  <jas@extundo.com>
82213
82214         * modules/xgethostname (Depends-on): Remove exit and error (not
82215         used).
82216
82217         * modules/getpass-gnu: Add getpass.h.
82218         (Depends-on): Add stdbool.
82219         * modules/getpass: Add getpass.h.
82220
82221 2004-08-08  Simon Josefsson  <jas@extundo.com>
82222
82223         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
82224         Check getpass declaration.
82225
82226 2004-08-08  Simon Josefsson  <jas@extundo.com>
82227
82228         * lib/xgethostname.c: Don't include error.h (not used).
82229
82230         * lib/getpass.h: Add.
82231         * lib/getpass.c: Include getpass.h first.
82232
82233 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
82234
82235         * lib/xalloc-die.c: New file.
82236         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
82237         All uses removed.
82238         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
82239         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
82240         xalloc-die.c.
82241         (_, N_, xalloc_die): Move to xalloc-die.c.
82242         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
82243         so that we needn't mess with xalloc_msg_memory_exhausted.
82244
82245         * lib/sha1.h: Renamed from sha.h.
82246         (SHA1_H): Renamed from _SHA_H.
82247         (sha1_ctx): Renamed from sha_ctx.
82248         (sha1_init_ctx): Renamed from sha_init_ctx.
82249         (sha1_process_block): Renamed from sha_process_block.
82250         (sha1_process_bytes): Renamed from sha_process_bytes.
82251         (sha1_finish_ctx): Renamed from sha_finish_ctx.
82252         (sha1_read_ctx): Renamed from sha_read_ctx.
82253         (sha1_stream): Renamed from sha_stream.
82254         (sha1_buffer): Renamed from sha_buffer.
82255         * lib/sha1.c: Likewise; renamed from sha.c.
82256         Do not include <sys/types.h>.
82257         Include <stddef.h> rather than <stdlib.h>.
82258
82259 2004-08-08  Bruno Haible  <bruno@clisp.org>
82260
82261         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
82262         FILESYSTEM_PREFIX_LEN.
82263         * lib/progreloc.c: Likewise.
82264         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
82265
82266 2004-08-06  Simon Josefsson  <jas@extundo.com>
82267
82268         * modules/progname (Depends-on): Don't depend on stdbool.
82269
82270 2004-08-06  Simon Josefsson  <jas@extundo.com>
82271
82272         * modules/getsubopt: New file.
82273         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
82274         getsubopt.
82275
82276 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
82277
82278         More merge from coreutils.
82279
82280         * m4/utimens.m4, m4/utimecmp.m4: New files.
82281         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
82282         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
82283         prereq.m4, sha.m4: Import changes from coreutils.
82284
82285 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
82286
82287         More merge from coreutils.
82288         * modules/raise, modules/readtokens0, modules/utimens:
82289         * modules/utimecmp, module/xnanosleep: New files.
82290         * modules/strftime: Add lib/strftime.h.
82291         Change include from <time.h> to "strftime.h".
82292         * modules/yesno: Add lib/yesno.h.
82293         * modules/backupfile: Remove lib/addext.c.
82294         * modules/euidaccess: Add stat-macros.h.
82295         * modules/canonicalize, modules/euidaccess,
82296         modules/filemode, modules/lchown, modules/makepath,
82297         modules/rmdir, modules/stat: Likewise.
82298
82299 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
82300
82301         Merge from tar.
82302         * lib/argp-help.c (make_hol, hol_append): Don't assume that
82303         SIZE_MAX is a valid preprocessor constant.
82304         (__argp_basename): Change from "#ifndef _LIBC"
82305         to "#ifndef __argp_short_program_name", so that
82306         we don't compile these functions for tar.
82307
82308         More merges from coreutils.
82309         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
82310         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
82311         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
82312         * lib/addext.c: Remove; no longer needed.
82313         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
82314         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
82315         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
82316         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
82317         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
82318         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
82319         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
82320         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
82321         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
82322         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
82323         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
82324         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
82325         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
82326         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
82327         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
82328         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
82329         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
82330         Import changes from coreutils.
82331
82332 2004-08-05  Simon Josefsson  <jas@extundo.com>
82333
82334         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
82335
82336 2004-08-05  Simon Josefsson  <jas@extundo.com>
82337
82338         * m4/getsubopt.m4: New file.
82339
82340 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
82341
82342         Merge from coreutils.
82343
82344         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
82345         * m4/getcwd-path-max.m4: New files.
82346
82347         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
82348         FILESYSTEM_PREFIX_LEN ->
82349         FILE_SYSTEM_PREFIX_LEN.
82350         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
82351         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
82352         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
82353         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
82354
82355         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
82356         prerequisite modules now handle the DOS stuff.
82357         Don't check for unistd.h.
82358
82359 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
82360
82361         Merge from coreutils.
82362
82363         * lib/.gdb-history: Remove; this doesn't belong here.
82364
82365         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
82366         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
82367         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
82368         * lib/getcwd.c: New files.
82369
82370         * lib/dirname.h: Include <stdbool.h>.
82371         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
82372         for consistency with POSIX terminology.  All uses changed.
82373         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
82374         (strip_trailing_slashes): Use bool for booleans.
82375         * lib/stripslash.c (strip_trailing_slashes): Likewise.
82376
82377         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
82378         sometimes returns a positive errno value even when it succeeds.
82379         (print_errno_message) [!LIBC]: Fall back on strerror if
82380         __strerror_r fails.
82381
82382         * lib/path-concat.c (mempcpy): Don't define if a system header defines
82383         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
82384         (longest_relative_suffix): New function.
82385         (path_concat): Use it.  Assume first argument is not NULL.
82386         Port to DOS.  Omit redundant separators.
82387         Report an error instead of returning NULL.
82388         Use mempcpy instead of memcpy.
82389         (xpath_concat): Remove: not declared or used.
82390
82391         * lib/same.h: Include <stdbool.h>
82392         (same_name): Return bool, not int.
82393         * lib/same.c (same_name): Likewise.
82394         (errno): Don't declare; we assume C89 or better now.
82395
82396         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
82397         if not already defined.
82398
82399         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
82400         * lib/dup-safer.c (errno): Likewise.
82401
82402 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
82403
82404         Merge from coreutils.
82405         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
82406         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
82407         * modules/path-concat: Don't depend on strdup.
82408
82409 2004-08-03  Simon Josefsson  <jas@extundo.com>
82410
82411         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
82412         * lib/progname.h: Don't include stdbool.h.
82413
82414 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
82415
82416         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
82417         * MODULES.html.sh (func_all_modules): Remove fatal.
82418
82419 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
82420
82421         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
82422
82423 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
82424
82425         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
82426         working.
82427
82428 2004-08-02  Simon Josefsson  <jas@extundo.com>
82429
82430         * lib/getsubopt.h: New file, with comments from Bruno Haible.
82431         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
82432         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
82433
82434 2004-08-01  Simon Josefsson  <jas@extundo.com>
82435
82436         * lib/xgetdomainname.c: Include stdlib.h, for free().
82437
82438 2004-07-19  Bruno Haible  <bruno@clisp.org>
82439
82440         * MODULES.html.sh (func_all_modules): Add dummy.
82441
82442 2004-07-16  Simon Josefsson  <jas@extundo.com>
82443
82444         * modules/dummy: New file.
82445
82446 2004-07-16  Simon Josefsson  <jas@extundo.com>
82447
82448         * lib/dummy.c: New file.
82449
82450 2004-07-16  Bruno Haible  <bruno@clisp.org>
82451
82452         * lib/backupfile.h: Add extern "C" for C++.
82453         * lib/closeout.h: Likewise.
82454         * lib/copy-file.h: Likewise.
82455         * lib/findprog.h: Likewise.
82456         * lib/full-write.h: Likewise.
82457         * lib/pathname.h: Likewise.
82458         * lib/progname.h: Likewise.
82459         * lib/stpcpy.h: Likewise.
82460         * lib/stpncpy.h: Likewise.
82461         * lib/strcase.h: Likewise.
82462         * lib/strstr.h: Likewise.
82463         * lib/xalloc.h: Likewise.
82464
82465         * lib/mbswidth.h: Add extern "C" for C++.
82466         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
82467
82468 2004-07-13  Robert Millan  <robertmh@gnu.org>
82469
82470         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
82471
82472 2004-07-09  Simon Josefsson  <jas@extundo.com>
82473
82474         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
82475         failed without this.)
82476
82477 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
82478
82479         * modules/chown (Files): Add lib/fchown-stub.c, since
82480         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
82481
82482 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
82483
82484         * lib/fchown-stub.c: New file.
82485
82486 2004-06-24  Jim Meyering  <jim@meyering.net>
82487
82488         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
82489
82490 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82491
82492         * modules/argz: Omit "#include".
82493
82494         * MODULES.html.sh (func_all_modules): Add calloc, to match
82495         2004-06-01 addition of calloc module.
82496
82497 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82498
82499         * m4/argz.m4: New file, which is autoupdated from libtool.
82500
82501 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82502
82503         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
82504         libtool.
82505
82506 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82507
82508         * config/srclist-update: Don't insist on "USA." before the
82509         close-comment, as libtool omits the period and puts the */ on a
82510         separate line.
82511         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
82512         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
82513
82514 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
82515
82516         * modules/argz: New file.
82517         * MODULES.html.sh (func_all_modules): Add argz.
82518
82519 2004-06-12  Jim Meyering  <jim@meyering.net>
82520         and  Paul Eggert  <eggert@cs.ucla.edu>
82521
82522         * modules/hash (Files): Add lib/xalloc.h.
82523         * modules/pipe (Depends-on): Add wait-process.
82524         * modules/stat (Depends-on): Add xalloc.
82525         * modules/userspec (Files): Add lib/userspec.h.
82526         * modules/xstrto
82527
82528         Upgrade from gettext-0.13.
82529         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
82530         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
82531         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
82532
82533 2004-06-10  Jim Meyering  <jim@meyering.net>
82534
82535         * lib/calloc.c: New file.
82536
82537 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
82538
82539         * lib/getdate.y (yylex): Allow space between sign and number.
82540         Problem reported by Dan Jacobson.
82541
82542 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
82543
82544         Merge from coreutils CVS.
82545
82546         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
82547         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
82548         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
82549         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
82550         xstrtol.m4: Fix copyright date and/or serial number.
82551
82552         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
82553         See if we need an fchown replacement.
82554         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
82555         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
82556         and use the replacement function if we detect either defect.
82557
82558         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
82559         gl_UTIMECMP.
82560
82561 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
82562         and  Jim Meyering  <jim@meyering.net>
82563
82564         Merge from coreutils CVS.
82565
82566         * lib/stat-macros.h: New file, with contents from file-type.h
82567         and coreutils' system.h.
82568         * lib/file-type.c: Include "stat-macros.h".
82569         * lib/file-type.h (file_type): Move all macro definitions to new file,
82570         stat-macros.h.
82571
82572         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
82573         Wrap old code with this conditional.
82574         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
82575         function that does not dereference symlinks.
82576         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
82577
82578         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
82579         dependency problems.
82580         (xreadlink): Accept new arg SIZE, for efficiency.
82581         All decls and uses changed.
82582         * lib/xreadlink.h: Include <stddef.h>, for size_t.
82583
82584         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
82585         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
82586
82587         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
82588         sysexits.h.
82589
82590 2004-06-01  Jim Meyering  <jim@meyering.net>
82591
82592         * m4/calloc.m4: New file.
82593
82594 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
82595
82596         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
82597         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
82598         Also, fix a typo in a diagnostic.
82599
82600 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
82601
82602         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
82603         or AC_FUNC_REALLOC.
82604
82605 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
82606
82607         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
82608         macros to be defined.
82609         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
82610         the allocator returns NULL because the requested size is zero.
82611
82612 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82613
82614         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
82615         var.  Add comment explaining why libc still defines it.  This
82616         merges the following patch from glibc:
82617         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
82618
82619 2004-05-20  Andreas Schwab  <schwab@suse.de>
82620
82621         * m4/free.m4: Replace free if it not known to work, not the other
82622         way round.
82623
82624 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
82625
82626         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
82627         present in glibc since revision 1.1 of this file.
82628         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
82629         obstack_alignment_mask, obstack_alloc, obstack_base,
82630         obstack_blank, obstack_blank_fast, obstack_chunk_size,
82631         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
82632         obstack_grow0, obstack_init, obstack_int_grow,
82633         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
82634         obstack_next_free, obstack_object_size, obstack_ptr_grow,
82635         obstack_ptr_grow_fast, obstack_room): Remove declarations of
82636         nonexistent functions.
82637
82638 2004-05-18  Karl Berry  <karl@gnu.org>
82639
82640         * config/srclist.txt: break link for vasnprintf.c.
82641
82642 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
82643
82644         Port obstack to the AS/400, where pointers are 16 bytes wide and
82645         you cannot cast an integer to a valid pointer.  This patch is
82646         currently waiting to be integrated into glibc; see
82647         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
82648
82649         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
82650         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
82651         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
82652         (struct obstack): temp member is now a union of a pointer and
82653         an integer, instead of an integer.  All integer uses changed.
82654         This does not affect the physical layout of struct obstack,
82655         except on hosts (like the AS/400) where the size or alignment of
82656         void * is greater than that of ptrdiff_t.
82657         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
82658         __STDC__)]: Store temporary in pointer member of union, not
82659         integer member.
82660         * lib/obstack.c: Include <stddef.h>, for offsetof.
82661         (struct fooalign): Remove; it doesn't need a name.
82662         (union fooround): Change double to long double, and add void *.
82663         (DEFAULT_ALIGNMENT): Use offsetof to compute.
82664         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
82665         not a macro.  Hence the values are always int; so remove all
82666         casts-to-int in uses.
82667
82668 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
82669
82670         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
82671         we can get this patch merged into glibc.
82672
82673 2004-05-17  Derek R. Price  <derek@ximbiot.com>
82674             Paul Eggert  <eggert@cs.ucla.edu>
82675
82676         * m4/argp: Depend on alloca.
82677
82678 2004-05-17  Derek R. Price  <derek@ximbiot.com>
82679             Paul Eggert  <eggert@cs.ucla.edu>
82680
82681         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
82682         freecoding.
82683
82684 2004-05-17  Bruno Haible  <bruno@clisp.org>
82685
82686         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
82687         precision that consists of a '.' followed by an empty digit string.
82688         Patch by Tor Lillqvist <tml@iki.fi>.
82689
82690 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
82691
82692         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
82693         for backward compatibility with older code.  We need our own
82694         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
82695         it under some other name, and our alloca.h will define it.
82696
82697 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
82698             Derek Price  <derek@ximbiot.com>
82699
82700         * lib/alloca.c: Include <alloca.h>, to get our interface.
82701         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
82702         include <alloca.h> first.  Use C89 prototype for alloca; this
82703         requires including <stddef.h> for size_t.  Use extern "C" if C++.
82704         Use #elif for simplicity, since we can assume C89 now.
82705         Don't try to source the system alloca.h since it will not be found
82706         and to prevent recursively including its replacement.
82707         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
82708         * lib/regex.c: Likewise.
82709
82710 2004-05-16  Derek Price  <derek@ximbiot.com>
82711             Paul Eggert  <eggert@cs.ucla.edu>
82712
82713         getline cleanup.  This changes the getndelim2 API: both order of
82714         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
82715         no delimiter).
82716
82717         * lib/getline.c: Don't include stddef.h or stdio.h, since our
82718         interface does that.
82719         (getline): Always use getdelim, so that we don't have two
82720         copies of this code.
82721         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
82722         if available.
82723         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
82724         (GETNDELIM2_MAXIMUM): New macro.
82725         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
82726         instead of the old practice of delim2==0.  All callers changed.
82727         Return -1 on overflow, instead of returning junk.
82728         Do not set *linesize unless allocation succeeds.
82729         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
82730         that we include sys/types.h.
82731         * lib/getnline.h: Likewise.
82732         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
82733         (getndelim2): Reorder arguments.
82734         * lib/getnline.c (getnline, getndelim):
82735         Don't discard the NMAX argument.
82736         (getnline): Invoke getndelim, to avoid code duplication.
82737         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
82738         of (size_t) -1 by callers of the getnline family.
82739
82740 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82741
82742         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
82743         Check for gettimeofday.
82744         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
82745         Check for settimeofday, stime.
82746
82747 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82748
82749         * lib/nanosleep.c (suspended): Change its type from int to
82750         sig_atomic_t volatile.
82751         (first_call): Make it private to rpl_nanosleep, and have it
82752         be zero initially as that's a bit faster.
82753         (my_usleep): Round up fractional times instead of truncating them,
82754         as this is the usual meaning for 'sleep'.
82755
82756         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
82757         doesn't work.
82758         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
82759         (ENOSYS): Define if not defined.
82760         (settime): Fall back on stime if it exists and settimeofday fails.
82761         But don't bother with fallbacks if a method fails with errno == EPERM.
82762
82763 2004-05-11  Jim Meyering  <jim@meyering.net>
82764
82765         Prior to this change, the save_cwd caller required read access to the
82766         current directory on most systems (ones with the fchdir function).
82767
82768         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
82769         fails, try write-only, and finally, resort to using xgetcwd.
82770
82771 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
82772
82773         * lib/obstack.c, obstack.h: Import changes from libc.
82774
82775 2004-04-28  Bruno Haible  <bruno@clisp.org>
82776
82777         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
82778         also implicitly appends .exe to executables.
82779         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
82780         accepts Windows pathnames.
82781         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
82782         Treat Cygwin like Windows, since it now accepts Windows pathnames.
82783         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
82784         Treat Cygwin like Windows, since it now accepts Windows pathnames.
82785         Reported by Derek Robert Price <derek@ximbiot.com>.
82786
82787 2004-04-21  Karl Berry  <karl@gnu.org>
82788
82789         * config/srclist.txt (localcharset.c): break sync.
82790
82791 2004-04-20  Paul Eggert  <eggert@twinsun.com>
82792
82793         * m4/host-os.m4: Add a copyright notice.
82794
82795 2004-04-20  Jim Meyering  <jim@meyering.net>
82796
82797         Change UTILS_ to gl_ in AC_DEFINE'd names.
82798         Change utils_- and jm_-prefixed variables, too.
82799         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
82800         UTILS_FUNC_MKDIR_TRAILING_SLASH.
82801         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
82802
82803         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
82804         Don't emit trailing blanks.
82805         Also rename jm_-prefixed variables to have gl_ prefix.
82806
82807         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
82808         Also rename jm_-prefixed variables to have gl_ prefix.
82809
82810         * m4/jm-macros.m4: Reflect the renamings.
82811         * m4/prereq.m4: Likewise.
82812
82813 2004-04-20  Jim Meyering  <jim@meyering.net>
82814
82815         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
82816         memory.
82817
82818 2004-04-20  Jim Meyering  <jim@meyering.net>
82819             Bruno Haible  <bruno@clisp.org>
82820
82821         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
82822         memory when realloc fails.
82823
82824 2004-04-19  Jim Meyering  <jim@meyering.net>
82825
82826         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
82827         now that readutmp.c may call `free (0)'.
82828
82829 2004-04-19  Bruno Haible  <bruno@clisp.org>
82830
82831         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
82832         * m4/inttypes_h.m4: Likewise.
82833         * m4/stdint_h.m4: Likewise.
82834         * m4/intmax_t.m4: Likewise.
82835         * m4/uintmax_t.m4: Likewise.
82836
82837 2004-04-18  Jim Meyering  <jim@meyering.net>
82838
82839         * m4/prereq.m4: Don't forbid jm_ prefix.
82840
82841         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
82842         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
82843         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
82844         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
82845         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
82846         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
82847         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
82848         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
82849         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
82850         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
82851         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
82852         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
82853         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
82854         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
82855         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
82856         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
82857         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
82858         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
82859         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
82860
82861 2004-04-18  Jim Meyering  <jim@meyering.net>
82862
82863         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
82864         failure, don't leak memory and do call END_UTMP_ENT.
82865
82866 2004-04-16  Jim Meyering  <jim@meyering.net>
82867
82868         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
82869         coreutils' stat program.
82870         (gl_PREREQ): Don't require jm_PREREQ_STAT.
82871
82872 2004-04-11  Paul Eggert  <eggert@twinsun.com>
82873
82874         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
82875         C89.
82876         (CHAR_BIT): Remove, since we assume C89.
82877         Include <stdint.h> if available, as per current Autoconf CVS advice.
82878
82879 2004-03-31  Jim Meyering  <jim@meyering.net>
82880
82881         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
82882         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
82883         * m4/xalloc.m4: Likewise.
82884
82885 2004-03-30  Paul Eggert  <eggert@twinsun.com>
82886
82887         Merge from coreutils.
82888
82889         * m4/inttostr.m4: New file.
82890         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
82891         Require AM_STDBOOL_H and gl_TIMESPEC instead.
82892         Require gl_CLOCK_TIME.
82893         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
82894
82895 2004-03-30  Paul Eggert  <eggert@twinsun.com>
82896
82897         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
82898         not bool, to be more consistent with Unix conventions.
82899         Suggested by Bruno Haible.
82900
82901         Merge from coreutils.
82902
82903         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
82904         * lib/umaxtostr.c: New files.
82905
82906         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
82907         the usual <time.h> dance.
82908         (get_date): Change signature to support fractional time stamps.
82909         All callers changed.
82910         * lib/getdate.y: Include "getdate.h" first, as we can now
82911         assume C89 and don't need to worry about 'const'.
82912         Similarly, include "unlocked-io.h" near start, not in middle.
82913         Include <limits.h>.
82914         (textint.value): Use long int rather than int.
82915         (textint.digits): Use size_t rather than int.
82916         (BILLION, LOG10_BILLION): New constants.
82917         (parser_control): New member rel_ns.  Members day_ordinal,
82918         time_zone, month, day, hour, minutes, rel_year, rel_month,
82919         rel_day, rel_hour, rel_minutes, rel_seconds
82920         are now long int, not int.  Member seconds is now struct timespec,
82921         not int.  New member timespec_seen.  Members dates_seen, days_seen,
82922         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
82923         not int.
82924         (%union.intval): Now long int, not int.
82925         New member timespec.
82926         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
82927         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
82928         (spec): Now is a timespec or an item list.
82929         (timespec, items): New nonterminals.
82930         (time, rel, relunit, number, get_date):
82931         Add support for fractional seconds.
82932         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
82933         (gmtime, localtime, mktime): Remove decls; not needed with C89.
82934         (to_hour): First arg is now long int, not int.
82935         (to_year): Returns long int, not int.
82936         Don't treat year -70 like 70.
82937         (tm_diff): Returns long int, not int.
82938         (lookup_word): Use bool instead of int when appropriate.
82939         (yylex): Use size_t for count, not int.
82940         Detect overflow when parsing large integer constants.
82941         Add support for fractions.
82942         (get_date): Make pointers 'const' if possible.
82943         Use more-portable code to detect integer overflow.
82944         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
82945         Don't use ctime; it's not reliable if the year has >4 digits.
82946
82947         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
82948         This is for compatibility with BSD.
82949
82950         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
82951         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
82952         From coreutils' system.h.
82953
82954         * lib/userspec.c: Don't include "posixver.h".
82955         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
82956         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
82957         compatible extension.  Simplify code by removing a boolean int
82958         that was always nonzero if a string was nonnull.
82959
82960 2004-03-30  Jim Meyering  <jim@meyering.net>
82961
82962         Merge from coreutils.
82963
82964         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
82965         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
82966         on some systems one must include <grp.h> before it.
82967         Reported by Christian Krackowizer.
82968
82969 2004-03-30  Jim Meyering  <jim@meyering.net>
82970
82971         Merge from coreutils.
82972
82973         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
82974
82975         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
82976         an empty input stream.
82977
82978         * lib/readtokens.c: Include <stdbool.h>.
82979         (readtoken): Use `size_t' rather than int/long.
82980         All callers adjusted.
82981         Use `bool' rather than `int' where appropriate.
82982         Use memset rather than an explicit loop.
82983         Use x2nrealloc rather than xrealloc.
82984         Allow the use of `\0' as a delimiter.
82985         (readtokens): Likewise.
82986         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
82987
82988 2004-03-30  Jim Meyering  <jim@meyering.net>
82989
82990         * m4/realloc.m4: Remove file, since now it does no more than
82991         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
82992         the `configure.ac' section of module/realloc.
82993         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
82994
82995 2004-03-30  Bruno Haible  <bruno@clisp.org>
82996
82997         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
82998         nonnull.
82999
83000 2004-03-29  Paul Eggert  <eggert@twinsun.com>
83001
83002         Merge changes to getloadavg.c from coreutils and Emacs.
83003
83004         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
83005         Define to an expression, not to the empty string.
83006         Include cloexec.h and xalloc.h.
83007         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
83008         Use set_cloexec_flag rather than rolling our own.
83009         * lib/cloexec.c, lib/cloexec.h: New files.
83010
83011 2004-03-29  Paul Eggert  <eggert@twinsun.com>
83012
83013         * m4/cloexec.m4: New file.
83014
83015 2004-03-18  Paul Eggert  <eggert@twinsun.com>
83016
83017         * lib/getopt.h: Sync with libc CVS.
83018
83019 2004-03-18  Paul Eggert  <eggert@twinsun.com>
83020             Bruno Haible  <bruno@clisp.org>
83021
83022         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
83023         mbswidth.
83024
83025 2004-03-18  Paul Eggert  <eggert@twinsun.com>
83026             Bruno Haible  <bruno@clisp.org>
83027
83028         * lib/mbswidth.h: Include <wchar.h> only if
83029         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
83030         <wchar.h>.
83031         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
83032
83033 2004-03-09  Paul Eggert  <eggert@twinsun.com>
83034
83035         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
83036         Sync with libc CVS.
83037         * lib/getopt_int.h: New file, also synced from libc.
83038
83039 2004-03-09  Paul Eggert  <eggert@twinsun.com>
83040
83041         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
83042         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
83043         Bring back getopt.c, getopt.h, getopt1.c.
83044
83045 2004-03-07  Paul Eggert  <eggert@twinsun.com>
83046
83047         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
83048         All uses changed.  Check for sa_sigaction member; this fixes
83049         a bug first reported by Jason Andrade in
83050         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
83051
83052 2004-03-07  Paul Eggert  <eggert@twinsun.com>
83053
83054         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
83055         '#if' expressions.  Unlike the code it replaces, it does not
83056         depend on (defined _SC_PAGESIZE).  However, it does depend on
83057         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
83058         first reported by Jason Andrade in
83059         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
83060
83061 2004-02-25  Simon Josefsson  <jas@extundo.com>
83062
83063         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
83064
83065 2004-02-25  Simon Josefsson  <jas@extundo.com>
83066
83067         * lib/strdup.h: New file.
83068         * lib/strdup.c: Include it.
83069         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
83070         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
83071
83072 2004-02-23  Karl Berry  <karl@gnu.org>
83073
83074         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
83075         (from fencepost.gnu.org:/gd/gnuorg).
83076
83077 2004-02-23  Karl Berry  <karl@gnu.org>
83078
83079         * config/srclistvars.sh (GNUORG) [karl]: redefine.
83080         * config/srclist.txt: add maintain/standards documents.
83081
83082 2004-02-18  Bruno Haible  <bruno@clisp.org>
83083
83084         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
83085         Reported by Derek Robert Price <derek@ximbiot.com>.
83086
83087 2004-02-16  Karl Berry  <karl@gnu.org>
83088
83089         * config/mkinstalldirs, install-sh: update from automake.
83090
83091 2004-02-06  Karl Berry  <karl@gnu.org>
83092
83093         * m4/po.m4: update from gettext 0.14.1.
83094
83095 2004-02-06  Karl Berry  <karl@gnu.org>
83096
83097         * lib/config.charset: update from gettext 0.14.1.
83098
83099 2004-02-05  Paul Eggert  <eggert@twinsun.com>
83100
83101         Add comments and code, prompted by suggestions from Bruno Haible
83102         for sh-quote.
83103         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
83104         describing the enum quoting_style values.
83105         * lib/quotearg.c (quotearg_alloc): New function.
83106         (quotearg_buffer_restyled): Treat lone { and } as special.
83107         Treat = as special.  Work around bug with older shells
83108         that "see" a '\' that is really the 2nd byte of a multibyte char.
83109         Quote empty string with shell_quoting_style.
83110
83111 2004-02-03  Bruno Haible  <bruno@clisp.org>
83112
83113         * m4/pipe.m4: New file, from GNU gettext.
83114
83115 2004-02-03  Bruno Haible  <bruno@clisp.org>
83116
83117         * lib/pipe.h: New file, from GNU gettext.
83118         * lib/pipe.c: New file, from GNU gettext.
83119
83120 2004-01-27  Bruno Haible  <bruno@clisp.org>
83121
83122         * m4/execute.m4: New file, from GNU gettext.
83123
83124 2004-01-27  Bruno Haible  <bruno@clisp.org>
83125
83126         * lib/execute.h: New file, from GNU gettext.
83127         * lib/execute.c: New file, from GNU gettext.
83128         * lib/w32spawn.h: New file, from GNU gettext.
83129
83130 2004-01-24  Paul Eggert  <eggert@twinsun.com>
83131
83132         Merge from diffutils.
83133
83134         * lib/file-type.c (file_type): Add typed memory objects.
83135         * lib/file-type.h (S_TYPEISTMO): New macro.
83136
83137         * lib/c-stack.h (c_stack_action): Remove argv argument.
83138         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
83139         (die): Don't calculate message unless segv_action returns.
83140         (get_stack_location, min_address_from_argv, max_address_from_argv,
83141         volatile stack_base, volatile_stack_size): Remove.
83142         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
83143         that every segmentation violation is a stack overflow.  (Ouch!)
83144         See Debian bug 136249 (still outstanding) for more info about why
83145         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
83146
83147 2004-01-24  Paul Eggert  <eggert@twinsun.com>
83148
83149         Exit-status fix from coreutils.
83150
83151         Use exit_failure consistently in place of EXIT_FAILURE,
83152         so that program exit statuses are consistent on failure.
83153
83154         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
83155         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
83156         * lib/argmatch.h: Comment fix to match the above.
83157         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
83158         Now a macro referring to exit_failure, instead of a separate
83159         variable.  Include "exitfail.h" to get it.
83160         * lib/xstrtol.h: Include "exitfail.h".
83161         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
83162
83163         * lib/long-options.c (parse_long_options): Use prototype
83164         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
83165         for clarity.
83166
83167 2004-01-21  Jim Meyering  <jim@meyering.net>
83168
83169         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
83170         so as not to conflict with a different-sized __mktime_internal
83171         function in GNU libc.
83172         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
83173         Problem building statically-linked `ls' reported by Michael Brunnbauer.
83174
83175 2004-01-20  Karl Berry  <karl@gnu.org>
83176
83177         * config/config.guess: update from config.
83178
83179         * config/srclistvars.sh: GNUWWWLICENSES for karl.
83180
83181 2004-01-20  Bruno Haible  <bruno@clisp.org>
83182
83183         Safer stack allocation.
83184         * lib/setenv.c: Include allocsa.h.
83185         (alloca): Remove fallback definition.
83186         (freea): Remove macro.
83187         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
83188         instead of freea.
83189
83190 2004-01-20  Bruno Haible  <bruno@clisp.org>
83191
83192         * m4/eealloc.m4: New file, from GNU gettext.
83193
83194 2004-01-20  Bruno Haible  <bruno@clisp.org>
83195
83196         * m4/allocsa.m4: New file, from GNU gettext.
83197
83198 2004-01-20  Bruno Haible  <bruno@clisp.org>
83199
83200         * lib/xallocsa.h: New file, from GNU gettext.
83201         * lib/xallocsa.c: New file, from GNU gettext.
83202
83203 2004-01-20  Bruno Haible  <bruno@clisp.org>
83204
83205         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
83206
83207 2004-01-20  Bruno Haible  <bruno@clisp.org>
83208
83209         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
83210         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
83211         specially.
83212
83213 2004-01-20  Bruno Haible  <bruno@clisp.org>
83214
83215         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
83216         patch.
83217
83218 2004-01-20  Bruno Haible  <bruno@clisp.org>
83219
83220         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
83221
83222 2004-01-20  Bruno Haible  <bruno@clisp.org>
83223
83224         * lib/eealloc.h: New file.
83225
83226 2004-01-20  Bruno Haible  <bruno@clisp.org>
83227
83228         * lib/binary-io.h: Avoid warnings on Cygwin.
83229
83230 2004-01-20  Bruno Haible  <bruno@clisp.org>
83231
83232         * lib/allocsa.h: New file, from GNU gettext.
83233         * lib/allocsa.c: New file, from GNU gettext.
83234
83235 2004-01-18  Karl Berry  <karl@gnu.org>
83236
83237         * doc/gpl.texi, doc/lgpl.texi: new files.
83238
83239 2004-01-18  Karl Berry  <karl@gnu.org>
83240
83241         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
83242         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
83243
83244 2004-01-15  Paul Eggert  <eggert@twinsun.com>
83245
83246         Merge from coreutils.
83247
83248         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
83249         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
83250         (gl_DEFAULT_POSIX2_VERSION): Move
83251         the documentation from 'configure' into 'config.hin',
83252         so that 'configure --help' isn't burdened by it and
83253         we don't have to worry about its formatting there.
83254         Reword the documentation so that it's more succinct
83255         and can be run together into a single paragraph.
83256         * m4/same.m4 (gl_SAME): Check for pathconf.
83257
83258 2004-01-15  Paul Eggert  <eggert@twinsun.com>
83259
83260         Merge from coreutils.
83261
83262         * lib/posixver.c: Include posixver.h.
83263
83264         * lib/same.c: Include <stdbool.h>, <limits.h>.
83265         (_POSIX_NAME_MAX): Define if not defined.
83266         (MIN): New macro.
83267         (same_name): If file names are silently truncated, report
83268         that the file names are the same if they are the same after
83269         the silent truncation.
83270
83271         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
83272         conversion function.
83273         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
83274         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
83275         longer needed.
83276
83277 2004-01-15  Jim Meyering  <jim@meyering.net>
83278
83279         Merge from coreutils.
83280
83281         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
83282         if no library is required.
83283         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
83284         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
83285         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
83286         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
83287         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
83288         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
83289         value, $ac_cv_search_crypt, if it's "none required".
83290         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
83291         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
83292         not gl_FUNC_GETLOADAVG.
83293         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
83294         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
83295
83296 2004-01-15  Jim Meyering  <jim@meyering.net>
83297
83298         Merge from coreutils.
83299
83300         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
83301         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
83302         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
83303
83304         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
83305         optional configure-time default.
83306
83307         * lib/version-etc.c (version_etc_copyright): Update copyright date.
83308
83309         * lib/xreadlink.c (xreadlink): Correct outdated comment.
83310
83311 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
83312
83313         Merge from coreutils.
83314
83315         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
83316         value, $ac_cv_search_nanosleep, if it's "none required".
83317
83318 2004-01-14  Paul Eggert  <eggert@twinsun.com>
83319
83320         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
83321         with like-named macro in fnmatch.c.
83322         (EXT): Use an internal constant instead.
83323
83324         Merge fnmatch patches from glibc.
83325         * lib/fnmatch.c (mbsinit): Remove define.
83326         Add libc_hidden_ver (__fnmatch, fnmatch).
83327         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
83328         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
83329
83330 2004-01-14  Karl Berry  <karl@gnu.org>
83331
83332         * config/install-sh: update from automake.
83333
83334 2004-01-13  Karl Berry  <karl@gnu.org>
83335
83336         * config/install-sh: update from automake.
83337
83338 2004-01-09  Karl Berry  <karl@gnu.org>
83339
83340         * config/install-sh: update from automake.
83341
83342 2004-01-05  Karl Berry  <karl@gnu.org>
83343
83344         * config/config.{sub,guess}: update from config.
83345
83346 2003-12-31  Karl Berry  <karl@gnu.org>
83347
83348         * config/depcomp: update from automake.
83349
83350 2003-12-14  Karl Berry  <karl@gnu.org>
83351
83352         * lib/config.charset: update from gettext-runtime.
83353
83354 2003-12-03  Paul Eggert  <eggert@twinsun.com>
83355
83356         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
83357         Bug reported by Alfred M. Szmidt.
83358
83359 2003-12-03  Bruno Haible  <bruno@clisp.org>
83360
83361         * m4/gettext.m4: Upgrade from gettext-0.13.
83362         * m4/po.m4: Upgrade from gettext-0.13.
83363         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
83364         * m4/intmax.m4: New file, from gettext-0.13.
83365         * m4/printf-posix.m4: New file, from gettext-0.13.
83366
83367 2003-11-29  Karl Berry  <karl@gnu.org>
83368
83369         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
83370
83371 2003-11-25  Paul Eggert  <eggert@twinsun.com>
83372             Bruno Haible  <bruno@clisp.org>
83373
83374         * lib/printf-parse.h: Don't include sys/types.h.
83375         (ARG_NONE): New macro.
83376         (char_directive): Change type of *arg_index fields to size_t.
83377         * lib/printf-parse.c: Don't include sys/types.h.
83378         (SSIZE_MAX): Remove macro.
83379         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
83380         Remove unnecessary overflow check.
83381         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
83382         fields.
83383
83384 2003-11-25  Bruno Haible  <bruno@clisp.org>
83385
83386         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
83387
83388 2003-11-25  Bruno Haible  <bruno@clisp.org>
83389
83390         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
83391         gt_TYPE_SSIZE_T.
83392
83393 2003-11-24  Paul Eggert  <eggert@twinsun.com>
83394
83395         * modules/alloca: Remove dependency on xalloc.
83396
83397 2003-11-24  Paul Eggert  <eggert@twinsun.com>
83398
83399         * lib/alloca.c: Remove dependency on xalloc module.
83400         (xalloc_die): Remove.
83401         (memory_full) [!defined emacs]: New macro.
83402         [!defined emacs]: Don't include xalloc.h.
83403         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
83404         address arithmetic overflows.  Change datatypes a bit to avoid
83405         unnecessary casts.
83406
83407 2003-11-22  Jim Meyering  <jim@meyering.net>
83408
83409         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
83410         s/size/size_t/.
83411
83412 2003-11-21  Karl Berry  <karl@gnu.org>
83413
83414         * config/config.{sub,guess}: update from config.
83415
83416 2003-11-18  Karl Berry  <karl@gnu.org>
83417
83418         * config/config.{sub,guess}: update from config.
83419
83420         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
83421
83422 2003-11-17  Paul Eggert  <eggert@twinsun.com>
83423
83424         * README: Mention that S+T cannot overflow if S is the size of
83425         an existing object and T is sufficiently small.
83426
83427 2003-11-17  Jim Meyering  <jim@meyering.net>
83428
83429         On systems without utime and without a utimes function capable of
83430         dealing with a NULL struct utimbuf* argument, this utime replacement
83431         could -- in unusual circumstances -- leak a file descriptor.
83432         * lib/utime.c: Include <unistd.h> and <errno.h>.
83433         (utime_null): Be sure to close `fd' and to preserve errno.
83434         Reported by Geoff Collyer via Arnold Robbins.
83435
83436 2003-11-17  Bruno Haible  <bruno@clisp.org>
83437
83438         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
83439         (Depends-on): Add xsize.
83440
83441 2003-11-17  Bruno Haible  <bruno@clisp.org>
83442
83443         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
83444
83445 2003-11-17  Bruno Haible  <bruno@clisp.org>
83446
83447         * lib/vasnprintf.c (alloca): Remove fallback definition.
83448         (freea): Remove definition.
83449         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
83450         Reported by Paul Eggert.
83451
83452 2003-11-16  Paul Eggert  <eggert@twinsun.com>
83453             Bruno Haible  <bruno@clisp.org>
83454
83455         Protect against address arithmetic overflow.
83456         * lib/printf-args.h: Include stddef.h.
83457         (arguments): Change type of field 'count' to size_t.
83458         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
83459         'unsigned int' where appropriate.
83460         * lib/printf-parse.h: Include sys/types.h.
83461         (char_directive): Change type of *arg_index fields to ssize_t.
83462         (char_directives): Change type of fields 'count', max_*_length to
83463         size_t.
83464         * lib/printf-parse.c: Include sys/types.h and xsize.h.
83465         (SSIZE_MAX): Define fallback value.
83466         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
83467         instead of 'int' where appropriate. Check a_allocated, d_allocated
83468         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
83469         * lib/vasnprintf.c: Include xsize.h.
83470         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
83471         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
83472         overflow. Avoid wraparound when converting a width or precision from
83473         decimal to binary.
83474
83475 2003-11-16  Bruno Haible  <bruno@clisp.org>
83476
83477         Update from GNU gettext.
83478         * lib/printf-parse.c: Generalize to it can be compiled for wide
83479         strings.
83480         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
83481         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
83482         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
83483         SNPRINTF): New macros.
83484         Don't include <alloca.h> if the file is used inside libintl.
83485         (local_wcslen): New function, for Solaris 2.5.1.
83486         (VASNPRINTF): Use it instead of wcslen.
83487
83488 2003-11-16  Bruno Haible  <bruno@clisp.org>
83489
83490         * lib/xsize.h (xmax): New function.
83491         (xsum, xsum3, xsum4): Declare as "pure" functions.
83492
83493 2003-11-12  Paul Eggert  <eggert@twinsun.com>
83494
83495         * modules/xalloc (Files): Undo latest change, since xalloc.h
83496         no longer needs SIZE_MAX or PTRDIFF_MAX.
83497
83498 2003-11-12  Paul Eggert  <eggert@twinsun.com>
83499
83500         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
83501         gl_PTRDIFF_MAX.
83502
83503 2003-11-12  Paul Eggert  <eggert@twinsun.com>
83504
83505         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
83506         "return", to pacify some unknown compiler.  Problem reported
83507         by Joerg Schilling.
83508
83509 2003-11-12  Paul Eggert  <eggert@twinsun.com>
83510
83511         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
83512         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
83513         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
83514         heuristic is just as accurate as far as we know, and it removes a
83515         dependency on size_max.m4 and ptrdiff_max.m4.
83516
83517 2003-11-11  Bruno Haible  <bruno@clisp.org>
83518
83519         * modules/xsize (Files): Add m4/size_max.m4.
83520         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
83521
83522 2003-11-11  Bruno Haible  <bruno@clisp.org>
83523
83524         * m4/size_max.m4: New file.
83525         * m4/ptrdiff_max.m4: New file.
83526         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
83527         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
83528         (gl_XALLOC): Invoke it.
83529
83530 2003-11-11  Bruno Haible  <bruno@clisp.org>
83531
83532         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
83533         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
83534         defined.
83535
83536 2003-11-10  Paul Eggert  <eggert@twinsun.com>
83537
83538         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
83539         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
83540         rejected some allocations of exactly SIZE_MAX - 2 bytes.
83541         From Bruno Haible.
83542         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
83543         not (size_t) -1, since it's defined here.
83544
83545 2003-11-09  Karl Berry  <karl@gnu.org>
83546
83547         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
83548
83549 2003-11-06  Paul Eggert  <eggert@twinsun.com>
83550
83551         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
83552         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
83553         Reject sizes of exactly SIZE_MAX bytes.
83554         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
83555         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
83556
83557 2003-11-05  Bruno Haible  <bruno@clisp.org>
83558
83559         * lib/xsize.h: Include limits.h, to avoid a possible collision with
83560         SIZE_MAX defined in <limits.h> on Solaris.
83561
83562 2003-11-04  Jim Meyering  <jim@meyering.net>
83563
83564         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
83565         variable names, rather than @VAR@.
83566         * modules/poll: Likewise.
83567
83568 2003-11-04  Bruno Haible  <bruno@clisp.org>
83569
83570         * modules/xsize: New file.
83571         * modules/linebreak: Depend on xsize.
83572         * MODULES.html.sh (func_all_modules): Add xsize.
83573
83574 2003-11-04  Bruno Haible  <bruno@clisp.org>
83575
83576         * m4/xsize.m4: New file.
83577
83578 2003-11-04  Bruno Haible  <bruno@clisp.org>
83579
83580         * lib/xsize.h: New file.
83581         * lib/linebreak.c: Include xsize.h.
83582         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
83583         argument for overflow.
83584         Suggested by Paul Eggert.
83585
83586 2003-11-03  Karl Berry  <karl@gnu.org>
83587
83588         * config/config.{guess,sub}: update from config.
83589
83590 2003-11-03  Jim Meyering  <jim@meyering.net>
83591
83592         * modules/userspec (lib_SOURCES): Add userspec.h.
83593         (Include): Add "userspec.h".
83594         Improve description.
83595
83596 2003-11-03  Jim Meyering  <jim@meyering.net>
83597
83598         * lib/userspec.c: Include "userspec.h".
83599         * lib/userspec.h: New file.
83600
83601 2003-11-03  Bruno Haible  <bruno@clisp.org>
83602
83603         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
83604
83605 2003-11-03  Bruno Haible  <bruno@clisp.org>
83606
83607         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
83608         available, to avoid (extremely rare) race condition.
83609         Suggested by Paul Eggert.
83610
83611 2003-11-02  Karl Berry  <karl@gnu.org>
83612
83613         * config/srclist.txt (vasprintf.c): sync broken, sigh.
83614
83615 2003-10-31  Paul Eggert  <eggert@twinsun.com>
83616
83617         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
83618         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
83619         (read_filesystem_list): Set and use me_type_malloced.
83620         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
83621         whatever the type happens to be), for brevity and consistency.
83622         Check for size calculation overflow on Alphas running OSF/1.
83623
83624 2003-10-31  Jim Meyering  <jim@meyering.net>
83625
83626         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
83627
83628         * lib/linebuffer.c: Include <string.h> for declaration of memset.
83629
83630 2003-10-30  Paul Eggert  <eggert@twinsun.com>
83631             Bruno Haible  <bruno@clisp.org>
83632
83633         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
83634         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
83635
83636 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
83637
83638         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
83639         netbsd*-gnu*.  Suggested by Robert Millan.
83640
83641 2003-10-29  Paul Eggert  <eggert@twinsun.com>
83642
83643         * modules/group-member: Depend on stdbool.
83644
83645 2003-10-29  Paul Eggert  <eggert@twinsun.com>
83646
83647         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
83648
83649 2003-10-29  Paul Eggert  <eggert@twinsun.com>
83650
83651         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
83652         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
83653         after the 'gnu' in these cases.  This fixes some bugs in the
83654         previous change, and is based on suggestions by Robert Millan.
83655
83656 2003-10-29  Paul Eggert  <eggert@twinsun.com>
83657
83658         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
83659         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
83660         no longer needed.
83661         * lib/quotearg.c (quotearg_n_options): Use it.
83662         * lib/group-member.c: Include <stdbool.h>.
83663         (free_group_info): Arg is now const *; don't free arg.
83664         (get_group_info): Now returns bool and accepts struct group_info *,
83665         rather than returning a malloc'ed struct group_info *.
83666         All uses changed.  Check for overflow in internal size calculation.
83667
83668         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
83669         rather than xmalloc/xrealloc.
83670         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
83671         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
83672         conformance bug: the old code used a pointer after freeing the
83673         storage that it addressed.
83674         * lib/hash.c (hash_initialize): Simplify the code by using
83675         xalloc_oversized rather than doing it by hand.
83676         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
83677         the buffer preserved.  Use free and xmalloc instead.
83678         * lib/quotearg.c (quotearg_n_options): Likewise.
83679         Use a simpler test for size overflow.  Don't use xalloc_oversized
83680         because unsigned int might be wider than size_t (!); this suggests
83681         that we should switch from unsigned int to size_t for slot numbers.
83682
83683 2003-10-28  Paul Eggert  <eggert@twinsun.com>
83684
83685         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
83686         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
83687         NetBSD kernels.  Requested by Richard Stallman.
83688
83689 2003-10-27  Paul Eggert  <eggert@twinsun.com>
83690
83691         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
83692         to allocate the returned structure.  Do not allocate a subarray,
83693         as x2nrealloc will do that.
83694         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
83695         instead of xnrealloc.
83696         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
83697
83698 2003-10-27  Bruno Haible  <bruno@clisp.org>
83699
83700         * lib/stdbool_.h: Better support for BeOS.
83701
83702 2003-10-26  Paul Eggert  <eggert@twinsun.com>
83703
83704         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
83705         now uses inline.
83706
83707 2003-10-26  Paul Eggert  <eggert@twinsun.com>
83708
83709         * lib/xalloc.h (xalloc_oversized): New static inline function, for
83710         callers that want to do their own size-overflow checking.  Include
83711         <stdbool.h>, since xalloc_oversized returns bool.
83712         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
83713         to use xalloc_oversized.
83714
83715         Add two functions x2realloc, x2nrealloc, for programs that grow
83716         arrays dynamically by doubling their sizes.
83717         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
83718         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
83719         New functions.
83720
83721         Port to C99 semantics for 'inline' of external functions.
83722         Bug reported by Bruno Haible.
83723         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
83724         with the old contents of xnmalloc.
83725         (xnmalloc, xmalloc): Use it.
83726         (xnrealloc_inline): New static inline function,
83727         with the old contents of xnrealloc.
83728         (xnrealloc, xrealloc): Use it.
83729
83730         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
83731         that.
83732
83733 2003-10-26  Karl Berry  <karl@gnu.org>
83734
83735         * config/srclist.txt (COPYING.DOC): no longer available from
83736         /gd/gnuorg; don't know where the ultimate source is.
83737
83738 2003-10-25  Paul Eggert  <eggert@twinsun.com>
83739
83740         Fix several address-calculation bugs in the hash modules,
83741         plus some minor code cleanup.
83742
83743         * lib/hash.h: Include <stdbool.h>, for bool.
83744         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
83745         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
83746         hash_get_n_entries, hash_get_max_bucket_length,
83747         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
83748         hash_rehash): Use size_t rather than unsigned.
83749         * lib/hash.c (struct hash_table, hash_get_n_buckets,
83750         hash_get_n_buckets_used, hash_get_n_entries,
83751         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
83752         hash_get_entries, hash_do_for_each, hash_string, is_prime,
83753         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
83754         Likewise.
83755         (SIZE_MAX): Define if not defined.
83756         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
83757         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
83758         hash_print):
83759         Use const * when possible.
83760         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
83761         (check_tuning): Fix bug: if tuning parameters were very close to
83762         0 or 1, rounding errors could have caused subscript violations.
83763         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
83764         (hash_initialize): Add 'fail:' label
83765         to free table and return NULL, and use it to simplify code.
83766         Use calloc rather than clearing the storage ourself.
83767         (hash_initialize, hash_rehash): Check for arithmetic overflow in
83768         buffer size calculations.
83769         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
83770         Include <stddef.h>, for size_t.
83771         * lib/hash-pjw.c (hash_pjw): Likewise.
83772         Switch to method described by Bruno Haible.
83773         Include <limits.h>, for CHAR_BIT.
83774         (SIZE_BITS): New macro.
83775
83776 2003-10-23  Paul Eggert  <eggert@twinsun.com>
83777
83778         * m4/getline.m4 (AM_FUNC_GETLINE):
83779         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
83780         hosts.  Problem reported by Derek Robert Price in
83781         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
83782         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
83783         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
83784
83785 2003-10-21  Paul Eggert  <eggert@twinsun.com>
83786
83787         * lib/getndelim2.c (getndelim2): When size calculation overflows,
83788         ceiling the allocation at NMAX bytes rather than silently
83789         discarding input bytes before NMAX is reached.  This makes
83790         a difference only if NMAX exceeds SIZE_MAX / 2.
83791
83792         * lib/obstack.c: Merge from glibc.
83793         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
83794         Add libc_hidden_def (_obstack_newchunk).
83795         (_obstack_free) [! defined _LIBC]: Remove.
83796         [defined _LIBC]: Make a strong alias from obstack_free, rather than
83797         a clone of the function body.
83798         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
83799         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
83800
83801         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
83802         glibc.
83803         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
83804         arg to memcpy.
83805
83806         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
83807         (obstack_ptr_grow_fast, obstack_int_grow_fast):
83808         Don't use lvalue casts, as GCC plans to remove support for them
83809         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
83810         was also present in the non-GCC version, indicating that this
83811         code had always been buggy and had never been widely used.
83812         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
83813         Use the fast variant of each macro, rather than copying the
83814         definiens of the fast variant; that way, we'll be more likely to
83815         catch future bugs in the fast variants.
83816
83817 2003-10-20  Bruno Haible  <bruno@clisp.org>
83818
83819         * modules/wait-process: New file.
83820         * MODULES.html.sh (func_all_modules): Add wait-process.
83821
83822 2003-10-20  Bruno Haible  <bruno@clisp.org>
83823
83824         * m4/wait-process.m4: New file.
83825
83826 2003-10-20  Bruno Haible  <bruno@clisp.org>
83827
83828         * lib/wait-process.h: New file, from GNU gettext.
83829         * lib/wait-process.c: New file, from GNU gettext.
83830
83831 2003-10-19  Jim Meyering  <jim@meyering.net>
83832
83833         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
83834         HPUX 10.20.
83835
83836 2003-10-18  Karl Berry  <karl@gnu.org>
83837
83838         * config/config.guess: update from config.
83839
83840 2003-10-16  Paul Eggert  <eggert@twinsun.com>
83841
83842         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
83843         (getgroups): First arg is int, not size_t.
83844         Don't let 'free' mangle errno.
83845
83846 2003-10-16  Paul Eggert  <eggert@twinsun.com>
83847
83848         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
83849
83850 2003-10-16  Karl Berry  <karl@gnu.org>
83851
83852         * config/config.{guess,sub}: update from config.
83853
83854 2003-10-16  Jim Meyering  <jim@meyering.net>
83855
83856         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
83857         memcpy.
83858
83859 2003-10-15  Paul Eggert  <eggert@twinsun.com>
83860
83861         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
83862         (SIZE_MAX): Remove.
83863         (new_exclude, add_exclude_file): Initial size no longer needs to
83864         be a power of 2.
83865         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
83866         our own address arithmetic overflow checking.
83867
83868         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
83869         (fnmatch): Do not alloca more than 2000 wide characters;
83870         instead, use malloc for large buffers.
83871         Check for address arithmetic overflow, and return -1
83872         with errno set to ENOMEM in that case.
83873         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
83874         (NEW_PATTERN): Do not alloca more than 8000 bytes;
83875         instead, return -1.  Check for address arithmetic overflow.
83876
83877 2003-10-14  Paul Eggert  <eggert@twinsun.com>
83878
83879         Handle invalid suffixes and overflow independently, so that
83880         callers can treat them independently as needed.  Fix some bugs in
83881         suffix handling, e.g., "100k@" was not diagnosed as an invalid
83882         suffix for a human-readable blocksize.  The major caller-visible
83883         change is the addition of a new
83884         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
83885         that both overflow and suffix chars were found.
83886
83887         * lib/human.c (humblock): Don't check separately for invalid suffix
83888         char; that is xstrtoumax's job (now that its bug is fixed).
83889         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
83890         INTMAX_MAX]: New macros.
83891         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
83892         TYPE_MAXIMUM): New macros.
83893         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
83894         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
83895         if overflow occurs, as it's what __strtol does and it's more useful
83896         in practice.
83897         (__xstrtol): If __strtol reports some error other than ERANGE,
83898         reflect it to the caller as LONGINT_INVALID.  If it reports
83899         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
83900         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
83901         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
83902         value.
83903         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
83904         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
83905         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
83906         [defined UINTMAX_MAX]: New macros.
83907
83908 2003-10-14  Bruno Haible  <bruno@clisp.org>
83909
83910         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
83911
83912 2003-10-14  Bruno Haible  <bruno@clisp.org>
83913
83914         * m4/sig_atomic_t: New file, from GNU gettext.
83915         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
83916
83917 2003-10-14  Bruno Haible  <bruno@clisp.org>
83918
83919         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
83920         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
83921         Also use volatile where needed.
83922
83923 2003-10-12  Paul Eggert  <eggert@twinsun.com>
83924
83925         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
83926         Change maintainer from Bruno Haible to 'all'.
83927
83928 2003-10-12  Paul Eggert  <eggert@twinsun.com>
83929
83930         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
83931
83932 2003-10-12  Paul Eggert  <eggert@twinsun.com>
83933
83934         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
83935         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
83936         and define in terms of the other primitives.
83937         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
83938         (SIZE_MAX): Define if not already defined.
83939         (array_size_overflow): New function.
83940         (xalloc_die): Abort instead of exiting if 'error' returns.
83941         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
83942         (xmalloc, xrealloc): Use them.
83943         (xcalloc): Check for address arithmetic overflow.
83944         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
83945         a bit faster than strcpy.
83946
83947 2003-10-10  Simon Josefsson  <jas@extundo.com>
83948
83949         * modules/argp (Depends-on): Add restrict and strcase.
83950
83951 2003-10-10  Simon Josefsson  <jas@extundo.com>
83952
83953         * m4/argp.m4: Add AC_C_INLINE.
83954
83955 2003-10-08  Paul Eggert  <eggert@twinsun.com>
83956
83957         Merge getpass from libc, plus a few fixes.
83958
83959         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
83960         Include <stdbool.h>.
83961         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
83962         __fsetlocking to empty.
83963         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
83964         do include <bits/libc-lock.h>.
83965         Do not include <fcntl.h>; not needed.
83966         [_LIBC]: Include <wchar.h>.
83967         (NOTCANCEL_MODE): New macro.
83968         (flockfile, funlockfile) [_LIBC]: New macros.
83969         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
83970         [!_LIBC]: New macros.
83971         (call_fclose): New function.
83972         (getpass): Use it.  Save tty stream separately; this simplifies the
83973         code and makes it more reliable if stdin happens to equal stdout.
83974         Invoke __fsetlocking on tty.
83975         Handle thread cancellation if needed.
83976         Namespace cleanup (use __tcgetattr, __getline).
83977         Use bool for Booleans.
83978         [USE_IN_LIBIO]: Handle wide streams.
83979         [!_LIBC]: Unconditionally do the fseek, since we don't know what
83980         stream might go where.
83981
83982         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
83983         doesn't have to include <stdio.h> before us.
83984         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
83985         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
83986         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
83987         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
83988         if not declared, so that we can use getpass.c code from libc without
83989         rewriting it.
83990         (flockfile, ftrylockfile, funlockfile): New macros.
83991
83992 2003-10-08  Paul Eggert  <eggert@twinsun.com>
83993
83994         * modules/getpass: Depend on stdbool.
83995
83996 2003-10-08  Paul Eggert  <eggert@twinsun.com>
83997
83998         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
83999
84000 2003-10-07  Karl Berry  <karl@gnu.org>
84001
84002         * config/config.{guess,sub}: update from config.
84003
84004 2003-10-06  Jim Meyering  <jim@meyering.net>
84005             Bruno Haible  <bruno@clisp.org>
84006
84007         This lets translators provide better translations for the
84008         "Written by ..." part of --version output.
84009         * lib/version-etc.h: Include stdarg.h.
84010         (version_etc_copyright): Declare as readonly.
84011         (version_etc): Make this function variadic with a NULL-terminated list
84012         of author name strings.
84013         (version_etc_va): New declaration.
84014         * lib/version-etc.c: Include stdarg.h, stdlib.h.
84015         (version_etc_copyright): Declare as readonly.
84016         (version_etc_va): New function. Provide a different translatable string
84017         for each possible number of authors < 10. Abbreviate when there are 10
84018         authors or more.
84019         (version_etc): Make this function variadic. Call version_etc_va.
84020         Suggestion from Gary V. Vaughan.
84021
84022         * lib/long-options.h (parse_long_options): Change prototype: the
84023         authors string is moved to the end and becomes variadic.
84024         * lib/long-options.c: Include stdarg.h.
84025         (parse_long_options): Make this function variadic, too.
84026         Call version_etc_va, not version_etc.
84027
84028 2003-10-06  Bruno Haible  <bruno@clisp.org>
84029
84030         * modules/version-etc-2: Remove file.
84031         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
84032
84033 2003-10-06  Bruno Haible  <bruno@clisp.org>
84034
84035         * modules/fatal-signal: New file.
84036         * MODULES.html.sh (func_all_modules): Add fatal-signal.
84037
84038 2003-10-06  Bruno Haible  <bruno@clisp.org>
84039
84040         * m4/fatal-signal.m4: New file.
84041         * m4/signalblocking.m4: New file, from GNU gettext.
84042
84043 2003-10-06  Bruno Haible  <bruno@clisp.org>
84044
84045         * lib/version-etc-2.h: Remove file.
84046         * lib/version-etc-2.c: Remove file.
84047
84048 2003-10-06  Bruno Haible  <bruno@clisp.org>
84049
84050         * lib/fatal-signal.h: New file, from GNU gettext.
84051         * lib/fatal-signal.c: New file, from GNU gettext.
84052
84053 2003-10-05  Paul Eggert  <eggert@twinsun.com>
84054
84055         * README: Rework advice for preventing empty .o files.
84056         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
84057         not <sys/types.h>.
84058
84059 2003-10-04  Karl Berry  <karl@gnu.org>
84060
84061         * lib/argp*: update from libc.
84062
84063 2003-10-04  Karl Berry  <karl@gnu.org>
84064
84065         * config/config.{guess,sub}: update from config.
84066
84067 2003-10-02  Bruno Haible  <bruno@clisp.org>
84068
84069         * modules/lchown (Include): Add lchown.h.
84070         * modules/time_r (Include): Use "..." syntax.
84071         * modules/xgetdomainname (Include): Add xgetdomainname.h.
84072
84073 2003-10-01  Simon Josefsson  <jas@extundo.com>
84074
84075         * MODULES.html.sh (func_all_modules): Move gethostname from section
84076         'based on' to section 'lacking' POSIX:2001.
84077
84078 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
84079
84080         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
84081         to output mode on the same stream.
84082
84083 2003-09-29  Paul Eggert  <eggert@twinsun.com>
84084
84085         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
84086         Fix arg typo in previous patch.
84087
84088 2003-09-28  Jim Meyering  <jim@meyering.net>
84089
84090         * lib/error.c: Correct cpp indentation.
84091
84092 2003-09-27  Paul Eggert  <eggert@twinsun.com>
84093
84094         * modules/free: New file.
84095
84096 2003-09-27  Paul Eggert  <eggert@twinsun.com>
84097
84098         * m4/free.m4: New file.
84099
84100 2003-09-27  Paul Eggert  <eggert@twinsun.com>
84101
84102         * lib/minmax.h (MIN, MAX)
84103         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
84104         Omit the special code that used __typeof__, since we worry that
84105         it could be more trouble than it's worth.  See:
84106         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
84107         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
84108
84109         * lib/free.c: New file.
84110
84111 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
84112
84113         Trivial fixes to Makefile.am parts of module listings.
84114         * modules/strstr: Append strstr.h to lib_SOURCES.
84115         * modules/strcase: Likewise, for strcase.h.
84116
84117 2003-09-27  Karl Berry  <karl@gnu.org>
84118
84119         * config/mkinstalldirs: update from automake.
84120
84121 2003-09-26  Paul Eggert  <eggert@twinsun.com>
84122
84123         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
84124         (error_tail): Do not loop, reallocating temporary buffer, since
84125         the output cannot contain more wide characters than the input
84126         contains bytes, the size must be big enough already.  This avoids
84127         one potential size overflow calculation.  Check for size overflow
84128         when calculating temporary buffer size.  Free temporary buffer
84129         when done, if it was allocated with malloc; this plugs a memory
84130         leak.  Remove casts from void * to pointers, that are no longer
84131         needed now that we're assuming C89 or better.
84132
84133         Merge error changes from glibc.
84134
84135         * lib/error.c, error.h: Update copyright notice header to match glibc.
84136         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
84137         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
84138         Disable cancellation while printing error.
84139         * lib/error.h: Prepend __ to parameter names.
84140
84141 2003-09-26  Jim Meyering  <jim@meyering.net>
84142
84143         * lib/error.c (error_tail): Move some declarations
84144         into inner scope where the local variables are used.
84145
84146 2003-09-26  Bruno Haible  <bruno@clisp.org>
84147
84148         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
84149         stpncpy().
84150         Don't define stpncpy through config.h; it's now done through stpncpy.h.
84151
84152 2003-09-26  Bruno Haible  <bruno@clisp.org>
84153
84154         * lib/stpncpy.h (gnu_stpncpy): New declaration.
84155         (stpncpy): Define as alias for gnu_stpncpy.
84156         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
84157
84158 2003-09-25  Simon Josefsson  <jas@extundo.com>
84159
84160         * lib/xgetdomainname.h: New file.
84161         * lib/xgetdomainname.c: New file.
84162
84163 2003-09-25  Simon Josefsson  <jas@extundo.com>
84164             Bruno Haible  <bruno@clisp.org>
84165
84166         * modules/getdomainname: New file.
84167         * modules/xgetdomainname: New file.
84168         * MODULES.html.sh (func_all_modules): Add getdomainname,
84169         xgetdomainname.
84170
84171 2003-09-25  Simon Josefsson  <jas@extundo.com>
84172             Bruno Haible  <bruno@clisp.org>
84173
84174         * m4/getdomainname.m4: New file.
84175
84176 2003-09-25  Simon Josefsson  <jas@extundo.com>
84177             Bruno Haible  <bruno@clisp.org>
84178
84179         * lib/getdomainname.h: New file.
84180         * lib/getdomainname.c: New file.
84181
84182 2003-09-25  Karl Berry  <karl@gnu.org>
84183
84184         * lib/argp-fmtstream.c, argp-help.c: update from libc.
84185
84186 2003-09-25  Karl Berry  <karl@gnu.org>
84187
84188         * config/install-sh: update from automake.
84189
84190 2003-09-25  Bruno Haible  <bruno@clisp.org>
84191
84192         * modules/version-etc-2: New file, from modules/version-etc with
84193         modifications.
84194         * MODULES.html.sh (func_all_modules): Add version-etc-2.
84195
84196 2003-09-25  Bruno Haible  <bruno@clisp.org>
84197
84198         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
84199         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
84200
84201 2003-09-24  Simon Josefsson  <jas@extundo.com>
84202
84203         * modules/xgethostname: Add xgethostname.h.
84204
84205 2003-09-24  Paul Eggert  <eggert@twinsun.com>
84206
84207         * lib/linebuffer.c (freebuffer): Don't free the argument, just
84208         the buffer associated with the argument.  Bug reported by
84209         Simon Josefsson.
84210
84211 2003-09-24  Paul Eggert  <eggert@twinsun.com>
84212
84213         * README: Document assumptions that 'int' is at least 32 bits
84214         wide, that integer arithmetic is 2's complement without overflow,
84215         that there are no holes in integer values, that adding sizes of
84216         two nonoverlapping objects can't overflow, and that all-bits-zero
84217         yields scalar zero.  Fix spelling and capitalization typos.
84218
84219 2003-09-19  Karl Berry  <karl@gnu.org>
84220
84221         * lib/argp.h: update from libc.
84222
84223 2003-09-17  Paul Eggert  <eggert@twinsun.com>
84224
84225         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
84226         to avoid spurious warnings like "AC_RUN_IFELSE was called before
84227         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
84228
84229 2003-09-17  Paul Eggert  <eggert@twinsun.com>
84230
84231         * gnulib-tool: Use "test -h", not "test -L", for portability
84232         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
84233         (tags_regexp): Remove, since \| doesn't conform to POSIX.
84234         (sed_extract_prog): Issue s commands one-by-one, rather than
84235         using \| in one s command.
84236
84237 2003-09-16  Paul Eggert  <eggert@twinsun.com>
84238
84239         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
84240         input error, instead of returning NULL the next time we are called
84241         (and therefore losing track of errno).
84242
84243 2003-09-16  Bruno Haible  <bruno@clisp.org>
84244
84245         * gnulib-tool (func_create_testdir): Warn about duplicated
84246         dependencies.
84247
84248 2003-09-15  Paul Eggert  <eggert@twinsun.com>
84249
84250         * modules/argmatch, modules/fatal, modules/obstack,
84251         modules/xalloc, modules/xgethostname: Sort dependencies by
84252         importance, not alphabetically.
84253
84254 2003-09-15  Paul Eggert  <eggert@twinsun.com>
84255
84256         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
84257         fails, so that the caller gets the proper errno.
84258
84259         * lib/readutmp.c (read_utmp): Likewise.
84260         Check for fstat error.  Close stream and free storage
84261         when failing.
84262
84263 2003-09-14  Karl Berry  <karl@gnu.org>
84264
84265         * config/srclist.txt (strdup.c): disable for c89 changes.
84266
84267 2003-09-14  Jim Meyering  <jim@meyering.net>
84268
84269         * lib/getloadavg.c: Correct cpp indentation.
84270         * lib/strdup.c: Likewise.
84271         * lib/vasnprintf.c: Likewise.
84272
84273 2003-09-14  Bruno Haible  <bruno@clisp.org>
84274
84275         * modules/fwriteerror: New file.
84276         * MODULES.html.sh (func_all_modules): Add fwriteerror.
84277
84278 2003-09-14  Bruno Haible  <bruno@clisp.org>
84279
84280         * lib/fwriteerror.h: New file.
84281         * lib/fwriteerror.c: New file.
84282
84283 2003-09-12  Paul Eggert  <eggert@twinsun.com>
84284
84285         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
84286         modules/xgethostname, modules/xalloc: Depend on exit.
84287
84288 2003-09-12  Paul Eggert  <eggert@twinsun.com>
84289
84290         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
84291
84292         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
84293         and AC_MINIX, too, so that their extensions are available.
84294
84295         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
84296         This macro has been superseded by gl_BACKUPFILE.
84297
84298         More patches to assume C89 or better.
84299
84300         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
84301
84302         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
84303         unconditionally.
84304         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
84305         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
84306         Include <string.h>, <stdlib.h> unconditionally.
84307         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
84308         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
84309         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
84310         headers or for string.h.
84311         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
84312         or strtoul.
84313
84314         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
84315         headers.
84316         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
84317         * m4/userspec.m4 (gl_USERSPEC): Likewise.
84318         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
84319         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
84320         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
84321         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
84322         memcpy, memset.
84323         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
84324         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
84325         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
84326         strtol.
84327         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
84328         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
84329         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
84330         strtoul.
84331
84332 2003-09-12  Paul Eggert  <eggert@twinsun.com>
84333
84334         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
84335         * lib/obstack.c [!defined _LIBC]: Likewise.
84336         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
84337         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
84338         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
84339
84340         More changes to assume C89 or better.
84341
84342         * lib/error.c (error_tail): Assume vprintf.
84343
84344         * lib/argmatch.c (getenv): Remove decl.
84345         * lib/progreloc.c (get_full_program_name): Define via prototype.
84346         * lib/setenv.c (clearenv): Likewise.
84347         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
84348         needed.
84349         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
84350         (malloc, memcpy): Remove decls.
84351         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
84352         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
84353         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
84354         (memcpy): Remove macro.
84355         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
84356         (__P): Remove.  All uses removed.
84357         (PTR): Remove.  All uses changed to void *.
84358         (CHAR_BIT, NULL): Remove.
84359         (spaces, zeros, memset_space, memset_zero)
84360         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
84361         Remove.
84362         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
84363         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
84364         Define with prototype.
84365         Remove now-unnecessary prototype decl.
84366         (extra_args_spec): Assume ANSI C.  All uses changed.
84367         (extra_args_spec_iso): Remove.
84368         (my_strftime, emacs_strftimeu): Define via prototype.
84369         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
84370         unconditionally.
84371         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
84372         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
84373         (strtoul, strtol): Remove decls.
84374         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
84375         LONG_MAX): Remove.
84376         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
84377         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
84378         (LOCALE_PARAM_PROTO): New macro.
84379         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
84380         (INTERNAL (strtol), strtol): Define with a prototype.
84381         (PARAMS): Remove.  All uses removed.
84382         * lib/tempname.c: Include <string.h> unconditionally.
84383         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
84384         * lib/xgethostname.c (main): Define with a prototype.
84385         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
84386         Include <stdlib.h> unconditionally.
84387         (calloc, malloc, realloc, free): Remove decls.
84388         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
84389         Include <stdlib.h> unconditionally.  Sort include file names.
84390         (strtod): Remove.
84391         (xstrtod): Define with a prototype.
84392         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
84393         (strtol, strtoul): Remove decls.
84394
84395 2003-09-11  Paul Eggert  <eggert@twinsun.com>
84396
84397         More patches to assume C89 or better.
84398         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
84399         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
84400         string.h, memchr, STDC_HEADERS.
84401
84402 2003-09-11  Paul Eggert  <eggert@twinsun.com>
84403
84404         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
84405         Include <stdlib.h>, <string.h> unconditionally.
84406         Remove now-unnecessary cast to char *.
84407         * lib/strnlen.c: Include <string.h> unconditionally.
84408         * lib/yesno.c (yesno): Define with a prototype.
84409
84410 2003-09-11  Bruno Haible  <bruno@clisp.org>
84411
84412         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
84413
84414 2003-09-10  Jim Meyering  <jim@meyering.net>
84415
84416         * lib/error.c: Correct indentation of cpp directives.
84417
84418 2003-09-10  Bruno Haible  <bruno@clisp.org>
84419
84420         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
84421         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
84422         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
84423         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
84424         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
84425         <stdlib.h> and <string.h> checks.
84426         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
84427         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
84428
84429 2003-09-10  Bruno Haible  <bruno@clisp.org>
84430
84431         * lib/strcspn.c: Include <string.h> unconditionally.
84432         * lib/strpbrk.c: Include <string.h> unconditionally.
84433         * lib/strstr.c: Include <string.h> unconditionally.
84434         * lib/unicodeio.c: Include <string.h> unconditionally.
84435         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
84436         * lib/unsetenv.c: Likewise.
84437         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
84438         * lib/yesno.c: Include <stdlib.h> unconditionally.
84439         (rpmatch): Add prototype.
84440
84441 2003-09-09  Paul Eggert  <eggert@twinsun.com>
84442
84443         More patches to assume C89 or better.
84444         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
84445         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
84446         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
84447         or for string.h.
84448         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
84449         stdlib.h.
84450         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
84451         C headers.
84452         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
84453         string.h.
84454         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
84455         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
84456         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
84457         or for string.h.
84458         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
84459         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
84460         C headers.
84461         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
84462         memcpy.
84463         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
84464         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
84465         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
84466         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
84467         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
84468         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
84469         string.h, free.
84470         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
84471         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
84472         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
84473         C headers, or for string.h.
84474         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
84475         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
84476         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
84477         headers, memory.h, stdlib.h, string.h, strings.h.
84478         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
84479         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
84480         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
84481         strchr.
84482         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
84483         headers, memory.h, string.h.
84484         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
84485         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
84486         free.
84487         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
84488         headers.
84489         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
84490         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
84491         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
84492         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
84493         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
84494
84495 2003-09-09  Paul Eggert  <eggert@twinsun.com>
84496
84497         More K&R removal.
84498
84499         * lib/acosl.c (main): Use a prototype.
84500         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
84501         tanl.c: Likewise.
84502
84503         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
84504
84505         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
84506         (getopt, etopt_long, getopt_long_only, _getopt_internal)
84507         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
84508         with a prototype.
84509         * lib/getopt.c (const): Remove macro.
84510         Include <string.h> unconditionally.
84511         (my_index): Remove; all uses changed to strchr.
84512         (strlen): Remove decl.
84513         (exchange): Remove forward decl; no longer needed.
84514         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
84515         Define with prototype.
84516         * lib/getopt1.c (const): Remove macro.
84517         (getopt_long, getopt_long_only, main): Define with prototype.
84518
84519         * lib/getugroups.c: Include <string.h> unconditionally.
84520
84521         * lib/getusershell.c: Include <stdlib.h> unconditionally.
84522         (getusershell, setusershell, endusershell, readname, main):
84523         Define with prototypes.
84524
84525         * lib/group-member.c: Include group-member.h first.
84526         Include <stdlib.h> unconditionally.
84527
84528         * lib/hard-locale.c: Include hard-locale.h first.
84529         Include <stdlib.h>, <string.h> unconditionally.
84530
84531         * lib/hash.c (free, malloc): Remove decls.
84532         Include <stdlib.h> unconditionally.
84533
84534         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
84535         (getenv): Do not declare.
84536
84537         * lib/idcache.c: Include <string.h> unconditionally.
84538
84539         * lib/long-options.c: Include long-options.h first, to test interface.
84540         Include <stdlib.h> unconditionally.
84541
84542         * lib/makepath.c: Include makepath.h first, to test interface.
84543         Include <stdlib.h> and <string.h> unconditionally.
84544
84545         * lib/linebuffer.c: Include <stdlib.h>.
84546         (free): Remove decl.
84547
84548         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
84549         stddef.h. rpl_malloc returns void *, not char *.
84550         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
84551         prototype.
84552
84553         * lib/md5.h: Include <limits.h> unconditionally.
84554         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
84555         (__P): Remove; all uses removed.
84556         * lib/md5.c: Include "md5.h" first.
84557         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
84558         md5_buffer, md5_process_bytes, md5_process_block):
84559         Define with prototypes.
84560         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
84561         * lib/sha.c: Include "sha.h" first.
84562         Include <stdlib.h>, <string.h> unconditionally.
84563
84564         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
84565         * lib/memcmp.c (__ptr_t): Likewise.
84566         * lib/memrchr.c (__ptr_t): Likewise.
84567         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
84568         Include <string.h> unconditionally.
84569         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
84570         * lib/memchr.c: Include <stdlib.h> unconditionally.
84571         * lib/memchr.c (LONG_MAX): Remove.
84572         * lib/memrchr.c (LONG_MAX): Likewise.
84573         * lib/memchr.c (__memchr): Define via a prototype.
84574         * lib/memrchr.c (__memrchr): Likewise.
84575         * lib/memcmp.c (__P): Remove, and remove all uses.
84576         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
84577         Remove forward decls; no longer needed.
84578         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
84579         Use types required by C89 in prototype.
84580
84581         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
84582         * lib/savedir.c: Likewise.
84583         * lib/mkdir.c (free): Remove decl.
84584         * lib/rmdir.c (rmdir): Define with a prototype.
84585         * lib/savedir.c: Include savedir.h first, to test interface.
84586
84587         * lib/mktime.c (STDC_HEADERS): Remove.
84588         Include <stdlib.h>, <string.h> unconditionally.
84589
84590         * lib/modechange.c: Include <stdlib.h> unconditionally.
84591         (malloc): Remove decl.
84592
84593         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
84594         (free): Remove decl.
84595
84596         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
84597         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
84598         (This type really should be intptr_t, but that's a C99ism.)
84599         (_obstack_memcpy): Remove: all uses changed to memcpy.
84600         Include <string.h> unconditionally.
84601         (struct obstack): Assume __STDC__ for types of members
84602         chunkfun, freefun, extra_arg.
84603         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
84604         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
84605         obstack_begin, obstack_specify_allocation,
84606         obstack_specify_allocation_with_arg, obstack_chunkfun,
84607         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
84608         Remove unprototyped decls and the macros that use them.
84609         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
84610         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
84611         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
84612         (defined __STDC__ && __STDC__)]:
84613         Remove nonprototyped code.
84614         Include <stdlib.h> unconditionally.
84615         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
84616         _obstack_allocated_p, _obstack_free, obstack_free,
84617         _obstack_memory_used, print_and_abort):
84618         Define using prototypes.
84619         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
84620         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
84621         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
84622         obstack_next_free, obstack_object_size, obstack_room) [0]:
84623         Remove unused, unprototyped code.
84624
84625         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
84626
84627         * lib/physmem.c (physmem_total, physmem_available, main): Define
84628         with prototypes.
84629
84630         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
84631         (main): Define with a prototype.
84632
84633         * lib/posixver.c (getenv): Remove decl.
84634
84635         * lib/putenv.c (malloc): Returns void *, not char *.
84636         Include <string.h> unconditionally.
84637         (strchr, memcpy, NULL): Do not define.
84638
84639         * lib/readtokens.c: Include readtokens.h first, to test interface.
84640         Include <stdlib.h>, <string.h> unconditionally.
84641         (init_tokenbuffer): Define with a prototype.
84642
84643         * lib/regex.c (PARAMS): Remove.  All uses removed.
84644         All uses of _RE_ARGS removed, too.
84645         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
84646         unconditionally.
84647         (bzero): Assume memset exists.
84648         (memcmp, memcpy, NULL): Remove.
84649         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
84650         char, or assignments to local vars of type signed char.
84651         (init_syntax_once, PREFIX(extract_number_and_incr),
84652         PREFIX(print_partial_compiled_pattern),
84653         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
84654         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
84655         PREFIX(regex_grow_registers), PREFIX(regex_compile),
84656         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
84657         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
84658         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
84659         wcs_compile_range, byte_compile_range, truncate_wchar,
84660         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
84661         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
84662         count_mbs_length, wcs_re_match_2_internal,
84663         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
84664         PREFIX(alt_match_null_string_p),
84665         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
84666         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
84667         regfree, PREFIX(extract_number)): Define with prototype.  Remove
84668         now-unnecessary declaration, if any.
84669         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
84670         regcomp, regexec):
84671         Remove now-unnecessary casts among pointer types.
84672         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
84673
84674         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
84675         (free): Remove decl.
84676
84677         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
84678
84679         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
84680         (free): Remove decl.
84681
84682         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
84683         * lib/xgetcwd.c: Likewise.
84684
84685         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
84686         (free): Remove decl.
84687
84688         * lib/strchrnul.c (strchrnul): Define with a prototype.
84689         Fix bug: c_in was not converted to char before searching.
84690
84691         The following changes are not K&R related:
84692
84693         * lib/group-member.h: Include <sys/types.h>, so that this file is
84694         self-contained.
84695         * lib/makepath.h: Likewise.
84696
84697         * lib/getusershell.c (readname, default_index, line_size, readname):
84698         Use size_t, not int, for sizes.
84699         (readname): If the size overflows, report an error instead of
84700         looping forever.
84701
84702 2003-09-09  Paul Eggert  <eggert@twinsun.com>
84703
84704         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
84705         libc.
84706
84707 2003-09-09  Paul Eggert  <eggert@twinsun.com>
84708
84709         * README: New section: portability guidelines.
84710
84711 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
84712
84713         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
84714         C89 spec.
84715
84716 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
84717
84718         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
84719
84720 2003-09-08  Paul Eggert  <eggert@twinsun.com>
84721
84722         Assume C89 or better; remove K&R cruft.
84723         A few of these changes were first proposed by Derek Robert Price
84724         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
84725
84726         * lib/addext.c: Include <string.h> unconditionally.
84727         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
84728         Don't declare getenv or malloc.
84729
84730         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
84731         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
84732         (NULL): Remove.
84733         (find_stack_direction, alloca): Use prototypes.
84734
84735         * lib/atexit.c (atexit): Define using a prototype.
84736
84737         * lib/basename.c, dirname.c, stripslash.c:
84738         Include <string.h> unconditionally.
84739
84740         * lib/bcopy.c: Include <stddef.h>.
84741         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
84742
84743         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
84744
84745         * lib/error.h (error, error_at_line, error_print_progname)
84746         [! (defined (__STDC__) && __STDC__)]: Remove decls.
84747         * lib/error.c: Include error.h first, to check interface.
84748         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
84749         (VA_START): Remove; all uses changeed to va_start.
84750         (exit, strerror): Remove decls.
84751         (error_print_progname): Prototype uncondionally.
84752         Don't include <errno.h>; no longer needed.
84753         (private_strerror): Remove.
84754         (error_tail): Always define.
84755         (error, error_at_line): Assume C89 or better; always use prototypes.
84756         * lib/fatal.c: Include "fatal.h" first, to test interface.
84757         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
84758         (VA_START): Remove; all uses changed to va_start.
84759         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
84760         this case.
84761         (exit): Remove decl.
84762         (fatal): Prototype unconditionally.  Assume va_start works.
84763         Abort at end, to pacify gcc.
84764
84765         * lib/euidaccess.c (main): Define with a prototype.
84766
84767         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
84768
84769         * lib/exitfail.c: Include <stdlib.h> unconditionally.
84770
84771         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
84772         prototypes.
84773         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
84774         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
84775         (getenv): Remove decl.
84776         (fnmatch): Define using a prototype.
84777         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
84778         (FCT): Define using a prototype.
84779
84780         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
84781
84782         * lib/gethostname.c: Include <stddef.h>.
84783         (gethostname): Define with prototype.  Length is size_t, not int.
84784
84785 2003-09-08  Paul Eggert  <eggert@twinsun.com>
84786
84787         Assume C89 or better; remove K&R cruft.
84788         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
84789         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
84790         string.h, getenv, malloc.
84791         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
84792         headers.
84793         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
84794         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
84795         do not check for strerror.
84796         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
84797         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
84798         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
84799         do not check for doprnt or vprintf.
84800         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
84801         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
84802
84803 2003-09-08  Paul Eggert  <eggert@twinsun.com>
84804
84805         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
84806         getversion.c should have been removed then, but was accidentally
84807         preserved.
84808
84809         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
84810         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
84811
84812 2003-09-08  Karl Berry  <karl@gnu.org>
84813
84814         * config/config.sub, config.guess, srclistvars.sh: update from savannah
84815                 config, forget about prep.
84816
84817         * config/depcomp, missing: update from automake.
84818
84819 2003-09-07  Paul Eggert  <eggert@twinsun.com>
84820
84821         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
84822         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
84823
84824 2003-09-07  Paul Eggert  <eggert@twinsun.com>
84825
84826         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
84827         copy_tm_result.  Bug reported by Simon Josefsson in
84828         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
84829
84830 2003-09-06  Paul Eggert  <eggert@twinsun.com>
84831
84832         * m4/time_r.m4: New file.
84833         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
84834         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
84835         is. Check for timegm declaration.
84836         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
84837         Do not check for gmtime_r.
84838         Replace mktime if __mktime_internal does not exist and if mktime
84839         hasn't been replaced already.
84840
84841 2003-09-06  Paul Eggert  <eggert@twinsun.com>
84842
84843         * lib/time_r.c, lib/time_r.h: New files.
84844
84845         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
84846         __localtime_r.
84847         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
84848         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
84849
84850         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
84851         __gmtime_r.
84852         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
84853         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
84854         Include <time_r.h>.
84855
84856         * lib/timegm.c: Switch to glibc implementation, with the following
84857         changes:
84858         [defined HAVE_CONFIG_H]: Include <config.h>.
84859         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
84860         (__mktime_internal) [!defined _LIBC]: New decl.
84861         (__gmtime_r) [!defined _LIBC]: New macro and function.
84862         (timegm): Use a prototype, since gnulib assumes C89.
84863         Do not bother declaring tmp to be const, as it's not really usefu.
84864         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
84865         (timegm): Declare only if HAVE_DECL_TIMEGM.
84866
84867 2003-09-06  Paul Eggert  <eggert@twinsun.com>
84868
84869         * MODULES.html.sh (func_all_modules): Add time_r.
84870         * modules/time_r: New file.
84871         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
84872         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
84873
84874 2003-09-03  Paul Eggert  <eggert@twinsun.com>
84875
84876         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
84877         Bug reported by Lute Kamstra in
84878         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
84879
84880         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
84881         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
84882         course with correspondingly smaller numbers for tomorrow and
84883         yesterday.  From Tadayoshi Funaba.  Originally installed into
84884         sh-utils on 1999-08-07, but the patch got lost (I guess during the
84885         coreutils merge?).
84886
84887 2003-08-31  Simon Josefsson  <jas@extundo.com>
84888
84889         * modules/timegm: New file.
84890         * MODULES.html.sh (func_all_modules): Add timegm.
84891
84892 2003-08-31  Simon Josefsson  <jas@extundo.com>
84893
84894         * m4/timegm.m4: New file.
84895
84896 2003-08-31  Simon Josefsson  <jas@extundo.com>
84897
84898         * lib/timegm.h: New file.
84899         * lib/timegm.c: New file.  Based on
84900         wget-1.8.2/src/http.c:mktime_from_utc.
84901
84902 2003-08-31  Karl Berry  <karl@gnu.org>
84903
84904         * lib/argp.h: update from libc.
84905
84906 2003-08-28  Bruno Haible  <bruno@clisp.org>
84907
84908         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
84909         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
84910         followed by '#define fnmatch fnmatch_posix' gives an error.
84911
84912 2003-08-28  Bruno Haible  <bruno@clisp.org>
84913
84914         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
84915         warning on QNX, which defines O_BINARY to 000000.
84916
84917 2003-08-27  Jim Meyering  <jim@meyering.net>
84918
84919         * m4/mkstemp.m4: Require that the system mkstemp be able to create
84920         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
84921         would fail after 32.  Reported by Danny Levinson.  Details here:
84922         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
84923
84924 2003-08-24  Bruno Haible  <bruno@clisp.org>
84925
84926         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
84927         MSVC7 <stdio.h> is included later.
84928
84929 2003-08-22  Simon Josefsson  <jas@extundo.com>
84930
84931         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
84932
84933 2003-08-20  Karl Berry  <karl@gnu.org>
84934
84935         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
84936
84937 2003-08-20  Bruno Haible  <bruno@clisp.org>
84938
84939         * modules/progname: New file.
84940         * MODULES.html.sh (func_all_modules): Add progname.
84941
84942 2003-08-20  Bruno Haible  <bruno@clisp.org>
84943
84944         * lib/progname.h: New file, from GNU gettext.
84945         * lib/progname.c: New file, from GNU gettext.
84946         * lib/progreloc.c: New file, from GNU gettext.
84947
84948 2003-08-19  Jim Meyering  <jim@meyering.net>
84949
84950         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
84951         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
84952
84953 2003-08-19  Bruno Haible  <bruno@clisp.org>
84954
84955         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
84956         more.
84957
84958 2003-08-19  Bruno Haible  <bruno@clisp.org>
84959
84960         * lib/xstrdup.c: Assume <string.h> exists.
84961
84962 2003-08-18  Paul Eggert  <eggert@twinsun.com>
84963
84964         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
84965         in makefile rules.
84966
84967 2003-08-18  Jim Meyering  <jim@meyering.net>
84968
84969         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
84970         * m4/lib-ld.m4: Likewise.
84971
84972 2003-08-18  Jim Meyering  <jim@meyering.net>
84973
84974         * lib/setenv.h: Indent nested cpp directive.
84975         * lib/vasnprintf.c: Remove trailing blanks.
84976
84977 2003-08-17  Simon Josefsson  <jas@extundo.com>
84978
84979         * modules/xstrndup: New file.
84980         * MODULES.html.sh (func_all_modules): Add xstrndup.
84981
84982 2003-08-17  Simon Josefsson  <jas@extundo.com>
84983
84984         * modules/argp: Fix autoconf macro name. Add more dependencies.
84985
84986 2003-08-17  Simon Josefsson  <jas@extundo.com>
84987
84988         * m4/xstrndup.m4: New file.
84989
84990 2003-08-17  Simon Josefsson  <jas@extundo.com>
84991
84992         * m4/argp.m4: New file.
84993
84994 2003-08-17  Simon Josefsson  <jas@extundo.com>
84995             Bruno Haible  <bruno@clisp.org>
84996
84997         * lib/xstrndup.h: New file.
84998         * lib/xstrndup.c: New file.
84999
85000 2003-08-17  Bruno Haible  <bruno@clisp.org>
85001
85002         * modules/strndup (Files, Include): Add lib/strndup.h.
85003
85004 2003-08-17  Bruno Haible  <bruno@clisp.org>
85005
85006         * modules/euidaccess (Files): Add lib/euidaccess.h.
85007
85008 2003-08-17  Bruno Haible  <bruno@clisp.org>
85009
85010         * lib/strndup.h: New file.
85011
85012 2003-08-17  Bruno Haible  <bruno@clisp.org>
85013
85014         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
85015         like AC_GNU_SOURCE.
85016         * modules/extensions (configure.ac): Comment out the invocation of
85017         gl_USE_SYSTEM_EXTENSIONS.
85018
85019 2003-08-16  Paul Eggert  <eggert@twinsun.com>
85020
85021         Merges from coreutils, etc.
85022         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
85023         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
85024         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
85025         fixing a typo.
85026         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
85027         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
85028
85029 2003-08-16  Paul Eggert  <eggert@twinsun.com>
85030
85031         Document merge from coreutils.
85032         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
85033         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
85034         * modules/utime: Add m4/utimes-null.m4.
85035
85036 2003-08-16  Paul Eggert  <eggert@twinsun.com>
85037
85038         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
85039         space, undoing this 2003-08-12 change:
85040         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
85041
85042 2003-08-16  Paul Eggert  <eggert@twinsun.com>
85043
85044         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
85045         strtoul.c from libc, undoing this 2003-08-12 change:
85046         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
85047
85048 2003-08-16  Jim Meyering  <jim@meyering.net>
85049
85050         Merges from coreutils.
85051         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
85052         prefix.  Adjust cache variables similarly.  Create 500 rather than
85053         just 300 files, to exercise bug on Darwin6.5, too.
85054         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
85055         $missing_dir.
85056         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
85057         AM_SYS_POSIX_TERMIOS.
85058         Reported by mkc@mathdogs.com.
85059         Also change use of $am_cv_sys_posix_termios
85060         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
85061         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
85062         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
85063         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
85064         in /proc/mounts until it finds one with matching device number.  This
85065         is unnecessary when the FILE argument *is* a mount point.  No stat call
85066         is necessary in that case.  So, disable the statvfs-testing code on
85067         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
85068         as RedHat bug# 84846.
85069         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
85070         to 1MB, so as not to render systems with no stack size limit (e.g.,
85071         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
85072         Include <unistd.h>.  On some systems,
85073         it is required for the definition of _SC_PAGESIZE.
85074
85075 2003-08-16  Jim Meyering  <jim@meyering.net>
85076
85077         Merge from coreutils.
85078         * lib/xstrtoimax.c: #else #if -> #elif.
85079         * lib/xstrtoumax.c: Likewise.
85080
85081 2003-08-16  Jim Meyering  <jim@meyering.net>
85082
85083         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
85084         * m4/utimes.m4: Removed.
85085         * m4/utimes-null.m4: Renamed from utimes.m4.
85086
85087         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
85088         to 1MB, so as not to render systems with no stack size limit (e.g.,
85089         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
85090         Include <unistd.h>.  On some systems,
85091         it is required for the definition of _SC_PAGESIZE.
85092
85093 2003-08-16  Jim Meyering  <jim@meyering.net>
85094         and Paul Eggert  <eggert@cs.ucla.edu>
85095
85096         Merges from coreutils, etc.
85097
85098         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
85099         using the latest version from cvs.  This avoids problems with #line
85100         directives using a vendor (Sun) compiler.
85101         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
85102         Don't set GETGROUPS_LIB here; now it's
85103         done via getgroups.m4's wrapper function.
85104         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
85105         rather than just in sh-util/configure.in, so that the
85106         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
85107         same.
85108         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
85109         AC_FUNC_GETLOADAVG where to find getloadavg.c.
85110         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
85111         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
85112         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
85113         Remove code that is now done by the newly-required macros.
85114         Append $(EXEEXT) to DF_PROG.
85115         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
85116         Do not invoke or require the following here,
85117         since prereq.m4 or some gnulib .m4 now does this for us:
85118         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
85119         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
85120         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
85121         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
85122         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
85123         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
85124         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
85125         AC_FUNC_OBSTACK.
85126         Do not replace the following functions, as this is now the job
85127         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
85128         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
85129         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
85130         atexit getpass, strdup, getpagesize.
85131         Replace 'raise'.
85132         Do not check for the following functions, as this is now the job
85133         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
85134         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
85135         setregid.
85136         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
85137         Check for sys/sysctl.h.
85138         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
85139         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
85140         of checking for ssize_t ourselves.
85141
85142         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
85143         Require every macro that gnulib/modules/* suggests for us.
85144         (jm_PREREQ_ADDEXT): New macro.
85145         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
85146         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
85147
85148         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
85149         (gl_PHYSMEM): Use it.
85150         Also check for `table' function.
85151         Check for new headers and functions.
85152         Add check for sys/sysmp.h.
85153         With suggestions from Kaveh Ghazi.
85154         Ignore headers that are present but cannot be compiled.  This
85155         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
85156         C 5.4.
85157
85158 2003-08-15  Paul Eggert  <eggert@twinsun.com>
85159
85160         Document merge from coreutils.
85161         * modules/userspec: Depend on posixver.
85162         * modules/strftime: Depend on tzset.
85163
85164 2003-08-15  Paul Eggert  <eggert@twinsun.com>
85165
85166         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
85167         rather than tab, after '#' in shell-script copyright notices.
85168         Suggested by Bruno Haible.
85169
85170 2003-08-15  Paul Eggert  <eggert@twinsun.com>
85171
85172         * config/srclist-update: Use three spaces, rather than tab, after '#'
85173         in shell-script copyright notices.  Suggested by Bruno Haible.
85174         Remove unnecessary parenthesization in regular expression.
85175
85176 2003-08-15  Jim Meyering  <jim@meyering.net>
85177
85178         Merge from coreutils.
85179         * lib/xgethostname.c: Include <stdlib.h>.
85180         (xghostname): Don't exit for anything other than memory-related
85181         failure; just return NULL.
85182         * lib/userspec.c: Include "posixver.h".
85183         (parse_user_spec): Accept `.' as a separator only
85184         in pre-POSIX-200112 mode.
85185         * lib/strtoimax.c: Use #elif rather than #else #if.
85186         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
85187         Remove function, now that we can rely on a working tzset function.
85188         [!_LIBC]: Ensure that the required autoconf test has been run.
85189         [!defined _NL_CURRENT && HAVE_STRFTIME]:
85190         Use underlying_strftime for %r.
85191         * lib/sha.c: Merge in some clean-up and optimization changes from
85192         glibc.
85193         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
85194         Ensure that it is a multiple of 64.
85195         Rearrange loop exit tests so as to avoid performing an
85196         additional fread after encountering an error or EOF.
85197         * lib/realloc.c: Update copyright date.
85198
85199 2003-08-15  Jim Meyering  <jim@meyering.net>
85200         and Paul Eggert  <eggert@twinsun.com>
85201
85202         Merge from coreutils.
85203         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
85204         member but strut utmpx does not.  Needed for AIX 4.3.3.
85205         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
85206
85207 2003-08-15  Jim Meyering  <jim@meyering.net>
85208         and Paul Eggert  <eggert@cs.ucla.edu>
85209
85210         Merges from coreutils, etc.
85211         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
85212         Require gl_FUNC_TZSET_CLOBBER.
85213         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
85214         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
85215         members.
85216
85217 2003-08-14  Paul Eggert  <eggert@twinsun.com>
85218
85219         Help the merge from coreutils.
85220         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
85221         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
85222         * m4/tzset.m4: Use it too.
85223
85224 2003-08-14  Paul Eggert  <eggert@twinsun.com>
85225
85226         * modules/tzset: New file.
85227
85228 2003-08-14  Jim Meyering  <jim@meyering.net>
85229
85230         Merges from coreutils.
85231         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
85232         variable names, rather than @FNMATCH_H@.
85233         * modules/alloca: Likewise for $(ALLOCA_H).
85234
85235         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
85236         the three copies of the literal target, `fnmatch.h'.
85237         * modules/alloca (alloca.h): Likewise.
85238
85239 2003-08-14  Jim Meyering  <jim@meyering.net>
85240
85241         Merge from coreutils.
85242         * m4/tzset.m4: New file.
85243         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
85244         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
85245         otherwise, AIX 5.1 systems would end up using the latter.
85246         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
85247         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
85248         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
85249         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
85250
85251 2003-08-14  Jim Meyering  <jim@meyering.net>
85252
85253         Merge from coreutils.
85254         * lib/obstack.h: Whitespace changes.
85255         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
85256         and xcalloc return values.
85257         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
85258         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
85259         hang on OSF/1 5.1 for DIR on both local and remote file systems.
85260         Reported by (and fix confirmed by) Nelson H. F. Beebe.
85261         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
85262         error from mntctl.
85263         Use mntctl's return value to drive the entry-processing loop, since
85264         we can't rely on the value of the vmt_length member in the last
85265         entry.  On some systems doing so could result in exhausting
85266         virtual memory.  Based in part on a patch from Mike Jetzer.
85267
85268 2003-08-14  Jim Meyering  <jim@meyering.net>
85269         and Paul Eggert  <eggert@twinsun.com>
85270
85271         Merges from coreutils, plus other fixes.
85272         * lib/physmem.c: Merge in portability changes from gcc/libiberty
85273         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
85274         for credits and details.  Thanks to Kaveh Ghazi for helping
85275         to keep these files in sync.
85276         (ARRAY_SIZE): Define it.
85277         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
85278         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
85279         (memcasecmp): Don't assume size_t fits in unsigned int.
85280         Remove casts and duplicate code.
85281         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
85282         (memcpy): Remove definition.
85283         Merge in some clean-up and optimization changes from glibc.
85284         [BLOCKSIZE]: Move definition to top of file.
85285         Ensure that it is a multiple of 64.
85286         Rearrange loop exit tests so as to avoid performing an
85287         additional fread after encountering an error or EOF.
85288         * lib/md5.h (md5_uintptr): Define.
85289         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
85290         return to the initial working directory.  Preserve errno
85291         for caller.
85292         * lib/idcache.c: Include "xalloc.h".
85293         (xmalloc, xrealloc): Remove decls.
85294         (getuser): Remove casts no longer required in C89.
85295         * lib/human.c: Include stdio.h, for sprintf.
85296         * lib/group-member.c: Include "xalloc.h".
85297         (xmalloc, xrealloc): Remove decls.
85298         (get_group_info): Remove casts no longer required in C89.
85299         * lib/getusershell.c (readname): Remove casts no longer required in
85300         C89.
85301         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
85302         * lib/getline.c: Whitespace fix, from coreutils.
85303
85304 2003-08-13  Paul Eggert  <eggert@twinsun.com>
85305
85306         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
85307         Check for isascii.
85308
85309         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
85310         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
85311         Undo previous (whitespace-only) change.
85312
85313 2003-08-13  Paul Eggert  <eggert@twinsun.com>
85314
85315         * lib/exclude.c: Include <ctype.h>
85316         (IN_CTYPE_DOMAIN): New macro.
85317         (is_space): New fn.
85318         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
85319         and empty lines.
85320
85321         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
85322         Undo previous (whitespace-only) change.
85323
85324 2003-08-13  Paul Eggert  <eggert@twinsun.com>
85325
85326         * config/srclist-update: Change update back to the old behavior,
85327         leaving whitespace alone.  Use one 'sed' command rather than a
85328         pipeline.
85329         (fixlicense): Now a variable, not a function.
85330         (remove_trailing_blanks): Remove.
85331         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
85332         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
85333         Undo previous (whitespace-only) change.
85334
85335 2003-08-12  Paul Eggert  <eggert@twinsun.com>
85336
85337         Merge from coreutils.
85338         * modules/euidaccess: Add lib_SOURCES, include for new
85339         file euidaccess.h
85340
85341 2003-08-12  Paul Eggert  <eggert@twinsun.com>
85342
85343         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
85344         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
85345         Normalize leading white space and remove trailing white space.
85346
85347         Merge from coreutils
85348         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
85349
85350         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
85351         0.12.1.  These files are now being upgraded automatically by
85352         ../config/srclist-update.
85353
85354 2003-08-12  Paul Eggert  <eggert@twinsun.com>
85355
85356         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
85357         Normalize leading white space and remove trailing white space.
85358         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
85359         notice, as per ../config/srclist-update.
85360
85361         Merge from coreutils.
85362         * lib/euidaccess.h: New file.
85363         * lib/euidaccess.c: Include it.
85364         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
85365         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
85366         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
85367
85368 2003-08-12  Paul Eggert  <eggert@twinsun.com>
85369
85370         * config/srclist-update: Add copyright notice.
85371         (remove_id_lines, remove_trailing_blanks): New constants.
85372         (fixfile): Use them to normalize spacing a bit in copied files.
85373         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
85374         Normalize leading white space and remove trailing white space.
85375
85376         * config/texinfo.tex: Sync with texinfo.
85377
85378         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
85379         strtoul.c from libc, to merge coreutils whitespace changes.
85380
85381         * config/srclist.txt: Get the following m4 files from gettext:
85382         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
85383         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
85384         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
85385         wint_t.m4.
85386
85387 2003-08-12  Karl Berry  <karl@gnu.org>
85388
85389         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
85390         been made.
85391
85392 2003-08-11  Paul Eggert  <eggert@twinsun.com>
85393
85394         * modules/gnu-source, m4/gnu-source.m4:
85395         Remove; we're assuming Autoconf 2.54 or later now.
85396         Suggested by Bruno Haible.
85397         * MODULES.html.sh (func_all_modules): Remove gnu-source.
85398
85399 2003-08-11  Bruno Haible  <bruno@clisp.org>
85400
85401         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
85402
85403 2003-08-11  Bruno Haible  <bruno@clisp.org>
85404
85405         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
85406         (vasnprintf): Use it instead of wcslen.
85407
85408 2003-08-11  Bruno Haible  <bruno@clisp.org>
85409
85410         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
85411         value to ensure that _Bool promotes to int. Use #define for _Bool when
85412         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
85413
85414 2003-08-10  Karl Berry  <karl@gnu.org>
85415
85416         * lib/regex.h: update from libc (whitespace fix).
85417
85418 2003-08-09  Paul Eggert  <eggert@twinsun.com>
85419
85420         Merge some files from coreutils.  These changes were
85421         originally made by Jim Meyering.
85422         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
85423         many older Unixes require this.
85424         * lib/alloca.c (alloca): Remove cast to argument of free;
85425         no longer needed in C89.
85426         * lib/alloca_.h, regex.h: Fix white space to match
85427         what GNU indent does.
85428
85429 2003-08-09  Paul Eggert  <eggert@twinsun.com>
85430
85431         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
85432         apparently Emacs's Unicode mode got confused before my 2003-08-05
85433         checkin.
85434
85435 2003-08-08  Paul Eggert  <eggert@twinsun.com>
85436
85437         * m4/extensions.m4: New file.
85438         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
85439         Require gl_USE_SYSTEM_EXTENSIONS.
85440         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
85441         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
85442
85443 2003-08-08  Paul Eggert  <eggert@twinsun.com>
85444
85445         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
85446         * modules/extensions, modules/gnu-source: New files.
85447         * modules/timespec, modules/unlocked-io: Depend on extensions.
85448
85449 2003-08-07  Paul Eggert  <eggert@twinsun.com>
85450
85451         * modules/restrict: New file.
85452         * MODULES.html.sh (func_all_modules): Add restrict.
85453         * modules/regex: Depend on restrict.
85454
85455 2003-08-07  Paul Eggert  <eggert@twinsun.com>
85456
85457         * m4/restrict.m4: New file.
85458         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
85459
85460 2003-08-07  Bruno Haible  <bruno@clisp.org>
85461
85462         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
85463         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
85464
85465 2003-08-07  Bruno Haible  <bruno@clisp.org>
85466
85467         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
85468         makes the module 'getndelim2' compatible with the module 'getline'.
85469
85470 2003-08-05  Paul Eggert  <eggert@twinsun.com>
85471
85472         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
85473         byte with "\201" to avoid glitches when editing that source file
85474         with multi-gnome-terminal.
85475
85476 2003-08-05  Paul Eggert  <eggert@twinsun.com>
85477
85478         * lib/bumpalloc.h: Remove.
85479
85480 2003-08-05  Paul Eggert  <eggert@twinsun.com>
85481
85482         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
85483         * modules/bumpalloc: Remove.
85484
85485 2003-08-04  Paul Eggert  <eggert@twinsun.com>
85486
85487         * lib/getloadavg.c: Change copyright notice and spacing to conform to
85488         GNU coding style.
85489
85490         Merge from coreutils.
85491         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
85492         1. From glibc.
85493         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
85494         from Karl Berry, implemented by Jim Meyering.
85495         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
85496         from Dmitry V. Levin.
85497         Remove anachronistic cast of xrealloc.
85498         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
85499         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
85500         type. Otherwise, it wouldn't compile with at least /bin/cc on
85501         ymp-cray-unicos9.0.2.X.
85502         Combine two mostly-identical uses of alloca into one.
85503         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
85504
85505 2003-08-04  Dave Love  <d.love@dl.ac.uk>
85506
85507         [From Emacs.]
85508
85509         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
85510         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
85511         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
85512         obsolete NLIST_NAME_UNION.
85513         [__GNU__]: Undef BSD and FSCALE.
85514         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
85515
85516 2003-08-03  Paul Eggert  <eggert@twinsun.com>
85517
85518         * lib/stdbool_.h (_Bool): Make it signed char, instead of
85519         an enum type, so that it's guaranteed to promote to int.  See:
85520         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
85521
85522 2003-08-03  Karl Berry  <karl@gnu.org>
85523
85524         * config/depcomp: update from automake.
85525
85526 2003-07-31  Paul Eggert  <eggert@twinsun.com>
85527
85528         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
85529         (strerror): Don't assume that a printable int fits in 14 bytes.
85530
85531 2003-07-31  Bruno Haible  <bruno@clisp.org>
85532
85533         * modules/getpass-gnu: New file.
85534         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
85535
85536 2003-07-31  Bruno Haible  <bruno@clisp.org>
85537
85538         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
85539
85540 2003-07-24  Karl Berry  <karl@gnu.org>
85541
85542         * config/missing: update from automake.
85543
85544 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
85545             Bruno Haible  <bruno@clisp.org>
85546
85547         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
85548         * lib/getline.c (getline, getdelim): Likewise.
85549         Remove _GNU_SOURCE define; now it's defined in config.h through
85550         m4/getline.m4.
85551
85552 2003-07-23  Karl Berry  <karl@gnu.org>
85553
85554         * config/config.sub: update from prep.
85555
85556 2003-07-22  Paul Eggert  <eggert@twinsun.com>
85557
85558         * modules/xalloc (Depends-on): Add exitfail.
85559         * modules/xmemcoll: Likewise.
85560
85561 2003-07-22  Paul Eggert  <eggert@twinsun.com>
85562
85563         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
85564         over-parenthesization in macros.
85565
85566         Sync with coreutils.
85567
85568         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
85569         required by C99.
85570
85571         Use `exit_failure' for xalloc and xmemcoll instead of their own
85572         private exit-failure variables.
85573         * lib/xalloc.h (xalloc_exit_failure): Remove.
85574         * lib/xmalloc.c: Likewise.  Include exitfail.h.
85575         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
85576         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
85577         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
85578         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
85579
85580 2003-07-20  Jim Meyering  <jim@meyering.net>
85581
85582         * modules/closeout (Depends-on): Add exitfail.
85583         Suggestion from Bruno Haible.
85584
85585 2003-07-19  Karl Berry  <karl@gnu.org>
85586
85587         * config/config.sub: update from prep.
85588
85589 2003-07-18  Paul Eggert  <eggert@twinsun.com>
85590
85591         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
85592         Remove.
85593         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
85594         to test that it can stand by itself.  Include "exitfail.h".
85595         Clients should set exit_failure instead.
85596         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
85597
85598 2003-07-18  Bruno Haible  <bruno@clisp.org>
85599
85600         * modules/getndelim2: New file.
85601         * modules/getline: Share files with module getndelim2.
85602         * modules/getnline: Depend on getndelim2 instead of sharing files with
85603         it. Add getnline.c to lib_SOURCES.
85604         * MODULES.html.sh (func_all_modules): Add getndelim2.
85605
85606 2003-07-18  Bruno Haible  <bruno@clisp.org>
85607
85608         * m4/getndelim2.m4: New file.
85609         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
85610         invoke gl_PREREQ_GETNDELIM2.
85611         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
85612         gl_PREREQ_GETNDELIM2.
85613         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
85614         gl_GETNDELIM2.
85615
85616 2003-07-18  Bruno Haible  <bruno@clisp.org>
85617
85618         * lib/getndelim2.h: New file.
85619         * lib/getndelim2.c: Make into a module of its own. Include config.h,
85620         getndelim2.h.
85621         (getndelim2): Make non-static. Change return type to ssize_t.
85622         * lib/getline.h: Change argument names.
85623         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
85624         * lib/getnline.c: Include getndelim2.h.
85625
85626 2003-07-18  Andreas Schwab  <schwab@suse.de>
85627
85628         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
85629
85630 2003-07-17  Karl Berry  <karl@gnu.org>
85631
85632         * config/config.sub: update from prep.
85633
85634 2003-07-17  Bruno Haible  <bruno@clisp.org>
85635
85636         * modules/getnline: New file.
85637         * modules/getline: Add lib/getndelim2.c to source file list.
85638         * MODULES.html.sh (func_all_modules): Add getnline.
85639
85640 2003-07-17  Bruno Haible  <bruno@clisp.org>
85641
85642         * m4/getnline.m4: New file.
85643
85644 2003-07-17  Bruno Haible  <bruno@clisp.org>
85645
85646         * m4/Makefile.am.in: Remove file.
85647         * m4/Makefile.am: Remove file.
85648         * m4/Makefile.in: Remove file.
85649
85650 2003-07-17  Bruno Haible  <bruno@clisp.org>
85651
85652         * lib/getnline.h: New file.
85653         * lib/getnline.c: New file.
85654         * lib/getndelim2.c: New file, extracted from getline.c.
85655         (getndelim2): Renamed from getdelim2, with added nmax argument.
85656         * lib/getline.c: Include getndelim2.c.
85657         (getdelim2): Moved out to getndelim2.c.
85658         (getline, getdelim): Update.
85659
85660 2003-07-17  Bruno Haible  <bruno@clisp.org>
85661
85662         * lib/Makefile.am: Remove file.
85663         * lib/Makefile.in: Remove file.
85664
85665 2003-07-17  Bruno Haible  <bruno@clisp.org>
85666
85667         * configure.in: Remove file.
85668         * Makefile.in: Remove file.
85669
85670 2003-07-17  Bruno Haible  <bruno@clisp.org>
85671
85672         * MODULES.html.sh: Put the </BODY> right before </HTML>.
85673
85674 2003-07-16  Karl Berry  <karl@gnu.org>
85675
85676         * config/srclist-update: was running fixlicense twice, which caused
85677                 texinfo.tex to be nullified for some reason.  Simplify,
85678                 $gplsrc is no longer needed as far as I can see?
85679
85680 2003-07-16  Jim Meyering  <jim@meyering.net>
85681
85682         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
85683
85684 2003-07-15  Paul Eggert  <eggert@twinsun.com>
85685
85686         * config/srclist.txt: Get the following files from gettext-runtime/intl
85687         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
85688         ref-del.sin.  From Bruno Haible.
85689         * config/srclist-update (fixfile): Change grep pattern again, since the
85690         previous fix didn't work (there was another trailing $).  Use
85691         '[$]' to escape the $s.
85692
85693 2003-07-15  Karl Berry  <karl@gnu.org>
85694
85695         * lib/vasnprintf.c: update from gettext.
85696
85697 2003-07-15  Karl Berry  <karl@gnu.org>
85698
85699         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
85700         gets expanded when surrounded by '$'.
85701
85702 2003-07-15  Jim Meyering  <jim@meyering.net>
85703
85704         * modules/save-cwd: Don't depend on error.  From Derek Price.
85705
85706 2003-07-15  Jim Meyering  <jim@meyering.net>
85707
85708         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
85709
85710 2003-07-14  Simon Josefsson  <jas@extundo.com>
85711
85712         * modules/mempcpy: New file.
85713         * MODULES.html.sh (func_all_modules): Add mempcpy.
85714
85715 2003-07-14  Simon Josefsson  <jas@extundo.com>
85716
85717         * m4/mempcpy.m4: New file.
85718
85719 2003-07-14  Simon Josefsson  <jas@extundo.com>
85720
85721         * lib/mempcpy.h: New file.
85722         * lib/mempcpy.c: New file.
85723
85724 2003-07-14  Paul Eggert  <eggert@twinsun.com>
85725
85726         * modules/getdate, modules/posixtm: Depend on mktime.
85727
85728 2003-07-14  Paul Eggert  <eggert@twinsun.com>
85729
85730         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
85731         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
85732         unicodeio.c, unicodeio.h, unlocked-io.h:
85733         Switch from LGPL to GPL.
85734
85735 2003-07-14  Paul Eggert  <eggert@twinsun.com>
85736
85737         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
85738         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
85739         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
85740         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
85741         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
85742         updated automatically by ../config/srclist-update.  This changes
85743         their license from LPGL to GPL.
85744
85745 2003-07-14  Paul Eggert  <eggert@twinsun.com>
85746
85747         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
85748         assumed to refer to the root of the most recent stable gettext version.
85749         * config/srclistvars.sh: Add defaults for eggert.
85750         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
85751         Match "This program" as well as "The program".  This is needed
85752         for gettext.
85753
85754 2003-07-14  Jim Meyering  <jim@meyering.net>
85755
85756         Don't emit diagnostics.  Let callers do that.
85757         * lib/save-cwd.c: Don't include "error.h".
85758         (save_cwd): Don't call error.  Ensure that errno is valid
85759         when returning nonzero.
85760
85761         * lib/save-cwd.h (restore_cwd): Update prototype.
85762         * lib/save-cwd.c (restore_cwd): Remove two parameters.
85763         Simplify.  Don't call error upon failure.  Let callers do that.
85764         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
85765         when auditing is enabled.  But don't bother updating the #if.
85766
85767 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
85768
85769         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
85770         it breaks C++ compilation.
85771         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
85772
85773 2003-07-10  Simon Josefsson  <jas@extundo.com>
85774
85775         * modules/strchrnul (Makefile.am): Add strchrnul.h.
85776
85777 2003-07-10  Jim Meyering  <jim@meyering.net>
85778
85779         * m4/clock_time.m4: Remove trailing blank.
85780         * m4/intmax_t.m4: Likewise.
85781
85782 2003-07-10  Jim Meyering  <jim@meyering.net>
85783
85784         * lib/vasnprintf.c: Remove trailing blanks.
85785         Make cpp indentation consistent.
85786
85787 2003-07-09  Paul Eggert  <eggert@twinsun.com>
85788
85789         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
85790         posixver.c, strftime.c, strnlen.c, strverscmp.c:
85791         Switch from LGPL to GPL.
85792
85793 2003-07-09  Paul Eggert  <eggert@twinsun.com>
85794
85795         * config/srclist.txt: Sort sublists.  Add
85796         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
85797         that differ from gnulib for one reason or another; we'd like this list
85798         to be smaller but for now let's document what we have.
85799
85800 2003-07-08  Paul Eggert  <eggert@twinsun.com>
85801
85802         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
85803         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
85804         and sweeter "eval x=$x".
85805         * config/srclist.txt: Get lib/argp* from glibc.
85806
85807 2003-07-07  Paul Eggert  <eggert@twinsun.com>
85808
85809         * lib/mktime.c: Fix some boundary cases and remove need for floating
85810         point.
85811
85812         Issue a compile-time diagnostic if time_t is floating point, or if
85813         two's complement arithmetic is not in effect, or if arithmetic
85814         right shift does not propagate the sign.  These assumptions were
85815         all in the original code but they weren't checked.
85816
85817         (TIME_T_MIDPOINT, verify): New macros.
85818         (__isleap): Remove; it has integer overflow problems.
85819         (leapyear): New function, without those problems.
85820         (ydhms_tm_diff): Remove; splitting into two parts.
85821         (ydhms_diff): New function, containing the arithmetic part of
85822         the old ydhms_tm_diff function.  Issue a compile-time
85823         diagnostic if we are not using C99 integer division.
85824         Avoid casts when possible.
85825         (guess_time_tm): New function, containing the checking part of
85826         the old ydhms_tm_diff function.  Return the new value, rather than
85827         the difference between it and the old.  Accept a new argument T
85828         so that *T specifies the old value.  Check for overflow in the result.
85829
85830         (__mktime_internal): Use a time_t offset, not a long int offset.
85831         This undoes the 2003-06-04 change, which is no longer needed now
85832         that we have better overflow checking.
85833         (localtime_offset): Likewise.
85834
85835         (__mktime_internal): Avoid harmful overflow on hosts where time_t
85836         and long are 64-bit but int is only 32-bit.
85837         (ydhms_diff): Use long int to store year1 and yday1.
85838         Issue a compile-time diagnostic if long int is not wide enough.
85839
85840         (__mktime_internal): Use long int to store adjusted year and yday.
85841         Use plain C rather than preprocessor commands, if that doesn't
85842         affect efficiency.
85843         Check for overflow (and try to repair) after each probe
85844         rather than checking only at the very end.  This avoids some bugs
85845         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
85846         does not equal GMT offset at maximum time).
85847         Use integer to check for overflow rather than floating point; this
85848         is more portable to non-IEEE hosts, and is a tad faster.
85849         When we detect that we are oscillating between two values,
85850         don't check whether tm_isdst has the requested value, since
85851         we already know the answer.  When tm_isdst has the wrong value,
85852         use a different heuristic to find the right one, based on the
85853         extreme values actually observed in practice in tz2003a,
85854         rather than the (overly optimistic) "previous 3 calendar quarters".
85855
85856         (not_equal_tm, print_tm, check_result): Use "const T" rather than
85857         "T const" to accommodate glibc style.
85858         (check_result): Use less-confusing report format.  "long" -> "long int.
85859         (main): Likewise.
85860         Don't loop if the iteration overflows time_t.
85861         Allow a negative step in the iteration.
85862
85863 2003-07-06  Karl Berry  <karl@gnu.org>
85864
85865         * config/depcomp: update from automake.
85866         * config/config.sub: update from prep.
85867
85868 2003-07-03  Karl Berry  <karl@gnu.org>
85869
85870         * config/config.guess: update from prep.
85871
85872 2003-07-01  Paul Eggert  <eggert@twinsun.com>
85873
85874         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
85875         xreadlink.c now includes it unconditionally.
85876
85877 2003-07-01  Paul Eggert  <eggert@twinsun.com>
85878
85879         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
85880         having it depend on HAVE_SYS_TYPES_H.
85881
85882 2003-07-01  Bruno Haible  <bruno@clisp.org>
85883
85884         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
85885         <sys/types.h> should be sufficient.
85886         Reported by Paul Eggert.
85887
85888 2003-06-26  Karl Berry  <karl@gnu.org>
85889
85890         * config/depcomp: update from automake.
85891
85892 2003-06-26  Bruno Haible  <bruno@clisp.org>
85893
85894         * modules/human: Depend on module stdbool.
85895
85896 2003-06-25  Bruno Haible  <bruno@clisp.org>
85897
85898         * modules/readlink: New file.
85899         * modules/xreadlink: Depend on it.
85900         * MODULES.html.sh (func_all_modules): Add readlink.
85901
85902 2003-06-25  Bruno Haible  <bruno@clisp.org>
85903
85904         * m4/readlink.m4: New file.
85905
85906 2003-06-25  Bruno Haible  <bruno@clisp.org>
85907
85908         * lib/readlink.c: New file.
85909
85910 2003-06-22  Karl Berry  <karl@gnu.org>
85911
85912         * config/srclist.txt: update mkinstalldirs from automake.
85913         * config/mkinstalldirs: update.
85914
85915 2003-06-22  Bruno Haible  <bruno@clisp.org>
85916
85917         Portability to mingw32.
85918         * m4/ssize_t.m4: New file, from GNU gettext.
85919         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
85920         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
85921
85922 2003-06-22  Bruno Haible  <bruno@clisp.org>
85923
85924         * modules/safe-read: Add m4/ssize_t.m4.
85925         * modules/xreadlink: Add m4/ssize_t.m4.
85926
85927 2003-06-20  Bruno Haible  <bruno@clisp.org>
85928
85929         Assume C89, so PARAMS isn't needed.
85930         * lib/unicodeio.h (PARAMS): Remove.
85931         * lib/unicodeio.c: Don't use PARAMS.
85932
85933 2003-06-18  Karl Berry  <karl@gnu.org>
85934
85935         * config/config.{guess,sub}: update from prep.
85936
85937 2003-06-18  Jim Meyering  <jim@meyering.net>
85938
85939         Merge changes from coreutils.
85940         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
85941         Remove explicit declarations of xmalloc and realloc.
85942         Include xalloc.h.
85943         (read_utmp): Remove anachronistic cast of xmalloc.
85944
85945 2003-06-17  Paul Eggert  <eggert@twinsun.com>
85946
85947         Assume C89, so PARAMS isn't needed.
85948         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
85949         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
85950         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
85951         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
85952         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
85953         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
85954         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
85955         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
85956         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
85957         lib/xstrtod.h, lib/xstrtol.h: Likewise.
85958         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
85959         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
85960         no longer needed. Anyway, config.h should always be included before any
85961         other file.
85962
85963 2003-06-11  Simon Josefsson  <jas@extundo.com>
85964
85965         * modules/sysexits: New file.
85966         * MODULES.html.sh (func_all_modules): Add sysexits.
85967
85968 2003-06-11  Simon Josefsson  <jas@extundo.com>
85969
85970         * lib/sysexit_.h: New file.
85971
85972 2003-06-11  Derek Price  <derek@ximbiot.com>
85973
85974         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
85975         necessary.
85976
85977 2003-06-11  Bruno Haible  <bruno@clisp.org>
85978
85979         * m4/sysexits.m4: New file.
85980
85981 2003-06-10  Simon Josefsson  <jas@extundo.com>
85982
85983         * lib/argp.h: New file, from glibc.
85984         * lib/argp-ba.c: New file, from glibc.
85985         * lib/argp-eexst.c: New file, from glibc.
85986         * lib/argp-fmtstream.c: New file, from glibc.
85987         * lib/argp-fmtstream.h: New file, from glibc.
85988         * lib/argp-fs-xinl.c: New file, from glibc.
85989         * lib/argp-help.c: New file, from glibc.
85990         * lib/argp-namefrob.h: New file, from glibc.
85991         * lib/argp-parse.c: New file, from glibc.
85992         * lib/argp-pv.c: New file, from glibc.
85993         * lib/argp-pvh.c: New file, from glibc.
85994         * lib/argp-xinl.c: New file, from glibc.
85995
85996 2003-06-10  Simon Josefsson  <jas@extundo.com>
85997
85998         * modules/strchrnul: New file.
85999
86000 2003-06-10  Simon Josefsson  <jas@extundo.com>
86001
86002         * modules/argp: New file.
86003
86004 2003-06-10  Simon Josefsson  <jas@extundo.com>
86005
86006         * m4/strchrnul.m4: New file.
86007
86008 2003-06-10  Simon Josefsson  <jas@extundo.com>
86009
86010         * lib/strchrnul.h: New file.
86011         * lib/strchrnul.c: New file.
86012
86013 2003-06-10  Bruno Haible  <bruno@clisp.org>
86014
86015         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
86016
86017 2003-06-07  Karl Berry  <karl@gnu.org>
86018
86019         * config/config.{guess,sub}: update from prep.
86020
86021 2003-06-07  Jim Meyering  <jim@meyering.net>
86022
86023         * modules/strtod: Use $(...) notation, not @...@ for
86024         AC_REPLACE'd variables.
86025         * modules/localcharset: Likewise.
86026
86027 2003-06-07  Jim Meyering  <jim@meyering.net>
86028
86029         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
86030         in place of my name in the copyright comment.
86031         Remove definition and uses of __P.
86032
86033         From coreutils.
86034         * lib/stat.c: Don't declare xmalloc explicitly.
86035         Instead, include "xalloc.h".
86036         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
86037         xrealloc, and xcalloc return values.
86038         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
86039         Improve comment.
86040         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
86041
86042 2003-06-07  Bruno Haible  <bruno@clisp.org>
86043
86044         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
86045         avoid AC_CONFIG_LINKS.
86046         * modules/fnmatch (Makefile.am): Use explicit creation rule for
86047         fnmatch.h, to avoid AC_CONFIG_LINKS.
86048         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
86049
86050 2003-06-07  Bruno Haible  <bruno@clisp.org>
86051
86052         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
86053         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
86054         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
86055         directory.
86056         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
86057         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
86058         directory.
86059
86060 2003-06-06  Jim Meyering  <jim@meyering.net>
86061
86062         Merge from coreutils.
86063         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
86064         Consolidate declarations and initializations of *_base* locals.
86065
86066         Merge from coreutils.
86067         This avoids a core dump on systems without GNU putenv,
86068         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
86069         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
86070         (unsetenv): New static function, from GNU libc.
86071         (rpl_putenv): Use it.
86072
86073         * lib/modechange.c: Remove trailing blanks.
86074
86075         Merge from coreutils.
86076         * lib/fsusage.c: Remove declaration of statfs.
86077         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
86078
86079         * lib/posixtm.c: Include <stdbool.h> unconditionally.
86080
86081 2003-06-06  Jim Meyering  <jim@meyering.net>
86082
86083         * lib/stdbool_.h: Renamed from stdbool.h.in.
86084
86085 2003-06-06  Jim Meyering  <jim@meyering.net>
86086             Bruno Haible  <bruno@clisp.org>
86087
86088         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
86089         Adjust Makefile.am snippet not to redirect directly to target.
86090         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
86091
86092 2003-06-05  Paul Eggert  <eggert@twinsun.com>
86093
86094         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
86095         mismatch, look in future quarters as well as past.  This fixes a
86096         bug when processing fall-backwards gaps immediately after a long
86097         period of daylight-saving time.
86098
86099         * lib/mktime.c: Assume freestanding C89 or better.
86100         (HAVE_LIMITS_H): Remove.  Assume it's 1.
86101         (__P): Remove; not used.
86102         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
86103         (mktime, not_equal_tm, print_tm, check_result,
86104         main): Use prototypes.  Use const * where appropriate.
86105         (main): Fix typo in testing code that uncovered by above changes.
86106         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
86107
86108 2003-06-04  Paul Eggert  <eggert@twinsun.com>
86109
86110         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
86111         locale.h, localeconv.  This merges changes from coreutils.
86112
86113         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
86114         It can be removed after the next Autoconf is released.
86115         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
86116         needed.
86117
86118 2003-06-04  Paul Eggert  <eggert@twinsun.com>
86119
86120         * lib/mktime.c: Fix Debian bug 177940
86121         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
86122         (localtime_offset): Now long int, not time_t, because we want it
86123         to be guaranteed to be signed.  All uses changed.
86124         (__mktime_internal): If overflow would occur when adding offset,
86125         don't add it.
86126
86127         Merge 'human' changes from coreutils.  Rewrite to support
86128         locale-specific notations like thousands separators.
86129         * lib/human.c: Simplify authorship notice.
86130         Include human.h immediately after config.h.
86131         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
86132         <limits.h>: Do not include, since human.h does.
86133         (SIZE_MAX, UINTMAX_MAX): New macros.
86134         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
86135         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
86136         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
86137         (power_letter): Renamed from suffixes.
86138         (generate_suffix_backwards): Remove.
86139         (adjust_value): Now takes int style (because of human.h changes)
86140         and long double value (for greater precision on some platforms).
86141         (group_number): New function.
86142         (human_readable): Use it.  Use integer options, not enum.
86143         Put the options before the sizes in the arg list.
86144         Support all the new options.
86145         The old human_readable function has been removed;
86146         use inttostr.h instead.
86147         (human_readable, default_block_size, humblock):
86148         Use uintmax_t, not int, for block sizes.
86149         (human_readable_inexact, block_size_types): Remove.
86150         (block_size_opts): New constant.
86151         (human_options): Renamed from human_block_size, with new signature
86152         that allows block sizes up to UINTMAX_MAX.  All callers changed.
86153         * lib/human.h: Add copyright and authorship notice.
86154         Include <limits.h> and <stdbool.h> unconditionally.
86155         (PARAMS): Remove.  All uses removed.
86156         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
86157         (enum human_inexact_style): Remove tag; now a nameless enum.
86158         (human_floor, human_ceiling, human_round_to_even): Now have
86159         values 2, 0, 1 rather than -1, 1, 0.
86160         (human_group_digits, human_suppress_point_zero, human_autoscale,
86161         human_base_1024, human_SI, human_B): New constants.
86162         (human_readable_inexact, human_block_size): Remove.
86163         (human_readable): Size args are now uintmax_t, not int.
86164         (human_options): New decl.
86165
86166         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
86167         unnecessary now that we assume C89 or better.  This change
86168         imported from coreutils.
86169
86170         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
86171         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
86172         in the 2003-05-30 sync from glibc.
86173
86174         .h files should stand alone, but we shouldn't include <sys/types.h>
86175         if we can get away with just <stddef.h>.
86176
86177         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
86178         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
86179         rather than <sys/types.h>, as we merely need size_t.
86180         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
86181         to get size_t.
86182         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
86183         Include <stdio.h>, to get FILE.
86184         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
86185         memcasecmp.h has included <stddef.h> and all we need is size_t.
86186         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
86187         our interface, instead of including <sys/types.h>
86188
86189 2003-06-04  Paul Eggert  <eggert@twinsun.com>
86190
86191         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
86192         now, as glibc mktime is buggy on non-glibc systems.
86193
86194 2003-06-03  Karl Berry  <karl@gnu.org>
86195
86196         * config/config.sub: update from prep.
86197
86198 2003-06-02  Paul Eggert  <eggert@twinsun.com>
86199
86200         [from coreutils]
86201         Fix some minor time-related bugs with POSIX time arguments.
86202         Some valid time stamps were being rejected (notably -1, and
86203         time stamps before 1900 on 64-bit hosts).  And some invalid
86204         time stamps were being accepted, e.g. September 31.
86205
86206         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
86207         that we can return (time_t) -1 successfully.
86208         * lib/posixtm.c: Likewise.
86209         [HAVE_STDBOOL_H]: Include <stdbool.h>.
86210         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
86211         (t): Remove static var.
86212         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
86213         of static var.  All uses changed.
86214         (year): Do not reject years before 1900; they can occur with
86215         64-bit time_t.
86216         (posix_time_parse): Do not check for out-of-range components;
86217         that is now the caller's responsibility, since our checks were
86218         only approximations.
86219         (posixtime): Use mktime to check for out-of-range components,
86220         since it knows them exactly.
86221         If mktime returns (time_t) -1, check whether an error actually occurred
86222         by invoking localtime on -1.
86223         (main) [TEST_POSIXTIME]: Check for input data errors, and report
86224         posixtime failures better.
86225         Improve the test data (in comments only).
86226
86227 2003-06-02  Karl Berry  <karl@gnu.org>
86228
86229         * config/mkinstalldirs (version): new variable.
86230         (--version): new option.
86231         (usage): improve message.
86232
86233 2003-05-30  Karl Berry  <karl@gnu.org>
86234
86235         * lib/mktime.c: update from libc.
86236
86237 2003-05-30  Bruno Haible  <bruno@clisp.org>
86238
86239         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
86240         * config/config.rpath: Upgrade to gettext-0.12.1.
86241
86242 2003-05-30  Bruno Haible  <bruno@clisp.org>
86243
86244         * m4/gettext.m4: Upgrade to gettext-0.12.1.
86245         * m4/nls.m4: New file, from gettext-0.12.1.
86246         * m4/po.m4: New file, from gettext-0.12.1.
86247         * m4/progtest.m4: Upgrade to gettext-0.12.1.
86248
86249 2003-05-30  Bruno Haible  <bruno@clisp.org>
86250
86251         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
86252         * lib/localcharset.h: Likewise.
86253         * lib/localcharset.c: Likewise.
86254
86255 2003-05-29  Karl Berry  <karl@gnu.org>
86256
86257         * config/config.rpath: update from gettext.
86258
86259 2003-05-28  Paul Eggert  <eggert@twinsun.com>
86260
86261         Assume the headers required for C89 freestanding compilers.
86262         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
86263         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
86264         * m4/human.m4 (gl_HUMAN): Likewise.
86265         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
86266         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
86267         * m4/userspec.m4 (gl_USERSPEC): Likewise.
86268         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
86269         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
86270         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
86271
86272 2003-05-28  Paul Eggert  <eggert@twinsun.com>
86273
86274         Assume the headers required for C89 freestanding compilers.
86275         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
86276         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
86277         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
86278         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
86279         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
86280         define, since <limits.h> is guaranteed to do that.
86281         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
86282         * lib/exclude.c: Include <stdbool.h> unconditionally.
86283         * lib/tempname.c: Include <stddef.h> unconditionally.
86284         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
86285         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
86286         <stddef.h> does that.
86287         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
86288         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
86289         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
86290         needed.
86291         * lib/xstrtol.c: Likewise.
86292         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
86293         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
86294
86295         * lib/addext.c (addext): Use assignment rather than cast, to avoid
86296         warnings on some platforms.
86297
86298         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
86299         arbitrarily.
86300
86301 2003-05-26  Jim Meyering  <jim@meyering.net>
86302
86303         Merge in a change from coreutils:
86304         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
86305         that is guaranteed to be `no'.  Use `no_such_member' to indicate
86306         that condition, rather than `-1' which is slightly misleading.
86307         Change the name of the cache variable to have the gl_ prefix.
86308         Prompted by a patch from Richard Dawe for DJGPP.
86309
86310 2003-05-24  Karl Berry  <karl@gnu.org>
86311
86312         * config/config.guess: update from prep.
86313
86314 2003-05-22  Karl Berry  <karl@gnu.org>
86315
86316         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
86317
86318 2003-05-20  Karl Berry  <karl@gnu.org>
86319
86320         * config/config.guess: update from prep.
86321
86322 2003-05-18  Karl Berry  <karl@gnu.org>
86323
86324         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
86325         might actually be set by the user.
86326
86327         * config/depcomp, install-sh, mdate-sh: update from automake.
86328
86329 2003-05-17  Bruno Haible  <bruno@clisp.org>
86330
86331         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
86332         invalid expansion for AC_EGREP_CPP.
86333         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
86334         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
86335         Suggested by Akim Demaille <akim@epita.fr> in
86336         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
86337
86338 2003-05-12  Jim Meyering  <jim@meyering.net>
86339
86340         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
86341         the space-padded-by-default conversion specifiers, %e, %k, %l.
86342
86343 2003-05-12  Bruno Haible  <bruno@clisp.org>
86344
86345         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
86346         the string is longer than 4 KB.
86347
86348 2003-05-11  Karl Berry  <karl@gnu.org>
86349
86350         * config/config.{guess,sub}: update from prep.
86351
86352 2003-05-09  Bruno Haible  <bruno@clisp.org>
86353
86354         * modules/error: Add m4/strerror_r.m4 to file list.
86355
86356 2003-05-03  Bruno Haible  <bruno@clisp.org>
86357
86358         Upgrade to Unicode-4.0.
86359         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
86360         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
86361         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
86362         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
86363         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
86364         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
86365         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
86366         Change width of U+E0100..U+E01EF from 1 to 0.
86367
86368 2003-04-25  Jim Meyering  <jim@meyering.net>
86369
86370         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
86371         of type size_t, not int.
86372
86373 2003-04-25  Bruno Haible  <bruno@clisp.org>
86374
86375         * lib/copy-file.c: Include <stddef.h>, for size_t.
86376
86377 2003-04-21  Paul Eggert  <eggert@twinsun.com>
86378
86379         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
86380         code which expansion is under static control.  Patch imported from
86381         Akim Demaille's patch to Bison; see
86382         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
86383
86384 2003-04-14  Bruno Haible  <bruno@clisp.org>
86385
86386         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
86387
86388 2003-04-11  Jim Meyering  <jim@meyering.net>
86389
86390         Merge changes from Coreutils.
86391
86392         2003-03-22  Jim Meyering  <jim@meyering.net>
86393
86394         * lib/strftime.c (widen): Cast alloca return value to proper type.
86395
86396         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
86397
86398         From GNU libc.
86399         * lib/strftime.c (my_strftime): Handle very large width
86400         specifications for numeric values correctly.  Improve checks for
86401         overflow.
86402
86403         2003-01-19  Jim Meyering  <jim@meyering.net>
86404
86405         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
86406         definitions.
86407         (nl_get_alt_digit) [! defined my_strftime]: Define.
86408         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
86409         _nl_get_alt_digit and _nl_get_walt_digit.
86410
86411         * lib/strftime.c (my_strftime): Merge in locale-related changes from
86412         libc. These changes have no effect outside of _LIBC.
86413
86414 2003-04-10  Bruno Haible  <bruno@clisp.org>
86415
86416         * modules/findprog: New file.
86417         * MODULES.html.sh (func_all_modules): Add it.
86418
86419 2003-04-10  Bruno Haible  <bruno@clisp.org>
86420
86421         * m4/findprog.m4: New file.
86422         * m4/eaccess.m4: New file.
86423
86424 2003-04-10  Bruno Haible  <bruno@clisp.org>
86425
86426         * lib/findprog.h: New file, from GNU gettext.
86427         * lib/findprog.c: New file, from GNU gettext.
86428
86429 2003-04-05  Jim Meyering  <jim@meyering.net>
86430
86431         Merge changes from Coreutils.
86432
86433         * lib/exclude.h (PARAMS): Remove definition and uses.
86434         * lib/exclude.c: Remove uses of `PARAMS'.
86435
86436         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
86437         Add test-cases for DOS filenames. Declare program_name.
86438         (main): Set up program_name.  Patch by Rich Dawe.
86439
86440         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
86441         error from mntctl.
86442         Use mntctl's return value to drive the entry-processing loop, since
86443         we can't rely on the value of the vmt_length member in the last
86444         entry.  On some systems doing so could result in exhausting
86445         virtual memory.  Based in part on a patch from Mike Jetzer.
86446
86447 2003-04-04  Bruno Haible  <bruno@clisp.org>
86448
86449         * modules/linebreak: New file.
86450         * MODULES.html.sh (func_all_modules): Add it.
86451
86452 2003-04-04  Bruno Haible  <bruno@clisp.org>
86453
86454         * m4/linebreak.m4: New file.
86455
86456 2003-04-04  Bruno Haible  <bruno@clisp.org>
86457
86458         * lib/linebreak.h: New file, from GNU gettext.
86459         * lib/linebreak.c: New file, from GNU gettext with slight
86460         modifications.
86461         * lib/lbrkprop.h: New file, from GNU gettext.
86462
86463 2003-04-03  Bruno Haible  <bruno@clisp.org>
86464
86465         * modules/utf8-ucs4: New file.
86466         * modules/utf16-ucs4: New file.
86467         * modules/ucs4-utf8: New file.
86468         * modules/ucs4-utf16: New file.
86469         * MODULES.html.sh (func_all_modules): Add them.
86470
86471 2003-04-03  Bruno Haible  <bruno@clisp.org>
86472
86473         * m4/utf-ucs4.m4: New file.
86474         * m4/ucs4-utf.m4: New file.
86475
86476 2003-04-03  Bruno Haible  <bruno@clisp.org>
86477
86478         * lib/utf8-ucs4.h: New file, from GNU gettext.
86479         * lib/utf16-ucs4.h: New file, from GNU gettext.
86480         * lib/ucs4-utf8.h: New file, from GNU gettext.
86481         * lib/ucs4-utf16.h: New file, from GNU gettext.
86482
86483 2003-04-02  Bruno Haible  <bruno@clisp.org>
86484
86485         * modules/binary-io: New file.
86486         * MODULES.html.sh (func_all_modules): Add it.
86487
86488 2003-04-02  Bruno Haible  <bruno@clisp.org>
86489
86490         * lib/binary-io.h: New file, from GNU gettext.
86491
86492 2003-04-01  Bruno Haible  <bruno@clisp.org>
86493
86494         * modules/pathname: New file.
86495         * MODULES.html.sh (func_all_modules): Add it.
86496
86497 2003-04-01  Bruno Haible  <bruno@clisp.org>
86498
86499         * lib/pathname.h: New file, from GNU gettext.
86500         * lib/concatpath.c: New file, from GNU gettext.
86501
86502 2003-03-30  Bruno Haible  <bruno@clisp.org>
86503
86504         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
86505
86506 2003-03-30  Bruno Haible  <bruno@clisp.org>
86507
86508         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
86509         function chown() doesn't exist.
86510
86511 2003-03-28  Bruno Haible  <bruno@clisp.org>
86512
86513         * modules/copy-file: New file.
86514         * MODULES.html.sh (func_all_modules): Add it.
86515
86516 2003-03-28  Bruno Haible  <bruno@clisp.org>
86517
86518         * m4/copy-file.m4: New file.
86519
86520 2003-03-28  Bruno Haible  <bruno@clisp.org>
86521
86522         * lib/copy-file.h: New file, from GNU gettext.
86523         * lib/copy-file.c: New file, from GNU gettext.
86524
86525 2003-03-18  Jim Meyering  <jim@meyering.net>
86526
86527         * lib/quote.c (quote_n): Fix typo in comment.
86528
86529 2003-03-18  Bruno Haible  <bruno@clisp.org>
86530
86531         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
86532         checking.
86533         * m4/onceonly_2_57.m4: Likewise.
86534
86535 2003-03-17  Bruno Haible  <bruno@clisp.org>
86536
86537         * m4/onceonly.m4: Require autoconf 2.54 or newer.
86538         (m4_quote): Remove macro.
86539         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
86540
86541 2003-03-14  Jim Meyering  <jim@meyering.net>
86542
86543         Merge changes from Coreutils.
86544         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
86545         to be const, in order to avoid warnings.
86546         (obstack_room): Likewise.
86547         (obstack_empty_p): Likewise.
86548
86549 2003-03-14  Bruno Haible  <bruno@clisp.org>
86550
86551         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
86552         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
86553
86554 2003-03-13  Paul Eggert  <eggert@twinsun.com>
86555
86556         Merge changes from Bison.
86557         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
86558         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
86559         when compiling Bison 1.875's `bitset bset = obstack_alloc
86560         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
86561         * lib/hash.c: Include <stdbool.h> unconditionally.
86562
86563 2003-03-13  Paul Eggert  <eggert@twinsun.com>
86564
86565         * m4/onceonly.m4 (m4_quote): New macro.
86566         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
86567         Quote AC_FOREACH variable-expansions properly.
86568
86569 2003-03-13  Paul Eggert  <eggert@twinsun.com>
86570
86571         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
86572
86573 2003-03-09  Paul Eggert  <eggert@twinsun.com>
86574
86575         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
86576         Reported by Bruce Becker; see:
86577         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
86578
86579 2003-03-03  Paul Eggert  <eggert@twinsun.com>
86580             Bruno Haible  <bruno@clisp.org>
86581
86582         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
86583         Reported by John Hughes, see
86584         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
86585
86586 2003-02-20  Bruno Haible  <bruno@clisp.org>
86587
86588         * MODULES.html.sh (func_all_modules): Add poll.
86589
86590 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
86591
86592         * modules/poll: New file.
86593
86594 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
86595
86596         * lib/poll_.h: New file.
86597         * lib/poll.c: New file.
86598
86599 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
86600
86601         * m4/poll.m4: New file.
86602
86603 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
86604
86605         * modules/mathl: New file.
86606
86607 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
86608
86609         * lib/mathl.h: New file.
86610         * lib/acosl.c: New file.
86611         * lib/asinl.c: New file.
86612         * lib/atanl.c: New file.
86613         * lib/ceill.c: New file.
86614         * lib/cosl.c: New file.
86615         * lib/expl.c: New file.
86616         * lib/floorl.c: New file.
86617         * lib/frexpl.c: New file.
86618         * lib/ldexpl.c: New file.
86619         * lib/logl.c: New file.
86620         * lib/sincosl.c: New file.
86621         * lib/sinl.c: New file.
86622         * lib/sqrtl.c: New file.
86623         * lib/tanl.c: New file.
86624         * lib/trigl.c: New file.
86625         * lib/trigl.h: New file.
86626
86627 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
86628
86629         * m4/mathl.m4: New file.
86630
86631 2003-02-18  Bruno Haible  <bruno@clisp.org>
86632
86633         * MODULES.html.sh (func_all_modules): Add mathl.
86634
86635 2003-02-17  Bruno Haible  <bruno@clisp.org>
86636
86637         * modules/mkdtemp: New module.
86638         * MODULES.html.sh (func_all_modules): Add it.
86639
86640 2003-02-17  Bruno Haible  <bruno@clisp.org>
86641
86642         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
86643
86644 2003-02-17  Bruno Haible  <bruno@clisp.org>
86645
86646         * lib/mkdtemp.h: New file, from GNU gettext.
86647         * lib/mkdtemp.c: New file, from GNU gettext.
86648
86649 2003-02-02  Jim Meyering  <jim@meyering.net>
86650
86651         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
86652         e.g. glibc-2.2.93.
86653
86654 2003-01-31  Bruno Haible  <bruno@clisp.org>
86655
86656         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
86657         'rpl_rename'.
86658         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
86659         'rpl_strnlen'.
86660         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
86661         'rpl_strtod'.
86662         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
86663         'rpl_utime'.
86664
86665 2003-01-31  Bruno Haible  <bruno@clisp.org>
86666
86667         * lib/rename.c: #undef rename before defining rpl_rename.
86668         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
86669
86670 2003-01-30  Bruno Haible  <bruno@clisp.org>
86671
86672         * modules/vasnprintf, modules/vasprintf: New modules.
86673         * MODULES.html.sh (func_all_modules): Add them.
86674
86675 2003-01-30  Bruno Haible  <bruno@clisp.org>
86676
86677         * m4/signed.m4: New file, from GNU gettext.
86678         * m4/longdouble.m4: New file, from GNU gettext.
86679         * m4/wchar_t.m4: New file, from GNU gettext.
86680         * m4/wint_t.m4: New file, from GNU gettext.
86681         * m4/vasnprintf.m4: New file.
86682         * m4/vasprintf.m4: New file.
86683
86684 2003-01-30  Bruno Haible  <bruno@clisp.org>
86685
86686         * lib/printf-args.h: New file, from GNU gettext.
86687         * lib/printf-args.c: New file, from GNU gettext.
86688         * lib/printf-parse.h: New file, from GNU gettext.
86689         * lib/printf-parse.c: New file, from GNU gettext.
86690         * lib/vasnprintf.h: New file, from GNU gettext.
86691         * lib/vasnprintf.c: New file, from GNU gettext.
86692         * lib/asnprintf.c: New file, from GNU gettext.
86693         * lib/vasprintf.h: New file, from GNU gettext with modifications.
86694         * lib/vasprintf.c: New file, from GNU gettext.
86695         * lib/asprintf.c: New file, from GNU gettext.
86696
86697 2003-01-29  Bruno Haible  <bruno@clisp.org>
86698
86699         * modules/stpncpy: New module.
86700         * MODULES.html.sh (func_all_modules): Add it.
86701
86702 2003-01-29  Bruno Haible  <bruno@clisp.org>
86703
86704         * m4/stpncpy.m4: New file.
86705
86706 2003-01-29  Bruno Haible  <bruno@clisp.org>
86707
86708         * lib/stpncpy.h: New file, from GNU gettext with modifications.
86709         * lib/stpncpy.c: New file, from GNU gettext with modifications.
86710
86711 2003-01-28  Bruno Haible  <bruno@clisp.org>
86712
86713         * modules/c-ctype: New module.
86714         * MODULES.html.sh (func_all_modules): Add it.
86715
86716 2003-01-28  Bruno Haible  <bruno@clisp.org>
86717
86718         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
86719         Paul Eggert.
86720         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
86721         Paul Eggert.
86722
86723 2003-01-27  Bruno Haible  <bruno@clisp.org>
86724
86725         * modules/xsetenv: New module.
86726         * MODULES.html.sh (func_all_modules): Add it.
86727
86728 2003-01-27  Bruno Haible  <bruno@clisp.org>
86729
86730         * lib/xsetenv.h: New file, from GNU gettext.
86731         * lib/xsetenv.c: New file, from GNU gettext.
86732
86733 2003-01-23  Jim Meyering  <jim@meyering.net>
86734
86735         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
86736         from working on systems without dirfd (at least Irix and OSF1/Tru64).
86737
86738 2003-01-23  Bruno Haible  <bruno@clisp.org>
86739
86740         * modules/minmax: New module.
86741         * MODULES.html.sh (func_all_modules): Add it.
86742
86743 2003-01-23  Bruno Haible  <bruno@clisp.org>
86744
86745         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
86746         Eggert.
86747
86748 2003-01-22  Bruno Haible  <bruno@clisp.org>
86749
86750         * modules/exit: New module.
86751         * MODULES.html.sh (func_all_modules): Add it.
86752
86753 2003-01-22  Bruno Haible  <bruno@clisp.org>
86754
86755         * lib/exit.h: New file, from GNU gettext.
86756
86757 2003-01-19  Bruno Haible  <bruno@clisp.org>
86758
86759         * gnulib-tool: Recognize option --extract-maintainer.
86760         (func_get_maintainer): New function.
86761         * modules/*: Add Maintainer entry.
86762
86763 2003-01-16  Jim Meyering  <jim@meyering.net>
86764
86765         * m4/regex.m4: The `regex' struct is both input and output.
86766         Initialize it before each use.  Patch by Tim Waugh.
86767
86768 2003-01-16  Bruno Haible  <bruno@clisp.org>
86769
86770         * MODULES.html.sh: Add a table of contents. Add the module name as
86771         leftmost column. Add hyperlinks.
86772
86773 2003-01-15  Bruno Haible  <bruno@clisp.org>
86774
86775         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
86776
86777 2003-01-15  Bruno Haible  <bruno@clisp.org>
86778
86779         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
86780         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
86781         suffix.
86782
86783 2003-01-15  Bruno Haible  <bruno@clisp.org>
86784
86785         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
86786
86787 2003-01-15  Bruno Haible  <bruno@clisp.org>
86788
86789         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
86790         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
86791
86792 2003-01-14  Jim Meyering  <jim@meyering.net>
86793
86794         * lib/same.c (same_name): Tweak a comment.
86795
86796 2003-01-14  Bruno Haible  <bruno@clisp.org>
86797
86798         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
86799         when a string comparison is sufficient.
86800
86801 2003-01-14  Bruno Haible  <bruno@clisp.org>
86802
86803         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
86804         'unsigned int'.
86805
86806 2003-01-14  Bruno Haible  <bruno@clisp.org>
86807
86808         * lib/hash-pjw.c: Add comment about low quality of this function.
86809
86810 2003-01-13  Bruno Haible  <bruno@clisp.org>
86811
86812         * modules/stpcpy: Distribute lib/stpcpy.h.
86813         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
86814
86815 2003-01-13  Bruno Haible  <bruno@clisp.org>
86816
86817         * modules/*: Add a description.
86818         * modules/strpbrk: Fix Makefile.am snippet.
86819         * modules/strtoimax: Fix dependencies.
86820         * modules/strtoumax: Likewise.
86821
86822 2003-01-13  Bruno Haible  <bruno@clisp.org>
86823
86824         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
86825         * modules/alloca (Makefile.am): All object files depend on alloca.h.
86826         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
86827
86828 2003-01-13  Bruno Haible  <bruno@clisp.org>
86829
86830         * gnulib-tool (func_create_testdir): Store config/* files in the main
86831         directory.
86832         * config.rpath: Move to ...
86833         * config/config.rpath: ... here.
86834         * modules/gettext: Contains config/config.rpath, not config.rpath.
86835         * modules/iconv: Likewise.
86836
86837 2003-01-12  Paul Eggert  <eggert@twinsun.com>
86838
86839         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
86840         to avoid collisions with libcurses and libreadline.
86841
86842         * m4/getstr.m4: Remove.
86843         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
86844
86845 2003-01-12  Paul Eggert  <eggert@twinsun.com>
86846
86847         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
86848         to avoid collisions with libcurses and libreadline.
86849
86850         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
86851         * lib/getstr.h, getstr.c: Remove.
86852         * lib/getline.c: Include "getline.h", to check interface.
86853         Move body of old getstr.c here: this defines MIN_CHUNK and
86854         declares getdelim2, which is renamed from getstr.
86855         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
86856
86857         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
86858         All uses changed.
86859         * lib/linebuffer.h: Likewise.
86860         (readline): Remove backward-compatibility macro.
86861
86862 2003-01-12  Paul Eggert  <eggert@twinsun.com>
86863
86864         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
86865         to avoid collisions with libcurses and libreadline.
86866         * getstr: Remove.
86867         * MODULES.html.sh: Remove getstr.
86868         * modules/getline: Depend on unlocked-io, not getstr.
86869
86870 2003-01-12  Jim Meyering  <jim@meyering.net>
86871
86872         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
86873
86874 2003-01-10  Bruno Haible  <bruno@clisp.org>
86875
86876         * modules/alloca: Change Makefile.am requirements. Simplify Include
86877         requirements. Add lib/alloca_.h to file list.
86878
86879 2003-01-10  Bruno Haible  <bruno@clisp.org>
86880
86881         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
86882
86883 2003-01-10  Bruno Haible  <bruno@clisp.org>
86884
86885         * lib/alloca_.h: New file.
86886         * lib/getdate.y: Unconditionally include alloca.h.
86887         * lib/makepath.c: Likewise.
86888         * lib/setenv.c: Likewise.
86889         * lib/userspec.c: Likewise.
86890
86891 2003-01-09  Karl Berry  <karl@gnu.org>
86892
86893         * MODULES.html.sh: include `dirname $0` in PATH, to find
86894         gnulib-tool.
86895
86896 2003-01-09  Bruno Haible  <bruno@clisp.org>
86897
86898         * modules/stdbool: Change configure.ac, Makefile.am requirements.
86899         Simplify Include requirements. Add lib/stdbool.h.in to file list.
86900
86901 2003-01-09  Bruno Haible  <bruno@clisp.org>
86902
86903         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
86904
86905 2003-01-09  Bruno Haible  <bruno@clisp.org>
86906
86907         * lib/stdbool.h.in: New file.
86908
86909 2003-01-09  Bruno Haible  <bruno@clisp.org>
86910
86911         * gnulib-tool (func_all_modules): Ignore files ending in ~.
86912         * MODULES.html.sh: Likewise.
86913
86914 2003-01-08  Jim Meyering  <jim@meyering.net>
86915
86916         * lib/full-write.c: Undefine and define-away `const' after inclusion
86917         of errno.h, not before.  Suggestion from Bruno Haible.
86918
86919 2003-01-08  Bruno Haible  <bruno@clisp.org>
86920
86921         * modules/full-read: Depend on full-write.
86922
86923 2003-01-08  Bruno Haible  <bruno@clisp.org>
86924
86925         * lib/safe-read.c: Include specification header first, to ensure its
86926         selfcontainedness.
86927         * lib/full-write.c: Likewise.
86928
86929 2003-01-07  Jim Meyering  <jim@meyering.net>
86930
86931         * lib/full-write.c: Rework so that it may serve to define full_read,
86932         too.
86933         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
86934
86935 2003-01-07  Bruno Haible  <bruno@clisp.org>
86936
86937         * lib/strtoimax.c: Include <stdint.h> as an alternative to
86938         <inttypes.h>.
86939         * lib/xstrtol.h: Likewise.
86940         * lib/xstrtoimax.c: Likewise.
86941         * lib/xstrtoumax.c: Likewise.
86942         * lib/human.h: Likewise.
86943
86944         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
86945         on systems that have <inttypes.h> but not <stdint.h>.
86946
86947 2003-01-07  Bruno Haible  <bruno@clisp.org>
86948
86949         * MODULES.html.sh: Add copyright notice.
86950         (missed_files): Omit CVS directory entries.
86951         (func_module): Make it work with sed-3.02.
86952         * MODULES.txt: Remove file.
86953
86954 2003-01-06  Jim Meyering  <jim@meyering.net>
86955
86956         * lib/version-etc.c: Update year in translatable copyright string.
86957
86958 2003-01-03  Karl Berry  <karl@gnu.org>
86959
86960         * config/config.{guess,sub}: update from prep.
86961
86962 2003-01-02  Karl Berry  <karl@gnu.org>
86963
86964         * doc/COPYING.DOC: belatedly updated to 1.2.
86965
86966 2003-01-01  Karl Berry  <karl@gnu.org>
86967
86968         * gnulib-tool (func_verify_module): report module name $module in
86969         error message, not $1.
86970         * gnulib-tool (create-testdir): don't complain if destdir couldn't
86971         be created, only if it doesn't exist.
86972         * gnulib-tool (last_checkin_date): don't expand the $Date here.
86973
86974 2002-12-31  Paul Eggert  <eggert@twinsun.com>
86975
86976         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
86977
86978 2002-12-31  Paul Eggert  <eggert@twinsun.com>
86979
86980         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
86981         memcmp if strcoll doesn't work.
86982
86983 2002-12-31  Bruno Haible  <bruno@clisp.org>
86984
86985         * lib/utime.c (utime_null): No need to call ftruncate if the file was
86986         nonempty.
86987
86988 2002-12-31  Bruno Haible  <bruno@clisp.org>
86989
86990         * lib/memcoll.c (STRCOLL): New macro.
86991         (memcoll): Use it.
86992
86993 2002-12-31  Bruno Haible  <bruno@clisp.org>
86994
86995         * lib/localcharset.h: New file.
86996         * lib/localcharset.c: Include it.
86997         * lib/unicodeio.c: Likewise.
86998
86999 2002-12-31  Bruno Haible  <bruno@clisp.org>
87000
87001         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
87002         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
87003
87004 2002-12-31  Bruno Haible  <bruno@clisp.org>
87005
87006         * lib/getline.h: Include <stddef.h>, for size_t.
87007
87008         * lib/unicodeio.h: Include <stddef.h>, for size_t.
87009         * lib/unicodeio.c: Don't include <stddef.h>.
87010
87011 2002-12-31  Bruno Haible  <bruno@clisp.org>
87012
87013         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
87014         HAVE_TM_ZONE.
87015
87016 2002-12-24  Karl Berry  <karl@gnu.org>
87017
87018         * config/config.guess: update from prep.
87019
87020 2002-12-24  Bruno Haible  <bruno@clisp.org>
87021
87022         General infrasructure.
87023         * m4/README: Rewritten.
87024         * m4/onceonly.m4: New file.
87025         * m4/onceonly_2_57.m4: New file.
87026
87027         Module atexit.
87028         * m4/atexit.m4: New file.
87029
87030         Module strtod.
87031         * m4/strtod.m4: New file.
87032
87033         Module strtol.
87034         * m4/strtol.m4: New file.
87035
87036         Module strtoul.
87037         * m4/strtoul.m4: New file.
87038
87039         Module memchr.
87040         * m4/memchr.m4: New file.
87041
87042         Module memcmp.
87043         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
87044         (jm_FUNC_MEMCMP): Invoke it.
87045
87046         Module memcpy.
87047         * m4/memcpy.m4: New file.
87048
87049         Module memmove.
87050         * m4/memmove.m4: New file.
87051
87052         Module memset.
87053         * m4/memset.m4: New file.
87054
87055         Module strcspn.
87056         * m4/strcspn.m4: New file.
87057
87058         Module strpbrk.
87059         * m4/strpbrk.m4: New file.
87060
87061         Module strstr.
87062         * m4/strstr.m4: New file.
87063
87064         Module strerror.
87065         * m4/strerror.m4: New file.
87066
87067         Module mktime.
87068         * m4/mktime.m4: Renamed from jm-mktime.m4.
87069         (gl_PREREQ_MKTIME): New macro.
87070         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
87071
87072         Module malloc.
87073         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
87074         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
87075         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
87076
87077         Module realloc.
87078         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
87079         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
87080         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
87081
87082         Module strftime.
87083         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
87084         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
87085         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
87086         gl_TM_GMTOFF.
87087         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
87088
87089         Module xalloc.
87090         * m4/xalloc.m4: New file.
87091
87092         Module alloca.
87093         * m4/alloca.m4: New file.
87094
87095         Module putenv.
87096         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
87097         (jm_FUNC_PUTENV): Invoke it.
87098
87099         Module setenv.
87100         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
87101         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
87102         when invoked twice.
87103         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
87104         gt_FUNC_SETENV.
87105
87106         Module memrchr.
87107         * m4/memrchr.m4: New file.
87108
87109         Module stpcpy.
87110         * m4/stpcpy.m4: New file.
87111
87112         Module strcase.
87113         * m4/strcase.m4: New file.
87114
87115         Module strdup.
87116         * m4/strdup.m4: New file.
87117
87118         Module strnlen.
87119         * m4/strnlen.m4: New file.
87120
87121         Module strndup.
87122         * m4/strndup.m4: New file.
87123
87124         Module xstrtod.
87125         * m4/xstrtod.m4: New file.
87126
87127         Module xstrtol.
87128         * m4/xstrtol.m4: New file.
87129
87130         Module getdate.
87131         * m4/getdate.m4: New file.
87132
87133         Module unlocked-io.
87134         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
87135         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
87136         * m4/jm-glibc-io.m4n: Remove file.
87137
87138         Module long-options.
87139         * m4/long-options.m4: New file.
87140
87141         Module md5.
87142         * m4/md5.m4: New file.
87143
87144         Module sha.
87145         * m4/sha.m4: New file.
87146
87147         Module getstr.
87148         * m4/getstr.m4: New file.
87149
87150         Module getline.
87151         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
87152         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
87153         <sys/types.h>, for size_t. Use the function name gnu_getline, not
87154         simply getline. Infoke gl_PREREQ_GETLINE.
87155
87156         Module obstack.
87157         * m4/obstack.m4: New file.
87158
87159         Module hash.
87160         * m4/hash.m4: New file.
87161
87162         Module readtokens.
87163         * m4/readtokens.m4: New file.
87164
87165         Module strverscmp.
87166         * m4/strverscmp.m4: New file.
87167
87168         Module stdbool.
87169         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
87170         OSF/1.
87171
87172         Module strtoll.
87173         * m4/strtoll.m4: New file.
87174
87175         Module strtoull.
87176         * m4/strtoull.m4: New file.
87177
87178         Module strtoimax.
87179         * m4/strtoimax.m4: New file.
87180
87181         Module strtoumax.
87182         * m4/strtoumax.m4: New file.
87183
87184         Module xstrtoimax.
87185         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
87186         jm_AC_PREREQ_XSTRTOIMAX.
87187         Moved the strtol prerequisites to strtol.m4.
87188         Moved the strtoll prerequisites to strtoll.m4.
87189         Moved the strtoimax prerequisites to strtoimax.m4.
87190
87191         Module xstrtoumax.
87192         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
87193         jm_AC_PREREQ_XSTRTOUMAX.
87194         Moved the strtoul prerequisites to strtoul.m4.
87195         Moved the strtoull prerequisites to strtoull.m4.
87196         Moved the strtoumax prerequisites to strtoumax.m4.
87197
87198         Module chown.
87199         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
87200         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
87201
87202         Module dup2.
87203         * m4/dup2.m4: New file.
87204
87205         Module ftruncate.
87206         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
87207         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
87208
87209         Module getgroups.
87210         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
87211         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
87212
87213         Module gettimeofday.
87214         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
87215         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
87216         gl_PREREQ_GETTIMEOFDAY.
87217
87218         Module mkdir.
87219         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
87220         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
87221
87222         Module mkstemp.
87223         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
87224         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
87225         jm_AC_TYPE_UINTMAX_T.
87226         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
87227
87228         Module stat.
87229         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
87230         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
87231
87232         Module lstat.
87233         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
87234         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
87235
87236         Module timespec.
87237         * m4/timespec.m4 (gl_TIMESPEC): New macro.
87238         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
87239         * m4/st_mtim.m4: Indentation.
87240
87241         Module nanosleep.
87242         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
87243         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
87244         gl_PREREQ_NANOSLEEP.
87245
87246         Module regex.
87247         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
87248         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
87249         (gl_REGEX): New macro.
87250
87251         Module rename.
87252         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
87253         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
87254
87255         Module rmdir.
87256         * m4/rmdir.m4: New file.
87257
87258         Module utime.
87259         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
87260         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
87261         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
87262
87263         Module dirname.
87264         * m4/dirname.m4: New file.
87265
87266         Module getopt.
87267         * m4/getopt.m4: New file.
87268
87269         Module unistd-safer.
87270         * m4/unistd-safer.m4: New file.
87271
87272         Module fnmatch.
87273         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
87274         declaration.
87275         (gl_PREREQ_FNMATCH_EXTRA): New macro.
87276         (gl_FUNC_FNMATCH_POSIX): New macro.
87277         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
87278         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
87279         simply fnmatch.
87280
87281         Module exclude.
87282         * m4/exclude.m4: New file.
87283
87284         Module human.
87285         * m4/human.m4: New file.
87286
87287         Module acl.
87288         * m4/acl.m4: Nop.
87289
87290         Module backupfile.
87291         * m4/backupfile.m4: New file.
87292         * m4/d-ino.m4: Indentation.
87293
87294         Module fsusage.
87295         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
87296         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
87297         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
87298
87299         Module dirfd.
87300         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
87301         requirements.
87302
87303         Module euidaccess.
87304         * m4/euidaccess.m4: New file.
87305
87306         Module file-type.
87307         * m4/file-type.m4: New file.
87308
87309         Module fileblocks.
87310         * m4/fileblocks.m4: New file.
87311
87312         Module filemode.
87313         * m4/filemode.m4: New file.
87314
87315         Module isdir.
87316         * m4/isdir.m4: New file.
87317
87318         Module lchown.
87319         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
87320         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
87321
87322         Module makepath.
87323         * m4/makepath.m4: New file.
87324
87325         Module modechange.
87326         * m4/modechange.m4: New file.
87327
87328         Module mountlist.
87329         * m4/mountlist.m4: New file.
87330         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
87331         Indentation.
87332
87333         Module path-concat.
87334         * m4/path-concat.m4: New file.
87335
87336         Module pathmax.
87337         * m4/pathmax.m4: New file.
87338
87339         Module same.
87340         * m4/same.m4: New file.
87341
87342         Module save-cwd.
87343         * m4/save-cwd.m4: New file.
87344
87345         Module savedir.
87346         * m4/savedir.m4: New file.
87347
87348         Module xgetcwd.
87349         * m4/xgetcwd.m4: New file.
87350         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
87351
87352         Module xreadlink.
87353         * m4/xreadlink.m4: New file.
87354
87355         Module safe-read.
87356         * m4/safe-read.m4: New file.
87357
87358         Module safe-write.
87359         * m4/safe-write.m4: New file.
87360
87361         Module closeout.
87362         * m4/closeout.m4: New file.
87363
87364         Module stdio-safer.
87365         * m4/stdio-safer.m4: New file.
87366
87367         Module getpass.
87368         * m4/getpass.m4: New file.
87369
87370         Module getugroups.
87371         * m4/getugroups.m4: New file.
87372
87373         Module group-member.
87374         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
87375         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
87376
87377         Module idcache.
87378         * m4/idcache.m4: New file.
87379
87380         Module userspec.
87381         * m4/userspec.m4: New file.
87382
87383         Module gettime.
87384         * m4/clock_time.m4: New file.
87385         * m4/gettime.m4: New file.
87386
87387         Module settime.
87388         * m4/settime.m4: New file.
87389
87390         Module posixtm.
87391         * m4/posixtm.m4: New file.
87392
87393         Module gethostname.
87394         * m4/gethostname.m4: New file.
87395
87396         Module canon-host.
87397         * m4/canon-host.m4: New file.
87398
87399         Module gettext.
87400         * m4/codeset.m4: New file, from gettext-0.11.5.
87401         * m4/gettext.m4: New file, from gettext-0.11.5.
87402         * m4/glibc21.m4: New file, from gettext-0.11.5.
87403         * m4/iconv.m4: New file, from gettext-0.11.5.
87404         * m4/intdiv0.m4: New file, from gettext-0.11.5.
87405         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
87406         * m4/inttypes.m4: New file, from gettext-0.11.5.
87407         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
87408         * m4/isc-posix.m4: New file, from gettext-0.11.5.
87409         * m4/lcmessage.m4: New file, from gettext-0.11.5.
87410         * m4/lib-ld.m4: New file, from gettext-0.11.5.
87411         * m4/lib-link.m4: New file, from gettext-0.11.5.
87412         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
87413         * m4/progtest.m4: New file, from gettext-0.11.5.
87414         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
87415         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
87416         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
87417
87418         Module localcharset.
87419         * m4/localcharset.m4: New file.
87420
87421         Module hard-locale.
87422         * m4/hard-locale.m4: New file.
87423
87424         Module mbswidth.
87425         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
87426         onceonly macros.
87427         * m4/mbrtowc.m4: Add comment.
87428
87429         Module memcasecmp.
87430         * m4/memcasecmp.m4: New file.
87431
87432         Module memcoll.
87433         * m4/memcoll.m4: New file.
87434
87435         Module unicodeio.
87436         * m4/unicodeio.m4: New file.
87437
87438         Module rpmatch.
87439         * m4/rpmatch.m4: New file.
87440
87441         Module yesno.
87442         * m4/yesno.m4: New file.
87443
87444         Module exitfail.
87445         * m4/exitfail.m4: New file.
87446
87447         Module c-stack.
87448         * m4/c-stack.m4 (gl_C_STACK): New macro.
87449         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
87450
87451         Module error.
87452         * m4/error.m4 (gl_ERROR): New macro.
87453         (jm_PREREQ_ERROR): Use onceonly macros.
87454
87455         Module fatal.
87456         * m4/fatal.m4: New file.
87457
87458         Module getloadavg.
87459         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
87460         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
87461
87462         Module getpagesize.
87463         * m4/getpagesize.m4: New file.
87464
87465         Module getusershell.
87466         * m4/getusershell.m4: New file.
87467
87468         Module physmem.
87469         * m4/physmem.m4: New file.
87470
87471         Module posixver.
87472         * m4/posixver.m4: New file.
87473
87474         Module quotearg.
87475         * m4/quotearg.m4: New file.
87476
87477         Module quote.
87478         * m4/quote.m4: New file.
87479
87480         Module readutmp.
87481         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
87482
87483         Module sig2str.
87484         * m4/sig2str.m4: New file.
87485
87486         Other.
87487         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
87488         ulonglong.m4.
87489         * m4/intmax_t.m4: New file.
87490         * m4/d-type.m4: Indentation.
87491         * m4/jm-macros.m4: Update.
87492         * m4/prereq.m4 (jm_PREREQ): Update.
87493         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
87494         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
87495         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
87496         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
87497         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
87498         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
87499         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
87500         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
87501         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
87502         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
87503         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
87504         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
87505         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
87506         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
87507         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
87508         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
87509         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
87510         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
87511         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
87512
87513 2002-12-24  Bruno Haible  <bruno@clisp.org>
87514
87515         * MODULES.txt: Update according to m4/ changes.
87516
87517         Module gettext.
87518         * config.rpath: New file, from gettext-0.11.5.
87519
87520         * modules/*: New module descriptions.
87521         * gnulib-tool: New file.
87522         * MODULES.html.sh: New file.
87523
87524 2002-12-21  Karl Berry  <karl@gnu.org>
87525
87526         * doc/fdl.texi: update to version 1.2.
87527
87528 2002-12-19  Karl Berry  <karl@gnu.org>
87529
87530         * config/config.guess: update from prep.
87531
87532 2002-12-18  Bruno Haible  <bruno@clisp.org>
87533
87534         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
87535         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
87536
87537 2002-12-17  Bruno Haible  <bruno@clisp.org>
87538
87539         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
87540         stdlib.h, string.h.
87541
87542 2002-12-17  Bruno Haible  <bruno@clisp.org>
87543
87544         * lib/canon-host.c (strdup): Remove unused declaration.
87545
87546         * lib/fsusage.c: Include full_read.h.
87547         (get_fs_usage): Use full_read instead of safe_read.
87548
87549         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
87550
87551 2002-12-12  Karl Berry  <karl@gnu.org>
87552
87553         * config/config.guess: update from prep.
87554
87555 2002-12-11  Bruno Haible  <bruno@clisp.org>
87556
87557         * m4/setenv.m4: New file, from gettext-0.11.5.
87558
87559 2002-12-11  Bruno Haible  <bruno@clisp.org>
87560
87561         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
87562         not unsetenv().
87563         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
87564         modifications:
87565
87566         2002-12-11  Bruno Haible  <bruno@clisp.org>
87567
87568                 * setenv.c (alloca): Fall back to malloc.
87569                 (freea): New macro.
87570                 (setenv): Use freea() to free memory allocated with alloca().
87571
87572         2002-11-13  Bruno Haible  <bruno@clisp.org>
87573
87574                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
87575                 function declarations.
87576                 * unsetenv.c (unsetenv): Likewise.
87577
87578         2002-03-04  Bruno Haible  <bruno@clisp.org>
87579
87580                 Portability to AIX 4.3.3.
87581                 * unsetenv.c: New file, extracted from setenv.c.
87582                 * setenv.c: Move the unsetenv() function to unsetenv.c.
87583
87584         2001-12-20  Bruno Haible  <bruno@clisp.org>
87585
87586                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
87587                 use malloc instead. For SunOS 4.
87588
87589         2001-12-11  Bruno Haible  <bruno@clisp.org>
87590
87591                 * setenv.c: Declare alloca.
87592                 (compar_fn_t): New typedef.
87593                 (KNOWN_VALUE, STORE_VALUE): Use it.
87594
87595         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
87596         setenv.h.
87597
87598 2002-12-10  Paul Eggert  <eggert@twinsun.com>
87599
87600         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
87601         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
87602         Choose values that are less likely to collide with system fnmatch
87603         options.
87604         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
87605         defined (e.g., a pure POSIX system).
87606         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
87607         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
87608
87609 2002-12-06  Paul Eggert  <eggert@twinsun.com>
87610
87611         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
87612         a pain in practice to deal with generated m4 files.  This change
87613         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
87614
87615         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
87616         and jm-glibc-io.m4, as they are no longer a special case.
87617         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
87618         kludge and the auto-generation stuff.  Check only whether the
87619         functions are declared, not whether they exist, since older hosts
87620         that don't declare the functions can't use the optimization anyway.
87621
87622 2002-12-06  Jim Meyering  <jim@meyering.net>
87623
87624         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
87625
87626         Merge in changes from libc's misc/error.c, in preparation
87627         for the merge of gnulib's changes back into libc.
87628
87629         * lib/error.c (_): Define only if not already defined.
87630         Move definition to follow all #include directives.
87631         Include unlocked-io.h only if !_LIBC.
87632         [_LIBC]: Include <libio/libioP.h>.
87633         [USE_IN_LIBIO]: Include <libio/iolibio.h>
87634         (fflush): Tweak definition to use INTUSE.
87635         (putc): Define.
87636
87637 2002-12-05  Paul Eggert  <eggert@twinsun.com>
87638
87639         * lib/alloca.c [defined emacs]: Include "lisp.h".
87640         (xalloc_die) [defined emacs]: New macro.
87641         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
87642         [! defined emacs]: Include <xalloc.h>.
87643         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
87644         (pointer): Typedef to POINTER_TYPE *.
87645         (malloc): Remove decl; we now always use xmalloc.
87646         (alloca): Use old-style definition, since Emacs needs this.
87647         Check for arithmetic overflow when computing combined size.
87648
87649 2002-12-04  Paul Eggert  <eggert@twinsun.com>
87650
87651         Do not generate unlocked-io.h automatically, since it's easier to
87652         maintain it by hand.
87653
87654         * lib/unlocked-io.h: New file, from GNU diffutils,
87655         but with proper copyright notice and attribution.
87656         * lib/gen-uio: Remove.
87657         * lib/Makefile.am: Add copyright notice.
87658         (libfetish_a_SOURCES): Add unlocked-io.h.
87659         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
87660         (DISTCLEANFILES, io_functions): Remove macros.
87661         (EXTRA_DIST): Remove gen_uio.
87662         (unlocked-io.h): Remove rule.
87663
87664 2002-12-04  Jim Meyering  <jim@meyering.net>
87665
87666         Reflect the fact that stat.c and lstat.c are no longer generated.
87667         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
87668         (DISTCLEANFILES): Likewise.
87669         (EXTRA_DIST): Likewise.
87670         (all_local): Don't depend on stat.c or lstat.c.
87671         (stat.c, lstat.c): Remove rules.
87672         (EXTRA_DIST): Remove xstat.in.
87673
87674         * lib/xstat.in: Remove file.  Contents moved into stat.c.
87675         * lib/stat.c: New file.  Contents mostly from xstat.in.
87676         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
87677         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
87678
87679         * lib/safe-read.c: Rework so that it may serve to define safe_write,
87680         too.
87681         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
87682
87683 2002-12-03  Jim Meyering  <jim@meyering.net>
87684
87685         * lib/safe-read.c, safe-write.c: Change variable names and comments,
87686         but not semantics, to minimize the differences between these two files.
87687         (safe_read): Change comment to mention SAFE_READ_ERROR.
87688
87689         * lib/safe-read.c (IS_EINTR): Define.
87690         (safe_read): Use IS_EINTR in place of in-function cpp directives.
87691
87692 2002-12-02  Jim Meyering  <jim@meyering.net>
87693
87694         * lib/safe-read.c (EINTR): Define.
87695         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
87696         (INT_MAX): Provide fallback.
87697         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
87698
87699         * lib/safe-read.h (SAFE_READ_ERROR): Define.
87700
87701 2002-12-02  Bruno Haible  <bruno@clisp.org>
87702
87703         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
87704         Define, taken from safe-read.c.
87705         (INT_MAX): Provide fallback.
87706         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
87707         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
87708
87709         * lib/safe-read.c (EINTR): Remove definition.
87710         (safe_read): Don't use EINTR if it is absent.
87711
87712 2002-12-01  Jim Meyering  <jim@meyering.net>
87713
87714         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
87715         zero.
87716         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
87717
87718 2002-11-27  Paul Eggert  <eggert@twinsun.com>
87719
87720         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
87721         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
87722         with `if (! (value < limit)) abort ();', for readability.
87723
87724 2002-11-26  Karl Berry  <karl@gnu.org>
87725
87726         * lib/strdup.c: copy from libc again, with jim's ok.
87727         * lib/.cppi-disable: re-add strdup.c
87728
87729 2002-11-25  Karl Berry  <karl@gnu.org>
87730
87731         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
87732         instead of "strtol.c".
87733
87734 2002-11-25  Karl Berry  <karl@gnu.org>
87735
87736         * config/install-sh: update from automake for variable quoting, $0 in
87737         error msgs, etc.
87738
87739         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
87740         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
87741         entry.
87742
87743 2002-11-25  Jim Meyering  <jim@meyering.net>
87744
87745         * lib/mktime.c: Sync from libc, now that it has the latest fix.
87746
87747 2002-11-24  Karl Berry  <karl@gnu.org>
87748
87749         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
87750         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
87751
87752 2002-11-24  Jim Meyering  <jim@meyering.net>
87753
87754         Update from coreutils:
87755
87756         * lib/mktime.c: Merge in changes from libc.
87757
87758         Avoid a link-time failure on some Linux systems.
87759         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
87760         (otherwise).
87761         (__mon_yday): Declare with the STATIC attribute.
87762         (__mktime_internal): Likewise.
87763         Based on a report from Greg Schafer.
87764
87765 2002-11-23  Jim Meyering  <jim@meyering.net>
87766
87767         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
87768         Use `unsigned', not `int', as type of index.
87769
87770         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
87771
87772         * lib/fsusage.c: Remove unneeded parentheses around operands of
87773         `defined'.
87774
87775 2002-11-22  Paul Eggert  <eggert@twinsun.com>
87776
87777         * lib/quotearg.h: Allow multiple inclusion by surrounding with
87778         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
87779         so that we can be included first.
87780         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
87781         * lib/quotearg.c: Include quotearg.h immediately after config.h.
87782         No need to include stddef.h or sys/types.h any more.
87783         Surround local include files with "", not "<>".
87784         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
87785         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
87786         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
87787         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
87788         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
87789         (ISPRINT): Remove; no longer needed now that we assume C89.
87790
87791         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
87792         Preserve errno.
87793
87794         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
87795         quotearg_char): Use SIZE_MAX rather than
87796         (size_t) -1 when we are talking about "infinity".
87797
87798         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
87799
87800 2002-11-22  Paul Eggert  <eggert@twinsun.com>
87801
87802         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
87803         hint that one should use `if (! x) abort ();' rather than `assert
87804         (x);', and anyway it's one less thing to worry about configuring.
87805         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
87806         hash_rehash, hash_insert): Use abort rather than assert.
87807
87808 2002-11-22  Bruno Haible  <bruno@clisp.org>
87809
87810         * lib/safe-read.h: Assume C89. Add comments.
87811         (safe_read): Change return type to size_t.
87812         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
87813         byte counts > SSIZE_MAX correctly.
87814         * lib/safe-write.h: New file.
87815         * lib/safe-write.c: New file.
87816         * lib/full-read.h: New file.
87817         * lib/full-read.c: New file.
87818         * lib/full-write.h: Assume C89. Add comments.
87819         * lib/full-write.c: Include safe-write.h.
87820         (full_write): Rewritten to use safe_write.
87821         Suggested by Jim Meyering and Paul Eggert.
87822
87823 2002-11-21  Jim Meyering  <jim@meyering.net>
87824
87825         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
87826
87827         Merge in changes from the coreutils.
87828
87829         2002-09-25  Paul Eggert  <eggert@twinsun.com>
87830         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
87831         <stdint.h>.
87832         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
87833         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
87834         int.  Work more efficiently if X is the same width as uintmax_t.
87835         Do not compare X to -1, to avoid bogus compiler warning.
87836         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
87837         Don't assume that f_frsize and f_bsize are the same type.
87838
87839         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
87840         warning on FreeBSD.
87841
87842         * lib/makepath.c (make_path): Restore umask *before* creating the final
87843         component.
87844         (make_path): Minor reformatting.
87845
87846         * lib/xmalloc.c: Adjust to work with new autoconf macros,
87847         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
87848         HAVE_MALLOC/HAVE_REALLOC.
87849
87850         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
87851         dummy ones.  At least on GNU/Linux systems, `auto' means something
87852         else.
87853         From Michael Stone.
87854
87855 2002-11-21  Bruno Haible  <bruno@clisp.org>
87856
87857         Remove case insensitive option matching.
87858         * lib/argmatch.h (argcasematch): Remove declaration.
87859         (ARGCASEMATCH): Remove macro.
87860         (__xargmatch_internal): Remove case_sensitive argument.
87861         (XARGMATCH): Update.
87862         (XARGCASEMATCH): Remove macro.
87863         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
87864         case_sensitive argument.
87865         (argcasematch): Remove function.
87866         (__xargmatch_internal): Remove case_sensitive argument.
87867         (main): Use XARGMATCH instead of XARGCASEMATCH.
87868
87869         * lib/xmalloc.c: Change compile-time error message. Add comment about
87870         required autoconf version.
87871
87872 2002-11-20  Paul Eggert  <eggert@twinsun.com>
87873
87874         Merge argmatch cleanups from Bison.  Assume C89.
87875
87876         * lib/argmatch.c: Include config.h here, not in argmatch.h.
87877         Include stdlib.h, for EXIT_FAILURE.
87878         Always include <string.h>, since we assume C89.
87879         (EXIT_FAILURE): Remove pre-C89 bug workaround.
87880         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
87881         Include <stddef.h> instead, since it's all we need for size_t.
87882         (PARAMS): Remove.  All uses removed.
87883         (ARRAY_CARDINALITY): Do not bother to #undef.
87884         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
87885         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
87886         Remove unnecessary parentheses.
87887         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
87888         Insert necessary parentheses.
87889         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
87890         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
87891
87892 2002-11-19  Bruno Haible  <bruno@clisp.org>
87893
87894         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
87895         * lib/mbswidth.h: Include <stddef.h>, for size_t.
87896
87897         * lib/mbswidth.h (PARAMS): Remove macro.
87898         (mbswidth, mbsnwidth): Use ANSI C function declarations.
87899         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
87900
87901         * lib/gcd.h (PARAMS): Remove macro.
87902         (gcd): Use ANSI C function declarations.
87903         * lib/gcd.c (gcd): Likewise.
87904
87905 2002-11-15  Bruno Haible  <bruno@clisp.org>
87906
87907         * lib/strcspn.c: Include <stddef.h>.
87908         (strcspn): Use ANSI C function declaration. Change return type to
87909         size_t. Use NULL.
87910         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
87911         (strpbrk): Use NULL.
87912         * lib/strpbrk.h (PARAMS): Remove macro.
87913         (strpbrk): Use ANSI C function declaration.
87914         * lib/strstr.c: Don't include <sys/types.h>.
87915         * lib/strstr.h (PARAMS): Remove macro.
87916         (strstr): Use ANSI C function declarations.
87917
87918 2002-11-14  Karl Berry  <karl@gnu.org>
87919
87920         * config/mkinstalldirs: `do' on separate line, instead of
87921         `for var; do'.
87922
87923 2002-11-06  Bruno Haible  <bruno@clisp.org>
87924
87925         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
87926         * lib/gcd.c (gcd): Likewise.
87927
87928 2002-11-05  Bruno Haible  <bruno@clisp.org>
87929
87930         * lib/gcd.h: New file, from gettext-0.11.5.
87931         * lib/gcd.c: New file, from gettext-0.11.5.
87932
87933 2002-11-05  Bruno Haible  <bruno@clisp.org>
87934
87935         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
87936         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
87937         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
87938         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
87939
87940         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
87941         <libintl.h>.
87942         * lib/makepath.c: Include gettext.h instead of <locale.h> and
87943         <libintl.h>.
87944
87945         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
87946         * lib/human.c: Include gettext.h instead of <libintl.h>.
87947         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
87948         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
87949         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
87950         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
87951         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
87952         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
87953         (textdomain): Remove definition.
87954         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
87955
87956         * lib/long-options.c: Remove include of <libintl.h> and definition of
87957         _.
87958         * lib/same.c: Remove include of <libintl.h> and definition of _.
87959
87960 2002-11-04  Owen Taylor  <otaylor@redhat.com>
87961
87962         * lib/config.charset: A few additions for Solaris.
87963
87964 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
87965
87966         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
87967         * lib/localcharset.c (locale_charset): Declare as extern "C".
87968
87969 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
87970
87971         * lib/config.charset: msdos in uk_UA uses CP1125.
87972
87973 2002-11-04  Bruno Haible  <bruno@clisp.org>
87974
87975         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
87976         * lib/strcase.h: New file, from GNU gettext-0.11.5.
87977         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
87978         * lib/strstr.h: New file, from GNU gettext-0.11.5.
87979         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
87980
87981 2002-11-04  Bruno Haible  <bruno@clisp.org>
87982
87983         * lib/localcharset.c (locale_charset): Don't return an empty string.
87984
87985 2002-11-04  Bruno Haible  <bruno@clisp.org>
87986
87987         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
87988         aliases.
87989
87990 2002-11-04  Bruno Haible  <bruno@clisp.org>
87991
87992         * lib/config.charset: Update for newest glibc. Add canonical names
87993         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
87994
87995 2002-11-04  Bruno Haible  <bruno@clisp.org>
87996
87997         * lib/config.charset: Add support for NetBSD.
87998
87999 2002-11-04  Bruno Haible  <bruno@clisp.org>
88000
88001         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
88002
88003 2002-11-01  Bruno Haible  <bruno@clisp.org>
88004
88005         * configure.in: Add AC_CONFIG_AUX_DIR call.
88006         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
88007         test/Makefile.
88008         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
88009
88010 2002-09-28  Karl Berry  <karl@gnu.org>
88011
88012         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
88013         installed automake until the next release, since changes have been
88014         made.
88015
88016 2002-09-25  Karl Berry  <karl@gnu.org>
88017
88018         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
88019         * lib/getopt*: copy from libc/posix.
88020         * lib/gettext.h: copy from gettext.
88021         * lib/.cppi-disable: add strdup.c, gettext.h.
88022
88023 2002-09-25  Karl Berry  <karl@gnu.org>
88024
88025         * config/srclist.txt: enable gettext.h check.
88026         * config/config.{guess,sub}: update from prep.
88027         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
88028                 from automake 1.6.3.
88029         See srclist*.
88030
88031 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
88032
88033         * regex.c (PATFETCH): Remove the translating fetch.
88034         (PATFETCH_RAW): Rename to PATFETCH.
88035         (set_image_of_range): New fun.
88036         (SET_RANGE_TABLE_WORK_AREA): Use it.
88037         (regex_compile): Don't translate the pattern chars so eagerly.
88038         Only do it when inserting an `exactn' bytecode or when handling
88039         a char-range.
88040         (mutually_exclusive_p): Avoid empty statement.
88041
88042 2002-07-06  Jim Meyering  <meyering@lucent.com>
88043
88044         * m4/README: Don't mention Makefile.am.in.
88045         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
88046
88047 2002-07-01  Jim Meyering  <meyering@lucent.com>
88048
88049         * lib/c-stack.c: Include sys/time.h.
88050         From Volker Borchert.
88051
88052 2002-06-26  Paul Eggert  <eggert@twinsun.com>
88053
88054         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
88055
88056 2002-06-26  Paul Eggert  <eggert@twinsun.com>
88057
88058         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
88059         New macro.  Use it uniformly instead of
88060         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
88061         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
88062         reported by Vin Shelton.
88063
88064 2002-06-22  Paul Eggert  <eggert@twinsun.com>
88065
88066         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
88067         Do not assume SA_SIGINFO behavior.
88068         Bug reported by Jim Meyering on NetBSD 1.5.2.
88069
88070 2002-06-22  Jim Meyering  <meyering@lucent.com>
88071
88072         * m4/c-stack.m4: New file, from diffutils-2.8.2.
88073         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
88074
88075         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
88076         now that configure.ac uses AC_GNU_SOURCE.
88077         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
88078         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
88079
88080         Update to latest tools.  Suggestions from Paul Eggert.
88081         * m4/stdbool.m4: New file, from diffutils-2.8.2.
88082         * m4/gnu-source.m4: Update from diffutils-2.8.2.
88083         * m4/fnmatch.m4: Likewise.
88084         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
88085         to AC_HEADER_STDBOOL
88086
88087 2002-06-22  Jim Meyering  <meyering@lucent.com>
88088
88089         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
88090         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
88091
88092 2002-06-22  Jim Meyering  <meyering@lucent.com>
88093
88094         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
88095
88096         * lib/exitfail.c, exitfail.h: Likewise.
88097         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
88098
88099         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
88100         of fnmatch.h.
88101         (EXTRA_DIST): Add fnmatch_loop.c.
88102         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
88103
88104         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
88105         * lib/fnmatch.c: Update from diffutils-2.8.2.
88106         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
88107         * lib/fnmatch.h: Remove file.
88108
88109 2002-06-21  Jim Meyering  <meyering@lucent.com>
88110
88111         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
88112         * m4/mbrtowc.m4: Likewise.
88113
88114         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
88115         * m4/mbswidth.m4: Reflect name change:
88116         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
88117         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
88118
88119         * m4/lib-link.m4: Update from gettext-0.11.2.
88120         * m4/gettext.m4: Likewise.
88121
88122         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
88123         From Alfred M. Szmidt.
88124
88125 2002-06-18  Paul Eggert  <eggert@twinsun.com>
88126
88127         * lib/file-type.h: Report an error if neither S_ISREG nor
88128         S_IFREG is defined, instead of using a test specific to glibc
88129         2.2.  This should be safe, since POSIX requires S_ISREG and
88130         Unix Version 7 had S_IFREG.  We don't need to check for
88131         <sys/types.h> since we don't use any symbols that it defines.
88132
88133 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
88134
88135         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
88136         $@-t, so that each temporary file name is unique and valid in the first
88137         8 characters, for operation under DOS.
88138
88139 2002-06-15  Paul Eggert  <eggert@twinsun.com>
88140
88141         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
88142
88143 2002-06-15  Jim Meyering  <meyering@lucent.com>
88144
88145         Work even with DJGPP 2.03, which lacks support for symlinks.
88146         From Richard Dawe.
88147         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
88148         is defined.
88149         * lib/lchown.c (S_ISLNK): Likewise.
88150
88151 2002-06-15  Jim Meyering  <meyering@lucent.com>
88152
88153         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
88154         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
88155         have been included before this file.
88156
88157 2002-06-14  Jim Meyering  <meyering@lucent.com>
88158
88159         * lib/file-type.h: Use the version from diffutils-2.8.2.
88160         * lib/file-type.c: Likewise.
88161
88162 2002-06-07  Jim Meyering  <meyering@lucent.com>
88163
88164         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
88165         They're needed at least for NetBSD 1.5.2.
88166         ($statxfs_includes): Include those same headers.
88167         ($statxfs_includes): Include sys/vfs.h if available.
88168         ($statxfs_includes): Likewise for sys/statvfs.h.
88169         Check for the following members in both structs statfs and statvfs:
88170         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
88171
88172 2002-06-01  Jim Meyering  <meyering@lucent.com>
88173
88174         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
88175         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
88176
88177 2002-05-28  Jim Meyering  <meyering@lucent.com>
88178
88179         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
88180         Reported by Volker Borchert.
88181
88182 2002-05-27  Jim Meyering  <meyering@lucent.com>
88183
88184         Fix a problem seen only on nonconforming systems whereby ls.c's
88185         use of localtime, and then of gettimeofday would cause trouble:
88186         the localtime call used to initialize rpl_gettimeofday's save
88187         mechanism would clobber ls's current local time information so
88188         that in any long listing the first file would always be listed
88189         with date 1970-01-01.  Analysis by Volker Borchert.
88190
88191         * lib/gettimeofday.c (localtime): Undefine.
88192         (rpl_localtime): New function.
88193
88194 2002-05-27  Jim Meyering  <meyering@lucent.com>
88195
88196         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
88197         localtime.
88198
88199         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
88200         use the replacement function; it wouldn't resolve at link time.
88201         Reported by Volker Borchert.
88202
88203 2002-05-22  Jim Meyering  <meyering@lucent.com>
88204
88205         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
88206         file-type.h.
88207         * lib/file-type.h: New file.
88208         * lib/file-type.c (file_type): New file/function.  Extracted from
88209         diffutils.
88210
88211 2002-04-30  Jim Meyering  <meyering@lucent.com>
88212
88213         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
88214
88215 2002-04-29  Paul Eggert  <eggert@twinsun.com>
88216
88217         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
88218
88219 2002-04-29  Paul Eggert  <eggert@twinsun.com>
88220
88221         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
88222         Do not check for alloca.h (no longer used) or stdbool.h (was never
88223         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
88224
88225 2002-04-29  Paul Eggert  <eggert@twinsun.com>
88226
88227         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
88228
88229 2002-04-29  Jim Meyering  <meyering@lucent.com>
88230
88231         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
88232         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
88233         Use AC_FUNC_STRNLEN here instead.
88234
88235         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
88236         With autoconf-2.53a, it's part of AC_PROG_CC.
88237
88238 2002-04-28  Paul Eggert  <eggert@twinsun.com>
88239
88240         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
88241         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
88242
88243 2002-04-28  Paul Eggert  <eggert@twinsun.com>
88244
88245         * lib/sig2str.h, lib/sig2str.c: New files.
88246         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
88247
88248 2002-04-28  Paul Eggert  <eggert@twinsun.com>
88249
88250         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
88251         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
88252         of 127, since 64 is the largest conceivable number for ancient
88253         nonstandard hosts.
88254         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
88255
88256 2002-04-28  Jim Meyering  <meyering@lucent.com>
88257
88258         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
88259
88260 2002-04-24  Jim Meyering  <meyering@lucent.com>
88261
88262         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
88263         (jm_PREREQ): Use it.
88264
88265         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
88266         mach/mach.h fcntl.h.
88267         Check for this function: setlocale.
88268
88269 2002-04-24  Jim Meyering  <meyering@lucent.com>
88270
88271         * lib/gettext.h: New file, from Gettext.
88272         * lib/Makefile.am (INCLUDES): Remove -I../intl.
88273         (libfetish_a_SOURCES): Add gettext.h.
88274
88275 2002-04-16  Jim Meyering  <meyering@lucent.com>
88276
88277         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
88278         ut_pid, ut_id, ut_exit.
88279
88280 2002-04-16  Jim Meyering  <meyering@lucent.com>
88281
88282         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
88283         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
88284         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
88285
88286 2002-04-12  Jim Meyering  <meyering@lucent.com>
88287
88288         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
88289         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
88290         existence of the getmntinfo function.  Needed for Darwin 5.3.
88291
88292         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
88293         This is necessary at least on Darwin 5.3.
88294
88295         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
88296         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
88297         strnlen.o in the library, and that makes some versions of ranlib
88298         object.
88299
88300 2002-04-12  Jim Meyering  <meyering@lucent.com>
88301
88302         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
88303
88304 2002-04-09  Jim Meyering  <meyering@lucent.com>
88305
88306         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
88307         to be more precise.  Rather than saying we're checking whether the
88308         function `works', say what we're testing.
88309         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
88310         Reported by Bruno Haible.
88311
88312 2002-03-10  Jim Meyering  <meyering@lucent.com>
88313
88314         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
88315         Suggestion from Santiago Vila.
88316
88317 2002-03-08  Jim Meyering  <meyering@lucent.com>
88318
88319         * lib/rename.c: Mention that this wrapper is needed also on
88320         mips-dec-ultrix4.4 systems.
88321
88322 2002-03-02  Jim Meyering  <meyering@lucent.com>
88323
88324         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
88325         not HAVE_CLOCK_SETTIME.
88326
88327 2002-02-27  Paul Eggert  <eggert@twinsun.com>
88328
88329         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
88330         Check for clock_settime.
88331
88332 2002-02-27  Paul Eggert  <eggert@twinsun.com>
88333
88334         * lib/nanosleep.h: Rename to....
88335         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
88336
88337         * lib/gettime.c: New file.
88338         * lib/settime.c: New file.
88339         * lib/stime.c: Remove.
88340
88341         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
88342         timespec.h.  Remove nanosleep.h.
88343
88344 2002-02-25  Paul Eggert  <eggert@twinsun.com>
88345
88346         * m4/acl.m4: New file.
88347         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
88348         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
88349
88350 2002-02-25  Paul Eggert  <eggert@twinsun.com>
88351
88352         * lib/acl.c, lib/acl.h: New files.
88353         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
88354
88355 2002-02-24  Jim Meyering  <meyering@lucent.com>
88356
88357         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
88358         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
88359         cause trouble.  Reported by Nelson Beebe.
88360
88361 2002-02-23  Paul Eggert  <eggert@twinsun.com>
88362
88363         * lib/path-concat.c (xpath_concat): Reorder code to pacify
88364         compilers that don't know that xalloc_die never returns.
88365
88366 2002-02-20  Jim Meyering  <meyering@lucent.com>
88367
88368         * lib/getdate.c: Regenerate using bison-1.33.
88369
88370 2002-02-17  Jim Meyering  <meyering@lucent.com>
88371
88372         * config/config.guess (main): Don't use `head -1'; it's no longer
88373         portable. Use `sed 1q' instead.
88374
88375 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
88376
88377         * m4/codeset.m4: Upgrade to gettext-0.11.
88378         * m4/gettext.m4: Upgrade to gettext-0.11.
88379         * m4/glibc21.m4: Upgrade to gettext-0.11.
88380         * m4/iconv.m4: Upgrade to gettext-0.11.
88381         * m4/isc-posix.m4: Upgrade to gettext-0.11.
88382         * m4/lcmessage.m4: Upgrade to gettext-0.11.
88383         * m4/lib-ld.m4: New file, from gettext-0.11.
88384         * m4/lib-link.m4: New file, from gettext-0.11.
88385         * m4/lib-prefix.m4: New file, from gettext-0.11.
88386         * m4/progtest.m4: Upgrade to gettext-0.11.
88387
88388 2002-02-15  Paul Eggert  <eggert@twinsun.com>
88389
88390         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
88391         (jm_PREREQ): Use it.
88392
88393 2002-02-15  Paul Eggert  <eggert@twinsun.com>
88394
88395         * lib/posixver.c, lib/posixver.h: New files.
88396         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
88397
88398 2002-02-02  Paul Eggert  <eggert@twinsun.com>
88399             Bruno Haible  <bruno@clisp.org>
88400
88401         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
88402         (fwrite_success_callback): New declaration.
88403         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
88404         print_unicode_char. Call failure callback instead of error.
88405         (fwrite_success_callback): New function.
88406         (exit_failure_callback): New function.
88407         (fallback_failure_callback): New function.
88408         (print_unicode_char): Call unicode_to_mb.
88409
88410 2002-01-26  Jim Meyering  <meyering@lucent.com>
88411
88412         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
88413         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
88414
88415 2002-01-26  Jim Meyering  <meyering@lucent.com>
88416
88417         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
88418
88419 2002-01-22  Paul Eggert  <eggert@twinsun.com>
88420
88421         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
88422
88423 2002-01-22  Jim Meyering  <meyering@lucent.com>
88424
88425         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
88426         Otherwise, some versions of automake would omit the rule that makes
88427         Makefile from Makefile.in.
88428
88429 2002-01-21  Paul Eggert  <eggert@twinsun.com>
88430
88431         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
88432         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
88433         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
88434         (memcoll): Set errno to zero if there is no error.
88435
88436         * lib/quotearg.c (quotearg_buffer_restyled):
88437         Fix bug with quoting buffers containing NUL when backslashing escapes.
88438         This bug was exposed by the other changes in this patch.
88439         (quotearg_n_options): New arg ARGSIZE.
88440         All callers changed.
88441         (quoting_options_from_style): New function.
88442         (quotearg_n_style): Use it.
88443         (quotearg_n_style_mem): New function.
88444
88445         * lib/quotearg.h (quotearg_n_style_mem): New function.
88446
88447 2002-01-19  Jim Meyering  <meyering@lucent.com>
88448
88449         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
88450         Remove useless quotes: DF_PROG="df".
88451         * m4/strnlen.m4: New file.
88452
88453 2002-01-16  Paul Eggert  <eggert@twinsun.com>
88454
88455         * lib/backupfile.c (ISDIGIT): Comment fix.
88456         * lib/getdate.y (ISDIGIT): Likewise.
88457         * lib/posixtm.c (ISDIGIT, year): Likewise.
88458         * lib/strverscmp.c (ISDIGIT): Likewise.
88459         * lib/userspec.c (ISDIGIT): Likewise.
88460
88461 2002-01-16  Jim Meyering  <meyering@lucent.com>
88462
88463         * lib/getdate.y: Add three semicolons, each just before a closing
88464         brace. Bison (as of version 1.31) no longer papers over that mistake.
88465
88466 2002-01-05  Jim Meyering  <meyering@lucent.com>
88467
88468         * lib/version-etc.c (version_etc_copyright): Update copyright year.
88469
88470 2001-12-19  Paul Eggert  <eggert@twinsun.com>
88471
88472         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
88473         not silently exit merely because the output buffer happens to
88474         have nothing pending.
88475
88476 2001-12-18  Paul Eggert  <eggert@twinsun.com>
88477
88478         See the big note in ../ChangeLog.
88479         * lib/human.c (suffixes): Prefer K to k for 1024.
88480         (generate_suffix_backwards): New function.
88481         (human_readable_inexact): Use it.
88482         * lib/xstrtol.c (__xstrtol): If there is no number but there
88483         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
88484         Accept 'K' as well as 'k'.
88485
88486 2001-12-15  Jim Meyering  <meyering@lucent.com>
88487
88488         * lib/regex.h (__restrict_arr): Update from libc.
88489
88490         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
88491         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
88492         (STREQ): Define.
88493
88494 2001-12-14  Jim Meyering  <meyering@lucent.com>
88495
88496         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
88497         Suggestion from Bruno Haible.
88498
88499 2001-12-10  Jim Meyering  <meyering@lucent.com>
88500
88501         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
88502         xrealloc, Instead, include "xalloc.h".
88503         (initbuffer): Don't cast xmalloc return value to char*.
88504         (readline): Reword comment.
88505         Don't cast xrealloc return value to char*
88506         Return NULL, not 0.
88507
88508 2001-12-09  Jim Meyering  <meyering@lucent.com>
88509
88510         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
88511         about `signed and unsigned type in conditional expression'.
88512         * lib/posixtm.c (posix_time_parse): Likewise.
88513
88514         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
88515
88516         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
88517         to avoid a pedantic warning.
88518
88519         * lib/getstr.c: Don't include assert.h.
88520         (getstr): Remove warning-evoking assertions.
88521         Return -1 if offset parameter is out of bounds.
88522         Change the type of a local from int to size_t.
88523
88524         * lib/strftime.c (my_strftime_localtime_r): Include this function
88525         definition in the `#if ! HAVE_TM_GMTOFF' block.
88526
88527         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
88528         Include xalloc.h instead.
88529
88530 2001-12-02  Jim Meyering  <meyering@lucent.com>
88531
88532         * lib/tempname.c: Don't declare getenv, thus reverting the change of
88533         2001-11-18.  It's no longer necessary, now that stdlib.h is always
88534         included.
88535
88536         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
88537         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
88538
88539 2001-11-30  Akim Demaille  <akim@epita.fr>
88540
88541         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
88542         before being defined.
88543
88544 2001-11-27  Paul Eggert  <eggert@twinsun.com>
88545
88546         * lib/quotearg.h (quotearg_n, quotearg_n_style):
88547         First arg is int, not unsigned.
88548         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
88549         (SIZE_MAX, UINT_MAX): New macros.
88550         (quotearg_n_options): Abort if N is negative.
88551         Avoid overflow check on hosts where size_t is 64 bits and int
88552         is 32 bits, as overflow is impossible there.
88553         Fix off-by-one typo that caused unnecessary reallocation.
88554
88555 2001-11-27  Jim Meyering  <meyering@lucent.com>
88556
88557         * lib/tempname.c: Merge with version from libc.
88558         * lib/regex.c: Likewise.
88559
88560         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
88561         systems for which STDC_HEADERS is 0, it was not included, resulting in
88562         a warning about an integer-to-pointer conversion problem with getenv.
88563         Reported by Volker Borchert.
88564
88565 2001-11-26  Jim Meyering  <meyering@lucent.com>
88566
88567         * lib/gtod.h: Remove file.
88568         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
88569         * lib/gettimeofday.c: Don't include gtod.h.
88570         (GTOD_init): Remove function.
88571         (rpl_gettimeofday): Do its job here instead, rather than aborting.
88572         Suggestion from Volker Borchert.
88573
88574 2001-11-23  Jim Meyering  <meyering@lucent.com>
88575
88576         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
88577         it.
88578         * lib/hash.c (struct hash_table): Define it here instead.
88579
88580 2001-11-22  Jim Meyering  <meyering@lucent.com>
88581
88582         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
88583
88584 2001-11-20  Jim Meyering  <meyering@lucent.com>
88585
88586         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
88587         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
88588
88589 2001-11-19  Jim Meyering  <meyering@lucent.com>
88590
88591         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
88592         directory.  Use "conftestXXXXXX" as the template.
88593         Suggestion from Paul Eggert.
88594
88595         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
88596         immediately, so the test doesn't mistakenly hit the max-open-files
88597         limit.
88598
88599 2001-11-18  Paul Eggert  <eggert@twinsun.com>
88600
88601         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
88602         (TEMPORARIES): New macro.
88603         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
88604         removes an artificial limitation (e.g. HP-UX 10.20, where
88605         TMP_MAX is 17576).
88606
88607 2001-11-18  Jim Meyering  <meyering@lucent.com>
88608
88609         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
88610
88611 2001-11-18  Jim Meyering  <meyering@lucent.com>
88612
88613         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
88614         on SunOS 4.
88615
88616         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
88617         files will be created before anything else.
88618
88619 2001-11-17  Paul Eggert  <eggert@twinsun.com>
88620
88621         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
88622         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
88623
88624 2001-11-17  Jim Meyering  <meyering@lucent.com>
88625
88626         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
88627         Prompted by a report from Bob Proulx.
88628
88629         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
88630         Instead, require UTILS_FUNC_MKSTEMP.
88631
88632 2001-11-17  Jim Meyering  <meyering@lucent.com>
88633
88634         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
88635         Now, that's done as part of AC_FUNC_STRTOD.
88636
88637 2001-11-17  Jim Meyering  <meyering@lucent.com>
88638
88639         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
88640         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
88641         rather than group writable.  Patch by Juan F. Codagnone.
88642
88643         * lib/readtokens.c: Remove explicit declarations of xmalloc and
88644         xrealloc, Instead, include "xalloc.h".
88645
88646         * lib/mountlist.c: Include unlocked-io.h after all system headers.
88647         Remove explicit declarations of xmalloc, xrealloc,
88648         and xstrdup.  Instead, include "xalloc.h".
88649
88650         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
88651         unlocked-io.h.
88652         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
88653         Likewise.
88654         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
88655
88656         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
88657         Reported by Padraig Brady.
88658
88659         * lib/mkstemp.c: #undef mkstemp.
88660         Include config.h.
88661         (rpl_mkstemp): Rename from mkstemp.
88662         Protoize.
88663
88664 2001-11-16  Jim Meyering  <meyering@lucent.com>
88665
88666         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
88667         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
88668         determine the amount of total physical memory, use pstat_getstatic.
88669         HPUX-11 doesn't define _SC_PHYS_PAGES.
88670         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
88671         If sysconf couldn't be used to determine the amount of available
88672         physical memory, use both pstat_getstatic and pstat_getdynamic.
88673         Based on a patch from Bob Proulx.
88674
88675 2001-11-10  Jim Meyering  <meyering@lucent.com>
88676
88677         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
88678         (jm_PREREQ): Use it.
88679
88680 2001-11-09  Jim Meyering  <meyering@lucent.com>
88681
88682         * m4/jm-macros.m4: Require autoconf-2.52f.
88683         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
88684         Use these AC_-prefixed names, not the AM_-prefixed ones.
88685
88686         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
88687
88688 2001-11-05  Jim Meyering  <meyering@lucent.com>
88689
88690         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
88691
88692 2001-11-04  Jim Meyering  <meyering@lucent.com>
88693
88694         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
88695         $DEFS.
88696
88697 2001-11-03  Jim Meyering  <meyering@lucent.com>
88698
88699         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
88700         of AC_DEFUN.
88701
88702         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
88703         know the name of the variable in the macro definition.
88704
88705 2001-11-03  Jim Meyering  <meyering@lucent.com>
88706
88707         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
88708         in argmatch_to_argument call.
88709
88710         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
88711         argument.
88712
88713         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
88714         e.g., a fault due to an attempt to free a NULL pointer.
88715
88716 2001-11-01  Jim Meyering  <meyering@lucent.com>
88717
88718         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
88719         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
88720
88721 2001-11-01  Jim Meyering  <meyering@lucent.com>
88722
88723         * lib/dirfd.c, lib/dirfd.h: New files.
88724         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
88725
88726         * lib/hash.c (hash_print) [TESTING]: Clean up.
88727
88728 2001-10-22  Paul Eggert  <eggert@twinsun.com>
88729
88730         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
88731         to avoid a warning if -Wall.
88732
88733 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
88734
88735         * README: New file
88736         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
88737         (per RMS's instructions, this is now the canonical source)
88738         * lgpl/, gpl/: New directories.
88739
88740 2001-10-21  Paul Eggert  <eggert@twinsun.com>
88741
88742         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
88743
88744 2001-10-21  Jim Meyering  <meyering@lucent.com>
88745
88746         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
88747         this code would end up calling gettext even in packages built
88748         with --disable-nls.
88749         * lib/getopt.c (_): Likewise.
88750         * lib/regex.c (_): Likewise.
88751
88752 2001-10-20  Paul Eggert  <eggert@twinsun.com>
88753
88754         * m4/error.m4 (jm_PREREQ_ERROR):
88755         Do not invoke AC_CHECK_FUNCS with strerror_r, as
88756         AC_FUNC_STRERROR_R does that.
88757         Check for strerror declaration.
88758
88759         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
88760         are supposed to have them these days.
88761         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
88762         Merge changes from latest Autoconf CVS.
88763         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
88764         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
88765         POSIX decided to standardize on the int flavor of strerror_r.
88766
88767 2001-10-20  Paul Eggert  <eggert@twinsun.com>
88768
88769         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
88770         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
88771         Use strerror_r that is only a macro, even if it is not a function.
88772         (strerror): Check for HAVE_DECL_STRERROR before declaring.
88773         (private_strerror): Use prototypes, not old-style function definition.
88774         (print_errno_message): New function.
88775         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
88776         char*-flavored one.
88777         (error_tail, error, error_at_line): Use it.
88778
88779 2001-10-11  Jim Meyering  <meyering@lucent.com>
88780
88781         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
88782         and quote_n (1, ... to avoid clobbering a buffer.
88783
88784 2001-10-05  Jim Meyering  <meyering@lucent.com>
88785
88786         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
88787         hash-pjw.h.
88788         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
88789         * lib/hash-pjw.h: New file.
88790
88791 2001-09-30  Jim Meyering  <meyering@lucent.com>
88792
88793         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
88794         `struct fsstat' has the `f_fstypename' member.
88795         Use that to define FS_TYPE, which is now used to make
88796         the getfsstat link test tighter.
88797
88798 2001-09-30  Jim Meyering  <meyering@lucent.com>
88799
88800         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
88801         Include <sys/ucred.h>, for Apple Darwin.
88802         Include sys/mount.h and sys/fs_types.h only if available.
88803         (FS_TYPE): Define.
88804         (read_filesystem_list): Use FS_TYPE.
88805
88806 2001-09-29  Paul Eggert  <eggert@twinsun.com>
88807
88808         * lib/exclude.c (excluded_filename): 0 -> false, since it's
88809         a boolean context.
88810
88811 2001-09-29  Jim Meyering  <meyering@lucent.com>
88812
88813         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
88814         [one-argument getmntent function]): Include stdio.h before mntent.h.
88815         SunOS 4.1.x needs it for the declaration of `FILE'.
88816         Patch by Volker Borchert.
88817
88818         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
88819         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
88820         sys/fs_types.h, and make the link-test for getfsstat guard #include
88821         directives with appropriate #if HAVE_*_H tests so that we can
88822         detect getfsstat on Apple Darwin1.3.7 systems.
88823         Reported by Nelson Beebe.
88824         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
88825
88826 2001-09-28  Paul Eggert  <eggert@twinsun.com>
88827
88828         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
88829         #defines strtoimax.  Also treat the other strto* functions
88830         like strtoimax.
88831
88832         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
88833         Check for strtoul and strtoumax,
88834         as those declarations are made even in the signed case.
88835         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
88836         Likewise, for strtol and strtoimax.
88837
88838 2001-09-28  Paul Eggert  <eggert@twinsun.com>
88839
88840         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
88841         #defines strtoimax.  Also treat the other strto* functions
88842         like strtoimax.
88843
88844         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
88845         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
88846         (strtoimax, strtoumax): Do not declare if already defined as a macro.
88847
88848 2001-09-26  Jim Meyering  <meyering@lucent.com>
88849
88850         Most macros in unlocked-io.h had the wrong number of arguments.
88851         * lib/gen-uio: New script.
88852         (USE_UNLOCKED_IO): Define to 1 if not already defined.
88853         * lib/unlocked-io.hin: Remove file.
88854         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
88855         rather than trying to embed it here.
88856         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
88857         Reported by Padraig Brady.
88858
88859 2001-09-25  Volker Borchert  <bt@teknon.de>
88860
88861         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
88862         `result'.
88863
88864 2001-09-24  Jim Meyering  <meyering@lucent.com>
88865
88866         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
88867
88868 2001-09-23  Jim Meyering  <meyering@lucent.com>
88869
88870         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
88871         instead of the mere test for existence of mntent.h.  The latter
88872         would get a false-positive on AIX 3.4 systems.
88873         In the outer getmntent if-block, don't die if neither of the getmntent
88874         tests succeeds.  Instead, just fall through and continue with the
88875         remaining tests.
88876
88877 2001-09-23  Jim Meyering  <meyering@lucent.com>
88878
88879         * lib/mountlist.c: Remove useless parentheses in #if directives.
88880         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
88881         the deprecated MOUNTED symbol is no longer defined in mntent.h.
88882
88883 2001-09-22  Jim Meyering  <meyering@lucent.com>
88884
88885         * m4/gettext.m4: New file.  From gettext.
88886         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
88887         * m4/progtest.m4: Likewise
88888         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
88889         * m4/glibc21.m4: Likewise.
88890
88891         * m4/libintl.m4: Remove.  No longer used.
88892
88893 2001-09-22  Jim Meyering  <meyering@lucent.com>
88894
88895         * lib/localcharset.c: Update from latest gettext.
88896         * lib/config.charset: Likewise.
88897
88898 2001-09-20  Jim Meyering  <meyering@lucent.com>
88899
88900         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
88901         strtoimax.
88902         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
88903         strtoumax.
88904
88905 2001-09-20  Jim Meyering  <meyering@lucent.com>
88906
88907         * lib/xstrtol.c (strtoimax): Guard declaration with
88908         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
88909         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
88910         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
88911         (strtoumax): Likewise, for completeness (it wasn't necessary).
88912
88913 2001-09-17  Paul Eggert  <eggert@twinsun.com>
88914
88915         * lib/strtoimax.c (HAVE_LONG_LONG):
88916         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
88917         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
88918         to work around bug in IBM C compiler.
88919
88920 2001-09-17  Jim Meyering  <meyering@lucent.com>
88921
88922         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
88923         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
88924         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
88925         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
88926         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
88927         whenever the right hand side need not be expanded by the shell.
88928
88929 2001-09-16  Paul Eggert  <eggert@twinsun.com>
88930
88931         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
88932         library.  It's not correct, as some older glibcs are buggy.
88933         fnmatch wasn't fixed until glibc 2.2.
88934
88935         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
88936         special shell magic here.
88937
88938 2001-09-16  Jim Meyering  <meyering@lucent.com>
88939
88940         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
88941         * m4/jm-macros.m4: Require it.
88942
88943 2001-09-16  Jim Meyering  <meyering@lucent.com>
88944
88945         * lib/mkdir.c: New file.
88946
88947 2001-09-15  Jim Meyering  <meyering@lucent.com>
88948
88949         * m4/jm-macros.m4: Check for help2man.
88950
88951 2001-09-11  Jim Meyering  <meyering@lucent.com>
88952
88953         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
88954         The body, by Paul Eggert, was moved here from configure.in.
88955         * m4/jm-macros.m4: Require UTILS_HOST_OS.
88956
88957 2001-09-04  Paul Eggert  <eggert@twinsun.com>
88958
88959         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
88960         (jm_PREREQ): Use it.
88961
88962 2001-09-04  Paul Eggert  <eggert@twinsun.com>
88963
88964         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
88965         Use ssize_t, not int, to store result of readlink.
88966         Check for ssize_t overflow as well as size_t overflow,
88967         as POSIX says the result of readlink is implementation-defined
88968         when ssize_t overflows.
88969         Remove unnecessary cast to char*.
88970         Use free+malloc instead of realloc, as the storage doesn't need
88971         to be preserved and it's clearer and can be more efficient that way.
88972         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
88973         * lib/xreadlink.h (xreadlink): Update prototype.
88974
88975 2001-09-04  Paul Eggert  <eggert@twinsun.com>
88976
88977         * lib/xgetcwd.c: Revert some of the previous change; intead,
88978         fix the HAVE_GETCWD_NULL code to behave more like the
88979         !HAVE_GETCWD_NULL code used to.
88980
88981         Include "xalloc.h".
88982         (xgetcwd): Do not return NULL when memory is exhausted; instead,
88983         invoke xalloc_die.
88984
88985 2001-09-03  Paul Eggert  <eggert@twinsun.com>
88986
88987         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
88988         sys/param.h, as pathmax.h includes them.
88989
88990 2001-09-03  Paul Eggert  <eggert@twinsun.com>
88991
88992         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
88993         (jm_PREREQ_XGETCWD): New macro.
88994
88995         * m4/getcwd.m4: New file.
88996
88997 2001-09-03  Paul Eggert  <eggert@twinsun.com>
88998
88999         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
89000         like the HAVE_GETCWD_NULL code.
89001         Include pathmax.h if not HAVE_GETCWD.
89002         Do not include xalloc.h.
89003         (INITIAL_BUFFER_SIZE): New symbol.
89004         Do not use xmalloc / xrealloc, since the caller is responsible for
89005         handling errors.  Preserve errno around `free' during failure.
89006         Do not overrun buffer when using getwd.
89007
89008 2001-09-03  Paul Eggert  <eggert@twinsun.com>
89009
89010         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
89011         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
89012         getcwd (NULL, 0).
89013
89014 2001-09-03  Paul Eggert  <eggert@twinsun.com>
89015
89016         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
89017         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
89018         spotted by Jim Meyering.
89019
89020 2001-09-03  Jim Meyering  <meyering@lucent.com>
89021
89022         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
89023         failure.
89024
89025 2001-09-02  Jim Meyering  <meyering@lucent.com>
89026
89027         * lib/error.c: Update from GNU libc.
89028
89029 2001-09-01  Jim Meyering  <meyering@lucent.com>
89030
89031         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
89032         Used by df.
89033
89034 2001-09-01  Jim Meyering  <meyering@lucent.com>
89035
89036         * lib/xreadlink.c: New file.
89037         * lib/xreadlink.h: New file.
89038         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
89039         xreadlink.h.
89040
89041         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
89042         doesn't conflict with sparc Solaris 7's definition in
89043         /usr/include/sys/int_types.h.
89044
89045         * lib/exclude.c: Use `""', not `<>' to #include non-system header
89046         files.
89047         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
89048         and strncasecmp as r-values.  Unixware didn't have declarations.
89049
89050 2001-08-31  Paul Eggert  <eggert@twinsun.com>
89051
89052         * lib/xstrtol.h: Add copyright notice.
89053         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
89054         LONGINT_INVALID_SUFFIX_CHAR.
89055
89056 2001-08-31  Paul Eggert  <eggert@twinsun.com>
89057
89058         * lib/xstrtol.c (strtoimax): New decl.
89059
89060 2001-08-31  Paul Eggert  <eggert@twinsun.com>
89061
89062         * lib/xgetcwd.c: Don't include pathmax.h.
89063         Include stdlib.h and unistd.h if available.
89064         Include xalloc.h.
89065         (xmalloc, xstrdup, free): Remove decls.
89066         (xgetcwd): Don't assume sizes fit in unsigned.
89067         Check for overflow when computing sizes.
89068         Simplify reallocation code.
89069
89070 2001-08-31  Paul Eggert  <eggert@twinsun.com>
89071
89072         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
89073         a directory's st_size can have an arbitrary value, so the old
89074         usage could waste an arbitrary amount of memory.  All uses
89075         changed.
89076         * lib/savedir.h: Update prototype.
89077
89078 2001-08-31  Paul Eggert  <eggert@twinsun.com>
89079
89080         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
89081
89082         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
89083         old strtoimax.c.
89084
89085         Also, make the following further changes to make this file's
89086         configuration more similar to that of strtol.c:
89087         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
89088         (strtoumax, uintmax_t, strtoull, strtol): Remove.
89089         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
89090         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
89091         changed to signed values.
89092
89093         And make the following changes as well:
89094         Fix copyright notice, as 1999 was missing.
89095         (verify): New macro.
89096         (strtoimax): Check sizes at compile-time, not run-time.
89097         Prefer strtol to strtoll if both work.
89098         (main): Remove; it was not that useful and was a pain to maintain.
89099
89100         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
89101
89102 2001-08-31  Jim Meyering  <meyering@lucent.com>
89103
89104         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
89105         Use an initial, malloc'd, buffer of length 128 rather than
89106         a statically allocated one of length 1024.
89107
89108 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89109
89110         Simplify code, partly by assuming autoconf 2.52 semantics.
89111
89112         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
89113
89114         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
89115         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
89116         All uses removed.
89117         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
89118         Move AC_REQUIRE to next-to-top level, to avoid confusion.
89119         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
89120         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
89121         jm_AC_HEADER_INTTYPES_H.
89122         * m4/jm-macros.m4 (jm_MACROS): Likewise.
89123
89124         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
89125
89126         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
89127         Quote first arg of AC_DEFUN.
89128         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
89129         since they are needed to parse the include file even if we need
89130         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
89131         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
89132         but with opposite signedness.
89133
89134 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89135
89136         Merge 'exclude' changes from tar 1.13.22.
89137         This fixes one or two unlikely storage allocation overflow bugs,
89138         but doesn't change user-visible behavior otherwise.
89139
89140 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89141
89142         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
89143         (jm_PREREQ_EXCLUDE): New macro.
89144
89145 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89146
89147         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
89148         tm to be declared.
89149
89150 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89151
89152         * lib/hash.c: Remove '2001' from copyright notice.
89153
89154 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89155
89156         * lib/full-write.h: New file.
89157         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
89158         * lib/full-write.c: Correct credits, as cccp.c no longer
89159         exists and anyway it was so heavily changed from the old cccp
89160         code as to be unrecognizable.  Include full-write.h.
89161         (full_write): Return size_t, with short writes meaning failure.
89162         All callers changed.  This fixes a bug with large buffers
89163         on 64-bit hosts.
89164         * lib/utime.c: Include full-write.h.
89165
89166 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89167
89168         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
89169         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
89170         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
89171         Include if available.
89172         (<xalloc.h>): Include
89173         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
89174         (verify): New macro.  Use it to verify that EXCLUDE macros do not
89175         collide with FNM macros.
89176         (struct patopts): New struct.
89177         (struct exclude): Use it, as exclude patterns now come with options.
89178         (new_exclude): Support above changes.
89179         (new_exclude, add_exclude_file):
89180         Initial size must now be a power of two to simplify overflow checking.
89181         (free_exclude, fnmatch_no_wildcards): New function.
89182         (excluded_filename): No longer requires options arg, as the options
89183         are determined by add_exclude.  Now returns bool, not int.
89184         (excluded_filename, add_exclude):
89185         Add support for the fancy new exclusion options.
89186         (add_exclude, add_exclude_file): Now takes int options arg.
89187         Check for arithmetic overflow when computing sizes.
89188         (add_exclude_file): xrealloc might modify errno, so don't
89189         realloc until after errno might be used.
89190
89191         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
89192         New macros.
89193         (free_exclude): New decl.
89194         (add_exclude, add_exclude_file): Now takes int options arg.
89195         (excluded_filename): No longer requires options arg, as the options
89196         are determined by add_exclude.  Now returns bool, not int.
89197
89198 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89199
89200         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
89201
89202 2001-08-27  Jim Meyering  <meyering@lucent.com>
89203
89204         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
89205
89206         * lib/version-etc.c (N_): Remove definition.
89207         Revert most of last change.
89208         Instead, simply don't mark the `Copyright...' string for translation.
89209         Based on advice from Paul Eggert.
89210
89211         * lib/strtoxmax.c: Tweak comment.
89212
89213 2001-08-26  Jim Meyering  <meyering@lucent.com>
89214
89215         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
89216
89217         * m4/xstrtoimax.m4: New file.
89218         * m4/xstrtoumax.m4: Add comments explaining why we
89219         AC_REPLACE_FUNCS(strtol).
89220
89221 2001-08-26  Jim Meyering  <meyering@lucent.com>
89222
89223         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
89224         of copyright with `%s' so translators don't get an untranslated
89225         message in 2002.
89226         (COPYRIGHT_YEAR): Define.
89227         (version_etc): Use fprintf rather than fputs.
89228         Suggestion from Ulrich Drepper.
89229
89230         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
89231
89232         * lib/strtoll.c: New file, from GNU libc.
89233         * lib/xstrtoimax.c: New file.
89234
89235         * lib/xstrtol.h: Add xstrtoimax.
89236         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
89237         * lib/strtoimax.c: New file.  Likewise, but first define
89238         STRTOUXMAX_SIGNED.
89239
89240         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
89241         ...
89242         * lib/strtoxmax.c: ... then renamed to this.
89243
89244 2001-08-18  Paul Eggert  <eggert@twinsun.com>
89245
89246         * m4/inttypes.m4: Add AC_PREREQ(2.13).
89247         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
89248         (jm_AC_TYPE_INTMAX_T): New macro.
89249         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
89250
89251         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
89252
89253         * m4/longlong.m4: Renamed from ulonglong.m4.
89254         * m4/inttypes.m4: Renamed from inttypes_h.m4.
89255         * m4/uintmax_t.m4: Removed.
89256
89257 2001-08-13  Paul Eggert  <eggert@twinsun.com>
89258
89259         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
89260         Port to Solaris 8, where 'sed' requires a space after the 'r'
89261         command, and where sh dislikes "$/".  Clean up the spacing a bit.
89262         Redirect output to $tmp just once.
89263
89264 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
89265
89266         * lib/addext.c (<errno.h>): Include.
89267         (errno): Declare if not defined.
89268         (addext): Work correctly when pathconf returns -1 and leaves
89269         errno alone because there is no limit.  Also, work even if
89270         pathconf returns a value greater than SIZE_MAX.
89271
89272 2001-08-12  Jim Meyering  <meyering@lucent.com>
89273
89274         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
89275         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
89276         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
89277         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
89278         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
89279         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
89280         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
89281         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
89282         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
89283         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
89284         utime.m4, utimes.m4, xstrtoumax.m4:
89285         Quote the first argument in each use of AC_DEFUN.
89286
89287 2001-08-12  Jim Meyering  <meyering@lucent.com>
89288
89289         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
89290         Simply `return getcwd (NULL, 0);'.
89291         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
89292         Use 1300 as initial value for length, not PATH_MAX.
89293
89294         * lib/pathmax.h: Clean up cpp syntax.
89295
89296 2001-08-12  Jim Meyering  <meyering@lucent.com>
89297
89298         * lib/gettimeofday.c: New file.
89299         * lib/gtod.h: New file.
89300         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
89301
89302 2001-08-05  Jim Meyering  <meyering@lucent.com>
89303
89304         * m4/jm-macros.m4: Require autoconf-2.52.
89305
89306 2001-08-04  Jim Meyering  <meyering@lucent.com>
89307
89308         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
89309         stmt, to get in sync with glibc.
89310
89311 2001-08-03  Paul Eggert  <eggert@twinsun.com>
89312
89313         The following changes are from gettext 0.10.39 as maintained by
89314         Bruno Haible.
89315
89316         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
89317         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
89318         with inverted sense.  All uses changed.
89319
89320         * lib/mbswidth.c: Don't include <limits.h>.
89321         Include <stdlib.h> and <string.h> unconditionally.
89322         (iswcntrl, mbsinit, ISCNTRL): New macros.
89323         (mbsnwidth): Use K&R style function declarations.
89324         Don't bother checking for MB_LEN_MAX == 1, since the compiler
89325         can optimize it when MB_CUR_MAX == 1.
89326         The width of control characters is zero, not 1.
89327
89328 2001-08-03  Paul Eggert  <eggert@twinsun.com>
89329
89330         The following changes are from gettext 0.10.39 as maintained by
89331         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
89332
89333         * m4/codeset.m4: Upgrade to serial AM1.
89334         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
89335         all uses changed.  Quote first arg of AC_DEFUN.
89336         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
89337
89338         * m4/iconv.m4: Upgrade to serial AM2.
89339         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
89340         Add --with-libconv-prefix.
89341         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
89342         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
89343         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
89344         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
89345         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
89346
89347         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
89348         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
89349         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
89350         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
89351         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
89352         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
89353         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
89354         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
89355         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
89356
89357         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
89358         string.h any more.
89359
89360         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
89361         not the default value.
89362
89363         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
89364         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
89365         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
89366         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
89367         Also check for iswcntrl, used for wcwidth fallback.
89368         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
89369         to Autoconf 2.13.
89370
89371 2001-08-03  Jim Meyering  <meyering@lucent.com>
89372
89373         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
89374         as it was in the original.  Reported by Paul Eggert.
89375
89376 2001-07-16  Jim Meyering  <meyering@lucent.com>
89377
89378         * m4/gettimeofday.m4: New file.
89379         Prompted by a report from Bernhard Baehr.
89380
89381 2001-07-15  Jim Meyering  <meyering@lucent.com>
89382
89383         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
89384         stuff. Now it's in ../Makefile.cfg.
89385
89386 2001-07-15  Jim Meyering  <meyering@lucent.com>
89387
89388         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
89389         (BUILT_SOURCES): Add unlocked-io.h.
89390         (io_functions): Define.
89391         (unlocked-io.h): New rule.
89392         (DISTCLEANFILES): Add unlocked-io.h.
89393         (all-local): Depend on unlocked-io.h, to ensure it is created.
89394
89395         * lib/unlocked-io.hin: New file
89396
89397         * lib/regex.c: Update from glibc.
89398
89399 2001-07-05  Jim Meyering  <meyering@lucent.com>
89400
89401         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
89402         recommendation.
89403         (libfetish_a_SOURCES): Put all .h files here instead.
89404         Remove a thus-exposed (better checks in automake) duplicate and
89405         two unnecessary .h files.
89406
89407 2001-07-04  Jim Meyering  <meyering@lucent.com>
89408
89409         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
89410         that generates jm-glibc-io.m4 so that it doesn't trigger any make
89411         distcheck failure.
89412
89413 2001-07-02  Jim Meyering  <meyering@lucent.com>
89414
89415         The following changes were prompted by suggestions from Bruno Haible.
89416
89417         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
89418         is now generated.
89419         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
89420         definition of EXTRA_DIST.
89421         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
89422         ensure that the generated file is created/updated whenever the list
89423         of $(unlocked_functions) is changed.
89424         (jm-glibc-io.m4): New rule.
89425         (unlocked-io.h): New rule -- currently unused.
89426
89427 2001-06-24  Jim Meyering  <meyering@lucent.com>
89428
89429         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
89430         unmatched right bracket, rather than kludging it with an extra,
89431         falsely-matching quote in a comment.  Patch by Akim Demaille.
89432
89433 2001-06-11  Jim Meyering  <meyering@lucent.com>
89434
89435         * lib/regex.c: Update from GNU libc.
89436
89437 2001-05-27  Jim Meyering  <meyering@lucent.com>
89438
89439         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
89440         Check for ut_type in struct utmp.
89441
89442 2001-05-27  Jim Meyering  <meyering@lucent.com>
89443
89444         * lib/readutmp.h (UT_TYPE): Define.
89445
89446 2001-05-24  Jim Meyering  <meyering@lucent.com>
89447
89448         * lib/argmatch.c: Include "quote.h".
89449         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
89450         quote function.  Reported by Göran Uddeborg.
89451
89452 2001-05-22  Jim Meyering  <meyering@lucent.com>
89453
89454         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
89455         now that we use the package-supplied version unconditionally.
89456         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
89457
89458 2001-05-21  Jim Meyering  <meyering@lucent.com>
89459
89460         * m4/regex.m4: Change a couple backticks to single quotes to avoid
89461         shell syntax errors.
89462
89463 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
89464
89465         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
89466
89467 2001-05-20  Paul Eggert  <eggert@twinsun.com>
89468
89469         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
89470         Don't bother to check library strftime, since
89471         we'll be using our own my_strftime function anyway.
89472         Define my_strftime instead of strftime.
89473
89474 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
89475
89476         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
89477         which is not yet declared.
89478
89479 2001-05-15  Jim Meyering  <meyering@lucent.com>
89480
89481         * m4/regex.m4: Use proper quoting so brackets appear in the test
89482         program.
89483         Reported by, and with help from, Bruno Haible.
89484
89485 2001-05-13  Jim Meyering  <meyering@lucent.com>
89486
89487         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
89488         undefined.
89489
89490 2001-05-11  Paul Eggert  <eggert@twinsun.com>
89491
89492         dirname code cleanup.  base_name now behaves more compatibly
89493         with POSIX basename when given file names that have trailing
89494         slashes, and similarly for dir_name.  Add new primitives
89495         base_len and dir_len.  Put the directory-name-related decls
89496         into dirname.h.
89497
89498         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
89499         * lib/backupfile.c (base_name): Likewise.
89500         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
89501         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
89502         * lib/makepath.c (strip_trailing_slashes): Likewise.
89503         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
89504         ISSLASH): Likewise.
89505         * lib/rename.c (strip_trailing_slashes): Likewise.
89506         * lib/same.c (base_name): Likewise.
89507         * lib/stripslash.c (ISSLASH): Likewise.
89508
89509         * lib/addext.c: Include <dirname.h> after size_t is defined.
89510         * lib/backupfile.c: Likewise.
89511
89512         * lib/addext.c (addext): Use base_len to trim redundant
89513         trailing slashes instead of doing it ourselves.
89514         But do not trim the last slash if it is not redundant.
89515
89516         * lib/backupfile.c (find_backup_file_name,
89517         max_backup_version): Use base_len instead of rolling it ourselves.
89518         Handle the case of "" and (on DOS) "C:" correctly.
89519
89520         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
89521         needed. Include <string.h>, <dirname.h>.
89522         (base_name): Allow file names ending in slashes, other than names
89523         that are all slashes.  In this case, return the basename followed
89524         by the slashes.  This is more general, and can be used in places
89525         where the original base_name purposely had an assertion failure.
89526         (base_len): New function.
89527
89528         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
89529         Do not include <assert.h>; no longer needed.
89530         Include xalloc.h.
89531         (memrchr): Remove decl.
89532         (dir_name_r): Remove.
89533         (dir_len): Renamed from dirlen.  All callers changed.
89534         Rewrite in terms of base_name, for simplicity and consistency.
89535         (dir_name): Never return NULL.  All callers changed.
89536         Do not include <stdlib.h> in test program; no longer needed.
89537         return 0; is fine for test program.
89538
89539         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
89540         New macros.
89541         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
89542
89543         * lib/path-concat.c (path_concat): Use base_len to compute
89544         base length, not strlen; this means we cannot rely on memcpy
89545         to null-terminate.
89546
89547         * lib/same.c (STREQ): Remove.
89548         (same_name): Handle the case where the basename ends in trailing '/'.
89549
89550         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
89551         a slash was stripped.  Do not strip the last slash after a
89552         file system prefix.
89553
89554 2001-05-11  Paul Eggert  <eggert@twinsun.com>
89555
89556         * lib/Makefile.am (libfetish_a_SOURCES):
89557         Add strftime.c, since we now compile it on all hosts.
89558
89559         * lib/strftime.c (my_strftime):
89560         Define to nstrftime if emacs, but only if my_strftime is not defined.
89561         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
89562         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
89563         Add one more extra argument: a nanoseconds value.
89564         All uses changed.
89565         (ns): New macro.
89566         (my_strftime function): Add %N format.
89567         (emacs_strftimeu): Renamed from emacs_strftime,
89568         with extra ut argument.
89569
89570 2001-05-09  Paul Eggert  <eggert@twinsun.com>
89571
89572         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
89573
89574 2001-04-21  Jim Meyering  <meyering@lucent.com>
89575
89576         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
89577         doesn't interfere.
89578
89579 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
89580
89581         * m4/ftruncate.m4: Check for chsize.
89582         Link with ftruncate.o unconditionally if ftruncate is missing.
89583         This was required when cross-compiling to i586-mingw32msvc.
89584
89585 2001-04-08  Jim Meyering  <meyering@lucent.com>
89586
89587         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
89588         recomputed; that's necessary when the offset spans a DST transition.
89589         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
89590
89591 2001-04-02  Jim Meyering  <meyering@lucent.com>
89592
89593         * lib/regex.h, regex.c: Update from GNU libc.
89594
89595 2001-03-24  Jim Meyering  <meyering@lucent.com>
89596
89597         * m4/jm-macros.m4: Require autoconf-2.49d.
89598
89599 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
89600
89601         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
89602
89603 2001-03-19  Paul Eggert  <eggert@twinsun.com>
89604
89605         * lib/version-etc.c (version_etc_copyright): Update to 2001.
89606
89607 2001-03-17  Jim Meyering  <meyering@lucent.com>
89608
89609         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
89610         now that the version in autoconf is equivalent.
89611         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
89612
89613         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
89614         Suggestion from Akim Demaille.
89615
89616         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
89617         (jm_PREREQ_TEMPNAME): New function.
89618
89619 2001-03-16  Paul Eggert  <eggert@twinsun.com>
89620
89621         * lib/tempname.c (uint64_t): Define to uintmax_t if
89622         not defined, and if UINT64_MAX is not defined.
89623         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
89624         Reported by John David Anglin.
89625
89626 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
89627
89628         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
89629         resolve alias if codeset is empty.
89630         * lib/config.charset (BeOS): Use wildcard syntax.
89631
89632 2001-03-13  Jim Meyering  <meyering@lucent.com>
89633
89634         * lib/path-concat.c (path_concat)
89635         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
89636         concatenating e.g., `C:' and `foo'.
89637         From Bruno Haible.
89638
89639 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
89640
89641         * lib/localcharset.c (locale_charset): Don't use
89642         setlocale(LC_CTYPE,NULL). Don't return NULL.
89643         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
89644
89645 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
89646
89647         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
89648         support for DOS/DJGPP.
89649
89650 2001-03-01  Paul Eggert  <eggert@twinsun.com>
89651
89652         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
89653         lacks mkstemp.  Compile our own tempname.c if we compile our own
89654         mkstemp.c, as mkstemp relies on tempname.
89655
89656 2001-03-01  Jim Meyering  <meyering@lucent.com>
89657
89658         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
89659         AH_VERBATIM really does output its argument verbatim.
89660
89661 2001-02-28  Paul Eggert  <eggert@twinsun.com>
89662
89663         * lib/Makefile.am (libfetish_a_SOURCES):
89664         Add dup-safer.c, fopen-safer.c.
89665         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
89666
89667         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
89668         * lib/unistd-safer.h: New files.
89669
89670 2001-02-25  Paul Eggert  <eggert@twinsun.com>
89671
89672         The mkstemp replacement is taken from glibc 2.2.2, with some
89673         portability fixes for use outside glibc, as follows:
89674
89675         * lib/tempname.c (struct_stat64): New macro.
89676         (direxists, __gen_tempname): Use it.
89677         This avoids a portability problem with Solaris 8.
89678
89679         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
89680         (<stddef.h>, <stdint.h>, <string.h>):
89681         Include only if STDC_HEADERS || _LIBC.
89682         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
89683         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
89684         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
89685         (__set_errno): Define this macro if <errno.h> doesn't.
89686         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
89687         Define these macros if <stdio.h> doesn't.
89688         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
89689         Define these macros if <sys/stat.h>
89690         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
89691         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
89692         __xstat64): Define if not _LIBC.
89693         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
89694         (__gen_tempname): Invoke gettimeofday only if
89695         HAVE_GETTIMEOFDAY || _LIBC;
89696         otherwise, fall back on plain "time".
89697         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
89698
89699         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
89700
89701         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
89702
89703 2001-02-18  Paul Eggert  <eggert@twinsun.com>
89704
89705         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
89706
89707 2001-02-17  Paul Eggert  <eggert@twinsun.com>
89708
89709         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
89710         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
89711         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
89712         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
89713
89714 2001-02-17  Paul Eggert  <eggert@twinsun.com>
89715
89716         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
89717         Remove workaround macros for hosts that have mbrtowc but not
89718         mbstate_t, as we now insist on proper declarations for both
89719         before using mbrtowc.
89720
89721 2001-02-17  Jim Meyering  <meyering@lucent.com>
89722
89723         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
89724         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
89725         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
89726         UnixWare 7.1.1.
89727
89728         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
89729         rather than AC_CACHE_VAL.
89730
89731 2001-02-17  Jim Meyering  <meyering@lucent.com>
89732
89733         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
89734         around included file name.
89735
89736         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
89737
89738         * lib/strftime.c: Update from GNU libc (the only changes were to
89739         comments).
89740
89741 2001-02-17  Jim Meyering  <meyering@lucent.com>
89742
89743         * lib/regex.c: Update from libc.
89744
89745 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
89746
89747         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
89748         clash.
89749
89750 2001-02-16  Paul Eggert  <eggert@twinsun.com>
89751
89752         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
89753         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
89754         Reported by Mark Hounschell via Paul Eggert.
89755
89756 2001-02-07  Jim Meyering  <meyering@lucent.com>
89757
89758         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
89759
89760 2001-02-05  Jim Meyering  <meyering@lucent.com>
89761
89762         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
89763         it includes the patch required for `large file' support with at least
89764         HP-UX's 10.20 /bin/cc.
89765
89766 2001-02-03  Jim Meyering  <meyering@lucent.com>
89767
89768         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
89769         AS_IF, now that it works once again (mysteriously).
89770         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
89771
89772 2001-01-30  Jim Meyering  <meyering@lucent.com>
89773
89774         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
89775         * m4/chown.m4: Rename conftestchown to conftest.chown.
89776         * m4/rename.m4: s/conftestdir/conftest.d1/ and
89777         s/conftestdir2/conftest.d2/.
89778         * m4/utimes.m4: s/conftestdata/conftest.data/
89779         Inspired by Pavel Roskin's change in autoconf.
89780
89781 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
89782
89783         * lib/config.charset: Update for FreeBSD 4.2.
89784
89785 2001-01-27  Jim Meyering  <meyering@lucent.com>
89786
89787         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
89788         a use of AS_IF.
89789         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
89790
89791 2001-01-26  Jim Meyering  <meyering@lucent.com>
89792
89793         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
89794         quotearg.c includes it.
89795
89796 2001-01-26  Jim Meyering  <meyering@lucent.com>
89797
89798         * lib/quotearg.c: Include stddef.h.
89799         * lib/quote.c: Include stddef.h.
89800         Reported by Axel Kittenberger.
89801
89802         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
89803         line in double quotes so that it evokes a better diagnostic.
89804         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
89805         Reported by Axel Kittenberger.
89806
89807 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
89808
89809         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
89810         as if it was a `charset'.
89811
89812 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
89813
89814         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
89815         has const.
89816
89817 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
89818
89819         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
89820         to avoid a warning.  Add back 'const' to inptr.
89821
89822 2001-01-20  Jim Meyering  <meyering@lucent.com>
89823
89824         Be sure that headers are checked before used in code compiled
89825         for the type checks.
89826         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
89827         In place of that, invoke jm_CHECK_ALL_TYPES.
89828         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
89829         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
89830         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
89831         The check for ssize_t was mistakenly run before the test for unistd.h.
89832
89833         The configure-time check for stdbool.h was missing.
89834         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
89835         (jm_PREREQ_HASH): New function.
89836
89837 2001-01-17  Jim Meyering  <meyering@lucent.com>
89838
89839         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
89840         for autoconf-2.49c.
89841         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
89842
89843 2001-01-16  Jim Meyering  <meyering@lucent.com>
89844
89845         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
89846         From Bruno Haible.
89847
89848 2001-01-14  Jim Meyering  <meyering@lucent.com>
89849
89850         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
89851         foo and bar.  Create conftestdir/ in the script, not in the C code.
89852         Remove directories in the script, not in the C code.
89853         Remove conftestdir{,2} before trying to create the directory.
89854         Make the entire configure script fail if the mkdir fails.
89855
89856 2001-01-14  Jim Meyering  <meyering@lucent.com>
89857
89858         * lib/rename.c: New file.  From Volker Borchert.
89859         Include stdlib.h, string.h or strings.h, and xalloc.h.
89860         Use strip_trailing_slashes rather than open-coding it.
89861
89862 2001-01-03  Paul Eggert  <eggert@twinsun.com>
89863
89864         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
89865
89866 2001-01-03  Jim Meyering  <meyering@lucent.com>
89867
89868         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
89869         of local `inptr' to avoid warning with some system declarations of
89870         iconv.
89871
89872 2001-01-02  Volker Borchert  <bt@teknon.de>
89873
89874         * m4/rename.m4: New file.
89875         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
89876
89877 2001-01-01  Jim Meyering  <meyering@lucent.com>
89878
89879         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
89880         even on systems with utmpx.h.  It's necessary for the declaration of
89881         utmp's ut_user member.  Reported by Andreas Jaeger.
89882
89883         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
89884         available. They are required for the declarations of getgrgid and
89885         getpwuid resp.
89886         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
89887         Reported by Andreas Jaeger.
89888
89889 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
89890
89891         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
89892         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
89893         so `make install' also works in VPATH builds.
89894
89895 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
89896
89897         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
89898         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
89899         can be used in subdirectories.
89900
89901 2000-12-29  Paul Eggert  <eggert@twinsun.com>
89902
89903         * lib/modechange.c: Do not assume that mode_t uses the
89904         traditional octal encoding.  E.g. "chmod 1 FOO" should set
89905         the other-execute bit of FOO even if S_IXOTH != 1.
89906
89907         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
89908         WOTH, XOTH, ALLM): New macros.
89909         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
89910          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
89911         Use them.
89912         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
89913         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
89914         (mode_compile):
89915         No need to use uintmax_t; unsigned long is long enough.
89916         Don't bother to get suffix since we don't use it.
89917
89918 2000-12-26  Jim Meyering  <meyering@lucent.com>
89919
89920         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
89921         better with autoheader.
89922
89923 2000-12-24  Jim Meyering  <meyering@lucent.com>
89924
89925         * lib/hash.c (is_prime): Return explicit boolean values.
89926         (hash_get_first): Return NULL to appease Irix5.6's 89.
89927         Reported by Nelson Beebe.
89928
89929 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
89930
89931         * lib/localcharset.c (locale_charset): Add support for Win32.
89932
89933 2000-12-18  Paul Eggert  <eggert@twinsun.com>
89934
89935         * lib/physmem.h, lib/physmem.c: New files.
89936
89937         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
89938         (noinst_HEADERS): Add physmem.h.
89939
89940         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
89941         't' for compatibility with Solaris 8 sort.
89942
89943 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
89944
89945         * lib/config.charset: Add support for BeOS.
89946
89947 2000-12-17  Jim Meyering  <meyering@lucent.com>
89948
89949         * m4/dos.m4 (jm_AC_DOS): New file and macro.
89950         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
89951
89952 2000-12-16  Jim Meyering  <meyering@lucent.com>
89953
89954         This bug had a serious impact on chown: `chown N:M FILE' (for integer
89955         N and M) would have treated it like `chown N:N FILE'.
89956
89957         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
89958
89959 2000-12-16  Jim Meyering  <meyering@lucent.com>
89960
89961         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
89962         SHELLS_FILE to a file name that's useful on djgpp systems.
89963         Include stdlib.h.
89964         (ADDITIONAL_DEFAULT_SHELLS): Define.
89965         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
89966         Based mostly on a patch from Prashant TR.
89967
89968 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
89969
89970         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
89971         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
89972         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
89973
89974 2000-12-08  Andreas Schwab  <schwab@suse.de>
89975
89976         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
89977         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
89978
89979 2000-12-07  Jim Meyering  <meyering@lucent.com>
89980
89981         * lib/stripslash.c (ISSLASH): Define.
89982         (strip_trailing_slashes): Use ISSLASH rather than comparing against
89983         `/'.
89984         From Prashant TR.
89985
89986         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
89987         (dir_name_r): Declare this function as static.
89988         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
89989         manifest itself on a name containing a mix of slashes and
89990         backslashes.
89991         Make this function work with names starting with a DOS-style
89992         drive letter and colon prefix.
89993         (dir_name): Append `.' if necessary.
89994         Based mostly on patches from Prashant TR and Eli Zaretskii.
89995
89996         * lib/dirname.h (dir_name_r): Remove prototype.
89997
89998 2000-12-06  Paul Eggert  <eggert@twinsun.com>
89999
90000         * m4/off_t-format.m4: Remove this file.
90001         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
90002
90003 2000-12-06  Jim Meyering  <meyering@lucent.com>
90004
90005         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
90006         replacement strtoull, we may well need the replacement strtoul, too.
90007         Check for declarations of strtoul and strtoull.
90008         Check for strtol.  Mainly as a cue to cause automake to include
90009         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
90010         Check for limits.h -- strtol.c needs it.
90011
90012 2000-12-05  Jim Meyering  <meyering@lucent.com>
90013
90014         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
90015
90016 2000-12-04  Jim Meyering  <meyering@lucent.com>
90017
90018         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
90019         Also include memory.h, stdlib.h, unistd.h if appropriate.
90020         Reported by Andreas Jaeger (conflicting declaration of malloc).
90021
90022 2000-12-02  Jim Meyering  <meyering@lucent.com>
90023
90024         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
90025         * m4/jm-macros.m4 (jm_MACROS): require it.
90026
90027 2000-12-02  Jim Meyering  <meyering@lucent.com>
90028
90029         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
90030
90031 2000-12-01  Paul Eggert  <eggert@twinsun.com>
90032
90033         * lib/memrchr.c: Include <config.h> before any system include file.
90034
90035 2000-11-30  Jim Meyering  <meyering@lucent.com>
90036
90037         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
90038
90039 2000-11-30  Jim Meyering  <meyering@lucent.com>
90040
90041         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
90042
90043 2000-11-29  Paul Eggert  <eggert@twinsun.com>
90044
90045         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
90046
90047 2000-11-26  Jim Meyering  <meyering@lucent.com>
90048
90049         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
90050
90051 2000-11-22  Paul Eggert  <eggert@twinsun.com>
90052
90053         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
90054         size of (size_t) -1; it's not portable.
90055
90056 2000-11-17  Jim Meyering  <meyering@lucent.com>
90057
90058         * lib/strstr.c: Update from GNU libc.
90059
90060 2000-11-17  Akim Demaille  <akim@epita.fr>
90061
90062         * lib/obstack.h: Formatting changes.
90063         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
90064         prevent type checking.
90065         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
90066         cast the value to (void *): assigning a `foo *' to a `void *'
90067         variable is valid.
90068         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
90069
90070 2000-11-16  Jim Meyering  <meyering@lucent.com>
90071
90072         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
90073
90074 2000-11-11  Jim Meyering  <meyering@lucent.com>
90075
90076         * lib/error.c: Add a couple #includes, merging from GNU libc version.
90077
90078 2000-11-10  Jim Meyering  <meyering@lucent.com>
90079
90080         * lib/obstack.h: Update from GNU libc.
90081         * lib/obstack.c: Likewise.
90082
90083 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
90084
90085         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
90086
90087 2000-11-06  Paul Eggert  <eggert@twinsun.com>
90088
90089         * lib/getusershell.c (setusershell): Use rewind rather than
90090         fseek/fseeko, to avoid configuration hassles with fseeko.
90091         Don't bother opening SHELLS_FILE if shellstream is NULL;
90092         it's not necessary.
90093
90094 2000-11-05  Jim Meyering  <meyering@lucent.com>
90095
90096         * lib/makepath.h (make_dir): Declare.
90097         * lib/makepath.c (make_dir): Remove `static' attribute.
90098         Tweak a comment.
90099
90100 2000-11-04  Jim Meyering  <meyering@lucent.com>
90101
90102         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
90103
90104 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
90105
90106         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
90107         last one in a bucket, advance to the next bucket.
90108
90109 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
90110
90111         * lib/fnmatch.c: Do not comment out all the code if we are using
90112         the GNU C library, because in some cases we are replacing buggy
90113         code in the GNU C library itself.
90114
90115 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
90116
90117         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
90118         (regex_compile): Catch bogus \(\1\).
90119
90120 2000-10-30  Paul Eggert  <eggert@twinsun.com>
90121
90122         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
90123         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
90124         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
90125
90126 2000-10-30  Paul Eggert  <eggert@twinsun.com>
90127
90128         * lib/error.h, getline.h, modechange.h:
90129         Remove "2000" from Copyright line, as the file hasn't been
90130         changed this year other than in the copyright notice.
90131
90132         * lib/xalloc.h: Add "2000" to Copyright line, as this file
90133         was changed this year.
90134
90135 2000-10-29  Jim Meyering  <meyering@lucent.com>
90136
90137         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
90138         renaming.
90139         * m4/ls-mntd-fs.m4: Likewise
90140
90141 2000-10-29  Jim Meyering  <meyering@lucent.com>
90142
90143         * lib/xstat.in: Fix grammar in comment.
90144
90145 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
90146
90147         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
90148         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
90149         doesn't define __restrict_arr.
90150
90151 2000-10-28  Jim Meyering  <meyering@lucent.com>
90152
90153         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
90154         (jm_PREREQ_MEMCHR): New function.
90155
90156 2000-10-28  Jim Meyering  <meyering@lucent.com>
90157
90158         * lib/memchr.c: Update from libc.
90159         Adjust for portability:
90160         [HAVE_STDLIB_H]: Include stdlib.h.
90161         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
90162         Undef __memchr, too.
90163         [!weak_alias]: Define __memchr to memchr.
90164
90165         * lib/regex.c: Update from libc.
90166         * lib/regex.h: Likewise.
90167         * lib/getopt1.c: Likewise.
90168         * lib/memcmp.c: Likewise.
90169
90170         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
90171         Avoid using fseek, when possible -- it's broken by design.
90172         Patch by Ulrich Drepper.
90173
90174 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
90175
90176         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
90177         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
90178         Giving in to popular pressure to shut up the compiler with casts.
90179
90180 2000-10-26  Jim Meyering  <meyering@lucent.com>
90181
90182         * lib/strftime.c: Update from libc.
90183
90184 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
90185
90186         * regex.c: More `unsigned char' -> `re_char' changes.
90187         Also change several `int' into `re_wchar_t'.
90188         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
90189         (PUSH_FAILURE_POINTER): Don't cast any more.
90190         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
90191         We want GCC to complain, since this piece of code makes
90192         re_match non-reentrant, which *should* be fixed.
90193         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
90194         (EXTEND_BUFFER): Use RETALLOC.
90195         (SET_LIST_BIT): Don't cast.
90196         (re_wchar_t): New type.
90197         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
90198         that those two functions will always properly return.
90199         (IMMEDIATE_QUIT_CHECK): Cast to void.
90200         (analyse_first): Use recursion rather than an explicit stack.
90201         (re_compile_fastmap): Can't fail anymore.
90202         (re_search_2): Don't check re_compile_fastmap for failure.
90203         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
90204         Now also sets the new value (passed in a new argument).
90205         (re_match_2_internal): Use it.
90206         Also, use a new var `reg' of type size_t when looping through regs
90207         rather than reuse the inappropriate `mcnt'.
90208
90209 2000-10-25  Jim Meyering  <meyering@lucent.com>
90210
90211         * lib/obstack.c: Update from libc.
90212
90213 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
90214
90215         * regex.c (regex_compile): Change the way of handling a range from
90216         a char less than 256 to a char not less than 256.
90217
90218 2000-10-24  Andrew Innes  <andrewi@gnu.org>
90219
90220         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
90221         NT-Emacs only.
90222         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
90223         so that re_search functions only quit when callers expect them to.
90224
90225 2000-10-23  Jim Meyering  <meyering@lucent.com>
90226
90227         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
90228         wrong.  That set_locale call must not have any side effects.
90229         From Paul Eggert.
90230
90231 2000-10-22  Jim Meyering  <meyering@lucent.com>
90232
90233         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
90234         [CYCLIC]: Remove now-unused definition.
90235
90236         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
90237         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
90238         Suggestion from Ulrich Drepper.
90239
90240 2000-10-21  Jim Meyering  <meyering@lucent.com>
90241
90242         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
90243         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
90244         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
90245
90246 2000-10-21  Jim Meyering  <meyering@lucent.com>
90247
90248         * lib/dirname.c (memrchr): Declare if necessary.
90249         (dir_name): Remove the restriction that there be no
90250         trailing slashes.  Now, this code skips past them, effectively
90251         ignoring them.
90252         [TEST_DIRNAME] (main): New unit tests.
90253
90254         * lib/memrchr.c: New file from GNU libc.
90255         Undef __memrchr, too.
90256         [!weak_alias]: Define __memrchr to memrchr.
90257         Guard weak_alias use with `#ifdef weak_alias'.
90258
90259 2000-10-21  Jim Meyering  <meyering@lucent.com>
90260
90261         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
90262         (dir_name): Use dir_name_r.
90263         * lib/dirname.h (dir_name_r): Declare it.
90264
90265 2000-10-17  Jim Meyering  <meyering@lucent.com>
90266
90267         * lib/quote.h (PARAMS): Define and use.
90268         Reported by Akim Demaille.
90269
90270         * lib/getopt.c: Update from libc.
90271
90272 2000-10-16  Jim Meyering  <meyering@lucent.com>
90273
90274         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
90275         setlocale.
90276         From Jan Fedak.
90277
90278 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
90279
90280         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
90281
90282 2000-09-25  Jim Meyering  <meyering@lucent.com>
90283
90284         * lib/md5.h (rol): Define (from GnuPG).
90285
90286         * lib/sha.c: Give credit (GnuPG) where due.
90287         (M): Use rol rather than open-coding it.
90288         Add a FIXME comment.
90289
90290 2000-09-21  Jim Meyering  <meyering@lucent.com>
90291
90292         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
90293         Reported by Michael Stone.
90294
90295 2000-09-20  Jim Meyering  <meyering@lucent.com>
90296
90297         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
90298         (noinst_HEADERS): Add sha.h.
90299         Based on code from Scott G. Miller and from GnuPG.
90300
90301 2000-09-18  Jim Meyering  <meyering@lucent.com>
90302
90303         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
90304         LIBS. Otherwise, everyone ends up linking with -lelf for some
90305         configurations.
90306         Reported by Mike Stone.
90307
90308 2000-09-15  Jim Meyering  <meyering@lucent.com>
90309
90310         * lib/regex.c: Update from libc.
90311
90312 2000-09-10  Jim Meyering  <meyering@lucent.com>
90313
90314         * lib/getopt.c (_getopt_internal): Update from glibc.
90315
90316 2000-09-09  Jim Meyering  <meyering@lucent.com>
90317
90318         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
90319         think it should be used as a general replacement for isascii.
90320         * lib/fnmatch.c: Likewise.
90321         * lib/mbswidth.c: Likewise
90322         * lib/regex.c: Likewise.
90323
90324         Don't use atoi.
90325         * lib/userspec.c: Include sys/param.h and limits.h.
90326         Include xstrtol.h.
90327         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
90328         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
90329         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
90330         UID, GID.  Check range.
90331
90332 2000-09-06  Jim Meyering  <meyering@lucent.com>
90333
90334         * lib/getopt.c (_getopt_internal): Update from glibc.
90335
90336 2000-08-30  Jim Meyering  <meyering@lucent.com>
90337
90338         * lib/strftime.c: Merge in changes from GNU libc.
90339
90340 2000-08-26  Jim Meyering  <meyering@lucent.com>
90341
90342         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
90343         * m4/fpending.m4: New file.
90344
90345 2000-08-26  Jim Meyering  <meyering@lucent.com>
90346
90347         * lib/closeout.c: Include "__fpending.h".
90348         (close_stdout_status): Return right away if there's nothing to flush.
90349
90350         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
90351         * lib/__fpending.c: New file.
90352         * lib/__fpending.h: New file.
90353
90354 2000-08-20  Jim Meyering  <meyering@lucent.com>
90355
90356         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
90357         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
90358         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
90359
90360 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
90361
90362         Improve fileutils installation on systems where running
90363         programs (like install) can't be unlinked.
90364         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
90365         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
90366
90367 2000-08-07  Paul Eggert  <eggert@twinsun.com>
90368
90369         Standardize on "memory exhausted" instead of "Memory exhausted"
90370         or "virtual memory exhausted".
90371         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
90372         "virtual memory exhausted".
90373         * lib/same.c (same_name): Invoke xalloc_die instead of printing
90374         our own message.
90375         * lib/userspec.c (parse_user_spec): Likewise.
90376         * lib/bumpalloc.h: comment fix
90377         * lib/same.c, userspec.c: Include xalloc.h.
90378
90379         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
90380         not char *const and pointing to a constant array.
90381         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
90382         (xrealloc): Comment fix.
90383
90384         * lib/userspec.c (parse_user_spec):
90385         Don't translate a message until just before returning,
90386         to avoid unnecessary translation.
90387
90388 2000-08-07  Jim Meyering  <meyering@lucent.com>
90389
90390         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
90391         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
90392         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
90393         getgroups.c, gethostname.c, getopt.h, group-member.c,
90394         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
90395         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
90396         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
90397         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
90398         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
90399         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
90400         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
90401         yesno.c: Back out Copyright date changes for each file with no change
90402         this year.  This eases coordination with other programs using the same
90403         source code modules.  From Paul Eggert.
90404
90405 2000-08-06  Paul Eggert  <eggert@twinsun.com>
90406
90407         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
90408         not char, for compatibility with glibc 2.1.3 strftime.c.
90409
90410 2000-08-03  Greg McGary  <greg@mcgary.org>
90411
90412         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
90413         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
90414         (EXTEND_BUFFER): Use them.
90415
90416 2000-08-01  Jim Meyering  <meyering@lucent.com>
90417
90418         * lib/dirname.c (ISSLASH): Define.
90419         (BACKSLASH_IS_PATH_SEPARATOR): Define.
90420         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
90421         both `\' and `/' may be use as path separators.
90422         Based on a patch from Prashant TR.
90423
90424 2000-07-31  Paul Eggert  <eggert@twinsun.com>
90425
90426         * lib/quotearg.c (quotearg_n_options): Don't make the initial
90427         slot vector a constant, since it might get modified.
90428
90429 2000-07-31  Jim Meyering  <meyering@lucent.com>
90430
90431         * lib/xmalloc.c: Use `virtual memory exhausted', not
90432         `Memory exhausted'.
90433         * lib/obstack.c (print_and_abort): Likewise.
90434
90435 2000-07-30  Paul Eggert  <eggert@twinsun.com>
90436
90437         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
90438         buffer, so that the caller can always quote one small
90439         component of a "memory exhausted" message in slot 0.
90440         From a suggestion by Jim Meyering.
90441
90442 2000-07-30  Jim Meyering  <meyering@lucent.com>
90443
90444         * lib/makepath.c (make_path): Quote the other instance, too.
90445
90446         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
90447         (STATIC_BUF_SIZE): Define.
90448         (quotearg_n_options): Use only statically allocated storage when
90449         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
90450         than STATIC_BUF_SIZE.
90451
90452 2000-07-29  Jim Meyering  <meyering@lucent.com>
90453
90454         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
90455         * lib/dirname.c (dir_name): Likewise.
90456
90457         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
90458         `/'.
90459
90460         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
90461         (dir_name): Assert that there are no trailing slashes.
90462
90463 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
90464
90465         * lib/mbswidth.h (mbswidth): Add a flags argument.
90466         (mbswidth): New declaration.
90467         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
90468         * lib/mbswidth.c (mbswidth): Add a flags argument.
90469         (mbsnwidth): New function.
90470
90471 2000-07-24  Jim Meyering  <meyering@lucent.com>
90472
90473         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
90474
90475 2000-07-23  Paul Eggert  <eggert@twinsun.com>
90476
90477         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
90478
90479 2000-07-23  Paul Eggert  <eggert@twinsun.com>
90480
90481         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
90482         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
90483         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
90484         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
90485         invoke multibyte primitives.
90486
90487 2000-07-23  Paul Eggert  <eggert@twinsun.com>
90488
90489         * lib/quotearg.c:
90490         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
90491         so that mbstate_t is always defined.
90492
90493         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
90494         be 1 in at least one GCC installation, and this configuration
90495         error is likely to be common.  Ignoring MB_LEN_MAX hurts
90496         performance on hosts that have mbrtowc but have only unibyte
90497         locales, but I assume these hosts are rare.
90498
90499 2000-07-23  Paul Eggert  <eggert@twinsun.com>
90500
90501         * lib/mbswidth.c (_XOPEN_SOURCE):
90502         Don't define; this causes problems on Solaris 7.
90503         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
90504
90505 2000-07-23  Jim Meyering  <meyering@lucent.com>
90506
90507         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
90508         too: getgrgid, getpwuid, getuid.
90509
90510 2000-07-23  Jim Meyering  <meyering@lucent.com>
90511
90512         * lib/basename.c (base_name): Add an assertion.
90513
90514 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
90515
90516         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
90517         shadow its mbsinit function.
90518
90519 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
90520
90521         * lib/mbswidth.h: New file.
90522         * lib/mbswidth.c: New file.
90523         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
90524         (noinst_HEADERS): Add mbswidth.h.
90525
90526 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
90527
90528         * lib/config.charset: Add support for FreeBSD. Improve support for
90529         HP-UX and IRIX 6.
90530
90531 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
90532
90533         * m4/mbswidth.m4: New file.
90534         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
90535
90536 2000-07-15  Jim Meyering  <meyering@lucent.com>
90537
90538         * lib/makepath.c: Include quote.h.
90539         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
90540         corresponding argument in a `quote (...)' call.
90541         Give better diagnostics.
90542
90543         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
90544         (noinst_HEADERS): Add quote.h.
90545
90546         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
90547         from tar's src/misc.c.
90548         * lib/quote.h: New file.  Prototypes for same.
90549
90550 2000-07-14  Paul Eggert  <eggert@twinsun.com>
90551
90552         From a suggestion by Bruno Haible.
90553         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
90554         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
90555         to decide whether to define the BeOS workaround macro;
90556         this adjusts to the change to AC_MBSTATE_T.
90557
90558 2000-07-14  Jim Meyering  <meyering@lucent.com>
90559
90560         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
90561         jm_AC_TYPE_UINTMAX_T.
90562
90563 2000-07-13  Paul Eggert  <eggert@twinsun.com>
90564
90565         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
90566
90567         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
90568         quotearg_buffer_restyled): Add support for
90569         clocale_quoting_style.  Undo previous change to
90570         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
90571         and "{RIGHT QUOTATION MARK}" msgids.
90572
90573 2000-07-10  Paul Eggert  <eggert@twinsun.com>
90574
90575         From a suggestion by Bruno Haible.
90576         * m4/mbstate_t.m4 (AC_MBSTATE_T):
90577         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
90578         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
90579         and mbstate_t, to a single-part test that simply defines mbstate_t.
90580         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
90581         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
90582
90583 2000-07-10  Jim Meyering  <meyering@lucent.com>
90584
90585         * m4/strerror_r.m4: Mirror the correction made in autoconf.
90586
90587         * m4/gnu-source.m4: Output to confdefs.h directly.
90588         Suggestion from Akim Demaille.
90589
90590 2000-07-09  Paul Eggert  <eggert@twinsun.com>
90591
90592         The old behavior of quoting `like this' doesn't look good with
90593         newer, ISO-style fonts.  See:
90594         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
90595
90596         Instead, quote "like this" by default.  Let the translator
90597         tailor the locale-specific quoting behavior by providing
90598         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
90599
90600         * lib/quotearg.c (N_): New macro.
90601         (gettext_default): New function.
90602         (quotearg_buffer_restyled): Use
90603         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
90604         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
90605
90606 2000-07-09  Jim Meyering  <meyering@lucent.com>
90607
90608         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
90609         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
90610
90611         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
90612         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
90613
90614 2000-07-09  Jim Meyering  <meyering@lucent.com>
90615
90616         * lib/Most files: Update copyright dates to include 2000.
90617
90618 2000-07-08  Jim Meyering  <meyering@lucent.com>
90619
90620         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
90621         if not defined.
90622         (xgethostname): Remove now-unnecessary #ifdef.
90623         Move declaration of `err' into loop where it's used.
90624
90625 2000-07-05  Paul Eggert  <eggert@twinsun.com>
90626         and Bruno Haible  <haible@clisp.cons.org>
90627
90628         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
90629         only if the test for an object-type mbstate_t fails.  This
90630         prevents us from mistakenly reporting that mbstate_t is a
90631         system object type after we "#define mbstate_t int" to work
90632         around its lack.
90633
90634 2000-07-05  Paul Eggert  <eggert@twinsun.com>
90635         and Bruno Haible  <haible@clisp.cons.org>
90636
90637         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
90638
90639 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
90640
90641         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
90642         to strerror_r.
90643         Include <ctype.h> for use of isalpha.
90644
90645 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
90646
90647         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
90648         by allocating a larger buffer. Test the gethostname return value for
90649         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
90650         returns an error and ENAMETOOLONG isn't defined.
90651
90652 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
90653
90654         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
90655         dimension.
90656
90657 2000-07-04  Jim Meyering  <meyering@lucent.com>
90658
90659         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
90660         of the deprecated AC_CHECKING.
90661
90662 2000-07-04  Jim Meyering  <meyering@lucent.com>
90663
90664         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
90665         Reported by Bruno Haible.
90666
90667 2000-07-04  Jim Meyering  <meyering@lucent.com>
90668
90669         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
90670         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
90671         lacks mbrtowc.
90672
90673 2000-07-03  Paul Eggert  <eggert@twinsun.com>
90674
90675         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
90676         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
90677
90678 2000-07-03  Paul Eggert  <eggert@twinsun.com>
90679         and Bruno Haible  <haible@clisp.cons.org>
90680
90681         * lib/quotearg.c (mbrtowc):
90682         Assign to *pwc, and return 1 only if result is nonzero.
90683         (iswprint): Use ISPRINT when substituting our own mbrtowc.
90684
90685 2000-07-03  Jim Meyering  <meyering@lucent.com>
90686
90687         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
90688
90689 2000-07-03  Jim Meyering  <meyering@lucent.com>
90690
90691         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
90692         This is necessary to get a definition of e.g., UTMP_FILE on
90693         HP-UX 10.20.
90694         From Bob Proulx.
90695
90696 2000-07-02  Jim Meyering  <meyering@lucent.com>
90697
90698         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
90699
90700         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
90701         AC_LIBOBJ(function_name).
90702         * m4/chown.m4: Likewise.
90703         * m4/fnmatch.m4: Likewise.
90704         * m4/ftruncate.m4: Likewise.
90705         * m4/getgroups.m4: Likewise.
90706         * m4/getline.m4: Likewise.
90707         * m4/group-member.m4: Likewise.
90708         * m4/jm-macros.m4: Likewise.
90709         * m4/lstat.m4: Likewise.
90710         * m4/malloc.m4: Likewise.
90711         * m4/memcmp.m4: Likewise.
90712         * m4/nanosleep.m4: Likewise.
90713         * m4/putenv.m4: Likewise.
90714         * m4/realloc.m4: Likewise.
90715         * m4/regex.m4: Likewise.
90716         * m4/stat.m4: Likewise.
90717         * m4/strftime.m4: Likewise.
90718
90719 2000-07-02  Jim Meyering  <meyering@lucent.com>
90720
90721         * lib/quotearg.c (mbstate_t): Don't define here.
90722
90723 2000-07-02  Jim Meyering  <meyering@lucent.com>
90724
90725         * lib/nanosleep.c (SIGCONT): Define if not already defined.
90726
90727 2000-07-01  Jim Meyering  <meyering@lucent.com>
90728
90729         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
90730
90731 2000-07-01  Jim Meyering  <meyering@lucent.com>
90732
90733         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
90734         problem.
90735
90736 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
90737
90738         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
90739         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
90740
90741 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
90742
90743         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
90744         per change in ../m4/ls-mntd-fs.m4.
90745         (read_filesystem_list): Ignore symbolic links.
90746
90747 2000-06-29  Jim Meyering  <meyering@lucent.com>
90748
90749         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
90750         for declaration of strcmp.
90751
90752         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
90753
90754         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
90755         Avoid warning by casting result to `char *' to remove `const'.
90756
90757 2000-06-28  Jim Meyering  <meyering@lucent.com>
90758
90759         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
90760         included by quotearg.c, for which we perform this test.  From
90761         Bruno Haible.
90762
90763 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
90764
90765         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
90766         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
90767         <utmpx.h> exists, put readutmp.o into LIBOBJS.
90768
90769 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
90770
90771         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
90772
90773 2000-06-26  Paul Eggert  <eggert@twinsun.com>
90774
90775         savedir now sets errno on failure and invokes xmalloc to get memory.
90776         Fix a couple of other minor bugs while we're at it.
90777
90778         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
90779         (NAMLEN): Remove macro.
90780         (malloc, realloc): Remove decls.
90781         (stpcpy): Likewise.
90782         ("xalloc.h"): Include.
90783         (NAME_SIZE_DEFAULT): New macro.
90784         (savedir): Use xmalloc / xrealloc to allocate memory.
90785         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
90786         Skip "" directory entries.
90787         Use strlen to calculate directory entry length, since the old method
90788         is rarely used these days and isn't worth supporting.
90789         Don't use a pointer after freeing it.
90790         Check for integer overflow when calculating allocation size.
90791         Use memcpy to copy entries, instead of stpcpy.
90792         Set errno properly when returning NULL.
90793         Check for readdir error.
90794
90795 2000-06-26  Jim Meyering  <meyering@lucent.com>
90796
90797         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
90798
90799 2000-06-25  Jim Meyering  <meyering@lucent.com>
90800
90801         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
90802         Linux header bug when _XOPEN_SOURCE is defined to 500.
90803
90804 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
90805
90806         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
90807         deficiency.
90808
90809 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
90810
90811         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
90812         Include xalloc.h.
90813         Don't include <stdlib.h>.  Don't declare malloc, realloc.
90814
90815 2000-06-24  Jim Meyering  <meyering@lucent.com>
90816
90817         * m4/strerror_r.m4: Revive this file -- to try out an experimental
90818         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
90819         for which strerror does return char*, but which lacks a conveniently
90820         accessible declaration of the function.  If the compile-test says
90821         strerror_r doesn't work, then resort to a `run'-test that works on
90822         BeOS and segfaults on DEC Unix.
90823
90824 2000-06-24  Jim Meyering  <meyering@lucent.com>
90825
90826         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
90827
90828 2000-06-23  Paul Eggert  <eggert@twinsun.com>
90829
90830         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
90831         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
90832
90833 2000-06-23  Paul Eggert  <eggert@twinsun.com>
90834
90835         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
90836         (mbrtowc, mbstate_t): Define substitutes if
90837         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
90838         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
90839         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
90840
90841 2000-06-23  Jim Meyering  <meyering@lucent.com>
90842
90843         * m4/afs.m4: Add missing AC_MSG_RESULT.
90844         Reported by Bruno Haible.
90845
90846         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
90847         Suggestion from Bruno Haible.
90848
90849 2000-06-23  Jim Meyering  <meyering@lucent.com>
90850
90851         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
90852
90853 2000-06-21  Jim Meyering  <meyering@lucent.com>
90854
90855         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
90856
90857 2000-06-21  Jim Meyering  <meyering@lucent.com>
90858
90859         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
90860         (noinst_HEADERS): Add getstr.h.
90861
90862         * lib/getline.c (getstr): Move into a separate file.
90863         * lib/getstr.c (getstr): New file, extracted from getline.c, with
90864         the following changes: new parameter, delim2; both delim[12]
90865         parameters have type `int', not `char'.  The latter would lose
90866         with 8-bit delimiters.
90867         * lib/getstr.h: New file.
90868
90869 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
90870
90871         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
90872         than 1024, return a memory chunk of least possible size, instead
90873         of size PATH_MAX + 2. In the loop, increment the size proportionally.
90874         Use free/xmalloc instead of xrealloc to avoid copying for very long
90875         paths.
90876
90877 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
90878
90879         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
90880         the empty string.
90881
90882 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
90883
90884         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
90885         address, not strdup.  Include <stdlib.h> and don't declare free().
90886
90887 2000-06-19  Jim Meyering  <meyering@lucent.com>
90888
90889         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
90890
90891 2000-06-18  Jim Meyering  <meyering@lucent.com>
90892
90893         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
90894
90895         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
90896         `checking whether...' message to be consistent with that of the
90897         lstat test.
90898
90899 2000-06-18  Jim Meyering  <meyering@lucent.com>
90900
90901         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
90902         Besides, these days every porting target provides a mkdir function.
90903
90904         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
90905         needed. (this snippet comes from src/system.h).
90906
90907 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
90908
90909         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
90910
90911 2000-06-15  Paul Eggert  <eggert@twinsun.com>
90912
90913         * lib/human.c (adjust_value): New function.
90914         (human_readable_inexact): Apply rounding style even when
90915         printing approximate values.
90916
90917 2000-06-14  Paul Eggert  <eggert@twinsun.com>
90918
90919         * lib/human.c (human_readable_inexact): Allow an input block
90920         size that is not a multiple of the output block size, and vice versa.
90921         Reported by Piergiorgio Sartor.
90922
90923 2000-06-14  Paul Eggert  <eggert@twinsun.com>
90924
90925         * lib/getdate.y (get_date): Apply relative times after time
90926         zone indicator, not before.  Reported by Todd A. Jacobs.
90927
90928 2000-06-13  Jim Meyering  <meyering@lucent.com>
90929
90930         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
90931
90932         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
90933
90934 2000-06-12  Paul Eggert  <eggert@twinsun.com>
90935
90936         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
90937
90938 2000-06-12  Jim Meyering  <meyering@lucent.com>
90939
90940         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
90941         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
90942         optional argument.
90943         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
90944         the optional argument, `lib'.
90945
90946 2000-06-08  Jim Meyering  <meyering@lucent.com>
90947
90948         * m4/largefile.m4: Remove file (now that it's part of autoconf).
90949
90950 2000-06-04  Paul Eggert  <eggert@twinsun.com>
90951
90952         Rewrite largefile configuration so that we don't need to run
90953         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
90954         AC_CANONICAL_HOST in configure.in -- jmm]
90955
90956         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
90957         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
90958         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
90959         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
90960         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
90961         All uses changed.
90962         Instead of inspecting the output of getconf, try to compile the
90963         test program without and with the macro definition.
90964         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
90965         for getconf.  Instead, check for the needed flags by compiling
90966         test programs.
90967
90968 2000-06-04  Paul Eggert  <eggert@twinsun.com>
90969
90970         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
90971
90972 2000-06-04  Jim Meyering  <meyering@lucent.com>
90973
90974         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
90975         SunOS 4.1.4 for which gid_t is an unsigned type.
90976
90977 2000-06-03  Jim Meyering  <meyering@lucent.com>
90978
90979         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
90980         now that autoconf requires that.
90981
90982         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
90983         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
90984         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
90985
90986 2000-06-03  Jim Meyering  <meyering@lucent.com>
90987
90988         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
90989
90990 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
90991
90992         * m4/glibc21.m4: New file.
90993         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
90994
90995 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
90996
90997         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
90998         newer, don't install charset.alias.
90999         * lib/config.charset: Change the Linux/glibc rules so they become empty
91000         on glibc-2.1 or newer.
91001
91002 2000-06-02  Jim Meyering  <meyering@lucent.com>
91003
91004         * lib/mountlist.c: Back out last change.  Instead, do this...
91005         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
91006         me_dummy member using the same `ignore'-testing code.
91007         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
91008         fs_type strings.
91009         From Mark D. Roth.
91010
91011 2000-05-29  Jim Meyering  <meyering@lucent.com>
91012
91013         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
91014         mounts with the `ignore' attribute.  Based on a patch from
91015         Mark D. Roth.
91016
91017 2000-05-28  Jim Meyering  <meyering@lucent.com>
91018
91019         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
91020         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
91021         * m4/stat.m4: Likewise.
91022         * m4/lstat.m4: Likewise.
91023         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
91024
91025         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
91026         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
91027
91028 2000-05-26  Jim Meyering  <meyering@lucent.com>
91029
91030         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
91031
91032 2000-05-24  Jim Meyering  <meyering@lucent.com>
91033
91034         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
91035         autoconf requires that.
91036         * m4/lib-check.m4: Likewise.
91037         * m4/jm-macros.m4: Likewise.
91038         * m4/strftime.m4: Likewise.
91039
91040         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
91041         AC_CHECK_DECLS, now that autoconf requires that.
91042
91043 2000-05-22  Jim Meyering  <meyering@lucent.com>
91044
91045         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
91046         * m4/lstat.m4: Likewise.
91047
91048 2000-05-22  Jim Meyering  <meyering@lucent.com>
91049
91050         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
91051
91052 2000-05-20  Jim Meyering  <meyering@lucent.com>
91053
91054         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
91055         (jm_PREREQ): Use it.
91056
91057 2000-05-18  Jim Meyering  <meyering@lucent.com>
91058
91059         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
91060         back, too, since it may have been modified by allocate_entry.
91061         (hash_delete): Rewrite to use neither the assignment operator
91062         nor the comma operator in an if-expression.
91063
91064 2000-05-15  Paul Eggert  <eggert@twinsun.com>
91065
91066         * lib/closeout.c:
91067         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
91068         Remove; no longer needed.
91069         "quotearg.h": Add include.
91070         (file_name): Do not bother to explicitly initialize to NULL; it's less
91071         efficient on some hosts.
91072         (close_stdout_status): Remove test as to whether stdout was already
91073         closed; it breaks for the case "echo x | sort >&-".
91074         Quote file name colons.
91075         Do not assume that _("write error") lacks format strings.
91076
91077 2000-05-15  Jim Meyering  <meyering@lucent.com>
91078
91079         * lib/version-etc.c (version_etc_copyright): Update the copyright
91080         string used in all --version output.
91081
91082 2000-05-14  Jim Meyering  <meyering@lucent.com>
91083
91084         * lib/closeout.c (close_stdout_set_file_name): New function.
91085         (close_stdout_status): Use new file-scoped global.
91086         Return right away if fstat says the stdout file descriptor is invalid.
91087         * lib/closeout.h (close_stdout_set_file_name): Declare.
91088
91089 2000-05-10  Jim Meyering  <meyering@lucent.com>
91090
91091         * lib/closeout.c [default_exit_status]: New file-scoped variable.
91092         (close_stdout_set_status): New function.
91093         * lib/closeout.h (close_stdout_set_status): Declare.
91094
91095 2000-05-09  Jim Meyering  <meyering@lucent.com>
91096
91097         * m4/gettext.m4: Rename this...
91098         * m4/libintl.m4: ...to this.
91099
91100 2000-05-08  Jim Meyering  <meyering@lucent.com>
91101
91102         * lib/long-options.c: Don't include closeout.h.
91103         (parse_long_options): Don't call close_stdout for --version.
91104
91105 2000-05-06  Paul Eggert  <eggert@twinsun.com>
91106
91107         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
91108         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
91109         2.1.3 bug.  This avoids a clash when files like regex.c define
91110         _GNU_SOURCE.
91111
91112 2000-05-06  Jim Meyering  <meyering@lucent.com>
91113
91114         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
91115         (AC_REPLACE_FUNCS): Add strnlen.
91116
91117         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
91118         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
91119
91120         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
91121         AC_SEARCH_LIBS call for nanosleep.
91122         (LIB_NANOSLEEP): Set and AC_SUBST.
91123
91124 2000-05-06  Jim Meyering  <meyering@lucent.com>
91125
91126         * lib/strnlen.c: Undefine __strnlen and strnlen.
91127         [!weak_alias]: Define __strnlen to strnlen.
91128
91129         * lib/atexit.c: New file, from libiberty.
91130
91131 2000-05-06  Jim Meyering  <meyering@lucent.com>
91132
91133         * lib/closeout.c (close_stdout_status): Also check for errors on the
91134         stderr stream.
91135
91136 2000-05-05  Jim Meyering  <meyering@lucent.com>
91137
91138         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
91139         AC_SEARCH_LIBS call for clock_gettime.
91140         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
91141
91142         * m4/search-libs.m4: Update from autoconf.
91143
91144         su doesn't work on Solaris 2.6.
91145         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
91146         <shadow.h>.  Reported by Dragos Harabor.
91147
91148 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
91149
91150         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
91151         memcpy instead of xmalloc, xrealloc, path_concat.
91152         (locale_charset): Treat empty environment variables as absent.
91153         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
91154
91155 2000-05-04  Jim Meyering  <meyering@lucent.com>
91156
91157         * lib/getopt.c: Update from glibc.
91158         * lib/obstack.c: Likewise.
91159         * lib/obstack.h: Likewise.
91160         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
91161         file
91162
91163         * lib/regex.h: Likewise.
91164         * lib/strndup.c: Likewise.
91165         * lib/strnlen.c: New file, from glibc.
91166
91167 2000-05-03  Jim Meyering  <meyering@lucent.com>
91168
91169         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
91170
91171 2000-05-02  Paul Eggert  <eggert@twinsun.com>
91172
91173         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
91174         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
91175         compile-time test, rather than inspecting host and OS, to
91176         decide whether to define _LARGEFILE_SOURCE.
91177
91178 2000-05-01  Jim Meyering  <meyering@lucent.com>
91179
91180         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
91181
91182         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
91183         Based on a patch from Bruno Haible.
91184
91185 2000-05-01  Jim Meyering  <meyering@lucent.com>
91186
91187         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
91188
91189 2000-04-29  Jim Meyering  <meyering@lucent.com>
91190
91191         * lib/path-concat.c: Declare strdup only if it's not defined.
91192         * lib/canon-host.c: Likewise.
91193
91194 2000-04-28  Jim Meyering  <meyering@lucent.com>
91195
91196         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
91197         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
91198         is included first, then limits.h is included by locale.h by libintl.h.
91199         From John David Anglin.
91200
91201 2000-04-25  Jim Meyering  <meyering@lucent.com>
91202
91203         * lib/makepath.c (S_IRWXUGO): Define.
91204         (make_path): Always perform explicit chmod if MODE specifies any
91205         of the `special' permission bits.  Prompted by a bug report against
91206         install from Mate Wierdl and Joost van Baal.
91207
91208 2000-04-18  Jim Meyering  <meyering@lucent.com>
91209
91210         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
91211         (jm_PREREQ): Use it.
91212
91213 2000-04-18  Jim Meyering  <meyering@lucent.com>
91214
91215         * lib/README: New file.
91216
91217         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
91218         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
91219
91220 2000-04-17  Jim Meyering  <meyering@lucent.com>
91221
91222         Get it right :-)
91223         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
91224         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
91225         Suggestion from Akim Demaille.
91226
91227 2000-04-17  Jim Meyering  <meyering@lucent.com>
91228
91229         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
91230         the definition of it to rpl_strftime also defined-away the system's
91231         declaration.
91232
91233 2000-04-15  Jim Meyering  <meyering@lucent.com>
91234
91235         Use `C' to denote so-called `contiguous' files, the same way
91236         that tar does.
91237         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
91238         (ftypelet): Use S_ISCTG.
91239         From Michael Deutschmann.
91240
91241 2000-04-14  Jim Meyering  <meyering@lucent.com>
91242
91243         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
91244         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
91245         clobbered.
91246
91247 2000-04-14  Jim Meyering  <meyering@lucent.com>
91248
91249         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
91250
91251 2000-04-13  Jim Meyering  <meyering@lucent.com>
91252
91253         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
91254         AH_VERBATIM to insert required #ifndef into config.h.in.
91255         Suggestion from Akim Demaille.
91256
91257 2000-04-12  Jim Meyering  <meyering@lucent.com>
91258
91259         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
91260         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
91261         Christian Krackowizer.
91262
91263         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
91264         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
91265         (AC_SYS_LARGEFILE): Require.
91266         (AM_C_PROTOTYPES): Require.
91267
91268 2000-04-08  Jim Meyering  <meyering@lucent.com>
91269
91270         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
91271         names don't conflict.  Reported by Eli Zaretskii.
91272
91273 2000-04-07  Jim Meyering  <meyering@lucent.com>
91274
91275         * lib/putenv.c: Move inclusion of errno.h so it follows that of
91276         sys/types.h, to work around system header problems on AIX 3.2.5.
91277         From Bruno Haible.
91278
91279 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
91280
91281         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
91282         bug.  Deal with the different error behavior of Irix iconv.
91283
91284 2000-04-05  Paul Eggert  <eggert@twinsun.com>
91285
91286         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
91287         IRIX if the installer said otherwise.
91288
91289 2000-04-05  Jim Meyering  <meyering@lucent.com>
91290
91291         Portability tweaks required for ultrix4.3.
91292         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
91293         (jm_CHECK_DECLS): Add getutent to the list of functions.
91294         (_jm_DECL_HEADERS): Add utmpx.h.
91295         From John David Anglin.
91296
91297         * m4/strftime.m4: Back out the 2000-04-02 change.
91298         Instead of that change, simply undefine putenv in the test program.
91299
91300 2000-04-05  Jim Meyering  <meyering@lucent.com>
91301
91302         Portability tweaks required for ultrix4.3.
91303         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
91304         getutent.
91305         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
91306         * lib/canon-host.c: Declare strdup.
91307         * lib/path-concat.c: Likewise.
91308         From John David Anglin.
91309
91310 2000-04-04  Jim Meyering  <meyering@lucent.com>
91311
91312         Be more DOS 8.3-friendly.
91313         * lib/ref-add.sin: Renamed from ref-add.sed.in.
91314         * lib/ref-del.sin: Renamed from ref-del.sed.in.
91315         * lib/Makefile.am: Reflect renaming.
91316         Reported by Eli Zaretskii.
91317
91318         Use a temporary file name that won't clash with `charset.alias'
91319         in the DOS 8.3 name space.
91320         * lib/Makefile.am (charset_tmp): Define.
91321         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
91322         (uninstall-local): Likewise.
91323         Reported by Eli Zaretskii.
91324
91325 2000-04-03  Jim Meyering  <meyering@lucent.com>
91326
91327         * m4/gettext.m4: Fix typo in comment.
91328
91329         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
91330         textutils/configure.in).  Suggestion from Paul Eggert.
91331         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
91332
91333 2000-04-02  Paul Eggert  <eggert@twinsun.com>
91334
91335         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
91336         variable in the shell rather than using putenv, which isn't
91337         portable.  This avoids the configure-time inter-test dependency
91338         on the potentially-renamed putenv function.
91339
91340 2000-03-30  Paul Eggert  <eggert@twinsun.com>
91341
91342         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
91343         before checking struct stat.st_blksize, so that
91344         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
91345
91346 2000-03-29  Paul Eggert  <eggert@twinsun.com>
91347
91348         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
91349         since strftime.c uses HAVE_STRFTIME to decide whether to use
91350         the underlying strftime.
91351
91352 2000-03-29  Paul Eggert  <eggert@twinsun.com>
91353
91354         * lib/time/strftime.c (my_strftime): Make sure we call the system
91355         strftime, not ourselves, when invoking the underlying strftime.
91356
91357 2000-03-24  Jim Meyering  <meyering@lucent.com>
91358
91359         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
91360         (charset_alias): Define.
91361         (install-exec-local): Factor out common code.
91362         (uninstall-local): Split lines longer than 80.
91363         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
91364         (SUFFIXES): Define.
91365         (.sed.in.sed): New rule.  Don't redirect directly to $@.
91366         (CLEANFILES): Add ref-add.sed and ref-del.sed.
91367
91368 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
91369
91370         * lib/config.charset: Output a line containing "Packages using this
91371         file".
91372         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
91373         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
91374         ref-del.sed): New rules.
91375
91376 2000-03-17  Jim Meyering  <meyering@lucent.com>
91377
91378         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
91379         Otherwise, include <strings.h>
91380
91381 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
91382
91383         * lib/unicodeio.c (utf8_wctomb): New function.
91384         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
91385         format instead of in UCS-4 with platform dependent endianness.
91386
91387 2000-03-10  Jim Meyering  <meyering@lucent.com>
91388
91389         * m4/lib-check.m4: Look for getspnam in -lgen, too.
91390         From Marco Franzen.
91391
91392 2000-03-07  Paul Eggert  <eggert@twinsun.com>
91393
91394         * lib/savedir.c (savedir): Work even if directory size is
91395         negative; this can happen with some screwy NFS configurations.
91396
91397 2000-03-06  Jim Meyering  <meyering@lucent.com>
91398
91399         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
91400         if it's NULL (because we ran out of memory).  From Bruno Haible.
91401
91402 2000-03-05  Jim Meyering  <meyering@lucent.com>
91403
91404         * lib/localcharset.c ("path-concat.h"): Include.
91405         (get_charset_aliases): Use path_concat instead of ANSI string
91406         concatenation.
91407
91408         * lib/unicodeio.h (PARAMS): Define.
91409         Use it to guard prototype.
91410
91411 2000-03-04  Jim Meyering  <meyering@lucent.com>
91412
91413         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
91414         for lib/localcharset.c.
91415
91416 2000-03-04  Jim Meyering  <meyering@lucent.com>
91417
91418         * lib/Makefile.am (install-exec-local): Create $(libdir) before
91419         installing into it.
91420         (uninstall-local): Uncomment this rule so `make distcheck' works
91421         once again.
91422
91423         * lib/unicodeio.c (<errno.h>): Include it.
91424         (errno): Declare if not defined.
91425
91426         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
91427
91428         * lib/config.charset: New version, incorporating remarks from a linux
91429         i18n mailing list.  From Bruno Haible.
91430
91431 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
91432
91433         * m4/codeset.m4: New file.
91434         * m4/iconv.m4: New file.
91435         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
91436
91437 2000-03-03  Jim Meyering  <meyering@lucent.com>
91438
91439         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
91440
91441 2000-03-02  Jim Meyering  <meyering@lucent.com>
91442
91443         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
91444         the messages come out on separate lines.
91445
91446         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
91447         rather than jm_CHECK_DECLARATIONS.
91448         * m4/decl.m4: Remove now-unused file.
91449
91450         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
91451         geteuid.
91452
91453 2000-03-02  Jim Meyering  <meyering@lucent.com>
91454
91455         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
91456
91457 2000-03-01  Jim Meyering  <meyering@lucent.com>
91458
91459         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
91460         * lib/unicodeio.c: Likewise.
91461
91462 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
91463
91464         * lib/config.charset: New file.
91465         * lib/localcharset.c: New file.
91466         * lib/unicodeio.h, lib/unicodeio.c: New files.
91467         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
91468         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
91469         (noinst_HEADERS): Add unicodeio.h.
91470         (all-local, install-exec-local, charset.alias): New targets.
91471
91472 2000-02-28  Paul Eggert  <eggert@twinsun.com>
91473
91474         * lib/quotearg.c (ALERT_CHAR): New macro.
91475         (quotearg_buffer_restyled): Use it.
91476
91477 2000-02-27  Jim Meyering  <meyering@lucent.com>
91478
91479         * m4/check-decl.m4: Add getenv to the list.
91480
91481 2000-02-27  Jim Meyering  <meyering@lucent.com>
91482
91483         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
91484         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
91485
91486         * lib/backupfile.c: Guard inclusion of stdlib.h with
91487         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
91488         Declare malloc if needed.
91489
91490         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
91491         `#ifndef HAVE_DECL..'
91492         now that autoconf always defines the HAVE_DECL_ symbols.
91493         * lib/human.c: Likewise.
91494         * lib/same.c: Likewise.
91495         * lib/strtoumax.c: Likewise.
91496
91497         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
91498         declaration check was not run.
91499         * lib/hash.c: Likewise.
91500         * lib/human.c: Likewise.
91501         * lib/same.c: Likewise.
91502         * lib/strtoumax.c: Likewise.
91503
91504         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
91505         `.', then first look up the entire `.'-containing string as a login
91506         name.
91507
91508 2000-02-23  Jim Meyering  <meyering@lucent.com>
91509
91510         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
91511         in place of my hack.
91512
91513 2000-02-18  Paul Eggert  <eggert@twinsun.com>
91514
91515         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
91516         (textint): New typedef.
91517         (parser_control): Member year changed from int to textint.
91518         All uses changed.
91519         (YYSTYPE): Removed; replaced by %union with int and textint members.
91520         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
91521         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
91522         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
91523         (tSNUMBER, tUNUMBER): Now of type <textintval>.
91524         (date, number, to_year): Use width of number in digits, not its value,
91525         to determine whether it's a 2-digit year, or a 2-digit time.
91526         (yylex): Store number of digits of numeric tokens.
91527         Reported by John Kendall.
91528
91529         (parser_control): Changed from struct parser_control to typedef (for
91530         consistency).  All uses changed.
91531
91532         (tID): Removed; not used.
91533         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
91534
91535 2000-02-14  Paul Eggert  <eggert@twinsun.com>
91536
91537         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
91538         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
91539
91540 2000-02-12  Jim Meyering  <meyering@lucent.com>
91541
91542         * lib/userspec.c (ISDIGIT): Define it.
91543         (isdigit): Remove definition.
91544         (is_number): Use ISDIGIT, not isdigit.
91545         <libintl.h>: Include.
91546         (_ and N_): Define.
91547         (parse_user_spec): Mark translatable strings.
91548
91549 2000-02-10  Jim Meyering  <meyering@lucent.com>
91550
91551         With these changes, nanosleep.[ch] are finally enough like the other
91552         lib/* replacement files to compile on a few more losing systems.
91553
91554         * lib/nanosleep.h: Don't include config.h.
91555         Remove prototype from declaration of nanosleep.
91556         (PARAMS): Remove now-unneeded definition.
91557         * lib/nanosleep.c: #undef nanosleep.
91558         (rpl_nanosleep): Rename from nanosleep.
91559
91560 2000-02-10  Jim Meyering  <meyering@lucent.com>
91561
91562         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
91563         gnu_nanosleep to rpl_nanosleep.
91564
91565 2000-02-09  Jim Meyering  <meyering@lucent.com>
91566
91567         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
91568         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
91569
91570 2000-02-08  Akim Demaille  <akim@epita.fr>
91571
91572         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
91573         `[' and `]' and remove uses of `changequote'.
91574         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
91575         (AC_SYS_LARGEFILE): Likewise.
91576         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
91577         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
91578         of changequote.
91579         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
91580         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
91581         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
91582         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
91583
91584 2000-02-05  Jim Meyering  <meyering@lucent.com>
91585
91586         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
91587         Remove explicit use of AC_HEADER_TIME.  It is required by
91588         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
91589         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
91590         in autoconf whereby the expansion of the latter ended up preceding
91591         the expansion of its prerequisite, AC_HEADER_TIME.
91592         Reported by Volker Borchert.
91593
91594 2000-02-03  Jim Meyering  <meyering@lucent.com>
91595
91596         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
91597
91598 2000-02-03  Jim Meyering  <meyering@lucent.com>
91599
91600         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
91601         rather than with `#if HAVE_UTMPNAME'.
91602
91603 2000-02-02  Jim Meyering  <meyering@lucent.com>
91604
91605         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
91606         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
91607         Reported by Eli Zaretskii.
91608
91609 2000-02-01  Jim Meyering  <meyering@lucent.com>
91610
91611         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
91612
91613 2000-01-31  Jim Meyering  <meyering@lucent.com>
91614
91615         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
91616         functions.  Add the time.h and sys/time.h headers along with the
91617         AC_REQUIRE'ment of AC_HEADER_TIME.
91618
91619 2000-01-31  Jim Meyering  <meyering@lucent.com>
91620
91621         * lib/nanosleep.h (nanosleep): Guard declaration with
91622         `#if ! HAVE_DECL_NANOSLEEP'.
91623         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
91624         the declaration in that vendor's sys/timers.h.
91625         Reported by Christian Krackowizer.
91626
91627         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
91628         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
91629         (ISPRINT): Likewise.
91630         Reported by Tom Tromey.
91631
91632 2000-01-30  Jim Meyering  <meyering@lucent.com>
91633
91634         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
91635
91636         * m4/prereq.m4 (utmp_includes): Define.
91637         Check for ut_user and ut_name members in both struct utmpx
91638         and struct utmp.
91639
91640 2000-01-30  Jim Meyering  <meyering@lucent.com>
91641
91642         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
91643         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
91644         header files where only utmpx.ut_user is declared.
91645
91646         * lib/readutmp.h (UT_USER): Define.
91647
91648 2000-01-29  Jim Meyering  <meyering@lucent.com>
91649
91650         * m4/lib-check.m4: New file containing library-related checks from
91651         fileutils and sh-utils (textutils had none).
91652
91653 2000-01-28  Jim Meyering  <meyering@lucent.com>
91654
91655         * m4/perl.m4: Change format of warning message to look more like that
91656         from the missing script.  Suggestion from François Pinard.
91657
91658 2000-01-25  Jim Meyering  <meyering@lucent.com>
91659
91660         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
91661         well as time.h in the compile check.
91662         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
91663         Fix typo in cross-compiling case: s/yes/no/.
91664
91665 2000-01-23  Jim Meyering  <meyering@lucent.com>
91666
91667         * m4/jm-macros.m4: Move df-related tests here from
91668         fileutils/configure.in
91669
91670         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
91671         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
91672
91673         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
91674         s/space/ac_fsusage_space/.
91675         (jm_FILE_SYSTEM_USAGE): Take two parameters.
91676
91677         * m4/ftruncate.m4: New file (derived from part of
91678         fileutils/configure.in).
91679         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
91680         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
91681
91682         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
91683         AC_SUBST these here, rather than just in sh-util/configure.in, so
91684         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
91685         all the same.
91686         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
91687         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
91688         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
91689         (AC_SUBST(POW_LIBM)): Likewise.
91690         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
91691
91692 2000-01-23  Jim Meyering  <meyering@lucent.com>
91693
91694         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
91695         obstack.c.
91696
91697 2000-01-22  Jim Meyering  <meyering@lucent.com>
91698
91699         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
91700
91701         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
91702
91703         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
91704         configure.in
91705         (AC_CHECK_HEADERS): Likewise for sh-utils.
91706         (AC_CHECK_HEADERS): Likewise for textutils.
91707         Merge the three lists of headers.
91708
91709         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
91710         from fileutils' configure.in.
91711
91712         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
91713         code. Moved tests into their own function (_jm_DECL_HEADERS) in
91714         check-decl.m4.
91715
91716         * m4/check-decl.m4: Use #if rather than #ifdef.
91717         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
91718         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
91719         (_jm_DECL_HEADERS): Define new function.
91720         (jm_CHECK_DECLARATIONS): Require it.
91721
91722 2000-01-22  Jim Meyering  <meyering@lucent.com>
91723
91724         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
91725         [! HAVE_DECL_STRTOULL]: Declare strtoull.
91726         Required for some AIX systems.  Reported by Christian Krackowizer.
91727         [TESTING] (main): New function.
91728
91729         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
91730         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
91731         letters.
91732
91733         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
91734         iswprint.
91735
91736         * lib/strverscmp.c (ISDIGIT): Define.
91737         (strverscmp): Use ISDIGIT, not isdigit.
91738
91739 2000-01-19  Jim Meyering  <meyering@lucent.com>
91740
91741         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
91742         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
91743         defines `struct timespec' in <sys/time.h>
91744
91745         * m4/c-bs-a.m4: Remove uses of changequote altogether.
91746         Thanks to Akim for explaining.
91747
91748 2000-01-17  Paul Eggert  <eggert@twinsun.com>
91749
91750         * lib/nanosleep.c (nanosleep):
91751         Don't use SA_INTERRUPT to decide whether to call sigaction, as
91752         POSIX.1 doesn't require SA_INTERRUPT and some systems
91753         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
91754         it's been part of POSIX.1 since day 1 (in 1988).
91755
91756 2000-01-17  Jim Meyering  <meyering@lucent.com>
91757
91758         * lib/interlock: Remove unused file.  Reported by François Pinard.
91759
91760 2000-01-16  Paul Eggert  <eggert@twinsun.com>
91761
91762         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
91763         alert, backslash, formfeed, and vertical tab unnecessarily in
91764         shell quoting style.
91765
91766 2000-01-16  Jim Meyering  <meyering@lucent.com>
91767
91768         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
91769         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
91770         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
91771         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
91772
91773 2000-01-16  Jim Meyering  <meyering@lucent.com>
91774
91775         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
91776         because the latter didn't work.
91777
91778 2000-01-15  Jim Meyering  <meyering@lucent.com>
91779
91780         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
91781         (AC_REPLACE_FUNCS): Add memcpy and memset.
91782         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
91783         Add strpbrk.
91784         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
91785
91786 2000-01-12  Jim Meyering  <meyering@lucent.com>
91787
91788         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
91789         (jm_PREREQ): Use it.
91790         (jm_PREREQ_READUTMP): New macro.
91791         (jm_PREREQ): Use it.
91792
91793 2000-01-11  Paul Eggert  <eggert@twinsun.com>
91794
91795         Quote multibyte characters correctly.
91796         * m4/c-bs-a.m4: New file.
91797         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
91798         (jm_PREREQ): Use it.
91799
91800 2000-01-11  Paul Eggert  <eggert@twinsun.com>
91801
91802         * m4/uintmax_t.m4: Port to autoconf 2.13.
91803
91804 2000-01-08  Jim Meyering  <meyering@ascend.com>
91805
91806         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
91807         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
91808
91809 2000-01-04  Jim Meyering  <meyering@ascend.com>
91810
91811         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
91812         jm_STRUCT_DIRENT_D_TYPE.
91813         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
91814         jm_STRUCT_DIRENT_D_INO.
91815         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
91816         jm_STRUCT_UTIMBUF.
91817         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
91818         renamings.
91819         * m4/utime.m4: Likewise.
91820
91821         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
91822         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
91823
91824 2000-01-03  Paul Eggert  <eggert@twinsun.com>
91825
91826         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
91827         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
91828
91829 2000-01-02  Jim Meyering  <meyering@ascend.com>
91830
91831         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
91832         remember if this is necessary.
91833
91834 1999-12-26  Jim Meyering  <meyering@ascend.com>
91835
91836         * m4/jm-macros.m4: Use it here.
91837         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
91838
91839 1999-12-23  Jim Meyering  <meyering@ascend.com>
91840
91841         * m4/jm-macros.m4: Check for clock_gettime (moved from
91842         fileutils/configure.in)
91843         Check for gettimeofday.
91844
91845 1999-12-20  Jim Meyering  <meyering@ascend.com>
91846
91847         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
91848         autoconf-2.14a-1999-12-20.
91849
91850 1999-12-19  Jim Meyering  <meyering@ascend.com>
91851
91852         * m4/lstat-slash.m4: New file.
91853         * m4/jm-macros.m4: Use the new macro:
91854         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
91855
91856 1999-12-07  Jim Meyering  <meyering@ascend.com>
91857
91858         * m4/perl.m4: Require that File::Compare be available, too.
91859         Too many systems seem to lack it.
91860
91861         * m4/strftime.m4: Add checks for most of the cpp macros tested in
91862         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
91863
91864 1999-11-18  Paul Eggert  <eggert@twinsun.com>
91865
91866         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
91867         problem with the QNX 4.25 shell, which doesn't propagate exit
91868         status of failed commands inside shell assignments.
91869
91870 1999-11-17  Jim Meyering  <meyering@ascend.com>
91871
91872         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
91873
91874 1999-11-07  Jim Meyering  <meyering@ascend.com>
91875
91876         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
91877
91878 1999-11-06  Jim Meyering  <meyering@ascend.com>
91879
91880         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
91881         * m4/jm-macros.m4 (jm_MACROS): Use it here.
91882
91883 1999-11-05  Jim Meyering  <meyering@ascend.com>
91884
91885         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
91886         configure.in of textutils, fileutils, and sh-utils into this one
91887         (shared between those packages) file.
91888         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
91889         AC_STRUCT_ST_BLKSIZE.
91890
91891 1999-11-03  Jim Meyering  <meyering@ascend.com>
91892
91893         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
91894         of AC_CHECK_TYPE checks includes unistd.h.
91895         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
91896         Suggestion from Akim Demaille.
91897
91898 1999-10-30  Jim Meyering  <meyering@ascend.com>
91899
91900         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
91901         m4-quoted string.
91902         * m4/ls-mntd-fs.m4: Likewise.
91903         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
91904         * m4/jm-winsz1.m4: Likewise.
91905
91906         * m4/const.m4: Remove file, since the fix made it into the experimental
91907         version of autoconf.
91908         * m4/mktime.m4: Likewise.
91909
91910         * m4/check-type.m4: Remove file, now that the latest version of
91911         AC_CHECK_TYPE takes a third arg to specify additional #includes.
91912
91913         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
91914         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
91915         AC_CHECK_TYPE.
91916
91917 1999-10-04  Jim Meyering  <meyering@ascend.com>
91918
91919         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
91920
91921 1999-09-22  Paul Eggert  <eggert@twinsun.com>
91922
91923         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
91924         2.95.1 bug with HP-UX 10.20.
91925
91926 1999-09-17  Jim Meyering  <meyering@ascend.com>
91927
91928         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
91929         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
91930         due to missing strdup (against sh-utils-2.0).
91931
91932 1999-08-29  Jim Meyering  <meyering@ascend.com>
91933
91934         * m4/jm-macros.m4: Require jm_BISON.
91935         * m4/bison.m4: New file.
91936
91937 1999-08-17  Paul Eggert  <eggert@twinsun.com>
91938
91939         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
91940         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
91941
91942 1999-08-05  Jim Meyering  <meyering@ascend.com>
91943
91944         * m4/getline.m4: Rename test file from conftestdata to conftest.data
91945         to avoid conflicts with `conftest' on 8+3 filesystems.
91946         Suggestion from Eli Zaretskii.
91947
91948 1999-08-04  Jim Meyering  <meyering@ascend.com>
91949
91950         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
91951         fileutils and sh-utils (textutils's getline test was inadequate).
91952         (AM_FUNC_GETLINE): Run this test.
91953         (AC_CHECK_FUNCS): Check for getdelim.
91954         Reported by Bob Proulx.
91955
91956 1999-08-02  Jim Meyering  <meyering@ascend.com>
91957
91958         * m4/jm-macros.m4: Add a comment.
91959
91960 1999-08-01  Paul Eggert  <eggert@twinsun.com>
91961
91962         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
91963         <inttypes.h> defines strtoumax as a macro (and not as a
91964         function).
91965
91966 1999-08-01  Paul Eggert  <eggert@twinsun.com>
91967
91968         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
91969         that we can shift, multiply and divide unsigned long long
91970         values; Ultrix cc can't do it.
91971
91972 1999-08-01  Paul Eggert  <eggert@twinsun.com>
91973
91974         * m4/mktime.m4: New file, which is a preview of what should appear
91975         in the next public autoconf release.
91976
91977 1999-08-01  Paul Eggert  <eggert@twinsun.com>
91978
91979         * m4/lfs.m4: Remove this file.
91980         * m4/largefile.m4: New file.  It contains the old contents of
91981         lfs.m4, except that all names with prefix AC_LFS have been
91982         changed to use the prefix AC_SYS_LARGEFILE instead, to be
91983         compatible with future autoconf versions.  Also, some minor m4
91984         quoting problems have been fixed.
91985
91986 1999-08-01  Paul Eggert  <eggert@twinsun.com>
91987
91988         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
91989         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
91990         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
91991         and simplify the shell code.
91992
91993 1999-08-01  Jim Meyering  <meyering@ascend.com>
91994
91995         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
91996         m4.
91997
91998 1999-07-20  Jim Meyering  <meyering@ascend.com>
91999
92000         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
92001
92002 1999-07-15  Jim Meyering  <meyering@ascend.com>
92003
92004         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
92005
92006 1999-05-22  Jim Meyering  <meyering@ascend.com>
92007
92008         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
92009
92010 1999-05-20  Jim Meyering  <meyering@ascend.com>
92011
92012         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
92013         Add a colon after each `then' in case $4 is empty.
92014
92015 1999-05-16  Jim Meyering  <meyering@ascend.com>
92016
92017         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
92018
92019 1999-05-10  Jim Meyering  <meyering@ascend.com>
92020
92021         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
92022
92023         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
92024         AC_FUNC_MKTIME.
92025
92026 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
92027
92028         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
92029
92030 1999-05-04  Paul Eggert  <eggert@twinsun.com>
92031
92032         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
92033         not CPPFLAGS, so that linking works correctly in IRIX.
92034
92035 1999-04-30  Paul Eggert  <eggert@twinsun.com>
92036
92037         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
92038
92039 1999-04-20  Paul Eggert  <eggert@twinsun.com>
92040
92041         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
92042         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
92043         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
92044         jm_AC_TYPE_UNSIGNED_LONG_LONG.
92045         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
92046
92047         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
92048
92049 1999-04-20  Jim Meyering  <meyering@ascend.com>
92050
92051         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
92052         AC_REPLACE xstroull if necessary.  From Paul Eggert.
92053         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
92054
92055 1999-04-18  Jim Meyering  <meyering@ascend.com>
92056
92057         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
92058         * m4/jm-macros.m4: Use it.
92059
92060 1999-04-06  Jim Meyering  <meyering@ascend.com>
92061
92062         * m4/strftime.m4: Remove test for %f.
92063
92064 1999-03-29  Jim Meyering  <meyering@ascend.com>
92065
92066         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
92067         superset of the AC_TYPE_* checks in the textutils, fileutils,
92068         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
92069         AC_TYPE_PID_T.
92070
92071 1999-03-28  Jim Meyering  <meyering@ascend.com>
92072
92073         * m4/jm-macros.m4: Define GNU_PACKAGE here.
92074         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
92075         replaced e.g., in the *.sh files of the sh-utils.
92076
92077 1999-03-20  Jim Meyering  <meyering@ascend.com>
92078
92079         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
92080         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
92081         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
92082
92083 1999-03-19  Jim Meyering  <meyering@ascend.com>
92084
92085         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
92086
92087 1999-03-12  Jim Meyering  <meyering@ascend.com>
92088
92089         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
92090
92091 1999-03-07  Jim Meyering  <meyering@ascend.com>
92092
92093         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
92094         declared.
92095
92096 1999-02-17  Jim Meyering  <meyering@ascend.com>
92097
92098         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
92099         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
92100
92101 1999-02-07  Jim Meyering  <meyering@ascend.com>
92102
92103         * m4/group-member.m4: New file -- extracted from sh-utils'
92104         configure.in.
92105
92106         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
92107         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
92108
92109 1999-02-06  Jim Meyering  <meyering@ascend.com>
92110
92111         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
92112         * m4/fnmatch.m4: Likewise.
92113         * m4/getgroups.m4: Likewise.
92114         * m4/lstat.m4: Likewise.
92115         * m4/malloc.m4: Likewise.
92116         * m4/putenv.m4: Likewise.
92117         * m4/realloc.m4: Likewise.
92118         * m4/regex.m4: Likewise.
92119         * m4/stat.m4: Likewise.
92120         * m4/strftime.m4: Likewise.
92121         Suggestion from Alain Magloire.
92122
92123         * m4/chown.m4: Use `.$ac_objext', not `.o'.
92124         * m4/fnmatch.m4: Likewise.
92125         * m4/getgroups.m4: Likewise.
92126         * m4/getline.m4: Likewise.
92127         * m4/lstat.m4: Likewise.
92128         * m4/malloc.m4: Likewise.
92129         * m4/memcmp.m4: Likewise.
92130         * m4/putenv.m4: Likewise.
92131         * m4/realloc.m4: Likewise.
92132         * m4/regex.m4: Likewise.
92133         * m4/stat.m4: Likewise.
92134         * m4/strftime.m4: Likewise.
92135         Suggestion from Alain Magloire.
92136
92137         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
92138         an argument.
92139
92140         * m4/regex.m4: Add a run-time Test for proper operation of
92141         re_compile_pattern.
92142
92143 1999-01-31  Jim Meyering  <meyering@ascend.com>
92144
92145         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
92146
92147 1999-01-30  Jim Meyering  <meyering@ascend.com>
92148
92149         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
92150
92151         * m4/jm-mktime.m4: Make this a wrapper around the official
92152         AM_FUNC_MKTIME rather than my private copy, now that the official one
92153         is up to date.
92154         * m4/mktime.m4: Remove file.
92155
92156         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
92157         * m4/uptime.m4: Likewise.
92158         * m4/uintmax_t.m4: Likewise.
92159
92160 1999-01-28  Jim Meyering  <meyering@ascend.com>
92161
92162         * m4/jm-macros.m4: Use jm_AFS.
92163         * m4/afs.m4: New file (from fileutils' configure.in).
92164
92165         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
92166         * m4/chown.m4: Likewise.
92167         * m4/d-ino.m4: Likewise.
92168         * m4/d-type.m4: Likewise.
92169         * m4/fnmatch.m4: Likewise.
92170         * m4/getgroups.m4: Likewise.
92171         * m4/gettext.m4: Likewise.
92172         * m4/jm-mktime.m4: Likewise.
92173         * m4/jm-winsz2.m4: Likewise.
92174         * m4/lcmessage.m4: Likewise.
92175         * m4/ls-mntd-fs.m4: Likewise.
92176         * m4/malloc.m4: Likewise.
92177         * m4/memcmp.m4: Likewise.
92178         * m4/putenv.m4: Likewise.
92179         * m4/realloc.m4: Likewise.
92180         * m4/st_mtim.m4: Likewise.
92181         * m4/strftime.m4: Likewise.
92182
92183 1999-01-16  Jim Meyering  <meyering@ascend.com>
92184
92185         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
92186         (ARGMATCH_DIE_DECL): Define.
92187
92188 1999-01-12  Jim Meyering  <meyering@ascend.com>
92189
92190         * m4/Makefile.am.in: Rewrite to avoid using fmt.
92191         Reported by Lars Hecking.
92192
92193 1999-01-10  Jim Meyering  <meyering@ascend.com>
92194
92195         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
92196         gross kludge.
92197         * m4/inttypes_h.m4: Likewise.
92198         * m4/lstat.m4: Likewise.
92199         * m4/malloc.m4: Likewise.
92200         * m4/readdir.m4: Likewise.
92201         * m4/realloc.m4: Likewise.
92202         * m4/st_dm_mode.m4: Likewise.
92203         * m4/stat.m4: Likewise.
92204         * m4/utimbuf.m4: Likewise.
92205         * m4/utimes.m4: Likewise.
92206
92207         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
92208         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
92209         comments in config.h.in are meaningful.
92210
92211         * m4/jm-macros.m4: Require autoconf-2.13 here.
92212
92213         * m4/regex.m4: By default, don't use the included regex.c on systems
92214         with glibc 2.  Suggestion from Uli Drepper.
92215
92216 1999-01-02  Jim Meyering  <meyering@ascend.com>
92217
92218         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
92219
92220 1998-12-18  Jim Meyering  <meyering@ascend.com>
92221
92222         * m4/Makefile.am.in (Makefile.am): Simplify rule.
92223         Based on a suggestion from Lars Hecking.
92224
92225 1998-11-16  Paul Eggert  <eggert@twinsun.com>
92226
92227         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
92228
92229 1998-11-16  Jim Meyering  <meyering@ascend.com>
92230
92231         * m4/lfs.m4: Double-quote the `uname...` expression.
92232
92233 1998-11-14  Jim Meyering  <meyering@ascend.com>
92234
92235         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
92236         * m4/stat.m4: Likewise.
92237
92238 1998-11-03  Jim Meyering  <meyering@ascend.com>
92239
92240         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
92241         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
92242
92243 1998-10-18  Jim Meyering  <meyering@ascend.com>
92244
92245         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
92246
92247 1998-10-17  Jim Meyering  <meyering@ascend.com>
92248
92249         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
92250         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
92251         calls for those previously hard-coded headers.  Instead, take a new
92252         parameter.
92253         (jm_CHECK_DECLARATIONS): Reflect interface change.
92254         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
92255         (jm_CHECK_DECL_LOCALTIME_R): New macro.
92256
92257         * m4/mktime.m4: Test for spring-forward gap before long-running test.
92258
92259 1998-10-14  Jim Meyering  <meyering@ascend.com>
92260
92261         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
92262         instead of "TZ=America/Vancouver".  From Paul Eggert.
92263
92264 1998-10-11  Jim Meyering  <meyering@ascend.com>
92265
92266         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
92267         This adds a test for a recently added compatibility fix for mktime.c.
92268         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
92269
92270 1998-09-27  Jim Meyering  <meyering@ascend.com>
92271
92272         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
92273
92274         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
92275         ../configure.in, including a change from Gordon Matzigkeit to allow
92276         cross-compiling for the Hurd.
92277
92278         * m4/glibc.m4: New file/macro to test for the GNU C Library
92279         versions 1 and 2.  From Gordon Matzigkeit.
92280         Indent.
92281
92282 1998-09-21  Jim Meyering  <meyering@ascend.com>
92283
92284         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
92285
92286 1998-08-18  Paul Eggert  <eggert@twinsun.com>
92287
92288         Port nanosecond-resolution times to UnixWare 2.1.2 and
92289         pedantic Solaris 2.6.
92290
92291         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
92292         AC_STRUCT_ST_MTIM.
92293         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
92294         Generate name of ns member, instead of just 1 or undef.
92295         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
92296
92297 1998-08-15  Jim Meyering  <meyering@ascend.com>
92298
92299         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
92300         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
92301         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
92302         instead of jm_TYPE_SSIZE_T.
92303
92304 1998-08-12  Jim Meyering  <meyering@ascend.com>
92305
92306         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
92307
92308 1998-08-02  Jim Meyering  <meyering@ascend.com>
92309
92310         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
92311         in acconfig.h manually.
92312
92313 1998-07-31  Paul Eggert  <eggert@twinsun.com>
92314
92315         * m4/st_mtim.m4: New file.
92316
92317 1998-07-28  Jim Meyering  <meyering@ascend.com>
92318
92319         * m4/utimes.m4: Undef stat.
92320
92321 1998-07-25  Jim Meyering  <meyering@ascend.com>
92322
92323         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
92324         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
92325
92326 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
92327
92328         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
92329         uid and gid actually remain unchanged.
92330
92331 1998-07-07  Jim Meyering  <meyering@ascend.com>
92332
92333         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
92334
92335 1998-07-04  Jim Meyering  <meyering@ascend.com>
92336
92337         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
92338         to prove that this macro can be used in packages without regex.c.
92339
92340 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
92341
92342         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
92343         is to be used.
92344
92345 1998-07-03  Jim Meyering  <meyering@ascend.com>
92346
92347         * m4/gettext.m4: Add -lintl if it's found to be necessary.
92348
92349         * m4/gettext.m4: New file -- from gettext-0.10.35.
92350         * m4/lcmessage.m4: Likewise.
92351         * m4/progtest.m4: Likewise.
92352
92353         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
92354         * m4/jm-macros.m4: Require the new macro.
92355
92356 1998-06-29  Jim Meyering  <meyering@ascend.com>
92357
92358         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
92359         for the definition of NGROUPS (used in a system header included
92360         by sys/mount.h).
92361
92362 1998-06-28  Jim Meyering  <meyering@ascend.com>
92363
92364         * m4/ls-mntd-fs.m4: New file.
92365         * m4/fstypename.m4: New file.
92366
92367         * m4/jm-macros.m4: Require the new macro.
92368         * m4/jm-glibc-io.m4: New file.
92369
92370 1998-05-19  Jim Meyering  <meyering@ascend.com>
92371
92372         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
92373         * m4/lchown.m4: New file.
92374
92375         * m4/Makefile.am.in: New file.
92376         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
92377
92378 1998-05-14  Jim Meyering  <meyering@ascend.com>
92379
92380         * m4/Makefile.am (EXTRA_DIST): Add them.
92381         * m4/jm-macros.m4: New file.
92382         * m4/utimbuf.m4: New file.
92383
92384 1998-05-12  Jim Meyering  <meyering@ascend.com>
92385
92386         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
92387
92388 1998-05-11  Jim Meyering  <meyering@ascend.com>
92389
92390         * m4/isc-posix.m4: New file.
92391
92392 1998-05-10  Jim Meyering  <meyering@ascend.com>
92393
92394         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
92395
92396 1998-05-09  Jim Meyering  <meyering@ascend.com>
92397
92398         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
92399         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
92400         with automake.
92401
92402         * m4/ssize_t.m4: New file.
92403         * m4/mktime.m4: Remove file -- the new automake has this now.
92404
92405 1998-04-26  Jim Meyering  <meyering@ascend.com>
92406
92407         * m4/assert.m4: New file.
92408         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
92409
92410 1998-04-05  Jim Meyering  <meyering@ascend.com>
92411
92412         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
92413         (jm_PREREQ): Use it here.
92414
92415 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
92416
92417         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
92418         in acconfig.h.
92419
92420 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
92421
92422         * m4/prereq.m4: New file.
92423         * m4/error.m4: New file.
92424         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
92425
92426 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
92427
92428         * m4/getline.m4: Don't set am_cv_func_working_getline before the
92429         cache-check for the same variable -- that defeated the purpose of
92430         the test; the test program was never run.  This was a problem only
92431         on systems with losing getline functions -- HP-UX 10.20 is one.
92432         Reported by Bjorn Helgaas.
92433
92434 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
92435
92436         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
92437
92438 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
92439
92440         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
92441
92442         * m4/const.m4: New file.  Use an initializer in this declaration
92443         typedef int charset[2]; const charset x;
92444         Reported by Bob Glickstein.
92445
92446 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
92447
92448         * m4/chown.m4: Fix reversed types on -1 args to chown.
92449         From Kaveh Ghazi.
92450
92451 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
92452
92453         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
92454         Add lseek and memchr.
92455
92456         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
92457         T.E.Dickey <dickey@clark.net> said that some older preprocessors
92458         have a 20-character limit on names.
92459
92460 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
92461
92462         * m4/inttypes_h.m4: New file.
92463         * m4/uintmax_t.m4: New file.
92464         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
92465
92466
92467         -----
92468
92469         Local Variables:
92470         coding: utf-8
92471         End:
92472
92473         Copyright (C) 1997-2012 Free Software Foundation, Inc.
92474
92475         Copying and distribution of this file, with or without
92476         modification, are permitted provided the copyright notice
92477         and this notice are preserved.